AgentStack
MCP verified MIT Self-run

Decoy Scan

mcp-decoy-run-decoy-scan · by decoy-run

Security scanner for MCP server configurations. Like npm audit, but for your AI agent tool servers. Finds risky tools, input validation gaps, transport vulnerabilities, and over-permissioned capability chains. Open source, zero dependencies.

No reviews yet
0 installs
18 views
0.0% view→install

Install

$ agentstack add mcp-decoy-run-decoy-scan

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README — it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-decoy-run-decoy-scan)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming — see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps — measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Decoy Scan? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Decoy Scan

Find security risks in your MCP servers before attackers do. Zero dependencies, zero config, zero account required.

Scans Claude Desktop, Cursor, Windsurf, VS Code, Claude Code, Zed, and Cline. Finds risky tools, detects prompt injection, analyzes toxic data flows, tracks manifest changes, and maps everything to the OWASP Agentic Top 10.

Works with: Claude Desktop, Cursor, Windsurf, VS Code, Claude Code, Zed, Cline

🚀 Get Started

npx decoy-scan

That's it. No install, no account, no config. Runs against every MCP host it finds on the machine and prints the risk picture.

🧑‍💻 Install

No install required — run directly with npx. Requires Node.js 18+.

Or pin it in CI:

- uses: decoy-run/decoy-scan@v1
  with:
    policy: no-critical,no-poisoning,no-toxic-flows
    report: true
    token: ${{ secrets.DECOY_TOKEN }}

🎓 Docs

🔍 What it checks

| Check | What it finds | |-------|---------------| | Tool risk classification | Critical/high/medium/low tools by name + description | | Prompt injection detection | 37 patterns across 20 attack categories in tool descriptions | | Toxic flow analysis | Cross-server data leak (TF001) and destructive (TF002) attack chains | | Tool manifest hashing | Tool additions, removals, and description changes between scans | | Skill scanning | Prompt injection, hardcoded secrets, suspicious URLs in Claude Code skills | | Server command analysis | Pipe-to-shell, inline code, typosquatting, temp directory spawning | | Supply-chain source integrity | Remote/VCS code sources and moving dist-tags (@latest) that re-resolve on every launch | | Environment variable exposure | API keys, tokens, secrets, cloud credentials passed to servers | | Hardcoded credentials | Literal provider tokens (GitHub, AWS, OpenAI, Slack, Stripe, …) and private keys in command/args/env — matched value redacted | | Supply chain advisories | 40+ known vulnerable MCP packages via Decoy advisory database | | Transport security | HTTP without TLS, missing auth, wildcard CORS, public-bound SSE | | Input sanitization | Unconstrained parameters, missing maxLength, open schemas | | Permission scope | Over-privileged servers, dangerous capability combinations | | OWASP mapping | Every finding mapped to ASI01–ASI05 |

🤖 GitHub Action

One step. Scans MCP configs, enforces policy, uploads results to GitHub Security tab.

# .github/workflows/mcp-security.yml
name: MCP Security
on: [push, pull_request]

jobs:
  scan:
    runs-on: ubuntu-latest
    permissions:
      security-events: write
    steps:
      - uses: actions/checkout@v4
      - uses: decoy-run/decoy-scan@v1

Fails the build on critical tools or prompt injection. Results appear in the Security tab.

Inputs

| Input | Default | Description | |-------|---------|-------------| | policy | no-critical,no-poisoning | Comma-separated policy rules | | sarif | true | Upload SARIF to GitHub Security tab | | report | false | Upload to Decoy Guard dashboard | | token | — | Decoy API token (for report) | | verbose | false | Show all tools including low-risk |

Policy rules

no-critical          Fail on critical tools (code exec, file write)
no-high              Fail on high-risk tools (file read, network)
no-poisoning         Fail on prompt injection in tool descriptions
no-toxic-flows       Fail on cross-server data leak / destructive chains
no-secrets           Fail on secrets exposed in MCP config
require-tripwires    Fail if decoy-tripwire not installed
max-critical=N       Fail if more than N critical tools
max-high=N           Fail if more than N high-risk tools

Manual CI/CD

If you prefer raw commands over the Action:

- run: npx decoy-scan --policy=no-critical,no-poisoning
- run: npx decoy-scan --sarif > results.sarif
- uses: github/codeql-action/upload-sarif@v3
  with:
    sarif_file: results.sarif

🛠 Options

npx decoy-scan                     # Full scan with server probing
npx decoy-scan --json              # JSON output (stdout, pipeable to jq)
npx decoy-scan --sarif             # SARIF 2.1.0 for GitHub Security / VS Code
npx decoy-scan --skills            # Also scan Claude Code skills
npx decoy-scan --no-probe          # Config-only (don't spawn servers)
npx decoy-scan --no-advisories     # Skip advisory database check
npx decoy-scan --report            # Upload results to Decoy dashboard
npx decoy-scan --policy=RULES      # CI/CD policy gate (exit 2 on violation)
npx decoy-scan --verbose           # Show all tools including low-risk
npx decoy-scan --quiet             # Suppress status output (exit code only)
npx decoy-scan --no-color          # Disable colored output

💡 Explain

Ask the scanner why something was flagged, what a tier means, or what a finding category is looking for:

npx decoy-scan explain critical          # What "critical" means + what to do
npx decoy-scan explain tool-description  # What a finding category checks
npx decoy-scan explain prompt-override   # What a poisoning type looks like
npx decoy-scan explain evaluate_script   # Why a tool was classified the way it was
npx decoy-scan explain list              # Everything you can explain
npx decoy-scan explain critical --json   # Structured output for agents

Explanations resolve against the same patterns the scanner uses, so they can't drift. --json works on every path and is designed for agent consumption in Claude Code, Cursor, and anything else with shell access.

Run from your project root to include project-level .mcp.json configs.

🏁 Exit codes

| Code | Meaning | |------|---------| | 0 | No critical or high-risk issues | | 1 | High-risk issues found | | 2 | Critical issues, tool poisoning, toxic flows, or policy violation |

📚 Library

import {
  scan,
  toSarif,
  classifyTool,
  detectPoisoning,
  analyzeToxicFlows,
  hashToolManifest,
  detectManifestChanges,
  discoverSkills,
  analyzeSkill,
} from 'decoy-scan';

const results = await scan({ skills: true });
console.log(results.toxicFlows);    // [{ id: "TF001", severity: "critical", roles: {...} }]
console.log(results.skills);        // [{ name: "...", findings: [...] }]
console.log(results.servers[0].manifestHash);  // "45c4c571f03c78a2"

⚖ How it compares

| | decoy-scan | Snyk agent-scan | |---|---|---| | Language | JavaScript | Python | | Dependencies | 0 | 15 (aiohttp, pydantic, mcp, etc.) | | Install | npx decoy-scan | uvx snyk-agent-scan + Snyk account | | Cloud required | No | Yes (sends data to Snyk API) | | Toxic flow analysis | Yes (local) | Yes (cloud) | | Manifest change detection | Yes | Yes (registry-based) | | Skill scanning | Yes | Yes | | CI/CD policy gate | Yes | No | | SARIF output | Yes | No | | OWASP mapping | Yes | No | | Hosts supported | 8 | 6 | | Tripwire integration | Yes (decoy-tripwire) | No |

🚢 Release Notes

See [CHANGELOG.md](CHANGELOG.md) or the hosted changelog.

🤝 Contribute

See [CONTRIBUTING.md](CONTRIBUTING.md) if present.

🔗 Related

📝 License

MIT — see [LICENSE](LICENSE).

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.