New to ShortSpan? We distil the AI-security research that matters into practitioner takeaways — edited by Ben Williams (NCC Group). Get the weekly email
// Analysis

Benign memories combine to jailbreak self-evolving agents

Agents
Benign memories combine to jailbreak self-evolving agents

New research shows self-evolving LLM agents can be steered into unsafe behaviour by stacking individually harmless memories across sessions. The EvoBreak attack observes what the agent distils, adds complementary benign experiences, then reformulates the final request to trigger them together. It beats prior attacks while looking clean, exposing a persistent agent-memory risk.

Vendors love “self-improving” agents that remember past interactions and get better over time. This paper asks the obvious security question: what happens when the memories are harmless alone but dangerous together? The answer is predictable but important. Self-evolving Large Language Model (LLM) agents can be pushed over their safety line by composing benign experiences saved across sessions.

How the attack works

The authors introduce EvoBreak, a sequential attack that never writes anything overtly malicious. The attacker submits a run of innocuous tasks, watches which fragments of “experience” the agent distils, and then plans the next tasks to fill the gaps. Once enough complementary pieces are banked, the attacker rewrites the real, safety-sensitive request so it aligns with those stored experiences. The agent then activates multiple benign memories at once and complies where it would normally refuse.

No single memory looks bad. There is no direct memory poisoning, no obvious jailbreak record, and no privileged access. The model simply reuses what it learned. If your platform exposes experience logs for debugging, read-only visibility is enough for an adversary to iteratively steer the accumulation.

To train and test this, the paper builds BreakGym, which synthesises decomposable safety targets across domains such as privacy, fraud, chemical, cyber, violence, and sexual content, with different dependency structures. EvoBreak is optimised in two stages: rejection-sampling supervised fine-tuning from successful benign Trajectory" target="_blank" rel="noopener" class="term-link">trajectories, then a hint-guided policy optimisation step to explore sparse rewards.

Across two self-evolving frameworks, multiple model backbones, and varied pre-evolution domains (maths, code, general reasoning), EvoBreak posts an average 86.12% attack success rate, 24.19 percentage points above the strongest baseline, while maintaining high benignness. Ablations show the experience-aware replanning and the blend of experience acquisition with target reformulation are doing the heavy lifting. Success typically depends on multiple retained experiences being available together, which is the whole point.

So what? If you ship agents that retain and reuse experiences across sessions, you have a slow-burn attack surface that does not rely on obvious prompt injection or corrupt records. It is compatible with heterogeneous agent designs because the attacker adapts to whatever the victim actually distils.

There are caveats. The threat model is grey-box and assumes the attacker can see distilled experiences. Training leans on synthetic scaffolds and hints that are not present at inference. Results depend on the chosen frameworks and LLM-based evaluators. Still, the core finding is hard to wave away: per-record sanitisation is not enough when risk emerges from composition. The open questions now are about memory governance, cross-session auditing, and how to attribute responsibility when nothing looks wrong in isolation. Watch this space.

Additional analysis of the original ArXiv paper

📋 Original Paper Title and Abstract

Benign Alone, Harmful Together: Exploiting Experience Composition in Self-Evolving LLM Agents

Authors: Bingyu Yan, Xiaoming Zhang, Chaozhuo Li, Ziyi Zhou, Yirui Qi, and Litian Zhang
Self-evolving large language model agents improve their capabilities by distilling interaction trajectories into persistent experiences. Yet this mechanism introduces a new safety risk: experiences that are benign in isolation may jointly weaken an agent's safety boundary when accumulated and reused across sessions. Existing memory attacks typically require direct memory access or induce explicitly malicious records, limiting their stealthiness and applicability. We propose EvoBreak, an experience-conditioned sequential attack that operates through individually benign attack-stage tasks and induced experiences. EvoBreak repeatedly observes the experiences distilled by the victim, identifies uncovered target-relevant requirements, and adaptively acquires complementary experiences before reformulating the final query to activate them jointly. To support training, we introduce BreakGym, a structure-first synthesis pipeline that generates decomposable safety-sensitive targets with diverse dependency structures. EvoBreak is optimized using rejection-sampling supervised fine-tuning and Hint-guided GRPO. Experiments across self-evolving frameworks, victim backbones, pre-evolution domains, and safety benchmarks demonstrate that EvoBreak consistently outperforms existing attacks while maintaining high benignness. These results reveal benign experience composition as a persistent attack surface in self-evolving agents.

