Skip to content

maichanks/security-hardening

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Security Hardening for OpenClaw

OpenClaw Skill License Status

English | 中文


English

Status: Stable | License: MIT | Author: maichanks

一键部署curl -fsSL https://raw.githubusercontent.com/maichanks/security-hardening/main/deploy.js -o deploy.js && node deploy.js

为 OpenClaw 提供企业级安全加固:静态代码扫描、运行时沙箱隔离、集中审计日志、Docker 安全加固。无缝集成 Gateway,5 分钟提升系统安全性。

🛡️ 5 分钟加固 | 📖 双语文档 | 🆓 MIT 协议 | 🔒 专为 OpenClaw 设计

Features

  • Static analysis (secrets, over-privileged skills)
  • Containerized sandbox execution
  • Centralized audit logs (JSON)
  • Compliance templates (GDPR, SOC2)
  • Auto-remediation for common issues
  • Seamless OpenClaw Gateway integration

🚀 One-Click Deploy

Run the automated deployment script:

curl -fsSL https://raw.githubusercontent.com/maichanks/security-hardening/main/deploy.js -o deploy.js && node deploy.js

This will clone the skill, install dependencies, and print next steps.


Quick Start

1. Install to OpenClaw skills

git clone https://github.com/maichanks/security-hardening.git
# OR copy to $HOME/.openclaw/workspace/skills/
cp -r security-hardening $HOME/.openclaw/workspace/skills/

2. Install dependencies

cd $HOME/.openclaw/workspace/skills/security-hardening
pnpm install   # or: npm install

3. Run initial audit (optional)

node scripts/audit.js --path $HOME/.openclaw/workspace

4. Enable runtime protection

Edit your OpenClaw gateway.yaml:

security:
  enabled: true
  sandbox: docker   # or "bubblewrap" if preferred

Then restart Gateway:

openclaw gateway restart

5. (Optional) Add cron for periodic audits

openclaw cron add \
  --name "Security Audit" \
  --cron "0 3 * * *" \
  --session isolated \
  --message "node $HOME/.openclaw/workspace/skills/security-hardening/scripts/audit.js --path $HOME/.openclaw/workspace"

中文

状态: 稳定 | 许可证: MIT | 作者: maichanks

OpenClaw skill:全方位安全加固工具,包含静态扫描、运行时沙箱、审计日志、Docker 加固。

功能

  • 静态分析(检测硬编码密钥、权限过高)
  • 容器化沙箱执行
  • 集中审计日志(JSON)
  • 合规模板(GDPR、SOC2)
  • 常见问题自动修复
  • 与 OpenClaw Gateway 无缝集成

快速开始

1. 安装到 OpenClaw skills

git clone https://github.com/maichanks/security-hardening.git
# 或复制到 $HOME/.openclaw/workspace/skills/
cp -r security-hardening $HOME/.openclaw/workspace/skills/

2. 安装依赖

cd $HOME/.openclaw/workspace/skills/security-hardening
pnpm install   # 或:npm install

3. 运行首次审计(可选)

node scripts/audit.js --path $HOME/.openclaw/workspace

4. 启用运行时保护

编辑 OpenClaw gateway.yaml

security:
  enabled: true
  sandbox: docker   # 或 "bubblewrap"

重启 Gateway:

openclaw gateway restart

5. (可选)添加定时审计任务

openclaw cron add \
  --name "Security Audit" \
  --cron "0 3 * * *" \
  --session isolated \
  --message "node $HOME/.openclaw/workspace/skills/security-hardening/scripts/audit.js --path $HOME/.openclaw/workspace"

📝 Keywords

openclaw, security, hardening, audit, static-analysis, docker, sandbox, compliance, gdpr, soc2, vulnerability-scanning, secrets-detection


🔗 Related OpenClaw Projects


📄 License

MIT © 2026 maichanks hankan1993@gmail.com

Packages

 
 
 

Contributors