MemoryDojo: Benchmarking Poisoning Through LLM Agent Memory

David H. Yang (Rensselaer Polytechnic Institute) with Blake Bullwinkel, Amanda Minnich and Giorgio Severi (Microsoft) and Mohammad Mohammadi Amiri (RPI) introduce MemoryDojo, a benchmark that traces a poisoned instruction from the session where it enters agent memory to the later sessions where it changes behavior.
Ask this paper
Benchmark. 155 multi-session, long-horizon trajectories across four domains, with five memory systems plugged in: A-MEM, Graphiti, Letta, Mem0 and Memora.
Lifecycle metrics. Each stage is measured separately: whether the poison is written to memory, how it persists and propagates, whether it is retrieved, and whether it changes later actions.
Findings. A single poisoned observation can change behavior in later sessions. Every memory system tested is vulnerable, with large differences in retrieval, propagation and downstream effect.
Optimization. A memory-aware poison optimization that refines the payload in an auxiliary environment raises attack success by about 2% to 31%, depending on the memory system.
Abstract
LLM agents benefit from using memory systems to improve performance on long-horizon, multi-session tasks. However, memory introduces a critical attack surface. Malicious instructions encountered in one session may be stored and propagated through memory before being retrieved and acted upon in later sessions. Because memory systems differ in how they process and retrieve information, the downstream effects of poisoning can vary significantly across systems. To quantify the effects of poisoning across different memory architectures, we introduce MemoryDojo, a benchmark for tracing the lifecycle of poisoned information through agent memory and measuring its influence on subsequent agent behavior. MemoryDojo is easily extensible, consists of 155 multi-session long-horizon trajectories covering four domains, and supports five different memory systems. Through our evaluation, we find that all memory systems are susceptible to memory poisoning, with substantial variation in downstream effects. We further propose a memory-aware poison optimization process that increases the poisoning efficacy, highlighting differences between memory architectures. We hope that MemoryDojo will support research on understanding and mitigating agentic memory risks.