When Malicious Instructions Persist: Persistent Memory Poisoning Attack on Harness-Based Agents

📅 2026-09-12
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
研究针对基于框架的代理提出了持续性内存中毒攻击PMPA,通过将恶意指令嵌入良性外部源来解决安全和隐私风险问题。
📝 Abstract
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.
Problem

Research questions and friction points this paper is trying to address.

Persistent Memory Poisoning
Harness-based Agents
Security Risks
Privacy Leakage
Malicious Instructions
Innovation

Methods, ideas, or system contributions that make the work stand out.

Persistent Memory Poisoning Attack
Harness-based Agents
Injection Success Rate
Cross-session Attack Success Rate
🔎 Similar Papers
No similar papers found.