360 Secure SkillHub
360 安全技能中心

Skill Vetter

这是一款AI Agent技能安全审查工具,核心含来源校验、代码红标检测、权限评估、风险分级四步流程。典型场景为安装ClawdHub、GitHub或未知来源技能前,排查恶意代码、过度权限等风险。输出标准化审查报告,明确风险等级及安装建议,助力规避安全隐患。

sophia-amadeus
sophia-amadeus
热度 77.83
最近更新 2026-10-20 20:42:38
分类:安全依赖:代码执行 / 读写文件 / 第三方 API应用场景:代码审查 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add skill-vetter

name: skill-vetter description: Security-first skill vetting for AI agents. Use before installing any skill from ClawHub, GitHub, or other sources. Triggers on: 'install skill', 'check skill', 'review skill', 'vet skill', 'skill security', 'skill audit', 'is this skill safe', 'clawhub inspect', 'check this skill', 'security check'. Checks for red flags, permission scope, suspicious patterns, credential storage, and network access before installation.

Skill Vetter

Security-first vetting before skill installation. Every skill gets audited — no exceptions.

Quick Start

# Inspect and vet a ClawHub skill
clawhub inspect <slug> --files
clawhub inspect <slug> --file SKILL.md
clawhub inspect <slug> --file scripts/*.sh
clawhub inspect <slug> --file hooks/**/*.js

Output Format

=== Security Vet: <slug> ===
Version: x.x.x | Updated: YYYY-MM-DD
Version count: N (community traction)
Security: CLEAN / CAUTION / FLAG

Credential storage: CLEAN / FLAG
Network access: CLEAN / FLAG
File system: CLEAN / FLAG
Permissions: CLEAR / VAGUE
Patterns: CLEAN / SUSPICIOUS

SCORE: N/5
VERDICT: Install / Caution / Reject / Dangerous
REASON: <one-line explanation>

Security Checks (in order)

1. ClawHub Official Scan

Always check ClawHub's own security status first:

clawhub inspect <slug>

Look for: Security: CLEAN or Security: FLAG. ClawHub runs automated scans — trust them.

2. Credential Storage

Check for plaintext credential patterns:

clawhub inspect <slug> --file <script.sh> | grep -i "API_KEY\|PASSWORD\|SECRET\|TOKEN"

Red flags: Hardcoded keys, plaintext passwords, placeholder keys that look real.

3. Network Access

Inspect all scripts for outbound calls:

clawhub inspect <slug> --files | grep scripts
# Then inspect each script:
clawhub inspect <slug> --file scripts/<name.sh>

Red flags: Phone-home patterns, data exfil, calls to unknown servers without documentation.

4. File System Operations

Check scripts for destructive operations:

clawhub inspect <slug> --file scripts/<name.sh> | grep -E "rm -rf|sudo |eval |exec "

Red flags: Recursive delete, shell evaluation, world-writable permissions.

5. Permission Documentation

Review SKILL.md metadata:

clawhub inspect <slug> --file SKILL.md

Red flags: Missing requires field, vague tool descriptions, no documentation.

Scoring

Signal Score
ClawHub Security: CLEAN +2
No credential storage +1
No outbound exfil +1
No destructive operations +1
Clear permission documentation +1
Credential in plaintext -2
Exfil to unknown server -2
Destructive operations -2
ClawHub Security: FLAG -3

Verdict thresholds:

  • Install (6-5): Clear, safe to install
  • Caution (4-3): Review scripts before install
  • Reject (2-1): Do not install — review source
  • Dangerous (0 or below): Security risk — do not install

Real Example: self-improving-agent

clawhub inspect self-improving-agent
# Output:
# Security: CLEAN
# Updated: 2026-05-01
# License: MIT-0
# Version count: 31

clawhub inspect self-improving-agent --file SKILL.md
# Clean: no credentials, no destructive ops, well-documented

clawhub inspect self-improving-agent --file scripts/activator.sh
# Clean: text output only, no network, no credentials

clawhub inspect self-improving-agent --file hooks/openclaw/handler.js
# Clean: simple reminder injection, no exfil

# VERDICT: Install (6/6 — ClawHub clean, MIT-0, no red flags)

When to Use

Always vet before:

  • clawhub install <slug>
  • Downloading skills from GitHub
  • Accepting skill files from third parties
  • Running any skill for the first time

References

  • Credential patterns: references/credential-patterns.md
  • Safe coding patterns: references/safe-patterns.md
  • Flagged skills: references/flagged-skills.md