Security Audit
/install clawgears-security-audit
OpenClaw Security Audit
Run a comprehensive security audit on your local OpenClaw installation. Covers 6 security domains mapped to MITRE ATLAS threat categories.
When to Use
- User asks to "check security", "audit my openclaw", "is my config secure?"
- User mentions concerns about API key leaks, exposed ports, or privacy
- After changing OpenClaw configuration (gateway, channels, tools, etc.)
- User wants a security report (HTML or JSON)
When NOT to Use
- General system security questions unrelated to OpenClaw
- User is asking about a different application
- User just wants to know what OpenClaw is
Setup
Check if the audit tool is installed:
ls ~/openclaw-security-audit/audit.sh 2>/dev/null || echo "NOT_INSTALLED"
If not installed, clone it:
git clone https://github.com/sunt23310-ops/openclaw-security-audit.git ~/openclaw-security-audit
Running Checks
AUDIT_DIR="$HOME/openclaw-security-audit"
Quick Check (critical items only, ~5 seconds)
bash "$AUDIT_DIR/checks/gateway.sh" && bash "$AUDIT_DIR/checks/credentials.sh"
Full Audit (all 6 modules)
for check in gateway credentials channels tools network system; do
bash "$AUDIT_DIR/checks/${check}.sh"
done
Individual Checks
Match the user's concern to the right module:
| User asks about | Command |
|---|---|
| Gateway, ports, binding, auth, TLS | bash "$AUDIT_DIR/checks/gateway.sh" |
| API keys, passwords, file permissions, history leaks | bash "$AUDIT_DIR/checks/credentials.sh" |
| WhatsApp, Telegram, DM policy, allowFrom | bash "$AUDIT_DIR/checks/channels.sh" |
| Sandbox, denyCommands, tool restrictions | bash "$AUDIT_DIR/checks/tools.sh" |
| IP leak, exposed ports, firewall, Shodan/Censys | bash "$AUDIT_DIR/checks/network.sh" |
| macOS SIP, FileVault, TCC, iCloud sync | bash "$AUDIT_DIR/checks/system.sh" |
Auto-Fix (requires explicit user confirmation for each fix)
bash "$AUDIT_DIR/fixes/interactive-fix.sh"
Specific fixes:
bash "$AUDIT_DIR/fixes/gateway-fix.sh"— bind gateway to localhost, generate strong tokenbash "$AUDIT_DIR/fixes/permission-fix.sh"— fix file/directory permissionsbash "$AUDIT_DIR/fixes/channel-fix.sh"— fix DM policy, allowFrom, requireMention
Generate Report
bash "$AUDIT_DIR/audit.sh"
Then select option 5 for HTML or JSON report output.
Output Format
Each check outputs lines prefixed with:
[PASS]— check passed, no action needed[WARN]— potential issue, review recommended[FAIL]— security issue found, fix recommended[SKIP]— check skipped (component not installed or not applicable)
After running checks, summarize results clearly. If there are FAIL items, recommend the appropriate fix script and explain what it will do before the user confirms.
Important Notes
- This tool is read-only by default. Fix scripts require explicit user confirmation for each change.
- The IP leak check (network module) will ask before sending your IP to external services (Shodan, Censys).
- All checks gracefully skip if OpenClaw is not installed or a component is missing.
- On Linux, macOS-specific checks (SIP, FileVault, TCC) are automatically skipped.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install clawgears-security-audit - 安装完成后,直接呼叫该 Skill 的名称或使用
/clawgears-security-audit触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Security Audit 是什么?
Comprehensive OpenClaw security audit — checks gateway binding, credential exposure, channel policies, tool sandboxing, network/IP leaks, and macOS system se... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 311 次。
如何安装 Security Audit?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install clawgears-security-audit」即可一键安装,无需额外配置。
Security Audit 是免费的吗?
是的,Security Audit 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Security Audit 支持哪些平台?
Security Audit 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(macos, linux)。
谁开发了 Security Audit?
由 sunt23310-ops(@sunt23310-ops)开发并维护,当前版本 v1.0.0。