SkillSpector is a security scanner developed by NVIDIA for AI agent skills, with the core goal of answering one question: is this skill safe and can it be installed? AI agent skills (used by Claude Code, Codex CLI, Gemini CLI, etc.) are typically executed with implicit trust and lack sufficient review. According to the research dataset it cites, among the subset of 31,132 skills analyzed, 26.1% of skills contained vulnerabilities, and 5.2% exhibited possible malicious intent. SkillSpector is part of the NVIDIA Verified Skills pipeline, which scans, evaluates, and signs agent skills before release; skills that pass inspection are published to the NVIDIA skills catalog.
Main capabilities
- Multi-format input: can scan Git repositories, URLs, zip files, directories, or individual files.
- Vulnerability pattern coverage: detects 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 agents, anti-refusal, trigger abuse, dangerous code (AST), taint tracking, YARA signatures, MCP least privilege, MCP tool poisoning.
- Two-stage analysis: fast static analysis, plus optional LLM semantic evaluation.
- Real-time vulnerability lookup: SC4 queries OSV.dev for real-time CVE data, and supports automatic offline fallback.
- Multiple output formats: terminal, JSON, Markdown, and SARIF reports.
- Risk scoring: 0-100 score, with severity labels and clear recommendations.
- Baseline/false-positive suppression: accept known findings via glob rules or fingerprint baselines, so that rescans only present new issues.
Usage Before installation, you must first create and activate a virtual environment (all make targets assume the venv is activated); you can use uv or pip; the Makefile prefers uv, otherwise uses pip. For a quick CLI-only installation, use uv. If you plan to run skillspector mcp, you need to install the MCP extra at installation time. Docker can also be used, with no need to install Python; build locally from the Dockerfile included in the repository, and the image is based on the official Docker Python 3.12-slim-bookworm image. Scan local direcAt recording time, mount the current directory to the container's /scan working directory; when using LLM analysis, credentials can be passed in via a local .env file or the shell environment; reports can be written to the mounted directory to output to the host file system.
Batch Scanning and MCP Integration You can scan an entire skills directory in parallel from contrib/batch_scan/, with support for multilingual detection (zh/ja/ko) and terminal/JSON/Markdown output. If LLM scanning requires higher concurrency, you can configure multiple API keys per .env.example to improve throughput and resilience (provided the keys do not share account-level rate limits). SkillSpector can run as a Model Context Protocol server, allowing local MCP-capable agents (Claude Code, Codex CLI, Gemini CLI) to invoke scanning as a tool and decide whether to install a skill/MCP based on the results, thereby becoming a runtime guardrail rather than an offline audit step. skillspector mcp requires skillspector[mcp]. The stdio transport is the current FastMCP path for local CLI agents. The server exposes a single tool, scan_skill(target, use_llm=true, output_format="json"), which can scan a Git URL, file URL, .zip, .md file, or directory, and returns a structured verdict: risk_score (0-100), severity, recommendation, safe_to_install, and findings, and reports llm_used / scan_mode to avoid mistaking a low score from a static-only scan for a fully clean scan. It can be registered with Claude Code via the corresponding command.
LLM Configuration For best results, it is recommended to configure an OpenAI-compatible LLM endpoint for semantic analysis. You can use SKILLSPECTOR_PROVIDER to select a provider; hosted providers come with a default model, while CLI providers fall back to the local runtime default model unless SKILLSPECTOR_MODEL is set. SkillSpector also supports local OpenAI-compatible servers (Ollama, vLLM, llama.cpp) and hosted inference gateways. Structured outputis requested via LangChain's with_structured_output, and the default method varies by client. Some models reject forced tool calling and return HTTP 400; the anthropic and anthropic_proxy providers route the relevant models to the native JSON-schema response format. You can use SKILLSPECTOR_STRUCTURED_OUTPUT_METHOD=json_schema|function_calling to override the method for any provider.
Security and Limitations The HTTP transport has no authentication by default, and any caller that can reach the port can invoke scan_skill. HTTP binding is restricted to loopback IPs (127.0.0.1 or ::1); localhost binds to 127.0.0.1 and does not perform DNS resolution; wildcard, routable, and other hostname bindings are rejected. Remote access requires placing an authenticated reverse proxy (such as nginx + mTLS) in front of the loopback listener. Under HTTP, local paths and file:// URLs are automatically rejected to prevent unauthenticated callers from reading arbitrary host files; only remote Git and .zip URLs are accepted. HTTP scanning only accepts credential-free https:// targets; Git scanning never uses the server's Git login or Git configuration. For private repositories, use stdio or the CLI. Git redirects are rejected.
Input Resource Limits SkillSpector enforces two independent caps on remote and archive inputs: the single-ingest cap INGEST_MAX_BYTES (100 MiB), which applies to streaming URL downloads, the total size after zip archive extraction, and the disk usage after Git repository cloning; and the zip member cap INGEST_MAX_ZIP_MEMBERS (10,000), which limits the number of entries in a single zip. The 1 MB per-file analysis cap (MAX_FILE_BYTES) is a separate downstream limit that constrains what each analyzer reads from the ingested directory. Exceeding either ingest cap fails closed with IngestLimitExceededError.
Scan Scope and Baseline For a local directory containing one SKILL.md or skill.md, --exclude can be reused to omit selected files before content analysis. Patterns are case-sensitive glob, matches the entire relative POSIX path, and * also matches /. This is an explicit caller option, not an author-controlled ignore file. Patterns matching any manifest name (SKILL.md or skill.md) are rejected, as are recursive, multi-skill, transitive, registry, and non-directory inputs. Unmatched patterns are still recorded in the report. Manifest files that are explicitly excluded remain in the coverage denominator and are treated as completely unchecked; any matching exclusion makes coverage partial and prevents a SAFE recommendation. Use --fail-on-incomplete to make CI fail when coverage is partial.
MCP registry snapshot comparison You can start from raw registry payload captures (registry-before.json and registry-after.json), save one scan report as previous.json, and then compare a subsequent scan with that local report. The optional comparison lists added and removed server identities, changed normalized fields with their before and after values, and unchanged_count. Identity is the server name and version, so a new version appears as added, and an old version appears as removed if it is missing from the new scan. Fetch source and scan timestamps do not participate in the comparison. unmodeled_changes lists entries in the same identity record whose raw record hash changed but whose normalized fields match; these are not counted as unchanged. The comparison file must be a local report generated by this registry schema and have a valid normalized snapshot; malformed, oversized, or duplicate server identities are rejected. This option requires --mcp-registry and is independent of --baseline for finding suppression: it never suppresses findings or changes risk scoring, and it does not fetch or execute the listed server endpoints.
Open source notice This project downloads and installs additional third-party open source software projects; review the license terms of these open source projects before use.