ClawHub Security Scan
/install clawhub-security-scan
ClawHub Security Scan
Pre-publish security scan for ClawHub skills. Scans your skill code for patterns that might trigger automatic suspicious flagging on ClawHub, and gives actionable fixing suggestions.
Commands
| Command | Description |
|---|---|
scan.py |
Scan a skill folder for suspicious patterns |
precheck.py |
Interactive pre-publish checklist wizard - step-by-step security check before publishing |
review.py |
Review scan results and get modification suggestions |
Usage
# Scan a skill folder
python scripts/scan.py --path ./my-skill
What it scans
Scans for code patterns that commonly trigger ClawHub VirusTotal Code Insight suspicious flagging:
🔴 High Risk (really dangerous, should fix)
- Reads sensitive files (
/etc/passwd,~/.ssh/*,id_rsa, etc.) - Uses dangerous functions (
eval(),exec(),execfile()) without validation - Dynamic code execution from untrusted sources
- Hard-coded API keys/tokens in source code
🟡 Medium Risk (may trigger false positive flagging, need review)
- Reads environment variables for API keys (normal & safe, but triggers flag)
- Makes external HTTP/HTTPS requests (normal for most skills, but triggers flag)
- Uses
subprocess,os.systemto run system commands - Downloads code from external sources
🟢 Good Practice
- Reads environment variables instead of hard-coding keys
- All network requests go to known public APIs
- No arbitrary code execution
Output
- Gives each file a risk rating (High/Medium/Low/Good)
- Lists the line numbers and patterns found
- Gives specific modification suggestions
- Exits with non-zero code if high risk issues found
Pricing
0.001 USDT per call, billed via SkillPay.me.
Custom Configuration
You can create a .clawhub-security file in your skill root to ignore specific patterns that you know are safe:
# .clawhub-security - ignore patterns that are safe
ignore: high-entropy-secret # ignore the high-entropy warning for your SkillID
ignore: os\.environ # ignore environment variable warnings
One pattern per line. Lines starting with # are comments.
Why use this
ClawHub automatically scans published skills with VirusTotal Code Insight. Some perfectly normal patterns (like reading env vars or making API requests) get flagged as "suspicious" scaring users. This tool helps you find and address those issues before publishing.
This tool doesn't guarantee you won't get flagged, but it greatly reduces the chance.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install clawhub-security-scan - 安装完成后,直接呼叫该 Skill 的名称或使用
/clawhub-security-scan触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
ClawHub Security Scan 是什么?
Pre-publish security scan for ClawHub skills - Scans code for patterns that might get flagged as suspicious and gives fixing suggestions. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 98 次。
如何安装 ClawHub Security Scan?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install clawhub-security-scan」即可一键安装,无需额外配置。
ClawHub Security Scan 是免费的吗?
是的,ClawHub Security Scan 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
ClawHub Security Scan 支持哪些平台?
ClawHub Security Scan 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 ClawHub Security Scan?
由 yuyiyuleyuli-cloud(@yuyiyuleyuli-cloud)开发并维护,当前版本 v1.1.2。