Executive Summary · Key Research Findings Print-ready PDF layout (Ctrl+P)
  • Traditional SAST and web DAST scanners miss over 85% of MCP-layer exploit chains because adversarial instructions ride inside JSON-RPC tool descriptions, resource templates, and untrusted RAG documents rather than malformed HTTP syntax.
  • Remote SSE and Streamable HTTP MCP servers that forward upstream bearer tokens ("token passthrough") introduce critical confused-deputy privilege escalation across backend APIs.
  • Developer workstation MCP configurations (Cursor, VS Code, Claude Desktop) routinely execute unpinned npx/uvx packages with long-lived production cloud and GitHub tokens.
  • Audience-bound OAuth 2.1 tokens, cryptographic tool-manifest pinning, strict parameter allowlists, and human-in-the-loop (HITL) mutation gates eliminate the primary MCP attack classes.

1. Why Model Context Protocol (MCP) Changes the Enterprise AppSec Boundary

Model Context Protocol (MCP) has rapidly emerged as the universal integration layer connecting LLM hosts—both customer-facing SaaS copilots and developer IDEs (Cursor, VS Code, Claude Desktop)—to internal PostgreSQL/Snowflake databases, GitHub repositories, Jira/Linear trackers, Slack workspaces, and cloud control planes.

In traditional REST or GraphQL microservices, authorization and input validation assume a deterministic caller executing developer-authored code. Under MCP, probabilistic model reasoning sits directly in the control loop: the host LLM reads tool descriptions (tools/list), ingests untrusted external context (support tickets, pull-request diffs, emails, web pages), and synthesizes JSON-RPC tools/call arguments dynamically. Conventional SAST and DAST scanners inspect syntax, leaving this semantic-to-execution bridge largely untested.

Scope & Effort Allocation

MCP Vulnerability Distribution in Assessments

Observed root causes across custom and third-party MCP server reviews.

> 85%Missed by SAST/DAST
Tool Poisoning & Indirect Prompt Chaining35%
Hidden instructions in tools/list metadata or untrusted RAG/ticket inputs
Confused-Deputy OAuth & Shared Static Keys30%
Token passthrough, missing aud checks & over-scoped service accounts
Command Injection, SQLi & SSRF in Handlers20%
Unsanitized LLM arguments passed to shell, SQL, file, or HTTP fetch tools
Unpinned npx/uvx & Workstation Secret Drift15%
Mutable package registries & plaintext mcp.json API tokens
Benchmark & Coverage Analysis

Blast Radius by MCP Deployment Architecture

Comparing common enterprise rollout patterns before and after gateway hardening.

Workstation stdio via Unpinned npx + Prod KeysCritical Supply-Chain Risk
Single poisoned PR or package update compromises developer cloud keys
Remote HTTP/SSE Server With Token PassthroughHigh Replay / Tenant Risk
Upstream bearer tokens accepted without audience validation
Shared Backend Service Account Across TenantsCross-Tenant Leak Risk
Prompt injection bypasses prompt-only tenant filters
aud-Bound OAuth 2.1 + Pinned Gateway + HITL GatesVerified Target Architecture
Cryptographic manifest pinning, per-user scopes & mutation approvals

2. Four Dominant MCP Exploit Classes

2.1 Tool Description Poisoning & Rug-Pull Mutations

Because the MCP host injects every connected server's tools/list name, description, and JSON Schema directly into the model's system context, a malicious or compromised third-party MCP server can embed hidden directives inside a tool description (for example, instructing the host model to read ~/.ssh or environment variables via a legitimate filesystem tool and pass the contents as a telemetry parameter). Worse, an unpinned remote server can pass initial security review cleanly and later mutate its tool descriptions ("rug-pull") on subsequent sessions.

2.2 Cross-Server Tool Shadowing

When an IDE or enterprise agent connects to multiple MCP servers simultaneously (for example, an internal github-mcp, a postgres-mcp, and an external documentation or search MCP), ambiguous or colliding tool definitions allow a lower-trust server to influence how and when higher-privilege tools on sibling servers are invoked.

2.3 Unsanitized Tool-Argument Command Injection & Cloud SSRF

Developers building internal MCP wrappers frequently pass LLM-generated arguments straight into child_process.exec, string-concatenated SQL queries, filesystem paths, or fetch() calls. An attacker who plants an indirect prompt injection inside a Jira ticket or web page can coerce the agent into requesting http://169.254.169.254/latest/meta-data/iam/security-credentials/ or executing arbitrary shell commands inside the MCP container.

