arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.31974cs.CRcs.AIcs.MA
收藏

智能体AI防御:针对MCP的解码时间来源绑定

Agentic AI Defense: Decode-Time Provenance Binding for MCP

California Polytechnic State University(加州州立理工大学);Information Networking Institute, Carnegie Mellon University(卡内基梅隆大学信息网络研究所);Department of Computer Science, University of Idaho(爱达荷大学计算机科学系)

Eric Yocam, Varghese Vaidyan, Paris Kalathas, Patrick Tague, Bruce DeBruhl, Yong Wang

AI总结:

针对使用MCP的智能体AI系统易受的间接提示注入攻击,提出解码时间来源绑定方法,可阻止所有攻击并提升合法任务完成率至100%。

摘要:

使用模型上下文协议(MCP)的智能体AI系统易受到来自不可信工具输出的间接提示注入攻击。我们展示了跨模态信任洗钱攻击,即通过最低有效位(LSB)、离散余弦变换(DCT)或隐写术在电子邮件签名图像中隐藏指令,这些指令在被工具解码后会绕过文本扫描器并进入多智能体工作流。为应对该威胁,我们提出解码时间来源绑定方法,该方法结合HMAC认证的信任标签、MCP维护的来源账本以及上下文污点跟踪。该机制将解码内容标记为不可信,并阻止受该内容影响的关键工具调用,即使被攻陷的智能体替换了有效的可信标签也能生效。我们在真实MCP测试床上使用三种隐写载体和24个自适应有效载荷评估该方法,未防御的管道攻击成功率为100%,关键词和正则表达式防御分别允许62.5%的攻击,而我们的机制可阻止所有攻击(成功率0%),包括跨中介智能体边界的对抗性标签替换。四组件消融实验验证了解码标记、密码认证、谱系跟踪和汇点执行的作用,经审计的可信提升机制将合法任务完成率从67%提升至100%且不损害防护效果,该方法在完全中介的MCP执行环境中提供与载体无关的遏制能力,代码和数据公开可用。

英文摘要:

Agentic AI systems using the Model Context Protocol (MCP) are vulnerable to indirect prompt injection through untrusted tool outputs. We demonstrate cross-modal trust laundering, in which instructions concealed in an email-signature image using least-significant-bit (LSB), discrete cosine transform (DCT), or metadata steganography bypass text scanners and enter a multi-agent workflow when decoded by a tool. To counter this threat, we propose decode-time provenance binding, which combines HMAC-authenticated trust labels with an MCP-maintained provenance ledger and context-taint tracking. The mechanism labels decoded content as untrusted and blocks critical tool calls influenced by that content, even when a compromised agent substitutes a valid trusted label. We evaluate the approach using a real MCP testbed with three steganographic carriers and 24 adaptive payloads. The undefended pipeline exhibits 100% attack success, while keyword and regex defenses each permit 62.5% of attacks. Our mechanism blocks all attacks (0% success), including adversarial label substitution across mediated agent boundaries. A four-component ablation validates the roles of decode marking, cryptographic authentication, lineage tracking, and sink enforcement. An audited trusted-promotion mechanism increases legitimate-task completion from 67% to 100% without compromising protection. The approach provides carrier-independent containment within fully mediated MCP execution environments. Code and data are publicly available.

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

↑