Skill Auditor 🔍
A structured framework that teaches your agent how to audit ClawHub and MCP skills before you install them. Not a scanner — a systematic review methodology.
Unlike automated scanners that give false confidence, Skill Auditor walks through what matters: permissions, behavior, credentials, and persistence — so you understand exactly what a skill will do on your system.
Why this exists
- - 13.4% of ClawHub skills have critical security issues (Snyk ToxicSkills study)
- 341 malicious skills were found in a single campaign (ClawHavoc incident, Feb 2026)
- Automated scanners can miss context-dependent threats and provide false security
- Understanding what you're installing is better than trusting a green checkmark
How to use
Ask your agent to audit any skill before installing:
CODEBLOCK0
CODEBLOCK1
CODEBLOCK2
Audit Framework
The agent follows a 6-domain checklist. Each domain produces a PASS / WARN / FAIL verdict.
1. Identity & Provenance
- - [ ] Author has a GitHub profile with other projects
- [ ] Skill has a public source repository (not ClawHub-only)
- [ ] Repository has commit history (not a single-commit dump)
- [ ] Author identity is consistent across platforms
- FAIL if: No source repo, no author history, single-commit repo
2. Permission & Scope Analysis
- - [ ]
requires.env only lists credentials the skill actually uses - [ ] No credentials unrelated to the skill's purpose
- [ ] File access limited to workspace directory
- [ ] No requests for system-wide permissions
- FAIL if: Requests credentials beyond stated purpose, accesses files outside workspace
3. Behavior vs Description Match
- - [ ] Every file in the skill serves the stated purpose
- [ ] No network calls to undeclared endpoints
- [ ] No data exfiltration patterns (sending user data to external URLs)
- [ ] Script behavior matches what SKILL.md describes
- FAIL if: Hidden functionality, undeclared network calls, description mismatch
4. Credential & Secret Handling
- - [ ] API keys stored in env vars, not hardcoded
- [ ] No credentials logged or written to non-protected files
- [ ] OAuth tokens have minimal required scopes
- [ ] Cached tokens stored in workspace, not system-wide
- FAIL if: Hardcoded secrets, credentials in logs, excessive OAuth scopes
5. Persistence & Side Effects
- - [ ] Files written only within workspace boundaries
- [ ] No system-level modifications (crontab, /etc/, systemd)
- [ ] No auto-start or background processes installed
- [ ] Uninstall is clean (no orphaned files or processes)
- FAIL if: System modifications, persistent background processes, dirty uninstall
6. Dependency & Supply Chain
- - [ ] Dependencies are well-known packages (not obscure single-author libs)
- [ ] No
curl | bash or curl | python install patterns - [ ] No post-install scripts that download additional code
- [ ] Package versions are pinned (not
latest) - FAIL if: Unknown dependencies, pipe-to-shell installs, unpinned versions
Output Format
The agent produces a structured report:
CODEBLOCK3
Limitations
- - This is a review framework, not a deterministic scanner
- The agent reads and reasons about skill files — it cannot execute or sandbox them
- Always read the source code yourself for high-privilege skills
- A PASS verdict means no issues were found, not that the skill is guaranteed safe
Trust Hierarchy
When evaluating skill trust, consider this hierarchy:
- 1. Highest trust: Open-source on GitHub + active maintainer + ClawHub Benign scan + you read the code
- Moderate trust: GitHub repo exists + ClawHub Benign scan + reasonable permissions
- Low trust: ClawHub-only (no source repo) + Suspicious scan + broad permissions
- No trust: No source, no author history, requests unrelated credentials
技能名称: skill-audit-framework
详细描述:
技能审计器 🔍
一个结构化框架,教导你的智能体在安装 ClawHub 和 MCP 技能之前对其进行审计。不是扫描器——而是一种系统化的审查方法。
与那些带来虚假安全感的自动化扫描器不同,技能审计器会逐一检查关键要素:权限、行为、凭据和持久性——这样你就能确切了解某个技能在你的系统上会做什么。
为什么需要这个
- - 13.4% 的 ClawHub 技能存在严重安全问题(Snyk ToxicSkills 研究)
- 在一次攻击活动中发现了 341 个恶意技能(ClawHavoc 事件,2026 年 2 月)
- 自动化扫描器可能会遗漏依赖上下文的威胁,并提供虚假的安全感
- 了解你正在安装的内容,比相信一个绿色的勾选标记要好
如何使用
在安装任何技能之前,让你的智能体进行审计:
在我安装这个技能之前,请审计它:[技能名称或 URL]
审查 ClawHub 上 @作者/技能名称 的安全性
我想安装 [技能]。它安全吗?
审计框架
智能体遵循一个包含 6 个领域的检查清单。每个领域会得出 通过 / 警告 / 失败 的判定。
1. 身份与来源
- - [ ] 作者拥有一个包含其他项目的 GitHub 个人资料
- [ ] 技能拥有一个公共源代码仓库(不仅仅是 ClawHub 上的)
- [ ] 仓库有提交历史(不是单次提交的转储)
- [ ] 作者身份在各个平台保持一致
- 失败如果:没有源代码仓库,没有作者历史,单次提交的仓库
2. 权限与范围分析
- - [ ] requires.env 只列出了技能实际使用的凭据
- [ ] 没有与技能目的无关的凭据
- [ ] 文件访问限制在工作区目录内
- [ ] 没有请求系统级权限
- 失败如果:请求超出所述目的的凭据,访问工作区外的文件
3. 行为与描述匹配
- - [ ] 技能中的每个文件都服务于所述目的
- [ ] 没有对未声明的端点进行网络调用
- [ ] 没有数据外泄模式(将用户数据发送到外部 URL)
- [ ] 脚本行为与 SKILL.md 描述的一致
- 失败如果:存在隐藏功能、未声明的网络调用、描述不匹配
4. 凭据与秘密处理
- - [ ] API 密钥存储在环境变量中,而非硬编码
- [ ] 没有凭据被记录或写入未受保护的文件
- [ ] OAuth 令牌具有所需的最小范围
- [ ] 缓存的令牌存储在工作区中,而非系统范围
- 失败如果:硬编码的秘密、日志中的凭据、过度的 OAuth 范围
5. 持久性与副作用
- - [ ] 文件仅写入工作区边界内
- [ ] 没有系统级修改(crontab、/etc/、systemd)
- [ ] 没有安装自动启动或后台进程
- [ ] 卸载是干净的(没有残留文件或进程)
- 失败如果:系统修改、持久的后台进程、不干净的卸载
6. 依赖与供应链
- - [ ] 依赖项是知名的包(不是晦涩的单作者库)
- [ ] 没有 curl | bash 或 curl | python 安装模式
- [ ] 没有下载额外代码的安装后脚本
- [ ] 包版本已锁定(不是 latest)
- 失败如果:未知的依赖项、管道到 shell 的安装、未锁定的版本
输出格式
智能体会生成一份结构化报告:
技能审计报告:[技能名称]
作者:[名称] | 来源:[仓库 URL 或 仅限 ClawHub]
版本:[X.Y.Z] | 文件数:[数量] | 脚本数:[数量]
判定结果
警告 | 请求宽泛权限 |
| 行为与描述匹配 | 通过 | |
| 凭据处理 | 通过 | |
| 持久性与副作用 | 失败 | 写入 /etc/ |
| 依赖与供应链 | 通过 | |
总体:⚠️ 警告 — 安装前请审查标记项
标记项
- 1. [领域]:[具体问题和建议]
应向作者询问的问题
- 1. 为什么技能需要 [权限 X]?
- [标记的行为] 是否可以改为选择加入?
局限性
- - 这是一个审查框架,而非确定性扫描器
- 智能体会读取并推理技能文件——它无法执行或沙盒化这些文件
- 对于高权限技能,请务必自行阅读源代码
- 通过判定意味着未发现问题,并不保证该技能绝对安全
信任层级
在评估技能可信度时,请考虑以下层级:
- 1. 最高信任:GitHub 上开源 + 活跃维护者 + ClawHub 良性扫描 + 你阅读了代码
- 中等信任:存在 GitHub 仓库 + ClawHub 良性扫描 + 合理的权限
- 低信任:仅限 ClawHub(无源代码仓库)+ 可疑扫描 + 宽泛权限
- 不信任:无源代码、无作者历史、请求无关凭据