基于MCP的AI Agent工具提供方错误绑定研究:工具名不等于身份
When Tool Names Are Not Identities: Measuring Provider Misbinding in MCP-Based AI Agents
论文研究基于MCP的AI Agent中的工具提供方错误绑定问题:攻击者无需攻破主机、LLM或合法服务器,仅运营一个MCP服务器并发布带特定元数据的工具,即可让原本指向合法提供方的请求被解析到攻击者控制的工具。在受控MCP环境中对五个基于LLM的客户端评估显示,精确名称冲突、任务对齐描述与兼容schema相互强化时失败最严重;不同模型表现出攻击者控制提供方选择、请求澄清、提供方解析不稳定等不同弱点。
arXiv:2611.21577v1 Announce Type: cross Abstract: Large language model (LLM) applications increasingly act as agents that select and invoke external tools. The Model Context Protocol (MCP) standardizes this interaction by allowing clients to compose tools advertised by multiple servers. However, tool metadata used for discovery and selection is not, by itself, necessarily bound to a verified provider identity. This paper studies this gap as tool-provider misbinding: a failure in which a request intended for a legitimate provider is instead resolved to an attacker-controlled tool. The attacker does not compromise the host, LLM, legitimate server, or network channel; it only operates another MCP server that advertises tools with chosen metadata. We formulate tool provider misbinding as an attacker-controlled tool-selection optimization problem and evaluate it in a controlled MCP environment across five LLM-based clients. The results show that interactions drive misbinding. The strongest failures occur when exact-name collision, task-aligned description, and compatible schema reinforce one another, but authority-enhanced descriptions with compatible schema can also cause wrong-provider execution or unresolved provider ambiguity without name collision. Different models expose the same provider-binding weakness differently, including attacker-controlled provider selection, clarification requests, and unstable or inconsistent provider resolution.
来源:arXiv (AI + Vision + Imaging) · arxiv.org