skill-defenderScans installed OpenClaw skills for malicious patterns including prompt injection, credential theft, data exfiltration, obfuscated payloads, and backdoors. Use when installing new skills, after skill updates, or for periodic security scans. Runs deterministic pattern matching — fast, offline, no API cost.
Install via ClawdBot CLI:
clawdbot install itsclawdbro/skill-defenderscan_skill.py against it before allowing usescripts/scan_skill.py — Single Skill ScannerScans one skill directory for malicious patterns. Produces JSON or human-readable output.
scripts/aggregate_scan.py — Batch ScannerScans ALL installed skills and produces a single JSON report. Includes a built-in allowlist to reduce false positives from security-related skills, API skills, and other known-safe patterns.
# Scan a single skill (human-readable)
python3 scripts/scan_skill.py /path/to/skill-dir
# Scan a single skill (JSON output)
python3 scripts/scan_skill.py /path/to/skill-dir --json
# Scan ALL installed skills (JSON aggregate report)
python3 scripts/aggregate_scan.py
# With custom skills directory
python3 scripts/aggregate_scan.py --skills-dir /path/to/skills
# With verbose warnings
python3 scripts/scan_skill.py /path/to/skill-dir --verbose
# Exclude false positives
python3 scripts/scan_skill.py /path/to/skill-dir --exclude "pattern1" "pattern2"
0 = clean or informational only1 = suspicious (medium/high findings)2 = dangerous (critical findings)3 = error{
"skills": [
{
"name": "skill-name",
"verdict": "clean|suspicious|dangerous|error",
"findingsCount": 0,
"findings": []
}
],
"summary": "All 37 skills passed with no significant issues.",
"totalSkills": 37,
"cleanCount": 37,
"suspiciousCount": 0,
"dangerousCount": 0,
"errorCount": 0,
"timestamp": "2026-02-02T06:00:00+00:00"
}
Both scripts auto-detect paths:
skills/ parent), falls back to ~/clawd/skills, ~/skills, ~/.openclaw/skillsaggregate_scan.py finds scan_skill.py co-located in the same directoryverdict: "clean")verdict: "suspicious")verdict: "dangerous")The aggregate scanner includes an allowlist for known false positives:
See references/threat-patterns.md for full documentation of all detected patterns, organized by category with explanations of why each is dangerous.
--exclude flag helpGenerated Mar 1, 2026
Large organizations deploying multiple AI agents across departments use Skill Defender to conduct regular security audits, ensuring that all installed skills are free from malicious patterns like data exfiltration or credential theft. This helps maintain compliance with internal security policies and prevents potential breaches from compromised skills.
Platforms hosting AI skill marketplaces integrate Skill Defender to automatically scan new skill submissions for malicious patterns before listing them, protecting end-users from harmful code. This ensures a safe ecosystem, builds user trust, and reduces support tickets related to security incidents.
Development teams incorporate Skill Defender into their CI/CD pipelines to automatically scan AI skills during deployment or updates, catching vulnerabilities early in the release cycle. This prevents malicious code from reaching production environments and streamlines security checks without manual intervention.
Universities and research labs using AI agents for experiments run Skill Defender to verify that custom-developed skills do not contain obfuscated payloads or backdoors, safeguarding sensitive research data. This supports academic integrity and prevents accidental exposure to security threats in collaborative projects.
Small businesses leveraging AI agents for tasks like customer service or data analysis use Skill Defender to periodically scan installed skills, ensuring no malicious patterns compromise their operations. This provides affordable security monitoring without needing dedicated cybersecurity expertise.
Offer Skill Defender as a free basic scanner with limited features, then charge for premium options like advanced pattern libraries, priority support, and integration APIs. This attracts a broad user base while generating revenue from enterprises needing enhanced security capabilities.
License Skill Defender to large corporations as part of their AI security suites, providing custom integrations, dedicated support, and regular updates. This model targets organizations with strict compliance requirements and generates steady revenue through annual contracts.
Partner with AI skill marketplaces to embed Skill Defender as a mandatory scanning tool, taking a percentage of transaction fees from verified safe skills. This aligns incentives by promoting security while monetizing through platform partnerships and increased user engagement.
💬 Integration Tip
Integrate Skill Defender into automated workflows by calling its scripts via command-line interfaces, ensuring to handle exit codes for clean, suspicious, or dangerous verdicts to trigger appropriate actions like alerts or blocks.
Transform AI agents from task-followers into proactive partners that anticipate needs and continuously improve. Now with WAL Protocol, Working Buffer, Autonomous Crons, and battle-tested patterns. Part of the Hal Stack 🦞
Use the ClawdHub CLI to search, install, update, and publish agent skills from clawdhub.com. Use when you need to fetch new skills on the fly, sync installed skills to latest or a specific version, or publish new/updated skill folders with the npm-installed clawdhub CLI.
Clawdbot documentation expert with decision tree navigation, search scripts, doc fetching, version tracking, and config snippets for all Clawdbot features
Interact with Moltbook social network for AI agents. Post, reply, browse, and analyze engagement. Use when the user wants to engage with Moltbook, check their feed, reply to posts, or track their activity on the agent social network.
OpenClaw CLI wrapper — gateway, channels, models, agents, nodes, browser, memory, security, automation.
MoltGuard — runtime security plugin for OpenClaw agents by OpenGuardrails. Helps users install, register, activate, and check the status of MoltGuard. Use wh...