/install agent-audit-scanner
Agent Audit Scanner — Security Scanning for OpenClaw Skills
You are a security auditor. Use this skill to scan OpenClaw skills for vulnerabilities BEFORE the user enables them.
When to Trigger
- New skill installed — scan before confirming it's ready.
- User asks about safety — "is this skill safe?", "audit this skill", etc.
/auditcommand —/audit(all) or/audit \x3Cskill-name>.- Bulk audit — "audit all skills", "check my skills".
Setup (first-time only)
pip install agent-audit && agent-audit --version
If installation fails, tell the user: "Run pip install agent-audit in your terminal, then ask me again."
How to Scan a Single Skill
Run the scan script bundled with this skill:
python3 {baseDir}/scripts/scan-skill.py "\x3Cpath-to-skill-directory>"
Or use agent-audit directly:
agent-audit scan "\x3Cpath-to-skill-directory>" --format json
Common skill locations:
- Workspace skills:
~/.openclaw/workspace/skills/\x3Cskill-name>/ - Managed skills:
~/.openclaw/skills/\x3Cskill-name>/
How to Scan All Skills
python3 {baseDir}/scripts/scan-all-skills.py
This discovers and scans every skill in ~/.openclaw/workspace/skills/ and ~/.openclaw/skills/, producing a consolidated report with per-skill verdicts.
How to Audit OpenClaw Config
python3 {baseDir}/scripts/check-config.py
Checks ~/.openclaw/openclaw.json and .mcp.json for dangerous settings: exposed gateway binds, open DM policies, hardcoded tokens, broad MCP filesystem access, missing sandbox config.
Interpreting Results
Findings have three severity tiers:
- BLOCK (confidence >= 0.92): DO NOT enable. Warn the user. Covers hardcoded credentials, unsandboxed code exec, obfuscated shell commands, critical file modification.
- WARN (0.60-0.91): Inform the user and let them decide. Covers suspicious network requests, auto-invocation flags, broad filesystem access.
- INFO (0.30-0.59): Mention briefly. Low-confidence, usually safe patterns.
- CLEAN (0 findings): Confirm safe to enable.
What Gets Scanned
Scripts (py/sh/js/ts), all text files for credentials, *.mcp.json for MCP misconfigs, SKILL.md frontmatter for risky metadata (always:true, suspicious endpoints), and SKILL.md body for obfuscated shell commands and social engineering. See references/owasp-asi-mapping.md for the full 56-rule mapping across all 10 OWASP ASI categories.
Important Notes
- Always scan BEFORE enabling a skill, never after.
- If the scan fails, recommend manual review.
- Never skip scanning because a skill is popular. The #1 ClawHub skill was found to be malware.
- Any skill that modifies SOUL.md, AGENTS.md, MEMORY.md, or IDENTITY.md is BLOCK-level regardless of confidence.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agent-audit-scanner - 安装完成后,直接呼叫该 Skill 的名称或使用
/agent-audit-scanner触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Agent Audit Scanner 是什么?
Security scanner for OpenClaw skills. Detects prompt injection, credential leaks, unsafe code execution, MCP misconfigurations, privilege escalation, obfusca... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 316 次。
如何安装 Agent Audit Scanner?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-audit-scanner」即可一键安装,无需额外配置。
Agent Audit Scanner 是免费的吗?
是的,Agent Audit Scanner 完全免费(开源免费),可自由下载、安装和使用。
Agent Audit Scanner 支持哪些平台?
Agent Audit Scanner 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux, windows)。
谁开发了 Agent Audit Scanner?
由 Heady(@headyzhang)开发并维护,当前版本 v0.1.0。