The Research Report
Cisco Skill Scanner: The Pre-Deployment Security Gate Your Agent Skills Need
Your AI agent installs a skill from a marketplace. The skill reads files, sends HTTP requests, and runs shell commands on your behalf. You never checked what's inside it. That's the security gap Cisco's skill-scanner aims to close.
In February 2026, the ClawHavoc campaign poisoned 341 agent skills across popular marketplaces in three days. Snyk's ToxicSkills audit found 13.4% of skills contain critical security issues. Tencent Zhuque Lab scanned 50,000 skills and concluded that traditional scanner-based protection is no longer adequate.
The threat is real and growing. Cisco responded with skill-scanner: an open-source, YARA-based security scanner that inspects agent skill definitions before they run. With 2,112 GitHub stars and an active release cadence (v2.0.11 as of this writing), it's the first major vendor tool to treat agent skill security as a pre-deployment problem, not a runtime one.
What skill-scanner Does
skill-scanner inspects AI agent skill packages for security risks before they execute. It looks at the SKILL.md manifest, the scripts, the shell pipelines, the bytecode, and everything else in a skill directory. Then it tells you what's dangerous.
The detection categories map directly to real attack patterns:
- Prompt injection — hidden instructions that override agent behavior
- Data exfiltration — unauthorized data transmission to external servers
- Command injection — shell commands executing with untrusted input
- Obfuscation — base64 encoding, bytecode tricks, and code concealment
- Hardcoded secrets — API keys, tokens, and credentials left in source
- Social engineering — deceptive skill descriptions and trigger manipulation
- Supply chain attacks — malicious dependencies and fetch-execute patterns
- Unicode steganography — invisible characters and homoglyph deception
- Tool poisoning — tampering with tool behavior or data
- Tool shadowing — malicious lookalike or replacement tools
Each finding comes with severity level, threat category, file path, and remediation guidance. The tool maps everything to Cisco's AI Security Framework (AITech) taxonomy with cross-references to OWASP, MITRE ATLAS, and NIST AML.
How It Works: 10 Analyzers in Two Phases
skill-scanner runs a two-phase scanning pipeline.
Phase 1 runs all non-LLM analyzers. These are fast, deterministic, and require no external API keys:
- Static analyzer — YAML signatures and YARA rules match known malicious patterns
- Bytecode analyzer — checks .pyc files for integrity and source consistency mismatches
- Pipeline analyzer — taint analysis on shell pipelines, detecting fetch-and-execute chains and source-to-sink data flows
- Behavioral analyzer — static dataflow and AST analysis for Python files, tracking how data moves between functions and scripts
- VirusTotal analyzer — hash-based malware lookup for binary files
- AI Defense analyzer — Cisco cloud-based AI inspection for prompt, content, and code risks
- Trigger analyzer — flags overly generic skill descriptions that widen the attack surface
Phase 2 runs the LLM-powered analyzers, which receive enrichment context built from Phase 1 findings:
- LLM analyzer — semantic threat analysis using structured output from Claude, GPT, Bedrock, Vertex, Azure, or Gemini models
- Meta-analyzer — second-pass LLM validation that filters false positives and can synthesize new findings from existing evidence
The two-phase design is deliberate. Phase 1 gives the LLM structured evidence to work with, rather than asking it to find everything from scratch. This improves both detection accuracy and false positive rates.
The core analyzers (static, bytecode, pipeline) run with zero configuration. No API keys needed. You install the package, point it at a directory, and get results.
The YARA Layer: Pattern Detection That Scales
YARA is a pattern-matching engine originally built for malware researchers. Cisco chose it for skill-scanner because the agent skill threat landscape shares properties with traditional malware: known signatures, obfuscation patterns, and evolving attack techniques that need rapid rule updates.
The YARA rules live in skill_scanner/data/packs/core/yara/. They target specific patterns like:
- Base64-encoded payloads hidden in skill instructions
- Known prompt injection instruction patterns
- Shell command obfuscation techniques
- Credential format patterns (AWS keys, API tokens)
- Unicode steganography and homoglyphs
YARA rules compose with the YAML signatures and Python-based checks. The three-layer detection system (declarative YAML patterns, compiled YARA rules, and imperative Python checks) means you get broad coverage without sacrificing specificity.
Custom rules are straightforward. Drop YARA files in a directory and point the scanner at them with --custom-rules /path/to/my-rules/. The rule authoring guide documents the expected structure and how rules register with the threat taxonomy.
The Agent Skills Ecosystem
skill-scanner supports skills following the Agent Skills specification (agentskills.io), which has become a de facto standard. The spec is supported by OpenAI Codex, Cursor, Claude Code, VS Code Copilot, GitHub Copilot, Gemini CLI, JetBrains Junie, and over a dozen other agent platforms.
In --lenient mode, skill-scanner also handles non-standard formats like Claude Code .claude/commands/*.md and flat markdown skill repos. This matters because the skill ecosystem is messy. Not every skill follows the spec, and the attack surface doesn't respect format boundaries.
Policy-Driven Scanning
Not every team has the same risk tolerance. skill-scanner ships with three policy presets:
- Strict — catches everything, including low-severity findings
- Balanced — the default, filters noise while keeping meaningful signals
- Permissive — only surfaces high and critical findings
You can generate a custom policy file with skill-scanner generate-policy and tune every knob: which analyzers run, which rules are disabled, severity overrides for specific threat categories, and how findings are reported.
The configure-policy command launches a terminal UI where you build policy interactively. This is a thoughtful touch. Security tools that force binary accept-or-reject decisions on findings tend to get ignored. Policy-driven scanning lets teams calibrate to their actual risk posture.
CI/CD Integration That Actually Works
skill-scanner integrates into development workflows at two points: pre-commit and CI/CD.
The pre-commit hook installs with skill-scanner-pre-commit install. It automatically detects which skill directories have staged changes and only scans those, keeping commit times fast. You can override to scan everything with --all.
For CI/CD, there's a reusable GitHub Actions workflow:
name: Scan Skills
on:
pull_request:
paths: [".cursor/skills/**"]
jobs:
scan:
uses: cisco-ai-defense/skill-scanner/.github/workflows/scan-skills.yml@main
with:
skill_path: .cursor/skills
permissions:
security-events: write
contents: read
Results appear as inline annotations in PRs via GitHub Code Scanning. The SARIF output format feeds directly into existing security dashboards.
For build failures, use --fail-on-severity high or --fail-on-findings to set the bar where your team needs it.
The Python SDK and REST API
skill-scanner is not just a CLI tool. The Python SDK lets you embed scanning into your own tools:
from skill_scanner import SkillScanner
from skill_scanner.core.analyzers import BehavioralAnalyzer
scanner = SkillScanner(analyzers=[BehavioralAnalyzer()])
result = scanner.scan_skill("/path/to/skill")
print(f"Findings: {len(result.findings)}")
print(f"Max severity: {result.max_severity}")
if not result.is_safe:
print("Issues detected -- review findings before deployment")
The REST API server (skill-scanner-api) exposes endpoints for scan, upload, and batch operations. This enables integration with skill registries, marketplace vetting pipelines, and internal review workflows.
Six output formats cover every use case: summary, JSON, Markdown, table, SARIF, and interactive HTML with collapsible correlation groups, expandable code snippets, and pipeline taint flow diagrams.
Threat Taxonomy: Cisco's AI Security Framework
Every finding maps to Cisco's AI Security Framework, a structured taxonomy with AITech and AISubtech codes. The mapping goes further with cross-references to OWASP LLM Top 10, MITRE ATLAS, NIST AML, and Cisco MDL.
This matters for compliance. When a security audit asks "which OWASP LLM vulnerability category does this finding fall under," skill-scanner gives you the answer. The taxonomy is extensible too. You can load custom taxonomy profiles and threat mappings via CLI flags or environment variables.
The 16 threat categories currently mapped range from AITech-1.1 (Direct Prompt Injection) through AITech-15.1 (Social Engineering). Each has AISubtech codes for more specific classification.
What skill-scanner Gets Right
Best-effort honesty. The README is explicit: "A scan that returns no findings does not guarantee that a skill is free of all threats." This is refreshing. Security tools that overstate their coverage breed false confidence. skill-scanner frames itself as a detection layer, not a certification.
Fail-closed design. The analyzability scoring system flags content the scanner cannot inspect as UNANALYZABLE_BINARY findings. When the scanner can't see inside a file, it tells you, rather than silently assuming it's safe.
Layered detection. No single detection method catches everything. YARA patterns catch known signatures. Dataflow analysis catches behavioral chains. LLM analysis catches semantic threats that patterns miss. The meta-analyzer reduces noise across all of them. The overlap is a feature.
Community extensibility. The ATR community rule pack added 34 rules for MCP tool poisoning, multi-agent attacks, and advanced injection techniques. The PromptGuard data protection rule pack adds PII, secrets, and LLM exfiltration detection. Cisco is building an ecosystem, not just a tool.
Limitations Worth Knowing
skill-scanner is honest about its limits. Coverage is incomplete. Novel attacks may evade all engines. False positives and false negatives can occur. Human review remains essential.
The LLM and meta analyzers require API keys and add cost. For teams without LLM API access, the core analyzers still provide solid coverage, but you lose semantic detection.
The tool currently focuses on local skill packages. It does not scan running agents or monitor runtime behavior. It's a pre-deployment gate, not a runtime defense.
The Bigger Picture: Agent Skills Are the New Package Ecosystem
The agent skill ecosystem is following the same trajectory as npm, PyPI, and Docker Hub. Rapid growth. Loose vetting. A gold rush of marketplace listings. And the same supply chain attack surface that has plagued every package ecosystem.
ClawHavoc proved that coordinated campaigns target skill marketplaces. The Snyk ToxicSkills audit proved that a significant percentage of skills have critical vulnerabilities. Tencent's 50,000-skill scan proved that the problem scales.
skill-scanner addresses this at the right layer. Skills get installed before they run. Scanning them before deployment is the cheapest, fastest place to catch threats. The pre-commit hook and CI/CD integration make it automatic, not optional.
The fact that Cisco, a major security vendor, open-sourced this under Apache 2.0 and is actively maintaining it (regular releases, community rule packs, Discord community) signals that agent skill security is becoming a mainstream concern, not just a research topic.
Getting Started
# Install
pip install cisco-ai-skill-scanner
# Scan a single skill (core analyzers, no API keys needed)
skill-scanner scan /path/to/skill
# Full scan with all engines
skill-scanner scan /path/to/skill --use-behavioral --use-llm --enable-meta
# CI/CD: fail build on high/critical findings
skill-scanner scan-all ./skills --fail-on-severity high --format sarif --output results.sarif
# Interactive wizard (first-time users)
skill-scanner
The interactive wizard walks you through selecting a scan target, analyzers, policy, and output format. It shows the assembled command before running it. Good onboarding for a security tool.
Bottom Line
Cisco skill-scanner is the first major-vendor-backed, open-source pre-deployment security scanner for agent skills. It combines YARA pattern matching, behavioral dataflow analysis, and LLM-based semantic detection in a layered pipeline that's honest about its limits and extensible through community rule packs.
If your team ships agent skills, runs a skill marketplace, or builds agent platforms, you should be running this in CI. The ClawHavoc campaign and ToxicSkills audit showed the threat is real. skill-scanner gives you a structured way to address it before skills run, not after they compromise something.
The repository is at github.com/cisco-ai-defense/skill-scanner. The package is on PyPI as cisco-ai-skill-scanner. Apache 2.0 license.
Sources: Cisco AI Defense skill-scanner GitHub, Cisco AI Defense documentation, Agent Skills specification, Cisco AI Security Framework, ClawHavoc analysis, Tencent Zhuque Lab 50K skill scan