Skip to content

JailbreakSkill: Extending Automated Red Teaming with Reusable and Evolvable SkillsJailbreakSkill: Scaling Automated Red-Teaming with Reusable and Ever-Evolving Skills

arXiv· arXiv:2608.16465· Xiaoyu Wen, Jiajia Li, Zhida He, Peng Yu, Chenxu Wang, Han Qi, Ziyuan Zhou, Cheng Jin, Ying Wen, Xingcheng Xu, Shuyue Hu, Tianhang Zheng, Chaochao Lu, Qiaosheng Zhang·Indexed by this site · 2026-10-01· Originally publishedSelected AttacksSelectedAttention38

Quick read

Attacks

Based on the paper PDF (generated by Gemini); refer to the original

JailbreakSkill decouples and evolves attack skills, achieving 62.5% ASR@30 on GPT-5.4 on AdvBench.

Threat modelBlack-box queries access the target model, obtaining only the target model's text response to input prompts; under a fixed target model query budget and skill evolution budget, make the judge model score reach a threshold to maximize attack success rate ASR.

Questions
Existing automated red teaming methods typically tightly couple attack logic with specific workflows or prompts, lacking a unified modular representation, and the experience from failed attempts is difficult to accumulate into independent attack capabilities reusable across models and tasks.
Methods
JailbreakSkill encapsulates rewriting, failure analysis, and evolution as modular skills; the first stage sequentially calls initial skills based on risk-conditioned UCB, and the second stage uses failure trajectories to diagnose patterns, generating new skills through refinement, combination, or discovery.
Experiments and results
Stage 1 achieves macro-average ASR@10 of 72.0% and 68.1% on AdvBench and HarmBench; Stage 2 raises the macro-average ASR across five target model types to 74.2% and 67.9%, and some evolved skills transfer to unseen models.
Limitations and future work
Evaluation focuses on single-turn text jailbreaks, not covering multi-turn or multimodal; the attack side relies on Claude Sonnet 4.5 and Qwen2.5-7B-Instruct auxiliary models; cross-model transfer performance varies by skill mechanism.
Experimental setupGLM 5.2、DeepSeek-V4-Pro Preview et al. · AdvBench、HarmBench et al. · ASR@10、ASR@30 et al.
Evaluated models
GLM 5.2DeepSeek-V4-Pro PreviewLlama-3.3-70B-InstructMAGIC-14BGPT-4.1GPT-5.4Gemini 3.1 Pro PreviewClaude Sonnet 4.6
Benchmarks
AdvBenchHarmBenchJBB-Original
Metrics
ASR@10ASR@30Harmful Score (HS)Average Query Count (AQC)
AI summaryand selection rationaleShanghai AI Laboratory and other institutions propose JailbreakSkill, encapsulating attack methods as reusable, evolvable skills for scaling automated red teaming. The framework divides skills into three categories: rewriting skills, failure analysis skills, and evolution skills, with a planner selecting and ordering them through a unified interface; Stage 1 uses risk-conditioned UCB to scan the initial 16 rewriting skills and records failure trajectories, and Stage 2 performs failure diagnosis on unresolved samples, generating new rewriting skills through refinement, combination, or discovery and adding them back to the skill library. On AdvBench and HarmBench, skill evolution improves macro-average ASR by 17.5 and 13.4 percentage points, respectively, including a 48.6 percentage point improvement on GPT-5.4 on AdvBench, and produces new strategies such as rewriting direct requests as unfinished document completion tasks. Some evolved skills transfer to unseen prompts and target models without additional adaptation, and the code is open-sourced.

