Stateful backdoor lets LLM agents persist malicious behavior across sessions
A stateful backdoor can achieve 80%-95% success across multiple LLM agents over several sessions
Security & privacy arXiv 7 May 2026 Attack Prototype evidence
Published as “Stateful Agent Backdoor”
Why it matters
Stateful backdoors can bypass session-level permission isolation, allowing multi-phase data exfiltration that current defenses for stateless attacks do not address.
Summary
The stateful agent backdoor achieves an attack success rate of 80%-95% across four LLM agents, demonstrating that a single trigger can drive multi-session malicious behavior. Evidence comes from end-to-end episodes (20 per model) and per-transition tests (50 trials each) with reported confidence intervals, though no baseline comparisons are provided.
Caveats 5
- False positive rates at the exfiltration stage are up to 5%, and at the data-collection stage reach 25% for Qwen2.5-7B.
- In the branch-and-merge variant, ASR drops to 70% for Qwen2.5-14B with a 35% false-positive collection rate.
- Per-step attrition reduces overall ASR; e.g., Llama-3.1-8B loses 10% at the collect step.
- A stateful backdoor requires the persistent component to satisfy three properties: read/write capability, cross-session consistency, and accessibility across sessions with heterogeneous tool configurations.
- To successfully complete the attack flow, all sub-backdoors must be properly trained, as undertraining or overfitting any single sub-backdoor can reduce the overall ASR.
What’s new here 4
- Enables backdoor behavior to persist and evolve across multiple agent sessions using persistent components.
- Models the attack as a Mealy machine, allowing formal decomposition into independent per-transition sub-backdoors.
- Provides a data-construction framework that generates independent single-session trajectories for each transition.
- Demonstrates extensibility with alternative topologies (branch-and-merge) and different persistent tools (note tool).