InjecMEM: Memory Injection Attack on LLM Agent Memory Systems
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Memory is becoming a default subsystem in deployed LLM agents to provide persistent personalization and continuity. This naturally prompts a question: will memory system introduce new vulnerabilities into agents? Thus we propose InjecMEM, a novel memory injection attack paradigm that requires only a single interaction (no read/edit access to memory store) to steer later responses of related queries toward a pre-specified output. Guided by the retrieval-then-generate mechanism of memory systems, we craft the injection with a retriever-agnostic anchor and an adversarial command. The anchor contains high-recall topical cues so that downstream retrieval consistently associates the record with the target topic. The command is a short sequence optimized to remain effective under uncertain fused contexts, variable placements, and long prompts so that it reliably steers outputs once retrieved. We learn the command via gradient-based coordinate search, averaging over synthetic prompt templates and insertion positions, and extend it to joint optimization across backbones to study transfer. Evaluated across multiple memory systems and backbone models, InjecMEM achieves reliable topic-conditioned retrieval and targeted generation, remains effective under memory drift, and leaves non-target queries unaffected. Our results underscore the need to harden memory systems and provide a reproducible framework for studying agent memory.
Key facts. Cited by 4 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 33 of its 38 references that are in the map. First posted on arXiv 24 Aug 2026.
Builds on
33 of 38 references.
Closest ancestors · 5
Same direction, newest first
- 2026Zombie Agents: Persistent Control of Self-Evolving LLM Agents via Self-Reinforcing Injections17 Feb
- 2025Memory Injection Attacks on LLM Agents via Query-Only Interaction5 Mar
- 2025Unveiling Privacy Risks in LLM Agent Memory17 Feb
- 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases17 Jul
- 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents5 Mar
Other references · 28
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,389
- 2025A-MEM: Agentic Memory for LLM Agentscited by 1,063
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
- 2024WildChat: 1M ChatGPT Interaction Logs in the Wildcited by 629
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 605
- 2023MemoryBank: Enhancing Large Language Models with Long-Term Memorycited by 556
16 more
- 2023Detecting Language Model Attacks with Perplexitycited by 431
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 364
- 2024Personal LLM Agents: Insights and Survey about the Capability, Efficiency and Securitycited by 260
- 2024Agent Hospital: A Simulacrum of Hospital with Evolvable Medical Agentscited by 218
- 2023FinMem: A Performance-Enhanced LLM Trading Agent with Layered Memory and Character Designcited by 164
- 2024The Good and The Bad: Exploring Privacy Issues in Retrieval-Augmented Generation (RAG)cited by 159
- 2025Memory OS of AI Agentcited by 150
- 2023Conversational Health Agents: A Personalized LLM-Powered Agent Frameworkcited by 92
- 2024EHRAgent: Code Empowers Large Language Models for Few-shot Complex Tabular Reasoning on Electronic Health Recordscited by 78
- 2024Follow My Instruction and Spill the Beans: Scalable Data Extraction from Retrieval-Augmented Generation Systemscited by 76
- 2023Think-in-Memory: Recalling and Post-thinking Enable LLMs with Long-Term Memorycited by 64
- 2025PromptShield: Deployable Detection for Prompt Injection Attackscited by 50
- 2025Defending Against Prompt Injection with DataFiltercited by 35
- 2025Silent Leaks: Implicit Knowledge Extraction Attack on RAG Systems through Benign Queriescited by 19
- 2024Pirates of the RAG: Adaptively Attacking LLMs to Leak Knowledge Basescited by 18
- 2024ReALM: Reference Resolution As Language Modelingcited by 7
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026What It Costs to Compose, Rebuild, and Correct Precomputed Memorycited by 1
- 2026From Attack Success to Attack Severity: Counterfactual Memory Attacks on LLM Agentscited by 0
- 2026Share-Borne AI Virus: Memory-Hopping Attacks Across LLM Agentscited by 0
- 2026From Acoustic Sensing to Physical Actions: A Comprehensive Survey of Security Risks in Edge-Deployed Audio LLM-Based Agentscited by 0
- 2026From Acoustic Sensing to Physical Actions: A Comprehensive Survey of Security Risks in Edge-Deployed Audio LLM-Based Agents11 Oct 2026
- 2026Share-Borne AI Virus: Memory-Hopping Attacks Across LLM Agents28 Sep 2026
- 2026From Attack Success to Attack Severity: Counterfactual Memory Attacks on LLM Agents28 Sep 2026
- 2026What It Costs to Compose, Rebuild, and Correct Precomputed Memory31 Aug 2026
Similar, not cited
Close in wording, no citation either way
- 2025MemoryGraft: Persistent Compromise of LLM Agents via Poisoned Experience Retrieval
- 2026SMSR: Certified Defence Against Runtime Memory Poisoning in Persistent LLM Agent Systems
- 2026Hidden in Memory: Sleeper Memory Poisoning in LLM Agents
- 2026From Untrusted Input to Trusted Memory: A Systematic Study of Memory Poisoning Attacks in LLM Agents
- 2026MIND: Lightweight and Effective Memory Injection Defense for LLM Agents via Intent-Aware Information Bottleneck
- 2026MemGym: a Long-Horizon Memory Environment for LLM Agents
- 2026MemEvoBench: Benchmarking Safety Risks from Memory Misevolution in LLM Agents
- 2026ElasticMem: Latent Memory as a Learnable Resource for LLM Agents