TL;DR
Persistent memory allows AI agents to learn from interactions, but it also creates a "poisoning" surface where a single malicious input can permanently corrupt an agent's behavior. This paper systematizes these attacks, introduces a new benchmark called MPBench, and reveals that current prompt-injection defenses are fundamentally ill-equipped to stop "weak-signal" attacks that look like legitimate data.
What Problem Does This Paper Address?
Modern AI agents are moving from stateless chat bots to stateful assistants that remember user preferences, past tasks, and even new "skills." To do this, they write information from their current context (which includes untrusted data like emails, web pages, and tool outputs) into long-term storage.
The core problem is provenance blindness. Once an agent writes something to its memory, it often loses track of where that information came from. In future sessions, the agent retrieves this "poisoned" entry and treats it as trusted, internal knowledge. Unlike standard prompt injection, which requires the attacker to be "in the room" for every interaction, memory poisoning is a "write once, exploit forever" threat. The authors identify a lack of systematic study and a unified defense framework for this specific vulnerability.
Methods
The authors provide a comprehensive structural analysis of the memory poisoning attack surface:
- Write Channels: They identify four ways agents write to memory:
- C1 (Explicit): Direct instructions (e.g., "Remember this...").
- C2 (System-driven): The agent follows a system prompt policy to save "relevant" info.
- C3 (Compaction-driven): Summarizing history into long-term storage when the context window fills up.
- C4 (Experience-to-procedure): Synthesizing a successful task into a reusable "skill" or script.
- Vulnerability Taxonomy: They map out nine structural vulnerabilities across model capabilities (e.g., boundary blindness), prompt design (e.g., vague policies), and system architecture (e.g., lack of write-path validation).
- Attack Classes: They define six attack types, categorized by Signal Strength:
- Strong-Signal: Uses explicit linguistic markers (imperative verbs like "store this").
- Weak-Signal: Malicious content that is semantically indistinguishable from legitimate data (e.g., a fake network policy in a document).
Datasets
The researchers introduced MPBench, a first-of-its-kind benchmark specifically designed for multi-session memory poisoning.
- Scale: 3,240 test cases across 6 attack classes and 7 domains (email, web browsing, file ops, etc.).
- Evaluation: It uses a two-step process. First, it measures the Attack Success Rate (ASR)—did the malicious info make it into memory? Second, it measures the Retrieval Success Rate (RSR)—did the poisoned memory actually influence the agent's behavior in a subsequent, unrelated session?
- Baseline Comparison: They also included 2,997 benign examples to test for False Positive Rates (FPR) in defenses.
Key Insights and Ideas
- The Utility-Security Tension: Agents designed to be "smarter" and more proactive (like HERMES) are significantly easier to poison. By aggressively writing to memory and automatically retrieving it, these agents provide more "hooks" for an attacker.
- Weak Signals are the Silent Killers: Most current security research focuses on "strong-signal" attacks (explicitly malicious commands). However, this paper shows that "weak-signal" attacks—which simply look like a boring fact or a standard procedure—are highly effective because they don't trigger traditional "injection" detectors.
- Defenses are Looking at the Wrong Boundary: Current defenses (like PIGuard or PromptArmor) try to catch attacks at the input boundary. The authors argue that because poisoned entries can look like legitimate data, we must move defenses to the write path—validating what is being stored and where it came from.
Key Results
The authors evaluated two agent systems: OpenClaw (conservative) and HERMES (aggressive), using GPT-OSS-120B.
- Exploitability: HERMES was much more vulnerable, with an average ASR of 66.67% and an RSR of 64.70%. OpenClaw's more conservative memory policy resulted in a lower but still significant 34.25% ASR.
- Persistence: Once a write was successful, the RSR was consistently high. In HERMES, strong-signal attacks reached up to 92.76% RSR, meaning the agent almost always followed the poisoned instruction in future sessions.
- Defense Failure: Existing prompt injection defenses failed miserably against weak-signal attacks. For example, PromptArmor had an 84.44% detection rate for strong signals but plummeted to 42.50% for weak signals. Even after retraining on poisoning data, the structural gap remained.
Limitations and Future Work
- Model Specificity: The evaluation primarily used a single model (GPT-OSS-120B). Different model architectures might show varying levels of "boundary blindness."
- Simplified Delivery: In the benchmark, adversarial payloads were delivered as labeled context blocks. In the real world, these would arrive via complex tool-call chains (e.g., an agent reading a specific email sub-thread), which might change the success rates.
- Future Directions: The authors suggest focusing on write-path provenance tracking (tagging memory with its source) and post-write monitoring (periodically auditing the memory store for policy violations) as more robust defense strategies than simple input filtering.
Summary updated