SkillSpector: Scan AI Agent Skills Before You Install Them
SkillSpector is NVIDIA's open-source security scanner for AI agent skills. It checks 71 vulnerability patterns across 17 categories with static analysis plus optional LLM review, and emits a 0–100 risk score as JSON, Markdown or SARIF. This guide covers its detection layers, scoring bands, exit codes and CI setup.
View 3 referencesAllow the functional cookie to save your likes. Privacy details
What is SkillSpector?
SkillSpector is a security scanner for AI agent skills that detects vulnerabilities, malicious patterns and supply-chain risks before you install a skill. It targets skills used by Claude Code, Codex CLI, Gemini CLI and MCP configurations. The project README describes it as part of the NVIDIA Verified Skills pipeline, which scans, evaluates and signs agent skills before publication.
A skill is a bundle of Markdown instructions plus optional scripts and resources that runs with the user's permissions, so it is a genuine supply-chain surface. SkillSpector does not run the skill; it inspects the contents. It accepts local directories, a single SKILL.md, Git repository URLs, zip files and URLs, and it is designed to produce machine-readable output for automated gates.
What does SkillSpector detect?
The README lists 71 vulnerability patterns across 17 categories, including prompt injection, data exfiltration, privilege escalation, supply chain, excessive agency, output handling, system prompt leakage, memory poisoning, tool misuse, rogue agent, trigger abuse, dangerous code via AST, taint tracking, YARA signatures, MCP least privilege and MCP tool poisoning.
| Category (examples) | Patterns listed |
|---|---|
| Supply chain | 10+ |
| Behavioral AST | 9 |
| Prompt injection | 6 |
| Data exfiltration / excessive agency / taint tracking | 5 each |
| YARA / MCP least privilege / MCP tool poisoning | 4 each |
The scanner also queries OSV.dev for known CVEs in dependencies, with an offline fallback. That combination covers both the instruction text and the executable parts of a skill, which is why it is broader than a prompt-injection filter.
How does the two-stage analysis work?
Stage one is fast static analysis using regex, Python AST checks for calls such as exec, eval and subprocess, YARA signatures and taint tracking. Stage two is optional LLM semantic evaluation that compares what a skill claims to do with what its code appears to do.
NVIDIA describes the static stage as high-recall and medium-precision, so expect false positives. Deterministic findings remain in the report even if the model does not confirm them. The LLM stage is configured through SKILLSPECTOR_PROVIDER and a compatible endpoint, including local models, which helps when skill contents are sensitive. Run skillspector scan ./my-skill/ --no-llm for a faster static-only pass. A practical consequence is that triage, not raw finding count, is the real work: a skill that reads its own environment or posts logs to a company server can trip generic rules.
How is the risk score calculated?
SkillSpector produces a 0–100 score with severity labels and a recommendation. Base points are 50 for CRITICAL, 25 for HIGH, 10 for MEDIUM and 5 for LOW findings. Each finding's contribution is scaled by confidence from 0 to 1. Within a rule ID, the first three positive-confidence findings count at full, half and quarter weight.
Findings in executable components get a 1.3× multiplier. The total is floored and capped at 100. The resulting bands are 0–20 LOW / SAFE, 21–50 MEDIUM / CAUTION, and 51–100 HIGH or CRITICAL / DO NOT INSTALL. An incomplete or downgraded scan can change the base recommendation from SAFE to CAUTION without changing the number, so read both fields.
How do you scan a skill?
Install with Python 3.12 or 3.13, which have prebuilt YARA wheels, then point the scanner at a directory, file, repository URL or archive. skillspector scan ./my-skill/ skillspector scan https://github.com/user/my-skill skillspector scan ./my-skill.zip --format sarif --output report.sarif Default output is a colored terminal table.
Add --format json, --format markdown or --format sarif, and use repeatable --report FORMAT=PATH options to write additional reports from one scan.
Batch reports support terminal, JSON and Markdown; registry scans are JSON-only. Docker is available if you do not want to manage Python locally. The package declares >=3.12,<3.16, but yara-python 4.5.4 only publishes wheels for 3.12 and 3.13, so 3.14 and 3.15 may need a C toolchain.
How do you wire it into CI?
Use the SARIF output for IDE and code-scanning integration, and the exit-code contract to block a pipeline. Exit 0 means the scan completed with a risk score at or below 50 and no strict gate triggered; exit 1 means a gate fired. Set --fail-on-incomplete if your policy requires full coverage, because SAFE and CAUTION both collapse to 0.
Exit 1 means the score exceeded 50 or a gate fired through --fail-on-findings, --fail-on-incomplete or --min-coverage PERCENT. Exit 2 is an error such as bad input or an unreadable source. By default, SAFE and CAUTION both collapse to exit 0, so set --fail-on-incomplete if your policy requires full coverage. The JSON output is a stable contract, which makes it suitable for dashboards and audit trails.
The project's background figures come from a study of 42,447 collected skills, of which 31,132 were analyzed: 26.1% contained at least one vulnerability and 5.2% showed likely malicious intent, with skills carrying executable scripts 2.12 times as likely to have issues. These are research statistics, not a measurement of your own catalog.
Frequently asked questions
Common questions about SkillSpector concern whether it executes skills, whether it catches every malicious package, and whether a hosted service exists. The answers below reflect the README: it inspects content statically with optional semantic review, reports high-recall findings that need triage, and integrates through CLI output formats and exit codes.
No. It inspects content statically and can optionally ask an LLM to judge intent. Runtime sandboxing is a different class of control.
Will it catch every malicious skill?
No. The authors describe static analysis as high-recall but medium-precision, and the LLM stage is optional. Treat the score as a triage signal and review findings in context.
Is there a hosted service?
The documented path is the open-source CLI and MCP server, not a managed scanning service. Integration is through output formats and exit codes.
Bottom line
SkillSpector is a practical pre-install gate for agent skills, with 71 patterns across 17 categories, OSV.dev lookups, optional semantic review and CI-friendly SARIF plus exit codes. Its main cost is triage, because high recall produces false positives. Calibrate a baseline for your own skills, enable the strict gates you actually need, and keep the scanner paired with least-privilege runtime design.