MoltCops — Skill Security Scanner
Scan any skill for security threats before you install it. Detects prompt injection, data exfiltration, sleeper triggers, drain patterns, and 16 more threat categories.
Local-first. Your code never leaves your machine. No API calls. No uploads. No accounts.
When to Use
- Before installing any skill from ClawHub, GitHub, or other sources
- Before running skills shared by other agents
- When evaluating unknown code from any source
- After ClawHavoc: 341 malicious skills were found on ClawHub this week. Scan first.
How to Run
python3 scripts/scan.py <path-to-skill-folder>
Example:
# Scan a skill before installing
python3 scripts/scan.py ~/.openclaw/skills/suspicious-skill
# Scan a freshly downloaded skill
python3 scripts/scan.py ./my-new-skill
No dependencies required — uses only Python 3 standard library.
Reading Results
The scanner returns three verdicts:
| Verdict |
Exit Code |
Meaning |
| PASS |
0 |
No critical or high-risk threats detected. Safe to install. |
| WARN |
1 |
High-risk patterns found. Review findings before installing. |
| BLOCK |
2 |
Critical threats detected. Do NOT install this skill. |
What It Detects
20 detection rules across these threat categories:
| Category |
Rules |
Examples |
| Prompt Injection |
MC-001, MC-002, MC-003 |
System prompt override, jailbreak payloads, tool-use steering |
| Code Injection |
MC-004, MC-005, MC-006, MC-019 |
Shell injection, eval/exec, base64-to-exec, child_process |
| Data Exfiltration |
MC-007, MC-008, MC-009, MC-010, MC-020 |
Webhook URLs, env var harvesting, SSH key access, credential files |
| Hardcoded Secrets |
MC-011, MC-012 |
API keys in source, private key material |
| Financial |
MC-013 |
Drain patterns, unlimited withdrawals |
| Lateral Movement |
MC-014 |
Git credential access, repo manipulation |
| Persistence |
MC-015, MC-016 |
SOUL.md writes, cron job creation |
| Autonomy Abuse |
MC-017 |
Destructive force flags (rm -rf, git push --force) |
| Infrastructure |
MC-018 |
Permission escalation (sudo, chmod 777) |
False Positive Handling
The scanner includes context-aware filtering to reduce false positives:
- Env var access (MC-008): Only flags when variable names contain KEY, SECRET, PASSWORD, TOKEN, or CREDENTIAL
- Git operations (MC-014): Skips standard remotes (github.com, gitlab.com, bitbucket.org)
- Force flags (MC-017): Only flags on destructive operations, not install scripts
Example Output
MoltCops Security Scanner
========================================
Scanning: ./suspicious-skill
Files: 5
Rules: 20
FINDINGS
----------------------------------------
[CRITICAL] MC-007: Exfiltration URL (main.py:14)
[CRITICAL] MC-004: Shell Injection (helper.sh:8)
[HIGH] MC-005: Dynamic Code Execution (main.py:22)
SUMMARY
========================================
Files scanned: 5
Total findings: 3
Critical: 2
High: 1
Medium: 0
VERDICT: BLOCK
Critical threats detected. Do NOT install this skill.
Web Scanner
For a browser-based version with the same engine, visit: https://scan.moltcops.com
About MoltCops
MoltCops protects the AI agent ecosystem from malicious skills. While VirusTotal catches known malware signatures, MoltCops catches behavioral patterns — drain logic, sleeper triggers, prompt injection, and data exfiltration that signature-based scanning misses.
1---2name: moltcops3description: Pre-install security scanner for AI agent skills. Detects malicious patterns before you trust code. Local-first — code never leaves your machine.4---56# MoltCops — Skill Security Scanner78Scan any skill for security threats **before** you install it. Detects prompt injection, data exfiltration, sleeper triggers, drain patterns, and 16 more threat categories.910**Local-first.** Your code never leaves your machine. No API calls. No uploads. No accounts.1112## When to Use1314- **Before installing any skill** from ClawHub, GitHub, or other sources15- **Before running** skills shared by other agents16- **When evaluating** unknown code from any source17- **After ClawHavoc**: 341 malicious skills were found on ClawHub this week. Scan first.1819## How to Run2021```bash22python3 scripts/scan.py <path-to-skill-folder>23```2425Example:26```bash27# Scan a skill before installing28python3 scripts/scan.py ~/.openclaw/skills/suspicious-skill2930# Scan a freshly downloaded skill31python3 scripts/scan.py ./my-new-skill32```3334**No dependencies required** — uses only Python 3 standard library.3536## Reading Results3738The scanner returns three verdicts:3940| Verdict | Exit Code | Meaning |41|---------|-----------|---------|42| **PASS** | 0 | No critical or high-risk threats detected. Safe to install. |43| **WARN** | 1 | High-risk patterns found. Review findings before installing. |44| **BLOCK** | 2 | Critical threats detected. Do NOT install this skill. |4546## What It Detects474820 detection rules across these threat categories:4950| Category | Rules | Examples |51|----------|-------|---------|52| **Prompt Injection** | MC-001, MC-002, MC-003 | System prompt override, jailbreak payloads, tool-use steering |53| **Code Injection** | MC-004, MC-005, MC-006, MC-019 | Shell injection, eval/exec, base64-to-exec, child_process |54| **Data Exfiltration** | MC-007, MC-008, MC-009, MC-010, MC-020 | Webhook URLs, env var harvesting, SSH key access, credential files |55| **Hardcoded Secrets** | MC-011, MC-012 | API keys in source, private key material |56| **Financial** | MC-013 | Drain patterns, unlimited withdrawals |57| **Lateral Movement** | MC-014 | Git credential access, repo manipulation |58| **Persistence** | MC-015, MC-016 | SOUL.md writes, cron job creation |59| **Autonomy Abuse** | MC-017 | Destructive force flags (rm -rf, git push --force) |60| **Infrastructure** | MC-018 | Permission escalation (sudo, chmod 777) |6162## False Positive Handling6364The scanner includes context-aware filtering to reduce false positives:6566- **Env var access** (MC-008): Only flags when variable names contain KEY, SECRET, PASSWORD, TOKEN, or CREDENTIAL67- **Git operations** (MC-014): Skips standard remotes (github.com, gitlab.com, bitbucket.org)68- **Force flags** (MC-017): Only flags on destructive operations, not install scripts6970## Example Output7172```73MoltCops Security Scanner74========================================75Scanning: ./suspicious-skill76Files: 577Rules: 207879FINDINGS80----------------------------------------81[CRITICAL] MC-007: Exfiltration URL (main.py:14)82[CRITICAL] MC-004: Shell Injection (helper.sh:8)83[HIGH] MC-005: Dynamic Code Execution (main.py:22)8485SUMMARY86========================================87Files scanned: 588Total findings: 389 Critical: 290 High: 191 Medium: 09293VERDICT: BLOCK94Critical threats detected. Do NOT install this skill.95```9697## Web Scanner9899For a browser-based version with the same engine, visit: **https://scan.moltcops.com**100101## About MoltCops102103MoltCops protects the AI agent ecosystem from malicious skills. While VirusTotal catches known malware signatures, MoltCops catches **behavioral patterns** — drain logic, sleeper triggers, prompt injection, and data exfiltration that signature-based scanning misses.104105- Web: https://moltcops.com106- Moltbook: https://moltbook.com/u/MoltCops