arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.24322cs.CR
收藏

保护LLM智能体长期记忆免受投毒:具有机器验证保证的不可延展、源绑定权限

Securing LLM-Agent Long-Term Memory Against Poisoning: Non-Malleable, Origin-Bound Authority with Machine-Checked Guarantees

Department of Computer and Software Engineering, Ariel Cyber Innovation Center, Ariel University(阿瑞尔大学计算机与软件工程系、阿瑞尔网络创新中心)

Yedidel Louck

AI总结:

针对LLM智能体长期记忆投毒攻击,提出不可延展信息流控制(IFC)方案TMA-NM,通过源绑定和防Sybil确认门控实现0%攻击成功率。

摘要:

LLM智能体越来越依赖持久性长期记忆,这带来了一个关键漏洞:记忆投毒。攻击者可以在一个会话中存储不可信内容,从而在后续会话中引导支付、设置更改或数据泄露等关键操作。现有防御措施基于记忆项的内容(检测或信任评分)或其派生历史(谱系)来赋予其行动权限。我们证明这两种信号都是可延展的。攻击者可以通过LLM智能体特有的三个渠道清洗不可信来源:智能体自身的摘要、可信工具回显以及制造佐证。每种方式都使内容看起来无害,并打破或翻转其派生边为“可信”。我们形式化了记忆写入-检索-行动流水线的可延展性,并证明了机器验证的分离定理。在清洗攻击下,任何基于内容或谱系的防御都不健全(T1),写入时源绑定是必要的(T2),而具有防Sybil确认门控的不可延展源绑定权限是充分的(T3)。我们的构造TMA-NM(防篡改记忆权限,不可延展)实例化了LLM智能体记忆的不可延展信息流控制(IFC)。跨八个前沿模型的跨防御、跨攻击和跨模型基准测试表明,现有防御在理论预测的地方完全失败(清洗攻击成功率高达68%),而TMA-NM在所有模型和渠道上对直接攻击和清洗攻击均达到0%攻击成功率,同时保持完全合法效用。我们发布了基准测试、测试工具和机器验证的TLA+模型以支持可重复性。

英文摘要:

LLM agents increasingly rely on persistent long-term memory, which creates a critical vulnerability that we study here: memory poisoning. An adversary can store untrusted content in one session that later steers a consequential action, such as a payment, a setting change, or data exfiltration, in a future session. Existing defenses base a memory item's authority to act on either its content (detection or trust-scoring) or its derivation history (lineage). We show that both signals are malleable. An attacker can launder an untrusted origin through three channels specific to LLM agents: the agent's own summarization, a trusted-tool echo, and manufactured corroboration. Each makes the content look benign and breaks or flips its derivation edge to ``trusted.'' We formalize malleability for the memory write-retrieve-act pipeline and prove a machine-checked separation theorem. No content- or lineage-based defense is sound under laundering (T1), write-time origin binding is necessary (T2), and non-malleable origin-bound authority with Sybil-resistant corroboration-gated elevation is sufficient (T3). Our construction, TMA-NM (Tamper-evident Memory Authority, Non-Malleable), instantiates non-malleable information-flow control (IFC) for LLM-agent memory. A cross-defense, cross-attack, and cross-model benchmark over eight frontier models shows that existing defenses fail exactly where the theory predicts (up to 68% laundering attack-success), while TMA-NM reaches 0% attack success on both direct and laundering attacks across all models and channels, at full legitimate utility. We release the benchmark, harness, and machine-checked TLA+ models to support reproducibility.

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

↑