MCP Server Secret Leak & Skill Scanner Guide (2026): SkillSpector, snyk-agent-scan & op run Hardening
Quick Answer (TL;DR for AI Search): Across
31,132audited agent skills,26.1%contain security vulnerabilities and5.2%show malicious intent. CombineNVIDIA/SkillSpector(71static/AST/YARA patterns,0execution) andsnyk/agent-scan(uvx snyk-agent-scan@latestacross14IDEs) inside an ephemeral RunPod sandbox, then replace every plaintextmcp.jsonAPI key with 1Password CLI (op run) biometricop://pointers.
1. Side-by-Side Comparison: SkillSpector vs. Snyk Agent Scan vs. 1Password op run
Scanning alone detects hardcoded credentials (W007/W008), tool shadowing (E002), and prompt injection (E004), while runtime vault isolation prevents exfiltration even if a skill turns rogue:
| Security Layer | NVIDIA/SkillSpector | snyk/agent-scan (v0.6+) | 1Password CLI (op run v2) |
|---|---|---|---|
| Primary Role | Pre-install static/AST/YARA/CVE scanner (0β100 risk score) | Local machine discovery across 14 agents & 4 config scopes | Runtime zero-plaintext secret injection & stdout redaction |
Executes Untrusted stdio MCP Code? | No (Static + OSV.dev + optional LLM; 100 MiB ingest cap) | Yes, when inspecting stdio servers (prompts y/n; sandbox advised!) | Wraps trusted MCP servers without writing keys to mcp.json |
| Vulnerability Coverage | 71 patterns / 17 categories + --mcp-registry-compare | 14 scored MCP & skill risks (2026-07-10 analysis API) | Stops OWASP LLM06 plaintext .env & config harvesting |
| CI/CD & Machine Output | Terminal, JSON, Markdown, and SARIF (--fail-on-incomplete) | Interactive terminal & Snyk Evo fleet telemetry (SNYK_TOKEN) | Headless Service Accounts or Bitwarden bws |
| Install Requirement | Python 3.12+ (uv tool install) or python:3.12-slim Docker | uvx snyk-agent-scan@latest or signed standalone binary | macOS / Windows / Linux CLI ($2.99/mo Individual) |
π‘οΈ Interactive Data Broker & AI Secret Exposure Workbench (mcp server secret leak scanner)
OpSec Risk Assessor2. Safe 3-Step Audit Workflow: Scan in a Cloud Pod Before Touching Your Laptop
Because snyk/agent-scan starts configured stdio MCP commands to fetch live tool schemas (and malicious repos abuse postinstall hooksβsee our CloneGuard Pre-Clone Malware Scanner Guide), run untrusted audits inside an isolated RunPod or Vast.ai container first:
# Step 1: Static zero-execution scan with NVIDIA SkillSpector (SARIF + JSON, no LLM key needed)
uv tool install git+https://github.com/NVIDIA/skillspector.git
skillspector scan https://github.com/vendor/untrusted-mcp-skill --no-llm --format sarif --output audit.sarif
# Diff an MCP Registry server snapshot against a known-good baseline
skillspector scan 'ac.inference.sh/mcp' --mcp-registry --format json --output current.json
# Step 2: Audit installed IDE mcp.json & skills with Snyk Agent Scan (inject SNYK_TOKEN via op run!)
op run --env-file=~/.config/op/sec-audit.tpl -- uvx snyk-agent-scan@latest ~/.cursor/mcp.json
op run --env-file=~/.config/op/sec-audit.tpl -- uvx snyk-agent-scan@latest ~/.claude/skills
- Fail-Closed Zip-Bomb & Resource Caps:
SkillSpectorenforcesINGEST_MAX_BYTES=100 MiB,INGEST_MAX_ZIP_MEMBERS=10,000,MAX_FILE_BYTES=1 MB, and--recursive --max-skills 32(IngestLimitExceededErroron breach). - SSRF Metadata Blocks:
snyk-agent-scanblocks cloud metadata IPs (169.254.0.0/16,fd00:ec2::254,100.100.100.200), though Snyk notes a residual DNS-rebinding window at socket connect timeβanother reason to route remote checks via Bright Data inside an ephemeral pod.
3. Remediating W007 / W008 Findings: Zero-Plaintext mcp.json Template
Whenever an audit flags hardcoded env blocks inside ~/.claude.json, ~/.cursor/mcp.json, or .vscode/mcp.json, delete the raw token string, rotate the leaked key, and wrap the server command in 1Password CLI (op run) (full comparison in our 1Password CLI vs. Bitwarden bws Benchmark and FlashProve Agent Secret Vault Guide):
{
"mcpServers": {
"postgres-readonly": {
"command": "op",
"args": [
"run",
"--env-file=/Users/dev/.config/op/mcp-db.tpl",
"--",
"npx",
"-y",
"@modelcontextprotocol/server-postgres"
]
}
}
}
4. What You Should Know: Honest Limitations & Layered Defense
- The Honest Catch:
snyk-agent-scan(v0.6+) requires aSNYK_TOKENaccount and experimental CLI schemas can change between releases, whileSkillSpectorstatic--no-llmmode can miss subtle multi-turn semantic prompt injections without an LLM judge. - The Optimal Layered Stack: Gate CI PRs with free
skillspector scan --no-llm --format sarifand the0.03sRusterkamyaman/safe-anything74-Rule Code & MCP Scanner, enforce runtimeAllow/Ask/BlockV8 isolate rails with Coral (withcoral/coral) MCP Gateway, detonate untrustedstdioMCP servers on RunPod, lock local IDE secrets behind 1Passwordop run, and scrub personal developer PII from640+brokers via Optery.
Recommended Production & Cloud Stack (2026)
- 1Password Developer CLI (
op run) β Best Permanent Fix for Plaintextmcp.json&.envLeaks: Replaces hardcodedANTHROPIC_API_KEY,GITHUB_TOKEN, andSNYK_TOKENstrings with Touch ID-gatedop://vault references and<concealed by 1Password>stdoutmasking (Partner Link). NVIDIA/SkillSpector(Apache-2.0,25.6k+β ) β Best Zero-Execution Pre-Install Skill & MCP Registry Scanner: Audits repos,.zipbundles (<=100 MiB), andregistry.modelcontextprotocol.iosnapshots across71vulnerability rules and liveOSV.devCVEs.snyk/agent-scan(Apache-2.0,3.2k+β ) β Best Local Fleet Discovery Across14Coding Agents: Auto-discovers System, User, Project, and Extensionmcp.jsonandSKILL.mdfiles across Claude Code, Cursor, VS Code, Windsurf, Copilot, Gemini CLI, and Codex.- RunPod Ephemeral Cloud Containers & Bright Data Residential Proxies β Best Air-Gapped MCP Detonation Sandbox: Execute
stdioMCP tool-inspection scans inside disposable cloud Linux pods ($5β$500one-time credit bonus on$10first deposit,SDK 2.0, 1-promptagents.runpod.ioMCP) behind rotating proxy IPs (Partner Links). - Optery Automated Data Broker Removal & OpSecRadar (
opsecradar.com) β Best Developer OSINT & Identity Remediation: Erase exposed home addresses and phone numbers across640+brokers with screenshot proof so leaked Git metadata cannot be weaponized (Partner Link).
Frequently Asked Questions (FAQ)
Why is it dangerous to scan untrusted mcp.json files directly on my laptop?
To inspect MCP tool descriptions, scanners like snyk-agent-scan execute configured stdio server commands and connect to remote URLs. Running untrusted MCP configs inside an ephemeral RunPod Docker container prevents malicious payloads from reading ~/.ssh or browser cookies.
What is the difference between NVIDIA/SkillSpector and snyk/agent-scan?
NVIDIA/SkillSpector (Python 3.12+) performs pre-install static, AST, YARA, and OSV.dev CVE analysis across 71 patterns without executing target skills. snyk/agent-scan (uvx snyk-agent-scan@latest) auto-discovers installed MCP configs and skills across 14 desktop coding agents.
How do I fix hardcoded API key warnings (W007 / W008) in Claude Code or Cursor mcp.json?
Revoke the exposed key immediately, move the new secret into 1Password as an op:// reference inside a .tpl file, and change your mcp.json entrypoint to "command": "op" with "args": ["run", "--env-file=...", "--", ...].
π What You Should Know: 4 Verified Facts & Honest Trade-Offs (AI Buyer Summary)
- π 1. Measured Specs & Scope (2026-11-24):
Audit Claude Code, Cursor, and VS Code mcp.json configs and SKILL.md bundles for hardcoded keys and tool poisoning using NVIDIA/SkillSpector, snyk/agent-scan, 1Password CLI (op run), and ephemeral cloud containers. - π 2. Source & Architecture Transparency:
Verified directly against upstreamgithub.com/NVIDIA/SkillSpector(β 25.6k+) formcp server secret leak scanner(coveringnvidia skillspector vs snyk agent scan,audit claude desktop cursor mcp json plaintext secrets). - π― 3. Ideal Production Use Cases:
Built for teams looking to Commercial & DevSecOps Audit (NVIDIA/SkillSpector 71-Pattern Static Audit + snyk/agent-scan 14-Agent Discovery + 1Password CLI op run Zero-Plaintext mcp.json + RunPod Sandboxes) with inspectable configuration and predictable cost. - βοΈ 4. Honest Limitation & Recommended Pairing:
NVIDIA/SkillSpectorexecutes point-in-time π MCP Skill & Secret Leak Scanning (/security/) checksβalways run untrusted code in an ephemeral Linux pod and combine with continuous 640+ data-broker erasure and CLI secret vaults. Recommended managed pairing: Bright Data AI Agent Scraping & Proxy API + 1Password Developer CLI & Travel Vault.