Snyk Agent Scan

Scan AI agent components (MCP servers, skills) for prompt injections and vulnerabilities

Source repo
snyk/agent-scan
Stars
★ 3.3k
Last updated
3d ago v0.7.2
FARS reviewed
Nov 07, 2026 +3 new
License
Apache-2.0
Primary language
Python

At a glance

How it runs
CLI
Works with
Platform-specificChatGPT · Claude Code
Cost
Free, no paid service needed
Setup effort
Low · running in minutes
You'll need
Python 3.8+uvSnyk API tokenShell / CLINetwork accessLocal filesystem
Typical use
Security teams scanning MCP configs in CI/CD pipelines to prevent prompt injection
Not a fit if
  • Teams that need fully offline scanning: component data is sent to the Snyk API
  • Teams needing stable CLI output for production pipelines: output is experimental
  • Developers wanting to contribute code: the project is closed to external contributions
Maintenance
Commits in the last 30 dayslast commit 2026-11-30latest release v0.7.2 (2026-12-01)+3.7 ★/day over 7 days
Source review
71/100 · Some gaps

What does this agent do, and when should you use it?

Snyk Agent Scan is a CLI tool that automatically discovers and scans locally installed AI agent components, including MCP servers and skills, for common security threats like prompt injection, tool poisoning, and malware payloads. It supports multiple agents (Claude Code, Cursor, Windsurf, etc.) across macOS, Linux, and Windows. The tool offers two modes: CLI scanning and background MDM mode for periodic scans reported to Snyk Evo. Requires a Snyk API token, with a security warning that scanning MCP configs executes defined commands. CLI output is experimental and may change.

Agent Scan auto-discovers agent configurations (e.g., Claude Code, Cursor, Windsurf, Gemini CLI), reads MCP config files (like mcp.json, .vscode/mcp.json), connects to stdio MCP servers to retrieve tool descriptions, and scans skill files (like SKILL.md). It runs local checks and invokes the Agent Scan API for validation, detecting 15+ risk types including prompt injection (E001), tool poisoning (E001), tool shadowing (E002), toxic flows, malware payloads (E006), etc. Output defaults to rich text, with --json option. Commands include scan, inspect, and help, with flags --no-skills, --dangerously-run-mcp-servers.

  1. Security teams scanning MCP configs in CI/CD pipelines to prevent prompt injection
  2. Developers quickly scanning ~/.claude/skills to find malicious payloads in skills
  3. macOS users scanning all agent components on the machine for a system-wide inventory
  4. Enterprises using background MDM mode to continuously monitor agent supply chain and report to Snyk Evo
  5. Security researchers evaluating third-party MCP configs in a sandbox to avoid executing malicious commands
  6. Analysts inspecting a specific MCP config file for tool poisoning and toxic flows

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • uvx snyk-agent-scan@latest
  • uvx snyk-agent-scan@latest ~/.vscode/mcp.json
  • uvx snyk-agent-scan@latest ~/my/SKILL.md
  • uvx snyk-agent-scan@latest ~/.claude/skills
Environment variables
SNYK_TOKEN
Config files
~/.vscode/mcp.json ~/.claude/skills