Shanghai AI Laboratory and other institutions propose JailbreakSkill, encapsulating attack methods as reusable, evolvable skills for scaling automated red teaming. The framework divides skills into three categories: rewriting skills, failure analysis skills, and evolution skills, with a planner selecting and ordering them through a unified interface; Stage 1 uses risk-conditioned UCB to scan the initial 16 rewriting skills and records failure trajectories, and Stage 2 performs failure diagnosis on unresolved samples, generating new rewriting skills through refinement, combination, or discovery and adding them back to the skill library. On AdvBench and HarmBench, skill evolution improves macro-average ASR by 17.5 and 13.4 percentage points, respectively, including a 48.6 percentage point improvement on GPT-5.4 on AdvBench, and produces new strategies such as rewriting direct requests as unfinished document completion tasks. Some evolved skills transfer to unseen prompts and target models without additional adaptation, and the code is open-sourced.

Why it was selectedEncapsulates attack methods into a reusable, evolvable skill library and provides ASR improvement magnitudes on AdvBench and HarmBench, which can serve as a reference for red team engineering.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The paper addresses the problem of tightly coupled red teaming attack logic that is difficult to reuse and evolve, proposing an automated jailbreak framework centered on executable skills.

    Existing automated red teaming methods lack a unified, modular, and executable attack representation, making it difficult to systematically accumulate, reuse, and continuously evolve attack experience across models and tasks.

    • Scenario and importance: LLMs are widely deployed in safety-critical scenarios, and red teaming before deployment is essential; as target model defenses strengthen, single-turn attack success rates decline, prompting red teaming methods to shift toward multi-turn adaptive workflows.
    • Shortcomings of existing methods: Prompt-level optimization is typically tied to specific behaviors; memory-based methods only retrieve prompts or templates to guide generation and cannot run as independent executable methods; dynamic workflows highly couple attack logic with specific orchestration code and prompt formats, making them difficult to call, modify, or extend independently.
    • Core idea: Introduce reusable procedural capability abstractions from autonomous agents (e.g., SKILL.md) into security testing, encapsulate prompt rewriting, failure diagnosis, and evolution as modular skills, and transform unresolved failure trajectories into new skills.
    • Proposed solution: Propose the JailbreakSkill framework, decoupling attack program logic from external workflows, achieving risk-conditioned skill selection and failure-driven skill evolution through a two-stage process.
    • Threat model:
      • Attacker goal: Under a fixed target model query budget and skill evolution budget, induce the target model to generate content violating safety norms, making the GPT-4o judge score reach a full 5, maximizing attack success rate ASR.
      • Attacker knowledge: Black-box setting; the attacker cannot access the target model's parameter weights, gradients, or internal representations, and can only send prompts to the target model.
      • Attacker capability: The attacker only sends queries to the target model through a text interface and receives text responses; the attack side can use auxiliary models for rewrite generation and failure trajectory analysis.
      • Victim system: Open-source and closed-source frontier LLMs with safety protections (e.g., GPT-5.4, Claude Sonnet 4.6, etc.).
  2. What related research exists?

    The paper reviews research on LLM jailbreaks and automated red teaming, structured agent skills, and positions itself as a framework that organizes operation and evolution around a shared skill library.

    In related work, the paper mainly discusses the following two groups of work and separately sets baseline methods:

    • LLM jailbreaks and automated red teaming:

      • Early attacks relied on role-playing and DAN-style prompts (Shen et al., 2024), as well as surface transformations such as ASCII art (Jiang et al., 2024), Morse code (Yuan et al., 2024), and low-resource language translation (Yong et al., 2023).
      • Among optimization and search methods, GCG (Zou et al., 2023) and its variants (Jia et al., 2024; Zhao et al., 2024) optimize adversarial suffixes based on gradients; black-box methods use tree search (Liu et al., 2024, 2025; Mehrotra et al., 2024) or model-driven refinement (Chao et al., 2025; Wen et al., 2026).
      • Among agent frameworks, RedAgent (Xu et al., 2024) uses policy abstraction and memory to guide attack generation; MemoAttack (Zhang et al., 2026b) organizes skill-structured memory with lifecycle management; AutoRedTeamer (Zhou et al., 2026) continuously discovers and integrates new attack vectors; AutoRISE (Gautam et al., 2026) evolves end-to-end attack programs. The authors state that JailbreakSkill is most similar to this group of work, but organizes runtime attack execution and local method evolution around a shared library of agent skills.
    • Structured agent skills:

      • The skill concept extends from temporally extended actions in hierarchical reinforcement learning (Sutton et al., 1999; Bacon et al., 2017) to language- and code-based programs in LLM agents (Ahn et al., 2022; Liang et al., 2023; Wang et al., 2023; Li et al., 2026a; Zhang et al., 2026a).
      • Recent ecosystems encapsulate capabilities as portable files (e.g., Anthropic, 2025b's SKILL.md format); SkillsBench (Li et al., 2026c) and SkillFlow (Zhang et al., 2026c) evaluate skill utility across tasks and discovery and maintenance mechanisms, respectively; related work also addresses agent skill attacks and harmful skill risks (Duan et al., 2026; Jiang et al., 2026).
    • Baseline methods and benchmarks:

      • Comparison baselines include PAIR (Chao et al., 2025), AutoDAN-Turbo (Liu et al., 2025), TAP (Mehrotra et al., 2024), and ReNeLLM (Ding et al., 2024), all implemented under the OpenRT (Wang et al., 2026) framework with a unified protocol.
      • Evaluation benchmarks use AdvBench (Zou et al., 2023), HarmBench (Mazeika et al., 2024), and the original subset of JailbreakBench, JBB-Original (Chao et al., 2024).
    • Differences from existing work: The authors point out that existing methods mostly evolve a single large end-to-end attack program or hardcode strategies into workflow orchestration; JailbreakSkill maintains mutually independent, addressable skill artifacts, decoupling rewriting, failure analysis, and evolution through a unified interface, making attack methods plug-and-play and incrementally accumulating reusable attack procedures from failure experience.

  3. How does the paper address this problem?

    The paper decouples attacks into rewriting, diagnosis, and evolution skills, expanding the skill library through UCB-based warm-start routing and closed-loop evolution based on failure diagnosis.

    JailbreakSkill represents red teaming attack knowledge as a modular, executable, and evolvable skill library, decoupling attack program logic from external workflows, and achieves adaptive skill selection and failure-driven evolution through a two-stage process.

    The final attack success rate is defined as the proportion of samples where at least one attack attempt within the budget steps makes the judge score reach or exceed the threshold tau: ASR := 1/N ∑i=1N 𝕀[max1 ≤ t ≤ Ti zi,t ≥ τ] where z_i,t is the judge score, tau is the success threshold (score of 5).

    Skill Representation and Initial Skill Library Construction

    • Unified skill artifact: Each skill is centered on a SKILL.md file, containing metadata, trigger conditions, applicable scenarios, and operation guidelines, along with an execution script run.py with a unified JSON input/output interface.
    • Three functional types: rewrite skills generate adversarial samples, failure-analysis skills diagnose failure modes, and evolution skills refine, combine, or discover rewriting procedures.
    • Initial skill library: 16 initial rewrite skills are summarized from literature, codebases, and web resources, covering encoding and perturbation (e.g., Base64, character perturbation, Emoji insertion, multilingual mixing, etc.), code and structure completion (e.g., code completion, EquaCode, table filling), and context and scenario reconstruction (e.g., history, hypotheses, role-playing, fictional spaces, etc.).
    • Execution mode classification: Skills are divided into deterministic-template (pure code concatenation without consuming model inference) and LLM-rewrite (calling the execution model Qwen2.5-7B-Instruct to generate rewrites) modes.

    Stage 1: Risk-Conditioned UCB Skill Routing

    • Sequential scanning and early stopping: Process harmful prompts sequentially, trying skills for each sample in skill library order or priority, and stop testing that sample early once the target model's response is judged successful.
    • Continuous signal exploration-exploitation trade-off: Use risk-category-conditioned UCB scores to rank untried skills:

    UCBj,r = z̄j,r + β √((log Nr)/(nj,r)) This formula uses the mean continuous judge score for exploitation and adjusts the exploration gain for untried skills with hyperparameter beta (set to 0.45).

    • State recording: Update skill memory M after each attempt; if not successful within the Stage 1 budget B1 (set to 10), store the sample and its complete failure trajectory in failure memory F.

    Stage 2: Failure-Driven Cross-Category Skill Evolution

    • Category-based diagnostic induction: Group unresolved samples from Stage 1 by risk category, and call failure analysis skills (served by Claude Sonnet 4.5) to extract common refusal patterns across dimensions: Refusal Triggered, Semantic Drift, Insufficient Context.
    • Three types of evolution operations: Based on diagnostic results, the evolution module executes Refine (revise existing skills while preserving original patterns), Combine (integrate mechanisms from two skills), or Discover (create entirely new rewriting logic).
    • Format generation constraints: The evolution generator strictly constrains new skills to LLM-rewrite, deterministic-template, or hybrid modes (Hybrid, first light semantic rewriting then embedding into a structured template).

    Verification and Registration Mechanism for Evolved Skills

    • Residual pool validation: After instantiating candidate new skills, test them only on the residual pool of unresolved samples in the current category.
    • Acceptance and registration criteria: If a candidate skill successfully breaks at least one previously unresolved sample, it is deemed valid and formally added to the skill library for reuse by subsequent categories and other tasks; broken samples are removed from failure memory.
    • Budget control: Each category generates at most 20 evolved skills, and the cumulative total target query budget per sample is capped at 30.
  4. What experiments did the paper conduct?

    Experiments show that the framework improves attack success rate and query efficiency under budget constraints, failure-driven evolution significantly rescues unresolved behaviors, and skills exhibit cross-model transferability.

    Experimental Setup

    • Tested models: Evaluation covers 8 LLMs, including open-source models GLM 5.2, DeepSeek-V4-Pro Preview, Llama-3.3-70B-Instruct, MAGIC-14B, and closed-source models GPT-4.1, GPT-5.4, Gemini 3.1 Pro Preview, Claude Sonnet 4.6. Stage 2 evolution evaluation is conducted on 5 of these models.
    • Attack-side configuration: Agent planning, failure analysis, and skill evolution use Claude Sonnet 4.5; the LLM rewrite skill executor uniformly uses Qwen2.5-7B-Instruct.
    • Datasets: AdvBench (520 harmful instructions), HarmBench (400 harmful behaviors), and transfer testing additionally uses 55 original prompts from JailbreakBench (JBB-Original).
    • Baseline methods: Black-box jailbreak baselines PAIR, TAP, ReNeLLM, AutoDAN-Turbo, all reproduced based on the OpenRT framework.
    • Evaluation metrics: Attack success rate (ASR, GPT-4o score of 5 is success), harmfulness score (HS, mapped to 0 to 1 based on StrongREJECT rules), average number of target queries (AQC).
    • Budget settings: Stage 1 allows at most 10 target model calls per sample; Stage 2 and baselines allow at most 30 target model calls per sample across the full process, with early stopping upon a single successful hit.

    Main Results

    The table below shows ASR@30 for each attack method on AdvBench after Stage 2 evolution (from Table 3):

    Swipe horizontally to read the table

    Target ModelPAIRTAPReNeLLMAutoDAN-TurboJailbreakSkill (S2)
    GLM 5.225.0%83.1%47.9%55.4%81.4%
    GPT-4.166.5%97.7%96.9%64.8%100%
    GPT-5.445.2%28.5%33.5%18.8%62.5%
    Gemini 3.1 Pro41.0%88.1%75.4%66.0%75.8%
    Claude Sonnet 4.654.8%78.1%33.8%57.5%51.4%
    • Breakthrough on strongly protected models: The authors note that on GPT-5.4, JailbreakSkill's ASR@30 reaches 62.5%, an improvement of 48.6 percentage points over Stage 1's 13.9%, higher than TAP's 28.5%.
    • Overall benchmark average performance: Across five model types, JailbreakSkill achieves macro-average ASR@30 of 74.2% and 67.9% on AdvBench and HarmBench, respectively (Table 3), with a cross-benchmark average of 71.1%, higher than TAP's 63.1%.
    • Harmfulness level: JailbreakSkill achieves the highest harmfulness scores in 9 of 10 model-benchmark settings (Table 3), with average Harm of 0.856 and 0.756 on AdvBench and HarmBench, higher than the best baseline averages of 0.773 and 0.554.

    Initial Skill Effectiveness and Complementary Coverage Analysis (RQ1)

    • What was tested: Each of the 16 initial skills was executed individually with 1 query on 8 models (ASR@1), and the intersection and union distribution of samples broken by different skills was analyzed (Figure 3).
    • Results: EquaCode achieves the highest cross-model macro-average ASR@1 (42.1%), but is 0.0% on Claude Sonnet 4.6 on AdvBench; the union coverage of the 16 skills reaches 72.6%, 18.6 percentage points higher than the best single skill (54.0%); on HarmBench and AdvBench, on average each model has 10.8 and 7.1 skills, respectively, that exclusively break samples not solved by other skills.
    • Authors' interpretation: No single skill is universally applicable; the core value of skill-based representation lies in preserving diverse complementary mechanisms for subsequent scheduling.

    Stage 1 Attack Performance and Query Efficiency Under Budget Constraints (RQ2)

    • What was tested: Under a limit of at most 10 calls per sample, evaluate Stage 1 UCB routing's ASR@10 and AQC, and compare with an ablation using uniform random order calls (Table 1, Table 2).
    • Results: JailbreakSkill (UCB) achieves macro-average ASR@10 of 72.0% (AdvBench) and 68.1% (HarmBench), with average query counts AQC of 4.14 and 4.63; random routing ablation reduces ASR@10 to 63.9% and 60.7%, and increases AQC to 5.98 and 6.24.
    • Authors' interpretation: Risk-category-based UCB ranking provides an effective lightweight heuristic that prioritizes high-potential skills under limited budgets.

    Cross-Model and Cross-Benchmark Transferability of Evolved Skills (RQ4)

    • What was tested: Select 7 high-coverage skills evolved in Stage 2 and transfer them without modification to unseen held-out samples, target models not involved in evolution (DeepSeek-V4-Pro, GLM 5.2), and the new benchmark JBB-Original (Table 4).
    • Results: On the source benchmark held-out set, the 7 skills achieve an average ASR of 40.6% on DeepSeek-V4-Pro, higher than their 36.2% on source models; on JBB-Original, rewrite-antipattern-v7 maintains ASR of 38.2%–63.6% across three test models, while rewrite-implicit-v5 drops to 0.0% ASR on GLM 5.2 (harm score 0.018).
    • Authors' interpretation: Some evolved skills capture general procedures and show cross-model transferability, but the degree of transfer depends heavily on the specific skill mechanism.

    Other Ablations and Analyses

    • Auxiliary call overhead: Stage 1 auxiliary rewriting and judge calls are 3.08 and 4.00 per sample, respectively; Stage 2 analysis and evolution add 0.23 per sample after amortization (Table 10).
    • Residual validation hit rate: On the GPT-5.4 fraud/theft unresolved set, rewrite-jsonschema-v1 has a recovery rate of 6.3% (7/111), which rises to 26.7% (28/105) after refinement to rewrite-jsonschema-v2 (Appendix E).
    • Consecutive failure fallback rule: When two consecutive evolve-discover operations do not bring score improvements, force a switch to evolve-refine or evolve-combine (Appendix A.2).
    • Negative results and exceptions: On AdvBench against Claude Sonnet 4.6, Stage 2's ASR@30 is 51.4%, lower than TAP's 78.1% and AutoDAN-Turbo's 57.5% (Table 3).
    • Metric decoupling exception: On GLM 5.2, rewrite-research-v2 achieves a high harm score of 0.744 but an ASR of only 3.0%; the authors analyze that this model can provide specific details under analytical frameworks but avoids directly satisfying harmful instructions (page 12).
  5. What are some points that can be further explored?

    The paper does not dedicate a section to limitations; its experiments cover jailbreak performance and transfer effects on 8 mainstream models on single-turn text-only benchmarks.

    Limitations and future directions noted by the authors

    The paper does not specifically discuss limitations.

    Experimental coverage

    • Target model coverage: The evaluation covers 8 mainstream large language models (GLM 5.2, DeepSeek-V4-Pro Preview, Llama-3.3-70B-Instruct, MAGIC-14B, GPT-4.1, GPT-5.4, Gemini 3.1 Pro Preview, Claude Sonnet 4.6), with Stage 2 evolution experiments conducted on 5 models (Section 5.1).
    • Task types and modalities: All experiments target single-turn text-only prompt jailbreak tasks; the paper does not include multi-turn interactive dialogue or multimodal input attack tests (Section 3, Section 5.1).
    • Attack auxiliary model binding: Agent reasoning, failure analysis, and skill evolution are fixed to use Claude Sonnet 4.5, the LLM rewrite executor is fixed to Qwen2.5-7B-Instruct, and the judge model is fixed to GPT-4o (Section 5.1, Section 5.2).
    • Benchmark dataset size: Attack evaluation is based on AdvBench (520 instructions) and HarmBench (400 instructions), and cross-benchmark transfer evaluation is based on JailbreakBench's 55 original instructions (Section 5.1).
    • Defense mechanism evaluation: The experiments compare 4 black-box baseline methods; except for ReNeLLM, which includes Qwen3Guard safety filtering, no evaluation of specific guardrail defense systems is included (Section 5.1, Appendix C.2).
  6. Summarize the main content of the paper

    The paper proposes a red team framework centered on reusable and continuously evolving skills, improving attack success rates under budget constraints and accumulating jailbreak procedures transferable across models.
    • Core positioning: The paper proposes JailbreakSkill, a black-box jailbreak framework that represents automated red team attack methods as reusable and continuously evolving agent skills.
    • Problem addressed: Traditional red team methods often deeply bind rewriting logic to specific workflows or prompts, making them impossible to call and modify independently, and historical attack failure experience is difficult to transform into reusable independent attack capabilities.
    • Method design: Attack capabilities are divided into three standardized skill types: rewriting, failure analysis, and evolution; Stage 1 uses a risk-category-based UCB algorithm to adaptively call initial skills within a limited query budget and early stop; Stage 2 aggregates unresolved failure trajectories, diagnoses patterns through failure analysis skills, drives refinement, combination, or discovery to generate new skills, and after validation in a residual pool, adds them to the library.
    • Key quantitative results: On AdvBench and HarmBench, Stage 1 UCB scheduling achieves 72.0% and 68.1% macro-average ASR@10, with average query counts of 4.14 and 4.63 (Table 1, Table 2); Stage 2 evolution raises macro-average ASR across five model types to 74.2% and 67.9%, with ASR@30 on GPT-5.4 on AdvBench rising to 62.5% (Table 3); some evolved skills achieve 40.6% average ASR on the unseen model DeepSeek-V4-Pro (Table 4).
    • Author conclusions and implications: The authors argue that automated red teaming should shift from repeatedly searching for isolated adversarial prompts to maintaining and accumulating a modular attack skill library reusable across tasks and models.

Related papers

Show 3 more papers
Read originalarxiv.org