🔍 ShortSpan Analysis of the Paper

Problem

This paper studies a novel safety risk in self-evolving large language model agents that persistently distil interaction trajectories into reusable experiences. The central concern is that individually benign experiences, when accumulated and reused across sessions, can jointly weaken an agent's refusal behaviour and safety boundary. This attack surface differs from prior memory attacks because it operates without direct write access and without producing overtly malicious records, making attacks stealthier and applicable in more realistic settings.

Approach

The authors propose EvoBreak, an experience-conditioned sequential attack that adaptively submits benign tasks, observes the victim's distilled experiences, and replans to acquire complementary experiences until sufficient coverage is reached. EvoBreak then reformulates the safety-sensitive target query to align with the accumulated experiences so that they are jointly activated. To train and evaluate this approach they introduce BreakGym, a structure-first synthesis pipeline that generates decomposable safety-sensitive targets by sampling decomposition principles (knowledge, procedural, constraint, functional), composition topologies (sequential, parallel, hierarchical, conditional), and safety domains (privacy, fraud, chemical, cyber, violence, sexual). Training uses a two-stage cascaded workflow: rejection-sampling supervised fine-tuning to learn from successful benign trajectories, followed by Hint-guided Group Relative Policy Optimisation to improve exploration under sparse trajectory-level rewards using training-time hints derived from BreakGym scaffolds. Evaluation uses two self-evolving frameworks and multiple victim backbones, pre-evolution domains, and safety benchmarks, measuring Attack Success Rate and Benignness.

Key Findings

  • EvoBreak achieves consistently stronger attack performance than state-of-the-art baselines across settings, with an overall average Attack Success Rate of 86.12%, outperforming the strongest baseline by 24.19 percentage points.
  • EvoBreak maintains high benignness while remaining effective; its design and training explicitly filter and reward benign intermediate interactions, yielding a superior effectiveness–benignness trade-off compared with query-level jailbreaks and direct memory-poisoning attacks.
  • The attack is robust to heterogeneous self-evolution mechanisms, victim model backbones, and diverse pre-evolution memories: it works on both evaluated frameworks and across mathematics, code, and general-reasoning pre-evolution domains.
  • Ablations show that experience-conditioned replanning, the combination of experience acquisition and target reformulation, and the two-stage optimisation pipeline each materially contribute to success.
  • Experiments manipulating the fraction of retained attack experiences indicate that success typically requires joint availability of multiple induced experiences rather than a single decisive memory, confirming that benign composition underlies the attack effect.

Limitations

The attack model assumes a grey-box adversary that can submit tasks and read the experiences distilled from those interactions but cannot directly edit the memory, system prompt, or extraction mechanism. Training relies on synthetic latent scaffolds and a training-time hint critic that are unavailable at inference. Evaluation uses specific agent frameworks, model backbones, pre-evolution domains, and LLM-based evaluators, so results reflect those experimental conditions and the chosen benignness auditor.

Implications

Offensively, an adversary with only query submission and read-only observability can stealthily erode an agent's safety by sequentially inducing harmless-looking experiences that, when composed, enable harmful compliance to a later safety-sensitive request. Because EvoBreak adapts to the victim's actual distilled experiences and reformulates the final query to activate them jointly, such attacks can succeed across different agent architectures and background memories without privileged access. This reveals a persistent attack surface in systems that reuse internal experiences across sessions and highlights how compositional interactions among benign artefacts can be exploited to bypass refusal mechanisms.

// Similar research

Related Research

Get the weekly digest

The few AI-security papers that matter, with the practitioner takeaway. No spam.