Install
openclaw skills install clawgears-security-auditComprehensive OpenClaw security audit — checks gateway binding, credential exposure, channel policies, tool sandboxing, network/IP leaks, and macOS system se...
openclaw skills install clawgears-security-auditRun a comprehensive security audit on your local OpenClaw installation. Covers 6 security domains mapped to MITRE ATLAS threat categories.
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
AUDIT_DIR="$HOME/openclaw-security-audit"
bash "$AUDIT_DIR/checks/gateway.sh" && bash "$AUDIT_DIR/checks/credentials.sh"
for check in gateway credentials channels tools network system; do
bash "$AUDIT_DIR/checks/${check}.sh"
done
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" |
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, requireMentionbash "$AUDIT_DIR/audit.sh"
Then select option 5 for HTML or JSON report output.
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.
brew install python3