mlsanityData to 7 Oct 2026

When Agents Remember Too Much: Memory Poisoning Attacks on Large Language Model Agents

arXiv 2607.06595 ↗First posted 6 Jul 2026cs.CR cs.AIcited by 3

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

Abstract (arXiv)

Personal AI agents powered by large language models can reason and act using available tools to access emails, manage calendars, and push code to remote repositories, all with minimal oversight. When augmented with long-term memory, an agent can recall specific details relevant to the current task, reducing the need for large context windows. Currently, long-term memory agents tend to fall into two distinct domains: conversational and action-planning agents. Personal assistant agents sit at the convergence of these two domains and handle sensitive information while interacting with untrusted information sources, creating previously unaccounted security vulnerabilities. In this work, we introduce the novel attack vector, GhostWriter, which exploits current memory subsystems in tool-using personal agents to poison their memory store. GhostWriter operates in two phases: injection, where an adversary sends a hidden attack payload to the target agent; and activation, in which the poisoned memory is retrieved. We show that GhostWriter achieves near-universal injection rates of approximately 98% and a high average activation rate of approximately 60% against state-of-the-art agents. This attack is possible due to the lack of security-focused memory governance. In response, we propose Agentic Memory Sentry (AM-Sentry), which leverages two mitigation techniques: a memory-saving policy and a memory-retrieval screen. Our experiments show that AM-Sentry dramatically reduces GhostWriter's success rate while preserving agent utility.

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

Builds on

29 of 38 references.

Closest ancestors · 6

Same direction, newest first

  1. 2026Zombie Agents: Persistent Control of Self-Evolving LLM Agents via Self-Reinforcing Injections17 Feb
  2. 2025MemoryGraft: Persistent Compromise of LLM Agents via Poisoned Experience Retrieval18 Dec
  3. 2025A-MemGuard: A Proactive Defense Framework for LLM-Based Agent Memory29 Sep
  4. 2025PromptArmor: Simple yet Effective Prompt Injection Defenses21 Jul
  5. 2025Memory Injection Attacks on LLM Agents via Query-Only Interaction5 Mar
  6. 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases17 Jul

Other references · 23

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  3. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  4. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  5. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  6. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  7. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
  8. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
  9. 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
  10. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
  11. 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,422
  12. 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
11 more
  1. 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,197
  2. 2025A-MEM: Agentic Memory for LLM Agentscited by 1,000
  3. 2023ExpeL: LLM Agents Are Experiential Learnerscited by 814
  4. 2024Evaluating Very Long-Term Conversational Memory of LLM Agentscited by 800
  5. 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 722
  6. 2023C-Pack: Packed Resources For General Chinese Embeddingscited by 556
  7. 2025Memory OS of AI Agentcited by 140
  8. 2023OpenAgents: An Open Platform for Language Agents in the Wildcited by 136
  9. 2024RAP: Retrieval-Augmented Planning with Contextual Memory for Multimodal LLM Agentscited by 80
  10. 2025Defending Against Prompt Injection with DataFiltercited by 30
  11. 2026Adaptive Memory Admission Control for LLM Agentscited by 19

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Hidden in Memory: Sleeper Memory Poisoning in LLM Agents
  2. 2026Hijacking Agent Memory: Stealthy Trojan Attacks Through Conversational Interaction
  3. 2026From Untrusted Input to Trusted Memory: A Systematic Study of Memory Poisoning Attacks in LLM Agents
  4. 2026Bad Memory: Evaluating Prompt Injection Risks from Memory in Agentic Systems
  5. 2026When Claws Remember but Do Not Tell: Stealthy Memory Injection in Persistent Personal Agents
  6. 2026Memory poisoning and secure multi-agent systems
  7. 2025Context manipulation attacks : Web agents are susceptible to corrupted memory
  8. 2025Unveiling Privacy Risks in LLM Agent Memory