Breaking the Protocol: Security Analysis of the Model Context Protocol Specification and Prompt Injection Vulnerabilities in Tool-Integrated LLM Agents
Narek Maloyan, Dmitry Namiot

TL;DR
This paper provides the first formal security analysis of the Model Context Protocol (MCP), revealing fundamental vulnerabilities and proposing a protocol extension to mitigate prompt injection and permission issues in tool-integrated LLM agents.
Contribution
It identifies core security flaws in MCP's design, introduces MCPBench for attack surface measurement, and proposes MCPSec, a protocol extension that significantly improves security.
Findings
MCP vulnerabilities increase attack success rates by 23-41%.
MCPSec reduces attack success from 52.8% to 12.4%.
Security issues are architectural, not implementation-specific.
Abstract
The Model Context Protocol (MCP) has emerged as a de facto standard for integrating Large Language Models with external tools, yet no formal security analysis of the protocol specification exists. We present the first rigorous security analysis of MCP's architectural design, identifying three fundamental protocol-level vulnerabilities: (1) absence of capability attestation allowing servers to claim arbitrary permissions, (2) bidirectional sampling without origin authentication enabling server-side prompt injection, and (3) implicit trust propagation in multi-server configurations. We implement \textsc{MCPBench}, a novel framework bridging existing agent security benchmarks to MCP-compliant infrastructure, enabling direct measurement of protocol-specific attack surfaces. Through controlled experiments on 847 attack scenarios across five MCP server implementations, we demonstrate that…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Authentication Protocols Security · Security and Verification in Computing · Mobile Agent-Based Network Management
