mlsanityData to 14 Oct 2026

Bad Memory: Evaluating Prompt Injection Risks from Memory in Agentic Systems

arXiv 2607.14611 ↗First posted 16 Jul 2026cs.CR cs.AI cs.MAcited by 6

On the map: LLM agents and tool use → Agent threats, guardrails and governance

also in 1 more
Abstract (arXiv)

A growing class of agentic systems maintain persistent state across sessions through memory files, behavioral preferences, and knowledge bases. While this makes agents more useful and self-improving, it also creates a new attack surface for prompt injections in which malicious instructions can be embedded within persistent files and influence future behavior. In this work, we study prompt injection attacks in memory-based agentic systems using a sandboxed synthetic workspace. We evaluate two agentic systems, Anthropic Claude Code and OpenAI Codex, across four models: Claude Haiku 4.5, Claude Opus 4.7, GPT-5.2, and GPT-5.5. Our results show that although it is difficult to make an agent overwrite its own memory files using untrusted external content, payloads already planted in those files can successfully attack current and future sessions. Attack success and payload persistence vary substantially across systems, models, adversarial goals, and multi-session attack sequences. These findings show that persistent memory changes the threat model for prompt injection and motivate defenses that protect memory updates without removing useful agent adaptation.

Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 8 of its 33 references that are in the map. First posted on arXiv 16 Jul 2026.

Builds on

8 of 33 references.

Closest ancestors · 1

Same direction, newest first

  1. 2026Zombie Agents: Persistent Control of Self-Evolving LLM Agents via Self-Reinforcing Injections17 Feb

Other references · 7

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  2. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
  3. 2023A Survey on Large Language Model based Autonomous Agentscited by 2,242
  4. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
  5. 2024Great, Now Write an Article About That: The Crescendo Multi-Turn LLM Jailbreak Attackcited by 390
  6. 2024Neural Exec: Learning (and Learning from) Execution Triggers for Prompt Injection Attackscited by 85
  7. 2026From Recall to Forgetting: Benchmarking Long-Term Memory for Personalized Agentscited by 36

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 6.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026From Untrusted Input to Trusted Memory: A Systematic Study of Memory Poisoning Attacks in LLM Agents
  2. 2026What If Prompt Injection Never Left? Rethinking Agent Security through Cross-Session Stored Prompt Injection
  3. 2026MemSentry: A Framework for Detecting Persistent Memory Poisoning in Agentic AI
  4. 2026Injection-Execution Dissociation: A Mechanistic Evaluation of Persistent Memory Attacks and Defenses in Stateful LLM Agents
  5. 2026MemSecBench: Tracking Agent Memory Poisoning from Persistence to Consequence and Repair
  6. 2026AgentSys: Secure and Dynamic LLM Agents Through Explicit Hierarchical Memory Management
  7. 2026When Agents Remember Too Much: Memory Poisoning Attacks on Large Language Model Agents
  8. 2025MemoryGraft: Persistent Compromise of LLM Agents via Poisoned Experience Retrieval