A-MemGuard: a proactive defense framework for LLM agent memoryA-MemGuard: A Proactive Defense Framework for LLM-Based Agent Memory
The researchers propose A-MemGuard, a proactive defense framework for LLM-based agent memory, which reduces attack success rates by more than 95% across multiple benchmark evaluations with little utility cost. The paper divides the risk of memory injection into two points: injected records are activated only in specific contexts, making them hard to detect when auditing memory entry by entry; once triggered, the poisoned results are stored as prior cases, forming a self-reinforcing error loop and lowering the bar for subsequent attacks of the same kind. A-MemGuard does not change the agent's core architecture and consists of two mechanisms: consensus-based verification detects anomalies by comparing the reasoning paths derived from multiple related memories; a dual-memory structure distills detected failures into "lessons" stored separately and consulted before subsequent actions. The authors state in the paper that this is the first proactive defense framework for LLM agent memory, and the code is open-sourced at https://github.com/TangciuYueng/AMemGuard。