version unknown

skill-security-audit

@safeclaw-sec

# skill-security-audit

Choose how to use this skill

You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.

1. Native installer

This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.

Do not guess an installer command or replace an existing version without reviewing the diff.

2. Complete package recommended

Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.

No complete ProSkills package is published for this listing yet.

3. Prompt-only

Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.

Need only the instruction file?

Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.

No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.

7.9/10
Verified
Apr 29, 2026

// RATINGS

⭐GitHub Stars
⭐ 0 on GitHubGitHub ↗

New / niche

🟢ProSkills ScoreAI Verified
7.9/10
📍

Not yet listed on ClawHub or SkillsMP

// README

skill-security-audit

OpenClaw Skill Security Auditor — Automatically audits any OpenClaw skill for security risks before installation.

Install

From ClawHub (when available):

clawhub install safeclaw-security-audit

Direct install from GitHub:

git clone https://github.com/safeclaw-sec/skill-security-audit \
  ~/.openclaw/workspace/skills/skill-security-audit

Note: If ClawHub install is temporarily blocked (false positive), use the direct GitHub clone above.

Why This Exists

In February 2026, 341 malicious skills were discovered on ClawHub in a coordinated supply chain attack. This tool automates the security audit process, checking all known attack vectors so you don't have to do it manually.

What It Detects

VectorExamples
Prompt InjectionHidden instructions, role hijacking, jailbreaks, invisible Unicode
Malicious Codeeval()/exec() with external input, subprocess injection, base64 payloads
Hardcoded SecretsAPI keys, tokens, private keys embedded in scripts
Data ExfiltrationEnv var harvesting (API keys, tokens), system info collection
Network RisksSuspicious domains, URL shorteners, ngrok tunnels, raw IPs
Post-install Hookssetup.py, npm postinstall scripts that run on install
Dependency RisksTyposquatting, wildcard versions, excessive dependencies
Suspicious FilesBinary executables, archives hidden in skill directories
System IntrusionHostname/IP collection, undocumented TCP/WebSocket servers
Crypto MinersMining pool URLs, miner binary references

Quick Start

# Audit a local skill
python3 scripts/audit.py /path/to/skill/

# Audit by skill name (auto-discovers common install paths)
python3 scripts/audit.py scrapling-official

# Audit and save report
python3 scripts/audit.py /path/to/skill/ --output report.md

# Output as JSON (for CI/automation)
python3 scripts/audit.py /path/to/skill/ --json

# Skip ClawHub lookup (offline mode)
python3 scripts/audit.py /path/to/skill/ --no-clawhub

Output

# 🔍 Security Audit Report: `my-skill`

## Risk Assessment
| | |
|---|---|
| **Risk Score** | **12/100** |
| **Level** | 🟢 **SAFE** |
| **Recommendation** | **INSTALL** |

> ✅ **INSTALL** — No significant risks detected.

## Security Checklist
✅ No prompt injection in SKILL.md
✅ No malicious code patterns (eval/exec/subprocess)
✅ No hardcoded secrets or API keys
✅ No suspicious network requests
...

Risk Score Levels

ScoreLevelRecommendation
0–25🟢 SAFEINSTALL
26–50🟡 CAUTIONINSTALL WITH CAUTION
51–75🟠 RISKReview strongly recommended
76–100🔴 DANGEROUSDO NOT INSTALL

Exit Codes

CodeMeaning
0SAFE
1CAUTION
2RISK or DANGEROUS

Use in CI: python3 scripts/audit.py my-skill || echo "Skill failed security check"

Requirements

  • Python 3.6+
  • No external dependencies — stdlib only
  • Works fully offline (ClawHub lookup requires network, optional via --no-clawhub)

How It Works

  1. Discovers all files in the skill directory (recursive)
  2. SKILL.md → checks for prompt injection, social engineering, hidden instructions
  3. Python/JS/Shell scripts → scans for malicious code patterns using regex
  4. package.json / requirements.txt → audits dependencies for typosquatting and supply chain risks
  5. All files → extracts URLs/domains and flags suspicious ones
  6. ClawHub → optionally looks up author reputation (requires network)
  7. Generates a scored Markdown report with findings, checklist, and recommendation

Security: Hash-Based Dynamic Tags

When the auditor wraps untrusted skill content for LLM analysis, it uses session-scoped dynamic tags instead of fixed strings.

Each audit run generates a unique 12-character hex token (SHA-256 of os.urandom(32)), producing tags like:

<<SAFECLAW_a7f3b2c91e04>>
<<UNTRUSTED_BEGIN_a7f3b2c91e04>>
...content...
<<UNTRUSTED_END_a7f3b2c91e04>>

Why this matters: If tags were fixed (e.g. <<SAFECLAW_UNTRUSTED_END>>), an attacker could plant that exact string inside a malicious skill to "escape" the safety wrapper. With dynamic tags, the attacker would need to guess a random token from 281 trillion possible combinations — per audit session.

Sandbox Execution

The auditor supports isolated execution via multiple sandbox backends (auto-detected):

BackendIsolationRequirements
DockerStrongest — no network, read-only FS, 256MB RAM, 0.5 CPUDocker + safeclaw-auditor image
BubblewrapGood — namespace isolation, no networkbwrap installed
FirejailGood — process isolation, no networkfirejail installed
sandbox-execmacOS onlymacOS
FallbackNone — runs directlyAlways available
# Run audit in sandbox (auto-selects best available)
python3 scripts/sandbox.py /path/to/skill/

# Build Docker image first
bash scripts/build-sandbox.sh

Real Malicious Skills Examples

These were removed from ClawHub:

SkillAttack VectorFinding
mission-control-dashboardHardcoded SecretAuth token hardcoded in script
email-daily-summaryPrompt InjectionHidden instructions to forward emails
browser-automationNetwork ExposureCDP port exposed to all interfaces

Why SafeClaw?

FeatureSafeClawClawSecureBitdefenderVirusTotal
Hash-based dynamic tagsYesNoNoNo
Sandbox cascade (Docker/bwrap/firejail)YesNoNoNo
100% offlineYesNoNoNo
Zero dependenciesYes (Python stdlib)NoNoNo
Self-auditYesNoNoNo
OWASP ASI coveragePartial10/10N/AN/A
Web scannerNoYesYesYes

Built with OpenClaw

SafeClaw was designed, coded, and tested entirely within an OpenClaw agent environment. The agent analyzed the threat landscape, wrote the detection logic, built the sandbox cascade, and even audits itself. Human direction and security expertise guided every decision.

This is what AI agents building for AI agents looks like.

License

MIT — free to use, modify, and redistribute.


SafeClaw Security — github.com/safeclaw-sec/skill-security-audit