保护LLM智能体长期记忆免受投毒攻击:具有机器可验证保证的不可篡改、来源绑定权威 Securing LLM-Agent Long-Term Memory Against Poisoning: Non-Malleable, Origin-Bound Authority with Machine-Checked Guarantees 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-06-23
👁️ 预览文献
💡 AI 中文简介
LLM智能体依赖长期记忆,但记忆可被投毒:攻击者在一个会话中存入不可信内容,日后诱导智能体执行支付、改设置或泄露数据。现有防御依赖内容检测或来源追踪,但攻击者可通过智能体自我总结、可信工具回显、伪造佐证三种方式洗白不可信来源。本文形式化定义了这种可篡改性,并证明机器可验证的分离定理:内容或来源防御均不可靠,写入时绑定来源是必要的,而不可篡改的来源绑定权威加上抗女巫的佐证门控提升是充分的。作者提出TMA-NM方案,在八个前沿模型上实现直接与洗白攻击0%成功率,同时保持完整合法效用。
领域人工智能安全 / LLM智能体安全
适合谁读需要一定专业背景(了解LLM智能体、信息流控制与形式化方法)
核心贡献1. 形式化定义了LLM智能体记忆写-取-行动流水线中的可篡改性,并给出机器可验证的分离定理(T1-T3);2. 提出TMA-NM方案,实现不可篡改的来源绑定权威与抗女巫的佐证门控提升,在八个前沿模型上达到0%攻击成功率且保持完整合法效用。
关键数据现有防御在洗白攻击下成功率高达68%;TMA-NM在所有模型和渠道上直接与洗白攻击成功率均为0%,合法效用完整;覆盖八个前沿模型。
推荐理由如果你关心LLM智能体记忆安全,这篇论文用形式化方法把问题讲透了,还给出了实测0%攻击成功率的方案,值得一读。
关键词["LLM智能体", "长期记忆", "记忆投毒", "信息流控制", "形式化验证", "基准测试"]

原文摘要

查看英文原文摘要

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.