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

日志泄露:通过模型上下文协议对使用工具的大语言模型智能体进行的提示注入攻击

Log-To-Leak: Prompt Injection Attacks on Tool-Using LLM Agents via the Model Context Protocol

Duke University(杜克大学);Michigan State University(密歇根州立大学)

Yuepeng Hu, Chongyu Fan, Sirat Samyoun, Jian Du

AI总结:

该研究提出Log-To-Leak攻击,通过模型上下文协议对使用工具的LLM智能体实施提示注入,在18组模型-服务器组合中攻击成功率达62.64%-100%,现有防御效果有限,需主机控制二次工具调用授权。

摘要:

大语言模型智能体越来越多地通过模型上下文协议(MCP)访问外部工具,但用于描述这些工具的自然语言元数据会产生提示注入攻击面。在这一已确立的工具中毒攻击面中,我们研究了Log-To-Leak,这是一种附加的事后日志攻击,会在最后一次合法调用后诱导攻击者控制的单独调用。其有效载荷针对用户查询、MCP服务器名称、服务器响应和智能体响应。我们通过触发器、工具绑定、理由和压力来实施注入指令,并分别测量调用成功率、有效载荷保真度和合法行为的保留情况。我们使用涵盖有效性、实用性和效率的五个指标评估了五个MCP服务器和四个大语言模型智能体。在18对具有有效工具执行的模型-服务器组合中,Log-To-Leak的攻击成功率(ASR)为62.64%-100%,条件日志准确率(LA)为76.55%-95.64%;16对的目标任务完成绝对变化幅度最多为6.63个百分点。三种评估的防御措施在使用GPT-4o的GitHub MCP上仍使剩余ASR高于55%,而指令检测器标记了85.53%的良性描述。这些结果表明,成功的任务完成可与未经授权的事后信息披露共存,并促使主机对二次工具调用进行授权控制。

英文摘要:

LLM agents increasingly access external tools through the Model Context Protocol (MCP), but the natural-language metadata used to describe those tools creates a prompt-injection surface. Within this established tool-poisoning surface, we study Log-To-Leak, an additive post-hoc logging attack that induces a separate attacker-controlled call after the final legitimate call. Its payload targets the user query, MCP server name, server response, and agent response. We operationalize the injected directive through Trigger, Tool Binding, Justification, and Pressure, and separately measure call success, payload fidelity, and preservation of legitimate behavior. We evaluate five MCP servers and four LLM agents using five metrics spanning effectiveness, utility, and efficiency. Across 18 model-server pairs with valid tool execution, Log-To-Leak achieves an attack success rate (ASR) of 62.64-100% and conditional logging accuracy (LA) of 76.55-95.64%; 16 pairs have absolute target-task completion changes of at most 6.63 percentage points. Three evaluated defenses leave residual ASR above 55% on GitHub MCP with GPT-4o, while an instruction detector flags 85.53% of benign descriptions. These results show that successful task completion can coexist with unauthorized post-hoc disclosure and motivate host-controlled authorization for secondary tool calls.

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

↑