How do you install or deploy this agent?

  1. Sign up at Snyk and get an API token (https://app.snyk.io/account). 2. Install uv (https://docs.astral.sh/uv/getting-started/installation/). 3. Set environment variable SNYK_TOKEN. 4. Run uvx snyk-agent-scan@latest directly, or download a standalone binary from GitHub Releases.

How do you use this agent?

Run uvx snyk-agent-scan@latest to scan the entire machine. You can also specify paths: uvx snyk-agent-scan@latest ~/.vscode/mcp.json for a single config, uvx snyk-agent-scan@latest ~/my/SKILL.md for a single skill, uvx snyk-agent-scan@latest ~/.claude/skills for a directory. Interactive runs prompt before starting each MCP server; non-interactive environments require --dangerously-run-mcp-servers. Use --json for JSON output.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

FARS trust-control audit

Verified present in source (3/3)
  • confirmation before acting

What are this agent's strengths and limitations?

Pros
  • Auto-discovers a wide range of agents (Claude Code, Cursor, Windsurf, etc.) and skills
  • Detects 15+ specific risks such as prompt injection, tool poisoning, and malware payloads
  • Cross-platform support for macOS, Linux, and Windows
  • Background MDM mode for centralized enterprise monitoring
  • Standalone binaries with signed checksums for integrity verification
Limitations
  • Requires a Snyk API token and relies on Snyk API for verification
  • Scanning MCP configs executes commands, posing security risks; sandboxing is recommended
  • CLI output is experimental and subject to change, not suitable for production dependencies
  • No external contributions accepted; only GitHub issues for feedback
  • Large-scale API usage may be considered abuse and result in account blocking

How does this agent compare with similar options?

This tool is offered by Snyk and is related to Invariant Labs' MCP-Scan, but no direct competitors are named in the documentation.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Snyk Agent Scan This agent 71 · Some gaps CLIFree ★ 3.3k 3d ago Python ChatGPT · Claude Code
Caliper 79 · Good CLIFree + model costs ★ 239 4d ago Python Codex · Claude Code
Genie 78 · Good CLIFree + model costs ★ 352 6d ago TypeScript Codex · Claude Code
MiMoCode 64 · Some gaps CLIFreemium ★ 14k 3d ago TypeScript ChatGPT · Codex · Claude Code

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
71/ 100 5-point scale 3.6 / 5
This review covers the source as of Nov 07, 2026. The project has shipped 3 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 18/29
Reliability 9/14
Adaptability 15/18
Convention 14/18
Effectiveness 10/13
Verifiability 5/8
Why each dimension lost points
Trust18 / 29 · 3.1/5

The README states that scanning may execute stdio commands, contact remote MCP servers, and send component information to an analysis API. Interactive runs request per-server consent, show the target, and redact environment variables and headers; remote requests also have destination restrictions, so consent handling scores strongly. Default scans still inspect local configuration, background scans contact remote servers automatically, private addresses remain allowed, and a DNS-rebinding window is acknowledged, limiting least-privilege and external-effects scores. The README claims secrets in configuration values and text are redacted before transmission, but the packet does not establish coverage or verification. Dependencies include some security overrides and version constraints, while many use lower bounds rather than exact pins. No rollback mechanism for scan effects is shown. The repository identifies the product as a Snyk project and documents signed-checksum verification, but publisher identity is unverified per the prompt, so maintainer identity cannot be confirmed.

Reliability9 / 14 · 3.2/5

The README distinguishes v0.5 and v0.6 output formats and APIs, and warns that output is experimental and that v0.5 is planned for deprecation. The version, dependency declarations, and CI workflow provide some corroboration. Dependency locking and overrides are indicated, but the packet does not include lockfile contents or availability evidence. The CLI offers detailed errors, exit behavior, timeouts, and failure-code references, supporting a useful error-handling score; static evidence cannot establish consistency across all failure paths.

Adaptability15 / 18 · 4.2/5

The README covers interactive local scans, CI, background/enterprise monitoring, multiple agent configurations, operating systems, skills, and MCP components. It describes scan and inspect capabilities and some boundaries, while its coverage matrix also lists unsupported scopes. Discovery and command behavior are documented, though trigger and detection details are not complete. uvx, standalone binaries, Python requirements, and supported platforms are specified, supporting a high environment-fit score.

Convention14 / 18 · 3.9/5

Documentation is organized into quick start, capabilities, CLI references, risk and failure references, platform coverage, demos, and security guidance. Installation notes cover token setup, version lines, binary verification, and source development. The v0.5/v0.6 output and risk-name changes are disclosed, but output is explicitly experimental, so stability is only partly established. Examples are plentiful, though common questions are not comprehensively addressed in FAQ form. The README specifically discloses the DNS-rebinding window, Windows plugin-discovery status, and coverage gaps. LICENSE and pyproject.toml both identify Apache-2.0. Version and deprecation notes are present, but the packet does not provide a complete changelog. The README says external contributions are not accepted and directs reports and suggestions to GitHub issues; named ownership or response commitments are unclear.

Effectiveness10 / 13 · 3.8/5

Reports, JSON/CI modes, inspect, and risk references make scan findings usable for review. However, the documentation warns that output structures and risk names may change, making production dependence on fields inadvisable. Automatically discovering and scanning agent components and skills has clear security value. Use requires a Snyk API token, and scans can execute commands or access networks; sandbox guidance and consent prompts help, but setup and runtime costs remain.

Verifiability5 / 8 · 3.1/5

The README makes specific, traceable claims about data transmission, consent, platform coverage, output changes, and limitations; CLI excerpts show some argument parsing and error handling, while project configuration and CI provide additional evidence. README, CLI source, package configuration, and workflow corroborate some points, but key security claims such as the scope of secret redaction lack corresponding implementation evidence in this packet. The packet includes test fixtures and a demo server, which do not by themselves establish scanner correctness. The text generally distinguishes defaults, limitations, and recommendations, but security-effect claims remain largely repository assertions.

Risks and how to mitigate them
  • Scanning may execute configured commands or contact remote servers; review targets and use a sandbox for untrusted configurations. Background scans inspect remote servers automatically, and local/internal addresses remain allowed.
  • The README acknowledges a DNS-rebinding window between validation and connection; secret-redaction coverage cannot be independently established from this packet.
  • Raw CLI output and risk names are explicitly experimental, so automation may need adjustment after upgrades.
Evidence confidence: Low Reviewed Nov 07, 2026 Reviewed revision 99d404778f6f New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/agent-scan.svg)](https://followagents.com/en/agents/agent-scan)
<a href="https://followagents.com/en/agents/agent-scan"><img src="https://followagents.com/badge/agent-scan.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.7.2 Agent Scan v0.7.2
  2. v0.7.1 Agent Scan v0.7.1
  3. v0.7.0 Agent Scan v0.7.0

FAQ

Do I need a Snyk account?
Yes, you need to register and obtain an API token for verification calls.
Does scanning run MCP servers?
Yes, scanning MCP configs starts stdio MCP servers, so run in a sandbox and watch the consent prompt.
What format is the report?
By default, a rich text report; with --json you get JSON. Output is not stable across versions.
Which operating systems are supported?
macOS, Linux, and Windows, but support varies per agent; see the matrix in the README.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts