Threat Analysis
Top 5 MCP Vulnerabilities That Could Expose Your Enterprise Data
Review five MCP risks across tool permissions, authentication, input validation, audit logging and network segmentation.
- DefenseMCP Team
- Published
- 10 min read
Five vulnerability patterns recur across production MCP deployments, each of them a direct consequence of how the protocol grants tool access. Each one is exploitable, and each one is fixable—if you know where to look.
1. Over-Permissioned Tool Scopes
MCP tools are registered with broad permissions—full read/write access to databases, unrestricted API calls, or blanket filesystem access—when the agent only needs a narrow subset.
An attacker who compromises the LLM context (via prompt injection) inherits every permission the tool has. Over-scoped tools turn a prompt injection into a full data breach.
Before (Vulnerable)
Full database admin access via MCP tool. Agent can read, write, delete, and modify schema. Long-lived master credentials shared across all agents.
After (Hardened)
Read-only access with row-level filtering. Short-lived scoped tokens per agent session. Mandatory scope review in the deployment pipeline.
2. Missing or Weak Authentication
MCP servers, clients, and tool backends communicate without mutual authentication. We frequently find servers accepting connections from any client on the network.
- Require mTLS between all MCP components
- Use short-lived JWTs with audience and scope claims
- Rotate all credentials on a defined schedule (ideally automated)
- Monitor for authentication failures and alert on anomalies
3. Insufficient Input Validation
MCP tools accept parameters from the LLM without validating structure, type, or bounds. This opens the door to injection attacks where crafted parameters bypass intended operations.
SQL injection through database query tools, path traversal through file-access tools, command injection through shell-exec tools. We've seen all three in production environments.
4. No Audit Logging of Tool Invocations
MCP tool calls happen in a fire-and-forget fashion with no structured logging. When something goes wrong, there's no trail to follow.
Timestamp, agent identity, tool name, parameters (redacting secrets), response status, and data volume. Ship to your SIEM in a structured format and set up alerting rules for high-risk patterns.
5. Lack of Network Segmentation
MCP servers run on the same network segment as production databases, internal APIs, and other sensitive infrastructure. A compromised MCP server becomes a pivot point for lateral movement.
Flat Network
MCP servers, databases, APIs, and internal services all on one subnet. Blast radius is the entire infrastructure.
Segmented Network
Dedicated segments with strict ingress/egress rules, microsegmentation, egress allowlists, and anomalous traffic monitoring.
Related articles and guides
- Enterprise LLM Access Control: Patterns for Securing Multi-Tenant AI Systems
Set tool permissions by role and attributes, then enforce tenant boundaries at the API gateway and service layers.
- AI Supply Chain Attack Vectors: Mapping the Hidden Risks in Your LLM Stack
Review third-party MCP servers, models, dependencies, data sources and infrastructure as parts of an AI supply chain.
- Preventing Prompt Injection Attacks in MCP Environments
Use isolation, tool permissions and input and output checks to limit the effect of injected instructions on MCP workflows.
- Topic guideMCP vulnerabilities and mitigations
Plan an MCP audit
Use the free introductory call to discuss which servers and tools you want reviewed.