Scans OpenClaw skills and plugins for:
Built-in skills (read-only, bundled with OpenClaw CLI):
text
$(brew --prefix)/Cellar/openclaw-cli/<version>/libexec/lib/node_modules/openclaw/skills/
Workspace skills (user-installed):
text
~/.openclaw/workspace/skills/
Run the comprehensive scan script:
bash
SKILLS_DIR="$(brew --prefix)/Cellar/openclaw-cli/2026.3.24/libexec/lib/node_modules/openclaw/skills"
WS_DIR="$HOME/.openclaw/workspace/skills"
REPORT_DATE=$(date +%Y%m%d_%H%M%S)
REPORT_FILE="$HOME/.openclaw/security-sweep-${REPORT_DATE}.txt"
bash ~/.openclaw/workspace/skills/security-sweep/scripts/full-scan.sh \
--builtin "$SKILLS_DIR" \
--workspace "$WS_DIR" \
--output "$REPORT_FILE"
bash
bash ~/.openclaw/workspace/skills/security-sweep/scripts/quick-scan.sh \
--dir "$HOME/.openclaw/workspace/skills"
bash
bash ~/.openclaw/workspace/skills/security-sweep/scripts/skill-scan.sh \
--skill /path/to/skill
bash
bash ~/.openclaw/workspace/skills/security-sweep/scripts/npm-audit.sh \
--workspace "$HOME/.openclaw/workspace/skills"
LevelFindingAction🔴 CRITICALHardcoded secret (api_key, token, password)Remove immediately, rotate credential🔴 CRITICALeval() on untrusted inputReplace with safe alternative🟠 HIGHexec(), spawn() with string concatenationUse execFile with array args🟠 HIGHShell injection surface (bash -c, ${var} in shell)Sanitize or use execFile🟡 MEDIUMnpm audit findings (any severity)Review and update dependencies🟡 MEDIUMUnexpected network egressVerify necessity, document purpose🟢 LOWFile permission too broad (0o777)Restrict to 0o644/0o755🟢 INFOprocess.env leak in logsEnsure logs redact env vars
Reports are saved to ~/.openclaw/security-sweep-<date>.txt.
Include report path in memory after each scan.
Offer to schedule weekly security sweeps via cron:
bash
openclaw cron add \
--name "security-sweep" \
--every 604800 \
--sessionTarget isolated \
--payload '{"kind":"agentTurn","message":"Run security sweep on all skills. Report findings. Save report to ~/.openclaw/security-sweep-<date>.txt and note in memory/YYYY-MM-DD.md if any critical issues found."}'
Before publishing a skill to ClawHub:
execFile usage is legitimate (openclaw CLI calls) — review contextprocess.env access is fine; concern is env vars leaking to untrusted processes