Trojan Hippo Bench: A Dynamic Benchmark for Persistent Memory Attacks and Defenses in LLM Agents
Open Access
- 14 November 2026
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 79-90
Abstract
Memory systems enable otherwise-stateless LLM agents to persist user information across sessions, but also introduce a new attack surface. The Trojan Hippo attack is a class of persistent memory attacks that operates under a more realistic threat model than prior memory poisoning work. The attacker plants a dormant payload into an agent’s long-term memory via a single untrusted tool call (e.g., a crafted email), which activates only when the user later discusses sensitive topics such as finance, health, or identity, and exfiltrates high-value personal data to the attacker. While anecdotal demonstrations of such attacks have appeared against deployed systems, no prior work systematically evaluates them across heterogeneous memory architectures and defenses. We introduce Trojan Hippo Bench, a dynamic evaluation framework for persistent memory attacks and memory-layer defenses, comprising two components: (1) an OpenEvolve-based [54] adaptive red-teaming benchmark that stress-tests defenses and memory backends against continuously refined attacks, and (2) a capability-aware security–utility analysis for persistent memory systems, enabling principled reasoning about defense deployment across different usage profiles. Instantiated on an email assistant across four memory backends (explicit tool memory, agentic memory, RAG, and sliding-window context), the undefended Trojan Hippo attack achieves up to 85–100% attack success rate (ASR) against current frontier models from OpenAI and Google, with planted memories successfully activating even after 100 benign sessions. We evaluate four memory-system defenses inspired by basic security principles; they reduce attack success to as low as 0–5%, but at utility costs that vary widely with the task mix. Effective real-world deployment thus remains an open challenge that Trojan Hippo Bench is built to study; we release it to support reuse and extension.Keywords
This publication has 19 references indexed in Scilit:
- Large language models as mental health resources: Patterns of use in the United States.Practice Innovations, 2026
- Securing Agentic AI: A Comprehensive Threat Model and Mitigation Framework for Generative AI Agents2025
- SpAIware: Uncovering a novel artificial intelligence attack vector through persistent memory in LLM applications and agentsFuture Generation Computer Systems, 2025
- AI Agents Under Threat: A Survey of Key Security Challenges and Future PathwaysACM Computing Surveys, 2025
- Not What You've Signed Up For: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection2023
- Generative Agents: Interactive Simulacra of Human Behavior2023
- Language-based information-flow securityIEEE Journal on Selected Areas in Communications, 2003
- Security Policies and Security Models1982
- A lattice model of secure information flowCommunications of the ACM, 1976
- The protection of information in computer systemsProceedings of the IEEE, 1975