360 Secure SkillHub
360 安全技能中心

AI Agent Skill Scanner

核心功能为扫描AI Agent技能文件,检测硬编码密钥、unsafe代码执行、注入、恶意软件等多类安全风险,v2.1新增10种检测规则,自动跳过无关文件减少误报。典型场景是安装未知发布者的技能前扫查,输入为技能文件夹路径,输出支持文本或JSON格式,单技能扫描仅需约50ms。

certainlogicai
certainlogicai
热度 14.77
最近更新 2026-07-12 22:01:52
分类:安全依赖:代码执行 / 读写文件应用场景:代码审查 / 自动化脚本 / DevOps

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add ai-agent-skill-scanner
Metadata
name
AI Agent Skill Scanner
version
2.1.0
description
Security scanner for AI agent skills. Detects hardcoded secrets, unsafe code execution, prompt injection, and malware patterns in under 50ms. Scan before you install.
metadata
{"openclaw":{"emoji":"🔒","tags":["security","scanner","malware-detection","prompt-injection","secrets-detection","code-scanning","skill-safety"]}}

AI Agent Skill Scanner 🔒

Scan any skill for security issues before you install it. Detects hardcoded secrets, unsafe code execution, prompt injection, and malware patterns in under 50ms.

How to Use

# Scan any installed skill folder
python3 scripts/vetter.py /path/to/skill

# JSON output for scripting
python3 scripts/vetter.py /path/to/skill --json

What It Detects

Issue Severity Example
eval() / exec() Critical Runs arbitrary code
Pipe to shell Critical `curl ...
Destructive commands Critical rm -rf /, mkfs.
os.system() Critical Shell commands
Hardcoded API keys High api_key, apikey
shell=True High Shell injection risk
Hardcoded secrets High auth_token, secret
Credential file access High .ssh/, .aws/
Sudo elevation High sudo commands
Base64 obfuscation High Hidden code execution
Git config access High .git/config reads
Password hardcoding High password literal
Permission overrides Medium chmod 777
Network calls Medium requests.post()

New in v2.1

  • 10 new detection signatures (pipe-to-shell, sudo escalation, destructive commands, credential file access, base64 obfuscation, git config, permission overrides)
  • Skips node_modules/, __pycache__/, .git/ (reduced false positives)
  • Smarter pipe-to-shell detection (only flags actual pipe patterns)
  • Self-scan exclusions (scanner ignores its own signatures file)
  • --verbose flag for skipped file counts

Example Result

Scanned 430 files in 368ms (skipped 6)
Found 1 issue(s):
  [CRITICAL] pipe-to-shell at install.sh:26
    → Remote code execution risk: downloading and piping to shell

Install

clawhub install ai-agent-skill-scanner

Notes

  • Text matching — won't catch obfuscated code
  • Always scan skills from unknown publishers before installing
  • Quick scan prevents accidents (50ms per skill)

Feedback

clawhub star ai-agent-skill-scanner — clawhub sync