skill-security-auditor
БесплатноЗапускает вложенные скриптыНе проверенSecurity audit and vulnerability scanning for AI agent skills before install. Detects prompt injection, dangerous code, exfiltration, credential harvesting…
от borghei★ 1 250 звёзд на GitHubОб этом скилле
Skill Security Auditor
Scan and audit AI agent skills for security risks before installation. Performs static analysis on Python files for dangerous patterns, scans markdown, text and YAML for prompt injection, and checks dependency manifests. Produces a PASS / WARN / FAIL verdict with findings by severity and remediation guidance.
What a verdict means. The scanners match regular expressions line by line. They catch the common, unobfuscated forms of each attack and are easy to evade (string building, encoding, indirection through helpers). PASS means "nothing obvious was found", not "safe". For any skill from an untrusted source, read the scripts yourself after a PASS, and treat WARN as "read these lines before installing".
Core Capabilities
- Code execution risk detection — command injection (
os.system,subprocess shell=True, backticks),eval/exec/compile, obfuscation (base64/hex/chr()), network exfiltration, credential harvesting (~/.ssh,~/.aws), privilege escalation. - Prompt injection detection — system-prompt overrides, role hijacking, safety bypass, hidden zero-width/HTML-comment instructions, data-extraction and credential-access directives, instructions to conceal actions from the user, excessive-permission requests.
- Supply chain analysis — typosquatted Python package names, unpinned versions in
requirements*.txtandpackage.json, inlinepip/npm install. Pinned versions are not checked against advisories; runpip-audit,npm auditor OSV-Scanner for CVEs. - Manual structure review (checklist in
references/audit-output-and-workflow.md, not automated) — out-of-scope paths, hidden or credential files, unexpected binaries, escaping symlinks, oversized payloads. - Verdict & reporting — PASS / WARN / FAIL with severity-categorized findings, remediation, and a strict mode for CI gates.
When to Use
- Evaluating a skill from an untrusted source before installation
- Pre-install security gate for CI/CD pipelines
- Auditing a skill directory or git repository for malicious code
- Reviewing skills before adding them to a team's approved list
- Post-incident scanning of installed skills
Clarify First
Before the audit, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
- Target path: the skill file or directory to scan (the subject of every scanner).
- Scan dimensions: code execution / prompt injection / supply chain (selects which of the three scanners run).
- Strict mode / gate threshold: whether any HIGH finding forces FAIL (CI gate vs advisory report changes the verdict).
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
Tools
| Tool | Purpose | Command |
|---|---|---|
code_scanner.py |
Scan Python scripts for eval/exec, subprocess, network exfiltration, credential harvesting, obfuscation, unsafe imports | python scripts/code_scanner.py <target> --strict --json |
prompt_injection_scanner.py |
Scan markdown/text for prompt-injection patterns and hidden directives | python scripts/prompt_injection_scanner.py <target> --strict --json |
supply_chain_checker.py |
Check imports/requirements for typosquatting, unpinned versions, inline installs | python scripts/supply_chain_checker.py <target> --strict --json |
All tools take a target (file or directory), and support --strict (any HIGH → FAIL) and --json.
Exit codes: 0 PASS or WARN, 1 FAIL (any CRITICAL, or any HIGH with --strict), 2 target
does not exist. A directory with nothing scannable exits 0 with a note on stderr.
Samples: assets/sample_malicious_skill/ (hidden override comment, credential read with a
clause asking the assistant to hide it, os.system concatenation, ~/.ssh exfiltration, a typosquatted
reqeusts pin) fails all three scanners; assets/sample_benign_skill/ passes all three.
python scripts/code_scanner.py assets/sample_malicious_skill # exit 1
python scripts/prompt_injection_scanner.py assets/sample_malicious_skill # exit 1
python scripts/supply_chain_checker.py assets/sample_benign_skill # exit 0
References
Load the reference that matches the task — keep this file lean and pull detail on demand:
- references/threat-model-and-patterns.md — the attack-vector threat model, trust boundaries, full regex pattern sets for code-execution and prompt-injection detection, and known evasion techniques. Read when deciding what to scan for or tuning detection.
- references/audit-output-and-workflow.md — the report format, verdict criteria (incl. strict mode), CI/CD integration YAML, and the manual audit checklist. Read when producing or
Установить skill-security-auditor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл skill-security-auditor?
Security audit and vulnerability scanning for AI agent skills before install. Detects prompt injection, dangerous code, exfiltration, credential harvesting, and supply chain risks. Use when evaluating untrusted skills or gating installs.
Как установить скилл skill-security-auditor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл skill-security-auditor запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic