mlsanityData to 7 Oct 2026

Hijacking Agent Memory: Stealthy Trojan Attacks Through Conversational Interaction

arXiv 2605.29960 ↗First posted 28 May 2026cs.CR cs.AIcited by 4

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

  1. 2026Evo-Attacker: Memory-Augmented Reinforcement Learning for Long-Horizon Tool Attacks on LLM-MAS25 May
  2. 2026Hidden in Memory: Sleeper Memory Poisoning in LLM Agents14 May
  3. 2026AgentLAB: Benchmarking LLM Agents against Long-Horizon Attacks18 Feb
  4. 2025MemoryGraft: Persistent Compromise of LLM Agents via Poisoned Experience Retrieval18 Dec
  5. 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases17 Jul

Other references · 27

  1. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  2. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
  3. 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,800
  4. 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
  5. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
  6. 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
  7. 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,216
  8. 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,203
  9. 2025A-MEM: Agentic Memory for LLM Agentscited by 1,000
  10. 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 973
  11. 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 846
  12. 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 656
15 more
  1. 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 608
  2. 2021FinQA: A Dataset of Numerical Reasoning over Financial Datacited by 552
  3. 2021Large Dual Encoders Are Generalizable Retrieverscited by 454
  4. 2023Detecting Language Model Attacks with Perplexitycited by 411
  5. 2025From LLM Reasoning to Autonomous AI Agents: A Comprehensive Reviewcited by 146
  6. 2025On Memory Construction and Retrieval for Personalized Conversational Agentscited by 101
  7. 2024JailbreakRadar: Comprehensive Assessment of Jailbreak Attacks Against LLMscited by 87
  8. 2025MemInsight: Autonomous Memory Augmentation for LLM Agentscited by 84
  9. 2023A Multi-Task Embedder For Retrieval Augmented LLMscited by 63
  10. 2024SelfDefend: LLMs Can Defend Themselves against Jailbreaking in a Practical Mannercited by 57
  11. 2024Phantom: General Backdoor Attacks on Retrieval Augmented Language Generationcited by 46
  12. 2025Topic-FlipRAG: Topic-Orientated Adversarial Opinion Manipulation Attacks to Retrieval-Augmented Generation Modelscited by 32
  13. 2024DriVLMe: Enhancing LLM-based Autonomous Driving Agents with Embodied and Social Experiencescited by 27
  14. 2024GASLITEing the Retrieval: Exploring Vulnerabilities in Dense Embedding-based Searchcited by 20
  15. 2025MIRIAD: Augmenting LLMs with millions of medical query-response pairscited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 4.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026When Agents Remember Too Much: Memory Poisoning Attacks on Large Language Model Agents
  2. 2026From Untrusted Input to Trusted Memory: A Systematic Study of Memory Poisoning Attacks in LLM Agents
  3. 2025Memory Injection Attacks on LLM Agents via Query-Only Interaction
  4. 2026MemEvoBench: Benchmarking Safety Risks from Memory Misevolution in LLM Agents
  5. 2026MemAudit: Post-hoc Auditing of Poisoned Agent Memory via Causal Attribution and Structural Anomaly Detection
  6. 2025Unveiling Privacy Risks in LLM Agent Memory
  7. 2026MemVenom: Triggered Poisoning of Multimodal Memories in Web Agents
  8. 2026OEP: Poisoning Self-Evolving LLM Agents via Locally Correct but Non-Transferable Experiences