arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.07461cs.CRcs.SE
收藏

通过安全感知工具描述减轻MCP服务器中的污点式漏洞

Mitigating Taint-Style Vulnerabilities in MCP Servers via Security-Aware Tool Descriptions

Tongji University(同济大学)

Yang Shi, Jiaheng Fu, Yihe Huang, Ruixiang Wu, Chengyao Sun, Kaifeng Huang

AI总结:

研究MCP服务器污点式漏洞,提出SPELLSMITH,通过分析服务器高风险能力,结合工具描述等识别潜在风险,利用协议属性和大语言模型自我反思能力迭代优化输出,有效减轻污点式漏洞利用。

摘要:

大语言模型越来越多地作为自主代理通过模型上下文协议(MCP)与外部工具和服务交互,MCP虽简化集成但扩大了攻击面。此前对恶意MCP服务器的研究不足。本文系统分析MCP服务器漏洞,发现污点式漏洞占比大、修复需大量代码修改且社区响应慢。为此提出SPELLSMITH,通过分析MCP服务器高风险能力,结合工具描述和参数语义识别潜在风险,利用协议属性嵌入行为指导并借助大语言模型自我反思能力迭代评估和优化输出,实验表明其有效减轻污点式漏洞利用。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