Hijacking Agent Memory: Stealthy Trojan Attacks Through Conversational Interaction
On the map: LLM agents and tool use → Agent threats, guardrails and governance
also in 1 more
Abstract (arXiv)
Large language model (LLM) agents increasingly leverage long-term memory to support persistent and autonomous task execution. However, this capability also introduces a new attack surface: memory poisoning, where adversaries can inject malicious information to influence future behavior. Existing memory poisoning attacks often assume that injected content can be stored directly in memory, overlooking the selective extraction and rewriting stages in modern memory pipelines. This makes prior methods ineffective under realistic settings. In this paper, we propose MemPoison, a novel memory poisoning attack that bypasses selective memory mechanisms in LLM agents, where an attacker can inject triggerable backdoors into the agent's long-term memory through dialogue interactions, thereby misleading its subsequent responses. MemPoison introduces three key components: (i) a semantic relational bridge that binds the trigger and payload into a coherent statement to ensure their co-extraction into memory; (ii) entity masquerading that optimizes triggers to mimic named entities, resisting rewriting; and (iii) joint embedding optimization that shapes trigger-injected texts into a tight cluster in the embedding space while maintaining isolation from benign embeddings for stealth. Evaluations across different agent domains and memory mechanisms show MemPoison achieves attack success rates up to 0.95, outperforming existing baselines. Mechanistic analysis reveals the exploitation of embedding-space anisotropy and attention redistribution, highlighting core vulnerabilities in selective memory systems. We evaluate multiple defense strategies and demonstrate their fundamental limitations in mitigating the attack. We release our code to facilitate further research.
Key facts. Cited by 4 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 32 of its 46 references that are in the map. First posted on arXiv 28 May 2026.
Builds on
32 of 46 references.
Closest ancestors · 5
Same direction, newest first
- 2026Evo-Attacker: Memory-Augmented Reinforcement Learning for Long-Horizon Tool Attacks on LLM-MAS25 May
- 2026Hidden in Memory: Sleeper Memory Poisoning in LLM Agents14 May
- 2026AgentLAB: Benchmarking LLM Agents against Long-Horizon Attacks18 Feb
- 2025MemoryGraft: Persistent Compromise of LLM Agents via Poisoned Experience Retrieval18 Dec
- 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases17 Jul
Other references · 27
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,800
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
- 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,216
- 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,203
- 2025A-MEM: Agentic Memory for LLM Agentscited by 1,000
- 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 973
- 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 846
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 656
15 more
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 608
- 2021FinQA: A Dataset of Numerical Reasoning over Financial Datacited by 552
- 2021Large Dual Encoders Are Generalizable Retrieverscited by 454
- 2023Detecting Language Model Attacks with Perplexitycited by 411
- 2025From LLM Reasoning to Autonomous AI Agents: A Comprehensive Reviewcited by 146
- 2025On Memory Construction and Retrieval for Personalized Conversational Agentscited by 101
- 2024JailbreakRadar: Comprehensive Assessment of Jailbreak Attacks Against LLMscited by 87
- 2025MemInsight: Autonomous Memory Augmentation for LLM Agentscited by 84
- 2023A Multi-Task Embedder For Retrieval Augmented LLMscited by 63
- 2024SelfDefend: LLMs Can Defend Themselves against Jailbreaking in a Practical Mannercited by 57
- 2024Phantom: General Backdoor Attacks on Retrieval Augmented Language Generationcited by 46
- 2025Topic-FlipRAG: Topic-Orientated Adversarial Opinion Manipulation Attacks to Retrieval-Augmented Generation Modelscited by 32
- 2024DriVLMe: Enhancing LLM-based Autonomous Driving Agents with Embodied and Social Experiencescited by 27
- 2024GASLITEing the Retrieval: Exploring Vulnerabilities in Dense Embedding-based Searchcited by 20
- 2025MIRIAD: Augmenting LLMs with millions of medical query-response pairscited by 8
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Securing LLM-Agent Long-Term Memory Against Poisoning: Non-Malleable, Origin-Bound Authority with Machine-Checked Guaranteescited by 14
- 2026MAP-Graph: Provenance-Aware Shared Memory for Multi-Agent Workflowscited by 7
- 2026The Horizon Gap: Planning, Memory, Execution, Training, and Evaluation for Long-Horizon LLM Agentscited by 1
- 2026Authorization Before Context: A Model-Neutral Audience Boundary Against Cross-Audience Memory Leakage in Agentic Systemscited by 1
- 2026Authorization Before Context: A Model-Neutral Audience Boundary Against Cross-Audience Memory Leakage in Agentic Systems17 Aug 2026
- 2026MAP-Graph: Provenance-Aware Shared Memory for Multi-Agent Workflows11 Aug 2026
- 2026The Horizon Gap: Planning, Memory, Execution, Training, and Evaluation for Long-Horizon LLM Agents7 Aug 2026
- 2026Securing LLM-Agent Long-Term Memory Against Poisoning: Non-Malleable, Origin-Bound Authority with Machine-Checked Guarantees23 Jun 2026
Similar, not cited
Close in wording, no citation either way
- 2026When Agents Remember Too Much: Memory Poisoning Attacks on Large Language Model Agents
- 2026From Untrusted Input to Trusted Memory: A Systematic Study of Memory Poisoning Attacks in LLM Agents
- 2025Memory Injection Attacks on LLM Agents via Query-Only Interaction
- 2026MemEvoBench: Benchmarking Safety Risks from Memory Misevolution in LLM Agents
- 2026MemAudit: Post-hoc Auditing of Poisoned Agent Memory via Causal Attribution and Structural Anomaly Detection
- 2025Unveiling Privacy Risks in LLM Agent Memory
- 2026MemVenom: Triggered Poisoning of Multimodal Memories in Web Agents
- 2026OEP: Poisoning Self-Evolving LLM Agents via Locally Correct but Non-Transferable Experiences