Scans 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.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install skill-defender或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install skill-defender⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/skill-defender/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: skill-defender description: Scans 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. ---
scan_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 help安装 Skill Defender 后,可以对 AI 说这些话来触发它
Help me get started with Skill Defender
Explains what Skill Defender does, walks through the setup, and runs a quick demo based on your current project
Use Skill Defender to scans installed OpenClaw skills for malicious patterns including pr...
Invokes Skill Defender with the right parameters and returns the result directly in the conversation
What can I do with Skill Defender in my marketing & growth workflow?
Lists the top use cases for Skill Defender, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/skill-defender/ 目录(个人级,所有项目可用),或 .claude/skills/skill-defender/(项目级)。重启 AI 客户端后,用 /skill-defender 主动调用,或让 AI 根据上下文自动发现并使用。
Skill Defender 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Skill Defender 可免费安装使用。请查阅仓库了解许可证信息。
Scans 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.
Skill Defender 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my marketing & growth tasks using Skill Defender
Identifies repetitive steps in your workflow and sets up Skill Defender to handle them automatically