arXiv(opens in a new tab)cs.CRAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.27439

RedEvoAgent: Automatic Red-Teaming Agent with Experience-Driven Skill Evolution

Junjie Zhang, Hui Liu, Kecheng Chen, Xianbo Mo, Changsheng Chen, Haoliang Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

LLM-based agents are increasingly deployed in product-level execution harnesses, where jailbreaks can trigger harmful tool use and persistent state changes, creating greater risks than unsafe text generation alone. Existing automatic red-teaming methods often rely on fixed attacks, while recent agentic attackers coordinate multiple jailbreak tools and show stronger potential through trajectory-based retrieval. However, such retrieval can reuse misleading experiences due to retrieval bias and unclear tool credit, and full trajectories add context overhead while reducing interpretability. We propose RedEvoAgent, a black-box red-teaming agent that distills cross-case attack trajectories into a concise, human-readable attack skill. The attack skill adaptively evolves through tool-effectiveness profiling and Deciding-Tool Attribution for skill updates, and a validation ratchet that retains only updates improving validation performance. Experiments on multiple benchmarks, target models, and target execution harnesses show that RedEvoAgent outperforms fixed and agentic baselines, improves tool efficiency, and transfers across attacker models and target execution harnesses.

1 INTRODUCTION

LLM-based agents are increasingly integrated into product-level harnesses such as Claude Code (Anthropic, 2026a) and Codex (OpenAI, 2025), which allow them to modify local files, transfer data, and call external APIs (Yao et al., 2023; Yang et al., 2024b). These capabilities broaden the security implications of jailbreaks, as successful attacks may cause destructive tool use and persistent changes to system state rather than unsafe text generation (Greshake et al., 2023; Ruan et al., 2024; Andriushchenko et al., 2025). Therefore, product-level black-box agents require adversarial evaluation to characterize their security robustness. Automatic red-teaming provides a scalable approach for continuous evaluation by simulating real-world malicious attacks, adversarial inputs, and exploit attempts (Perez et al., 2022; Ganguli et al., 2022; Mazeika et al., 2024).

Most existing jailbreak methods rely on a fixed attack mechanism. Some transform or rewrite the original attack prompt to circumvent an agent's safety-alignment defenses, such as FlipAttack (Liu et al., 2025b), whereas others optimize adversarial prompts within a predefined search space, as in GCG (Zou et al., 2023) and AutoDAN (Liu et al., 2024). Because such methods explore only a limited subset of the attack space, they may miss vulnerabilities exposed by alternative mechanisms and are more likely to fail. Recent work, therefore, investigates agentic automatic red-teaming, in which an LLM-driven attacker agent leverages prior knowledge about existing attack methods to adaptively coordinate them within a unified workflow. For example, RedCodeAgent (Guo et al., 2026) models attack methods as sequentially invocable tools and utilizes semantic similarity to retrieve successful trajectories as priors to guide the attacker agent's subsequent decisions.

Despite its effectiveness, trajectory-based retrieval has several limitations. First, this paradigm assumes that all retrieved trajectories are useful, which may not hold because semantic retrieval can introduce bias, and the contribution of any individual tool-choice decision to final attack success is often unclear. Consequently, irrelevant or misleading experiences may be reused, causing unstable optimization and degraded attack performance. Second, full-trajectory contexts introduce substantial overhead by consuming context-window budget and increasing inference cost. Their low-level action records are also difficult for humans to interpret and monitor, hindering auditing over the evolution of strategy.

Figure

Figure 1: RedEvoAgent overview. Given a jailbreak prompt, the attacker agent uses the current attack skill to select and call tools from an extensible attack toolbox, such as GCG and FlipAttack, and iteratively attacks a product-level target agent. On the training split, RedEvoAgent collects successful and failed attack trajectories and independently evaluates each attack tool to build a tool-effectiveness profile. Skill evolution combines the profile with these trajectories to extract tool priorities and attack strategies. A candidate attack skill update is accepted only if it improves attack performance on the validation split, while the test split remains locked for final evaluation.

To address these gaps, as illustrated in Figure 1, we propose RedEvoAgent, an automatic black-box red-teaming agent with experience-driven attack-skill evolution. RedEvoAgent integrates diverse jailbreak methods into an attack toolbox and distills attack trajectories into a concise, human-readable attack skill that summarizes high-level orchestration strategies. Compared with trajectory-based historical priors, such a skill-level abstraction reduces context overhead and improves interpretability, consistent with evidence from general agent tasks that high-level skill summaries can outperform similarity-based trajectory retrieval (Ni et al., 2026; Yang et al., 2026). Concretely, we construct training and validation splits for experience evolution. RedEvoAgent first measures the effectiveness of jailbreak tools on the training split to build a tool-effectiveness profile. To prevent skill evolution from conflating frequently co-occurring tools in successful trajectories with genuinely effective tools, we introduce Deciding-Tool Attribution, which provides clearer tool-selection signals by labeling the tool that directly leads to attack success as the deciding tool. We further design a validation-ratchet mechanism that accepts a candidate skill update only if it yields a improvement on an independent validation set. Otherwise, the previous skill is retained, and failed candidates are recorded to guide later iterations, mitigating irrelevant or misleading update signals. In this way, tool-effectiveness measurements and attack trajectories determine what the skill learns, while validation feedback determines which revisions persist.

To validate the effectiveness of our framework, we conduct experiments on Agent Security Bench (ASB) (Zhang et al., 2025a) and AgentHarm (Andriushchenko et al., 2025) across multiple target models, as well as the Claude Code and Codex target execution harnesses. The results show that RedEvoAgent outperforms existing fixed and agentic baselines, and that the evolved attack skill transfers across different attacker models and target execution harnesses.

We summarize our contributions as follows:

• We introduce RedEvoAgent, an automatic red-teaming agent that distills cross-case attack experience into an evolving and human-readable attack skill. The framework learns skill updates from training-set attack experience and employs a validation ratchet to reduce noisy tool credit assignment and restrict skill evolution to revisions that improve held-out attack performance.

• We conduct extensive experiments across multiple target models and target execution harnesses, demonstrating improvements in attack effectiveness, attack-tool efficiency, and cross-attacker and cross-harness transferability. Moreover, our reproduced target execution harnesses can provide reusable infrastructure for future agentic red-teaming research.

References (31)