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

安全检查,不安全使用:LLM代理压缩边界处的重链接

Safe to Check, Unsafe to Use: Relinking at the Compression Boundary of LLM Agents

Zesen Liu, Zihan Zhang, Dongdong She

AI总结:

提出重链接漏洞,利用摘要压缩将分散的良性片段重组为恶意指令,并设计Relink工具自动化攻击,在四个长上下文代理基准上达到86.9%成功率。

摘要:

基于摘要的提示压缩越来越多地被LLM代理用于缩短长分布式上下文,但这改变了安全边界:过滤器检查压缩前的提示,而后端则作用于新生成的压缩上下文。我们识别出重链接,一种压缩边界漏洞,其中压缩器充当困惑的代理,将分散的、局部良性的片段总结为完整的恶意指令。与提示注入不同,重链接无需在源上下文中放置显式的恶意负载。我们表明重链接源于摘要本身:注意力使分离的片段共同可用,预训练使兼容的片段连接合理,后训练则倾向于生成紧凑的、后端可操作的摘要。我们将攻击者诱导的形式形式化为对抗性重链接,并提出了Relink,一种基于DSL的自动化工具,它将恶意负载分割成良性片段,同时在压缩前保持完整负载不存在。在四个长上下文代理基准测试中,Relink实现了86.9%的重链接率和后端操作率,而干净分割的对照组仅为17.0%。现有防御措施无法可靠捕获对抗性重链接;我们的KBRA防御将残余后端操作率降至0.0%。

英文摘要:

Summarization-based prompt compression is increasingly used by LLM agents to shorten long, distributed contexts, but it shifts the security boundary: filters inspect the pre-compression prompt while the backend acts on a newly generated compressed context. We identify relinking, a compression-boundary vulnerability where the compressor behaves as a confused deputy, summarizing distributed, locally benign fragments into a complete malicious instruction. Unlike prompt injection, relinking need not place an explicitly malicious payload in the source context. We show that relinking arises from summarization itself: attention makes separated fragments jointly available, pre-training makes compatible fragments plausible to connect, and post-training favors compact backend-actionable summaries. We formalize the attacker-induced form as adversarial relinking and present Relink, an automated DSL-based tool that splits malicious payloads into benign fragments while keeping the complete payload absent before compression. Across four long-context agent benchmarks, Relink achieves 86.9% Relink Rate and Backend Action Rate versus 17.0% for clean-split controls. Existing defenses fail to reliably capture adversarial relinking; our KBRA defense reduces residual Backend Action Rate to 0.0%.

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

↑