Technical Attack Path & Control Cut-Points

Reference Defense-in-Depth MCP Gateway Topology

Isolating untrusted context from privileged enterprise actions at every protocol hop.

Control 01 · Registry
Pinned Digest & Schema Hash

Allowlist approved MCP servers by container digest and hash-lock tools/list schemas.

Blocks Rug-Pulls
Control 02 · AuthZ
aud-Bound OAuth 2.1

Enforce RFC 8707 Resource Indicators; reject upstream token passthrough.

No Confused Deputy
Control 03 · Runtime
Strict Schema + HITL Gate

Parameterized SQL/APIs, read-only defaults, and explicit human approval on mutations.

Zero Silent Writes
Control 04 · Network
Sandbox & Egress Lock

Run MCP containers in isolated subnets blocking 169.254.169.254 and arbitrary egress.

Blast-Radius Cap

3. OAuth 2.1, Dynamic Client Registration (DCR) & Session Isolation

As teams move from local stdio servers to shared remote Streamable HTTP and SSE MCP deployments, authentication mistakes become multi-tenant vulnerabilities:

  • Never Forward Upstream Tokens Blindly: Accepting a client token issued for another audience and replaying it downstream allows a malicious client to abuse the MCP server's trust relationship. Enforce strict aud (Resource Indicator) validation and mint narrowly scoped downstream tokens via OAuth 2.0 Token Exchange.
  • Lock Down Dynamic Client Registration (DCR): Unauthenticated DCR endpoints with lax redirect_uri validation enable phishing and authorization-code interception against developer workstations.
  • Bind Session IDs to Authenticated Principals: Never rely on guessable or unauthenticated MCP session identifiers across HTTP/SSE streams; bind every tool invocation to the caller's verified tenant and user claim.

4. Enterprise MCP Hardening Checklist

Pre-Production MCP Security Gate

Before exposing an MCP server to employees or customers: (1) pin package/image digests and alert on tools/list hash drift; (2) separate read-only retrieval tools from state-mutating tools and require out-of-band human confirmation for writes, deletes, or external egress; (3) enforce tenant ACLs inside the database/API layer rather than the system prompt; and (4) block link-local metadata IPs (169.254.169.254) and unauthorized outbound domains at the container network layer.

Dalwax Specialist Pods · Est. 2004
Shipping or Adopting MCP Servers?

Start with a $4,500 5-Day MCP Server Security Audit (1–2 servers) or a full 2-week Agentic AI + MCP Red-Team Sprint with signed attestation.

Board / Team PDF Copy: Use your browser's Print → Save as PDF (Ctrl+P / Cmd+P) for a clean, navigation-free executive briefing copy.

DALWAX SECURITY — REQUIRED CITATION & ATTRIBUTION
DWX-WP-2026-02 · Citation Required

When referencing, quoting, or sharing this research internally or externally, include the following source citation intact:

Dalwax Security Research (July 22, 2026). "Model Context Protocol (MCP) & Agentic Tool-Use Security: Tool Poisoning, Schema Rug-Pulls & Confused-Deputy OAuth 2.1" (Report ID: DWX-WP-2026-02). Dalwax Security. https://dalwax.com/whitepapers/mcp-server-and-agentic-tool-security — Contact: security@dalwax.com
© 2026 Dalwax Security (Est. 2004). Unattributed reproduction or commercial rebranding is prohibited. DALWAX · security@dalwax.com · dalwax.com

Continue Reading Dalwax Research

View All Whitepapers →
DWX-WP-2026-04 November 12, 2026
Living Off the Runtime: ARTEX Intrusion Tradecraft & Enterprise Defense

An end-to-end technical analysis of how threat actors leveraging ARTEX escalate from exposed web management consoles to enterprise-wide OS, Active Directory/Kerberos, cache, database, and cloud control-plane access without custom compiled implants—paired with 7 systemic lessons learned, a 3-tier forensic impact framework, and a 22-control engineering remediation workbook.

Read Whitepaper
DWX-WP-2026-03 October 5, 2026
Agentic Offensive Frameworks (ARTEX & Wild AOFs) in Cloud Intrusions

Multi-agent offensive harnesses have crossed from experimental repositories into operational cloud intrusions—chaining exposed APIs, SSRF, and over-scoped cloud identities into full tenant compromise in under three hours. This report analyzes the execution physics of autonomous attacker loops and details deterministic cloud controls that break them.

Read Whitepaper