Zombie Agent: Persistent Control of Self-Evolving LLM Agents via Self-Reinforcing InjectionZombie Agents: Persistent Control of Self-Evolving LLM Agents via Self-Reinforcing Injections
Translation in progress — untranslated text is omitted.
The paper formalizes a persistent attack called Zombie Agent, where an attacker, merely by leveraging web content they control, can cause a self-evolving LLM agent to write malicious payloads into long-term memory, which are then retrieved and triggered in subsequent unrelated sessions. The attack is divided into two phases: infection and trigger. For two types of memory implementations, sliding window and RAG, recursive self-replication and semantic alias strategies are respectively designed to counter truncation and relevance filtering. On Gemini-2.5-Flash and GLM-4.7-Flash, the payload retention rate for sliding window memory is 100%, and RAG memory writes about 240 payload copies, approximately 2.5 times the baseline; under three prompt-level defenses—Sandwich, Instructional, and Spotlight—the attack success rate remains above 60%. The authors therefore argue that single-session prompt filtering alone is insufficient to protect self-evolving agents, and that memory writing and retrieval should be included in the trusted computing base.
- Self-evolving LLM agents write conversational observations to long-term memory and reuse them across sessions. Once an untrusted webpage is stored as memory, it may later be treated as instructions, causing a single indirect injection to drive unauthorized tool behavior even after the original context disappears. The authors argue that session-only prompt filtering is insufficient.
- The attack is named Zombie Agent, black-box, with only indirect exposure through the attacker's webpage. During infection, a benign task reads in the payload, which is written via normal memory updates; later, an unrelated task retrieves the payload and triggers unauthorized actions. The sliding window uses self-replication to counter truncation, and RAG relies on semantic aliasing to increase Top-K hits for unrelated queries.
- Evaluated on Gemini-2.5-Flash and GLM-4.7-Flash with two memory types, but the figures do not indicate which model the numbers belong to. The authors report sliding window payload retention of 100%, baseline 0 after truncation; RAG copies ~240 vs baseline ~100. ASR for three instruction defenses on RAG still >60%.
- The paper does not have a limitations section. The Conclusion calls for evaluating memory-side defenses under adaptive attackers and clarifying which designs and tool permissions are more likely to enable persistent compromise. The experiments use two models, two memory types, and three instruction defenses; the model attribution for the numbers in the figures is not reported, and quantitative benign utility results are not reported.
The paper provides a complete attack chain for cross-session persistent injection and persistence data on two types of memory architectures, which can be used to assess protection gaps in the memory writing stage.
Related events and news
0 events · 1 news mentions
News that mentions this paper
- OpenAI Alignment Researchcites the paper's id or linkOpenAI 披露可自我复制的提示注入,基于 GPT-5.4-mini 与 GPT-5.5 内部检查点
Yang, X., et al. (2026).Zombie Agents: Persistent Control of Self-Evolving LLM Agents via Self-Reinforcing Injections.