Static Benchmark Reference2026-11-24
MCP Server Security & Least-Privilege Scope Checklist
Connecting LLM agents directly to databases, browsers, and terminals introduces real blast-radius risks unless read-only roles and directory sandboxes are enforced at the protocol boundary.
Quantitative Benchmark Gauges
Production Incidents Mitigated by Read-Only DB Roles92 %
Filesystem Path Escapes Blocked by Roots Allowlist98 %
Credential Leak Reduction via Short-Lived OAuth89 %
Structured Benchmark Matrix
| Capability Category | Risk Surface | Mandatory Guardrail | Auth Standard | Risk Tier |
|---|---|---|---|---|
| SQL & Analytics DB | Data exfiltration or DDL drop | SELECT-only role + statement timeout | Scoped DB User | High |
| Filesystem & Repo | Path traversal outside workspace | Explicit allowlist root paths | OS Sandbox / Roots | Medium |
| Web Scraping & DOM | Indirect prompt injection in HTML | Strip hidden text + output tagging | No Host Secrets | High |
| Cloud & Kubernetes | Cluster mutation or secret dump | Get/List RBAC verbs only | Short-lived OIDC | Critical |
| Docs & Search API | Minimal local impact | Domain allowlist + rate limit | API Key Scoped | Low |
Engineering Takeaways
- Never reuse admin database credentials inside .cursor/mcp.json or claude_desktop_config.json.
- Always pair browser or web-scraping MCP tools with human approval on destructive external actions.
- Audit third-party stdio packages by pinning exact version tags rather than running floating latest tags.
Frequently Asked Questions
What is indirect prompt injection in MCP workflows?
Untrusted external content fetched by a web or ticket MCP server can embed hidden instructions attempting to trick the agent into calling another connected write or exfiltration tool.
How should teams store MCP secrets cleanly?
Inject environment variables at runtime via secret managers or OAuth 2.1 tokens rather than committing static plaintext secrets inside shared workspace files.