When Malicious Instructions Persist: Persistent Memory Poisoning Attack on Harness-Based Agents
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Harness design has transformed the development of LLM-based agents by integrating memory, tool use, and runtime control. However, this design also introduces security and privacy risks because malicious instructions from external sources may be written into persistent memory and persist across sessions. To study this risk, we propose PMPA, a Persistent Memory Poisoning Attack against harness-based agents. PMPA embeds malicious instructions into benign external sources and induces the victim agent to write them into persistent memory without directly accessing to the agent framework. Once stored, the poisoned memory can be retrieved in later sessions, triggering additional malicious actions and causing privacy leakage. We evaluate PMPA on OpenClaw and Claude Code across different backbone LLMs, input modalities, and trigger scenarios. Across all settings, PMPA achieves average Injection Success Rate (ISR) and Cross-session Attack Success Rate (C-ASR) of 73.7%/ 55.5% on OpenClaw and 66.9%/ 81.7% on Claude Code, while preserving benign task performance on both systems. We further evaluate a targeted prompt-level defense and find that it can reduce memory injection in many settings, but provides limited protection once the persistent memory has been poisoned.
Key facts. Cited by 1 paper in the map (data through 13 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 24 of its 35 references that are in the map. First posted on arXiv 12 Sep 2026.
Builds on
24 of 35 references.
Closest ancestors · 9
Same direction, newest first
- 2025From Prompt Injections to Protocol Exploits: Threats in LLM-Powered AI Agents Workflows29 Jun
- 2025Unveiling Privacy Risks in LLM Agent Memory17 Feb
- 2024AdvAgent: Controllable Blackbox Red-teaming on Web Agents22 Oct
- 2024EIA: Environmental Injection Attack on Generalist Web Agents for Privacy Leakage17 Sep
- 2024The Emerged Security and Privacy of LLM Agent: A Survey with Case Studies28 Jul
- 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases17 Jul
- 2024BadAgent: Inserting and Activating Backdoor Attacks in LLM Agents5 Jun
- 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents5 Mar
- 2024Watch Out for Your Agents! Investigating Backdoor Threats to LLM-Based Agents17 Feb
Other references · 15
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,502
- 2020Measuring Massive Multitask Language Understandingcited by 7,876
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,798
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,156
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,117
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,541
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,218
- 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,805
- 2023CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Societycited by 1,365
- 2023Mind2Web: Towards a Generalist Agent for the Webcited by 1,222
- 2023HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Facecited by 1,180
- 2023Augmented Language Models: a Surveycited by 403
3 more
- 2025Survey on Evaluation of LLM-based Agentscited by 200
- 2024HiAgent: Hierarchical Working Memory Management for Solving Long-Horizon Agent Tasks with Large Language Modelcited by 102
- 2026Natural-Language Agent Harnessescited by 58
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026Injection-Execution Dissociation: A Mechanistic Evaluation of Persistent Memory Attacks and Defenses in Stateful LLM Agents
- 2026From Untrusted Input to Trusted Memory: A Systematic Study of Memory Poisoning Attacks in LLM Agents
- 2026Bad Memory: Evaluating Prompt Injection Risks from Memory in Agentic Systems
- 2026Zombie Agents: Persistent Control of Self-Evolving LLM Agents via Self-Reinforcing Injections
- 2026MemSecBench: Tracking Agent Memory Poisoning from Persistence to Consequence and Repair
- 2026From Attack Success to Attack Severity: Counterfactual Memory Attacks on LLM Agents
- 2026MAPLE-Guard: Memory-Aware Link Enforcement Against Memory-Link Poisoning in Multi-Agent Systems
- 2026What If Prompt Injection Never Left? Rethinking Agent Security through Cross-Session Stored Prompt Injection