MemAudit:通过因果归因和结构异常检测对中毒代理记忆进行事后审计
MemAudit: Post-hoc Auditing of Poisoned Agent Memory via Causal Attribution and Structural Anomaly Detection
AI总结:
提出MemAudit框架,结合反事实记忆影响评分和记忆一致性图,对记忆增强型LLM代理中的恶意注入记忆进行事后因果审计,显著降低攻击成功率。
摘要:
大型语言模型代理越来越依赖持久记忆来存储过去的交互、检索相关演示并改进长期任务执行。然而,这种记忆机制也造成了一个实际的安全漏洞:对抗性用户可能通过普通交互将恶意记录注入代理的记忆中,这些记录随后可能被检索以引导代理的推理和行动。现有的防御主要关注在线干预,如提示过滤或输出阻止,但它们没有解决事后问题,即在观察到有害行为后,哪些存储的记忆应负责。我们提出了 extbf{MemAudit},一个用于记忆增强型LLM代理的事后因果记忆审计框架。该框架结合了两个互补信号:(1)反事实记忆影响评分,衡量每个记忆对有害输出的因果贡献;(2)记忆一致性图,识别更广泛记忆存储中的结构异常记忆。我们针对MINJA(一种仅查询的记忆注入攻击,其中恶意记录通过正常代理交互生成和存储,而非直接修改记忆库)评估了MemAudit。在QA和推理代理两种设置中,MemAudit在现实的事后审计场景下显著降低了攻击成功率。结果显示,QA攻击成功率从$70\%$降至$0\%$,而RAP攻击成功率从$83.3\%$降至$0\%$。
英文摘要:
Large language model agents increasingly rely on persistent memory to store past interactions, retrieve relevant demonstrations, and improve long-horizon task execution. However, this memory mechanism also creates a practical security vulnerability: an adversarial user may inject malicious records into the agent's memory through ordinary interaction, and these records can later be retrieved to steer the agent's reasoning and actions. Existing defenses primarily focus on online intervention, such as prompt filtering or output blocking, but they do not address the post-hoc question of which stored memories are responsible after harmful behavior has already been observed. We propose \textbf{MemAudit}, a post-hoc causal memory auditing framework for memory-augmented LLM agents. The framework combines two complementary signals: (1) a counterfactual memory influence score that measures each memory's causal contribution to harmful outputs, and (2) a memory consistency graph that identifies structurally anomalous memories within the broader memory store. We evaluate MemAudit against MINJA, a query-only memory injection attack in which malicious records are generated and stored through normal agent interactions rather than direct memory-bank modification. Across both QA and reasoning-agent settings, MemAudit substantially reduces attack success rates under realistic post-hoc auditing scenarios. The results show that QA attack success is reduced from $70\%$ to $0\%$, while RAP attack success drops from $83.3\%$ to $0\%$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。