Rust security scanner that audits MCP servers and AI agent skill files for prompt injection, tool poisoning, secret leakage and supply-chain risks.
cisco-ai-defense/skill-scanner
A best-effort security scanner for AI Agent Skills that detects prompt injection, data exfiltration and malicious code patterns.
- Stars
- 2,701
- Forks
- 342
- Open issues
- 2
- Last commit
- yesterday
What is it?
Skill Scanner checks AI agent skills for risky content before they are installed or shared. It combines pattern-based detection with YAML and YARA-X rules, AST and dataflow analysis of Python code, and an optional LLM judge that reviews findings semantically. Results can be reported as JSON, Markdown, SARIF, or an interactive HTML report.
The scanner targets Codex and Cursor agent skill formats, and with a lenient flag also handles Claude Code command files and flat markdown skill repositories. It can scan a single skill, a directory of skills, or a GitHub repository, and offers a CLI, a Python SDK, a REST API, and a pre-commit hook. Policy presets such as balanced, low-noise and quiet control how many findings reach review.
Detection is explicitly best-effort: a scan with no findings does not certify a skill as safe, and the project recommends pairing results with manual review for production use.
Key features
- 01Combines YAML and YARA-X pattern rules with AST and dataflow analysis.
- 02Optional LLM judge for semantic review of findings, with multiple provider options.
- 03Outputs JSON, Markdown, SARIF and interactive HTML reports.
- 04Provides a reusable GitHub Actions workflow and a pre-commit hook.
- 05Supports policy presets and custom YAML policies to tune noise.
Use cases
- Vetting third-party agent skills before installing them into a coding assistant.
- Gating skill changes in CI with SARIF results surfaced in GitHub Code Scanning.
- Scanning a team's skill repository on every commit through pre-commit.
- Auditing a directory of skills in bulk with cross-skill overlap checks.
Quick start
- 1
Install the scanner with uv
uv pip install cisco-ai-skill-scanner - 2
Set the LLM judge API key
export SKILL_SCANNER_LLM_API_KEY="your_api_key" - 3
Scan a skill with the LLM judge and the balanced preset
skill-scanner scan /path/to/skill --use-llm --policy balanced --fail-on-severity high
Things to know
- Best-effort detection only; a scan with no findings does not guarantee a skill is safe.
- Recommended setups need an LLM judge API key, since rules alone catch only about 8% of held-out malicious skills.
- License is listed as NOASSERTION in metadata, so license terms should be checked before use.
In collections
Topics
FAQ
- What is skill-scanner?
- A best-effort security scanner for AI Agent Skills that detects prompt injection, data exfiltration and malicious code patterns. Skill Scanner checks AI agent skills for risky content before they are installed or shared. It combines pattern-based detection with YAML and YARA-X rules, AST and dataflow analysis of Python code, and an optional LLM judge that reviews findings semantically. Results can be reported as JSON, Markdown, SARIF, or an interactive HTML report.
- Is skill-scanner free to use? What license does it have?
- skill-scanner is open source under the Other license. Check the license terms before using it in commercial products.
- Is skill-scanner still maintained?
- Actively maintained. The last commit to skill-scanner was on Nov 6, 2026.
- What can I use skill-scanner for?
- Vetting third-party agent skills before installing them into a coding assistant. Gating skill changes in CI with SARIF results surfaced in GitHub Code Scanning. Scanning a team's skill repository on every commit through pre-commit. Auditing a directory of skills in bulk with cross-skill overlap checks.
- How do I install skill-scanner?
- Install the scanner with uv: uv pip install cisco-ai-skill-scanner Set the LLM judge API key: export SKILL_SCANNER_LLM_API_KEY="your_api_key" Scan a skill with the LLM judge and the balanced preset: skill-scanner scan /path/to/skill --use-llm --policy balanced --fail-on-severity high
- Where can I get skill-scanner?
- The source code and installation instructions are on GitHub: https://github.com/cisco-ai-defense/skill-scanner
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
AI-powered code review CLI that pairs deterministic file selection and rules with an LLM agent to leave line-level review comments on Git diffs.
A Python tool from Cisco that scans MCP servers, tools, prompts and source code for security threats using YARA rules, LLM analysis and Cisco AI Defense.
A static analysis tool that finds and fixes security issues in CI/CD configurations such as GitHub Actions, Dependabot and pre-commit.
A one-command CLI that rates how exposed a shipped app's build output is to AI reverse-engineering agents like rea, and fixes what it safely can.
Fast, open-source static analysis CLI that finds bugs and enforces coding standards using code-like patterns instead of regex or ASTs.