← 返回
未分类 中文

security-sweep

Security scanner for OpenClaw skills and plugins. Scans for hardcoded secrets, dangerous exec patterns, dependency vulnerabilities, and network egress. Use w...
OpenClaw 技能和插件的安全扫描器,检测硬编码密钥、危险 exec 模式、依赖漏洞和网络出口。使用w...
rhombusmaximus rhombusmaximus 来源
未分类 clawhub v1.1.2 1 版本 99726 Key: 无需
★ 0
Stars
📥 364
下载
💾 0
安装
1
版本
#latest

概述

Security Sweep — Skill & Plugin Auditor

Scans OpenClaw skills and plugins for:

  1. Hardcoded secrets — API keys, tokens, passwords in code
  2. Dangerous exec patterns — shell injection, eval, unsanitized child_process calls
  3. Dependency vulnerabilities — npm audit failures
  4. Network egress — unexpected outbound connections
  5. Input injection — unsanitized user input reaching exec/file/eval

Scan Scope

Built-in skills (read-only, bundled with OpenClaw CLI):

$(brew --prefix)/Cellar/openclaw-cli/<version>/libexec/lib/node_modules/openclaw/skills/

Workspace skills (user-installed):

~/.openclaw/workspace/skills/

Workflow

Full Sweep

Run the comprehensive scan script:

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"

Quick Scan (fast patterns only)

bash ~/.openclaw/workspace/skills/security-sweep/scripts/quick-scan.sh \
  --dir "$HOME/.openclaw/workspace/skills"

Single Skill Scan

bash ~/.openclaw/workspace/skills/security-sweep/scripts/skill-scan.sh \
  --skill /path/to/skill

NPM Audit (workspace skills with package.json)

bash ~/.openclaw/workspace/skills/security-sweep/scripts/npm-audit.sh \
  --workspace "$HOME/.openclaw/workspace/skills"

Risk Categories

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

Reporting

Reports are saved to ~/.openclaw/security-sweep-.txt.

Include report path in memory after each scan.

Periodic Scanning

Offer to schedule weekly security sweeps via cron:

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."}'

Sharing / ClawHub Publishing

Before publishing a skill to ClawHub:

  1. Run full sweep
  2. Fix all CRITICAL/HIGH findings
  3. Verify no secrets in SKILL.md or any scripts
  4. Confirm npm audit passes with 0 vulnerabilities
  5. Document all required env vars in SKILL.md

Notes

  • Bundled skills (read-only, no write during scan)
  • Workspace skills are editable — fix findings directly
  • Some execFile usage is legitimate (openclaw CLI calls) — review context
  • process.env access is fine; concern is env vars leaking to untrusted processes

版本历史

共 1 个版本

  • v1.1.2 当前
    2026-05-03 10:43 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 325,909
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,385 📥 321,017
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,086 📥 814,823