Large language models (LLMs) are increasingly deployed as autonomous agents that interact with external tools and services via the Model Context Protocol (MCP), a standardized interface for dynamic tool invocation. While MCP simplifies integration, it also expands the attack surface and enables generic exploits across multiple servers. Despite prior work on malicious MCP servers, the vulnerability landscape of MCP servers remains underexplored. In this work, we systematically analyze MCP server vulnerabilities, focusing on metadata characteristics, vulnerable code patterns, and community responses. Our study reveals that taint-style vulnerabilities constitute a substantial fraction of MCP server vulnerabilities, require significant code modifications to remediate, and are met with slow community responses. Motivated by these findings, we propose SPELLSMITH, presenting a novel textbased avenue for shielding taint-style vulnerabilities in MCP servers. In particular, SPELLSMITH analyzes the high-risk capabilities exposed by an MCP server and combines them with tool descriptions and parameter semantics to identify potential taint-style vulnerability risks, thereby constructing a tool-level risk profile. Then, SPELLSMITH leverages the Description property of the protocol to embed behavioral guidance (Description Enhancement Module) and exploits LLMs' self-reflection capabilities (Self-Reflection Module) to iteratively evaluate and refine outputs. By strengthening LLM internal decision-making, SPELLSMITH provides an active and unified mitigation strategy that generalizes across multiple vulnerabilities, reducing reliance on context-specific code-level fixes. Our experiments demonstrate that SPELLSMITH effectively mitigates taint-style vulnerability exploitation in MCP servers, highlighting its practical applicability and advantages over traditional code-level mitigations.
VIPER-MCP: Detecting and Exploiting Taint-Style Vulnerabilities in Model Context Protocol Servers
The State Key Laboratory of Blockchain and Data Security, Zhejiang University(浙江大学区块链与数据安全国家重点实验室);Beijing University of Posts and Telecommunications(北京邮电大学);Lanzhou University(兰州大学)
Breaking the Protocol: Security Analysis of the Model Context Protocol Specification and Prompt Injection Vulnerabilities in Tool-Integrated LLM Agents
MCPXKIT: The Unified Toolkit for Analyzing Model Context Protocol Security
Shenzhen International Graduate School, Tsinghua University, Shenzhen, China(深圳国际研究生院,清华大学,深圳,中国);Ant Group, Hangzhou, China(蚂蚁集团,杭州,中国);Swinburne University of Technology, Melbourne, Australia(斯威本科技大学,墨尔本,澳大利亚);The University of Adelaide, Adelaide, Australia(阿德莱德大学,阿德莱德,澳大利亚);UNSW Sydney, Australia(悉尼大学,澳大利亚)
Automatic Red Teaming LLM-based Agents with Model Context Protocol Tools
College of Computer Science and Technology, Zhejiang University(浙江大学计算机科学与技术学院);Palo Alto Networks(帕洛阿尔托网络公司);School of Software Technology, Zhejiang University(浙江大学软件技术学院)
ETDI: Mitigating Tool Squatting and Rug Pull Attacks in Model Context Protocol (MCP) by using OAuth-Enhanced Tool Definitions and Policy-Based Access Control
Amazon Independent Researcher(亚马逊独立研究者);Project Kuiper Security (KPES)(项目Kuiper安全);Proactive Security OWASP, Amazon Web Services(主动安全OWASP,亚马逊网络服务);Intuit Adversarial AI Security reSearch (A2RS)(Intuit对抗AI安全reSearch)
本文提出 ETDI 安全扩展,通过密码学身份验证、不可变版本化工具定义、OAuth 2.0 权限管理及基于策略的细粒度访问控制,缓解 MCP 中的工具投毒和 Rug Pull 攻击,构建更安全可控的 AI 工具交互生态。
When the Manual Lies: A Realistic Benchmark to Evaluate MCP Poisoning Attacks for LLM Agents
Institute of Information Engineering, Chinese Academy of Sciences, Beijing, China(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences, Beijing, China(中国科学院大学网络安全学院)
Systematization of Knowledge: Security and Safety in the Model Context Protocol Ecosystem
Tribhuvan University(特里布文大学);University of North Dakota(北达科他大学);Youngstown State University(亚当斯州立大学);University of Missouri(密苏里大学);University of Toledo(托莱多大学)
AdapTools: Adaptive Tool-based Indirect Prompt Injection Attacks on Agentic LLMs
College of Computing(计算学院);Data Science, Nanyang Technological University, Singapore(数据科学,南洋理工大学,新加坡);School of Computer Science, Peking University, China(计算机科学学院,北京大学,中国)