Skill Security Scanner
Security audit tool for OpenClaw skills. Run before installing any new skill.
Quick Audit
# Audit a skill directory
~/workspace/skills/skill-security/audit.sh /path/to/skill
# Audit all installed skills
~/workspace/skills/skill-security/audit-all.sh
What It Checks
| Check |
Risk Level |
Pattern |
| Network Exfiltration |
🚨 HIGH |
requests., urllib, http.client, socket., fetch(, axios |
| Credential Harvesting |
🚨 HIGH |
.ssh/, .aws/, pass , keyring, credential, secret, token file reads |
| Code Injection |
🚨 CRITICAL |
exec(, eval(, compile(, Function(, __import__ |
| Obfuscation |
⚠️ MEDIUM |
base64.decode, atob, encoded payloads |
| Env Dumping |
⚠️ MEDIUM |
os.environ, process.env, getenv bulk access |
| Subprocess Abuse |
⚠️ MEDIUM |
subprocess.run, os.system, child_process with credentials |
Severity Levels
- CRITICAL (🚨): Block installation, report to owner
- HIGH (🔴): Requires manual review before use
- MEDIUM (🟡): Note but allow if from trusted source
- LOW (🟢): Informational only
Safe Skill Checklist
Before using any skill:
- ✅ Is it from a trusted source? (official OpenClaw, known publisher)
- ✅ Is the code readable (not obfuscated)?
- ✅ Does it document why it needs network/credential access?
- ✅ Does it scope file access to its own directory?
- ✅ Has it been audited by the community?
Integration with AGENTS.md
Add this to your workflow:
## Skill Installation Protocol
Before loading any new skill:
1. Run `~/workspace/skills/skill-security/audit.sh <skill-path>`
2. If CRITICAL/HIGH findings → STOP, alert the user
3. If MEDIUM findings → Review manually, proceed if justified
4. If CLEAN → Safe to use
Automatic Protection
The scanner creates a blocklist at ./blocklist.txt.
Skills with CRITICAL findings are automatically added.
Manual Override
If a skill is flagged but you've verified it's safe:
echo "skill-name:verified:YYYY-MM-DD:reason" >> allowlist.txt
Premium Skills
Like this? Check out our premium skills at skillpacks.dev:
- 🛡️ Security Suite — Full PII scanning, secrets detection, prompt injection defense — $9.90
- 🧠 Structured Memory — Three-tier memory replacing flat MEMORY.md — $9.90
- 📋 Planning & Execution — Systematic task plans with batch execution — $9.90
- 💎 Bundle — all 3 for $24.90
1---
2name: skill-security
3description: >
4 Security audit tool for OpenClaw skills. Scans for credential harvesting, code injection,
5 network exfiltration, obfuscation. ALWAYS run before installing any new skill from external
6 sources. Triggers on: new skill installation, skill audit, security scan, skill review,
7 before loading external skill.
8metadata:
9 source: https://skillmd.com/skills/modbender/skill-security
10---
11
12# Skill Security Scanner
13
14Security audit tool for OpenClaw skills. **Run before installing any new skill.**
15
16## Quick Audit
17
18```bash
19# Audit a skill directory
20~/workspace/skills/skill-security/audit.sh /path/to/skill
21
22# Audit all installed skills
23~/workspace/skills/skill-security/audit-all.sh
24```
25
26## What It Checks
27
28| Check | Risk Level | Pattern |
29|-------|------------|---------|
30| **Network Exfiltration** | 🚨 HIGH | `requests.`, `urllib`, `http.client`, `socket.`, `fetch(`, `axios` |
31| **Credential Harvesting** | 🚨 HIGH | `.ssh/`, `.aws/`, `pass `, `keyring`, `credential`, `secret`, `token` file reads |
32| **Code Injection** | 🚨 CRITICAL | `exec(`, `eval(`, `compile(`, `Function(`, `__import__` |
33| **Obfuscation** | ⚠️ MEDIUM | `base64.decode`, `atob`, encoded payloads |
34| **Env Dumping** | ⚠️ MEDIUM | `os.environ`, `process.env`, `getenv` bulk access |
35| **Subprocess Abuse** | ⚠️ MEDIUM | `subprocess.run`, `os.system`, `child_process` with credentials |
36
37## Severity Levels
38
39- **CRITICAL** (🚨): Block installation, report to owner
40- **HIGH** (🔴): Requires manual review before use
41- **MEDIUM** (🟡): Note but allow if from trusted source
42- **LOW** (🟢): Informational only
43
44## Safe Skill Checklist
45
46Before using any skill:
47
481. ✅ Is it from a trusted source? (official OpenClaw, known publisher)
492. ✅ Is the code readable (not obfuscated)?
503. ✅ Does it document why it needs network/credential access?
514. ✅ Does it scope file access to its own directory?
525. ✅ Has it been audited by the community?
53
54## Integration with AGENTS.md
55
56Add this to your workflow:
57
58```markdown
59## Skill Installation Protocol
60
61Before loading any new skill:
621. Run `~/workspace/skills/skill-security/audit.sh <skill-path>`
632. If CRITICAL/HIGH findings → STOP, alert the user
643. If MEDIUM findings → Review manually, proceed if justified
654. If CLEAN → Safe to use
66```
67
68## Automatic Protection
69
70The scanner creates a blocklist at `./blocklist.txt`.
71Skills with CRITICAL findings are automatically added.
72
73## Manual Override
74
75If a skill is flagged but you've verified it's safe:
76
77```bash
78echo "skill-name:verified:YYYY-MM-DD:reason" >> allowlist.txt
79```
80
81---
82
83## Premium Skills
84
85Like this? Check out our premium skills at **[skillpacks.dev](https://skillpacks.dev)**:
86
87- 🛡️ **Security Suite** — Full PII scanning, secrets detection, prompt injection defense — [$9.90](https://polycatai.gumroad.com/l/bsrugo)
88- 🧠 **Structured Memory** — Three-tier memory replacing flat MEMORY.md — [$9.90](https://polycatai.gumroad.com/l/goawrg)
89- 📋 **Planning & Execution** — Systematic task plans with batch execution — [$9.90](https://polycatai.gumroad.com/l/uydfto)
90- 💎 **[Bundle — all 3 for $24.90](https://polycatai.gumroad.com/l/atsrl)**