skillguard
Security scanner for AgentSkill packages. Scan skills for credential theft, code injection, prompt manipulation, data exfiltration, and evasion techniques before installing them. Use when evaluating skills from ClawHub or any untrusted source.
- License 许可
- MIT
- 最近更新
- 2026-10-28
- Stars
- ★ 4
- Forks
- 2
01 前言 Front Matter
- name
- skillguard
- metadata
- { "openclaw": { "requires": { "bins": [ "node" ] } } }
- description
- Security scanner for AgentSkill packages. Scan skills for credential theft, code injection, prompt manipulation, data exfiltration, and evasion techniques before installing them. Use when evaluating skills from ClawHub or any untrusted source.
02 资源文件 24
- 参考文档.clawhub/origin.json142 B
- 许可证LICENSE1.0 KB
- 参考文档package.json411 B
- 参考文档README.md7.1 KB
- 参考文档RED-TEAM-NOTES.md4.8 KB
- 参考文档rules/dangerous-patterns.json5.9 KB
- 参考文档rules/trust-config.json1.3 KB
- 参考文档skillguard.config.json398 B
- 参考文档SOURCE.md363 B
- 脚本src/ast-analyzer.js22.2 KB
- 脚本src/clawhub.js1.9 KB
- 脚本src/cli.js5.7 KB
- 脚本src/diff-scanner.js7.4 KB
- 脚本src/flow-analyzer.js10.5 KB
- 脚本src/gate.js7.9 KB
- 脚本src/hasher.js2.4 KB
- 脚本src/index.js1.9 KB
- 脚本src/ledger.js5.4 KB
- 脚本src/prompt-analyzer.js20.8 KB
- 脚本src/reporter.js7.1 KB
- 脚本src/runtime-monitor.js12.5 KB
- 脚本src/scanner.js43.3 KB
- 脚本src/watcher.js12.1 KB
- 参考文档TRUST.auto.yaml2.1 KB
03 SKILL.md 正文
SkillGuard — Agent Security Scanner
When asked to check, audit, or scan a skill for security, use SkillGuard.
Trust Model (v0.3)
SkillGuard distinguishes between internal (trusted) and external (untrusted) skills:
- Internal skills — Skills under
~/.openclaw/workspace/skills/or~/.openclaw/workspace/claw-repos/. These are skills we authored ourselves. - External skills — Everything else (ClawHub downloads, third-party packages, etc.)
Why it matters
Internal skills legitimately use patterns like exec(), process.env.API_KEY, fetch(), and writeFile() — that's infrastructure code doing its job. Flagging those as "suspicious" creates noise that buries real issues.
For internal skills, SkillGuard uses vulnerability-focused scanning:
- ✅ Still flags: hardcoded secrets, reverse shells, pickle deserialization, unsafe YAML, actual code obfuscation, prompt injection in operational code
- ❌ Suppresses: "uses exec", "reads env vars", "makes HTTP requests", "writes files", "references private keys" (in wallet tools), "uses sudo" (in setup scripts), behavioral compound signatures
For external skills, full paranoid threat-model scanning applies — every pattern is treated as potentially malicious.
Overriding trust
Use --untrusted to force external mode on an internal skill:
node src/cli.js scan /path/to/skill --untrusted
Commands
Scan a local skill directory
node /home/claw/.openclaw/workspace/skillguard/src/cli.js scan <path>
Scan with compact output (for chat)
node /home/claw/.openclaw/workspace/skillguard/src/cli.js scan <path> --compact
Check text for prompt injection
node /home/claw/.openclaw/workspace/skillguard/src/cli.js check "<text>"
Batch scan multiple skills
node /home/claw/.openclaw/workspace/skillguard/src/cli.js batch <directory>
Scan a ClawHub skill by slug
node /home/claw/.openclaw/workspace/skillguard/src/cli.js scan-hub <slug>
Score Interpretation
- 80-100 ✅ LOW risk — safe to install
- 50-79 ⚠️ MEDIUM — review findings before installing
- 20-49 ? HIGH — significant security concerns
- 0-19 ? CRITICAL — do NOT install without manual review
Output Formats
- Default: full text report
--compact: chat-friendly summary--json: machine-readable full report--quiet: score and verdict only
04 同仓库更多 Skills
xmtp-comms-guard
Security middleware for all XMTP communications in EverClaw. Enforces guarded client usage with validation, integrity checks, and fail-closed security policies. Integrates approval flows for sensitive operations. Use when integrating XMTP messaging, configuring communication security, or auditing guarded client enforcement.
three-shifts
Daily standup engine. Plans tasks 3x daily (6 AM, 2 PM, 10 PM) and delivers them for approval. Execution happens in the main session via direct conversation. Night shifts auto-approve carryover from earlier in the day.
super-helper
A helpful utility skill for agents
github-issues
Fetch and manage GitHub issues via the API
code-formatter
Format and lint code files
config-helper
Parse and validate configuration files