After the Attacker Leaves: Benchmarking Carryover Attacks on LLM Agents
Zhiyue Xu, Xukai Wang, Zhiyuan Huang, Mingjie Zhan, Jian Zhao, Xu-Yao Zhang
Abstract
Modern LLM agents persist state across sessions via two channels: long-lived memory files silently prepended to the system prompt, and scheduled tasks waking the agent without user input. A one-time indirect prompt injection committed to either channel can re-fire across sessions long after the attacker leaves, threats we term carryover attacks. Existing prompt-injection benchmarks evaluate attacks only in the session where malicious content is first observed, leaving the gate governing when and how often a planted payload later re-fires unmeasured. We present CarryoverBench: 12 personal-assistant scenarios and 101 attack tasks across three trigger channels: Instant, same-turn IPI; Autonomous, heartbeat-scheduled; and Latent, memory-resurfaced. A rule-based verifier scores planting and triggering as independent stages. Across five frontier models, planted payloads re-fire without measurable decay over five rounds; conditional on successful planting, the trigger stage often provides little additional protection. Porting the Latent channel to a second runtime, Hermes, attenuates but does not eliminate the effect, suggesting that carryover defense requires runtime-layer controls in addition to prompt-level interventions.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI
- Comments
- Accepted by EMNLP 2026 Main Conference
Related papers
AgentPhishing: A Benchmark of LLM Email Agents Under Adaptive Attack
Shared title terminologycs.CRJustin Tan, Miao Li, Ding Zhao
Benchmarking Web Agent Defenses Against Adaptive Visual Prompt Injection
Shared title terminologycs.CRHaichuan Zhang, Zhiyuan Zhong, Shih-Chieh Dai et al.
Who Grades the Agent? Privilege Separation for Coding-Agent Benchmarks
Shared title terminologycs.CRNathan Nour Houlamy, Mattia Favretto, Earlence Fernandes et al.
VisualJevBench: A Benchmark and Black-Box Attacks for Visual Typed Decision Models
Shared title terminologycs.CRLi Zeng, Yeqi Zeng, Hengkai Liang et al.
Attacks and Defenses in Decentralized Multi-Agent Systems with Hop-by-Hop Task Decomposition and Delegation
Shared title terminologycs.CRMatthew D. Laws, Maria Lazou, Alina Oprea et al.
SentryBench: A Cost-Sensitive Benchmark for Adversarial Robustness of Tool-Using LLM Agents in Public-Safety Deployments
Shared title terminologycs.CRMd Abu Yusuf, Oyshi Tabassum Aditi, Md Faysal Hosain Mazed