Beyond the Protocol: Unveiling Attack Vectors in the Model Context Protocol (MCP) Ecosystem
By: Hao Song , Yiming Shen , Wenxuan Luo and more
Potential Business Impact:
Makes AI tools unsafe by tricking them.
The Model Context Protocol (MCP) is an emerging standard designed to enable seamless interaction between Large Language Model (LLM) applications and external tools or resources. Within a short period, thousands of MCP services have been developed and deployed. However, the client-server integration architecture inherent in MCP may expand the attack surface against LLM Agent systems, introducing new vulnerabilities that allow attackers to exploit by designing malicious MCP servers. In this paper, we present the first end-to-end empirical evaluation of attack vectors targeting the MCP ecosystem. We identify four categories of attacks, i.e., Tool Poisoning Attacks, Puppet Attacks, Rug Pull Attacks, and Exploitation via Malicious External Resources. To evaluate their feasibility, we conduct experiments following the typical steps of launching an attack through malicious MCP servers: upload -> download -> attack. Specifically, we first construct malicious MCP servers and successfully upload them to three widely used MCP aggregation platforms. The results indicate that current audit mechanisms are insufficient to identify and prevent these threats. Next, through a user study and interview with 20 participants, we demonstrate that users struggle to identify malicious MCP servers and often unknowingly install them from aggregator platforms. Finally, we empirically demonstrate that these attacks can trigger harmful actions within the user's local environment, such as accessing private files or controlling devices to transfer digital assets. Additionally, based on interview results, we discuss four key challenges faced by the current MCP security ecosystem. These findings underscore the urgent need for robust security mechanisms to defend against malicious MCP servers and ensure the safe deployment of increasingly autonomous LLM agents.
Similar Papers
When MCP Servers Attack: Taxonomy, Feasibility, and Mitigation
Cryptography and Security
Finds hidden dangers in AI tools.
Toward Understanding Security Issues in the Model Context Protocol Ecosystem
Cryptography and Security
Finds and fixes security flaws in AI tools.
Systematic Analysis of MCP Security
Cryptography and Security
Finds ways AI can be tricked by tools.