Skip to content

UNIATTACK: An Automated Jailbreak Attack Framework for Multi-Layer DefensesAutomated jailbreak attack targeting multiple defense strategies

Paper Tracker· arXiv:2606.16751· Qi Wang, Chengcheng Wan, Weijia He, Yanqing Li, Hanqi Sun, Xiaodong Gu, Jiangtao Wang·Indexed by this site · 2026-10-08· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

UniAttack performs single-turn black-box jailbreaks; the authors report an average ASR of 87.17%, a 64.63%–248.82% improvement over baselines on multi-layer defenses.

Threat modelBlack-box, single-turn. The attacker only knows the public input-output types, high-level safety guidelines, and historical query behavior, and does not know the architecture, parameters, gradients, training data, system prompt, or filtering rules. Each time, only one fully self-controlled text prompt is submitted; auxiliary models may be used to generate templates, but multi-turn follow-up is not allowed. The goal is to bypass input filtering, alignment, and output refusal, and induce the model to generate violating content. The victim system is assumed to be an opaque three-layer defense.

Questions
A single black-box attack type struggles to simultaneously overcome multi-layer defenses, and static templates cannot keep up with model updates. Unlimited-query trial and error also conflates brute-force failures with intrinsic vulnerabilities. The authors aim to do single-turn, low-query multi-layer safety evaluation.
Methods
UniAttack extracts minimal features from sub-attacks covering different defense layers, condenses, validates, and rewrites them into templates using DeepSeek-V3.1, then fills in malicious queries for single-turn probing. Feature ASR must reach at least 50% of the original attack's ASR; templates must exceed every source sub-attack.
Experiments and results
The authors report that across 520 AdvBench items, UniAttack's average ASR on 9 LLMs is 87.17%, a 64.63%–248.82% average improvement over baselines. Claude-3.5-Sonnet is 35.57%; on uncensored Llama, LLM-FUZZER is higher.
Limitations and future work
The authors note that the single-turn design cannot detect multi-turn vulnerabilities and assumes no online defense updates. The auxiliary models are the latest DeepSeek and GPT series, and the seeds may not cover real attacks. The experiments include 9 target models and 4 baselines; the Judge-LLM model and Detoxify thresholds are not reported.
Experimental setupDeepSeek-Chat、DeepSeek-Reasoner et al. · AdvBench · ASR、T-CSA et al.
Evaluated models
DeepSeek-ChatDeepSeek-ReasonerGPT-4.1-NanoGPT-3.5-TurboGemini-2.0-FlashGemini-2.5-ProClaude-3-HaikuClaude-3.5-SonnetDolphin-2.9-Llama3-8B
Benchmarks
AdvBench
Metrics
ASRT-CSAC-CSA
AI summaryThe researchers propose UNIATTACK, an adversarial testing framework that systematically constructs black-box attack prompts from a defense perspective. It extracts a small number of high-impact attack features from existing attacks, optimizes them with a dedicated attacker LLM, and combines them through automatic refinement into flexible templates, enabling one-shot attacks that generalize across multiple models and safety categories. Evaluations show that on models with deployed multi-layer defense mechanisms, UNIATTACK improves average attack success rate (ASR) by 64.63%-248.82% over baselines, at only 0.03%-4.96% of baseline cost.

The researchers propose UNIATTACK, an adversarial testing framework that systematically constructs black-box attack prompts from a defense perspective. It extracts a small number of high-impact attack features from existing attacks, optimizes them with a dedicated attacker LLM, and combines them through automatic refinement into flexible templates, enabling one-shot attacks that generalize across multiple models and safety categories. Evaluations show that on models with deployed multi-layer defense mechanisms, UNIATTACK improves average attack success rate (ASR) by 64.63%-248.82% over baselines, at only 0.03%-4.96% of baseline cost.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Under multi-layer defense, single-type black-box attacks are prone to failure; UniAttack uses feature fusion for single-turn probing.

    Black-box jailbreaks lack reusable, low-query systematic evaluation under multi-layer defenses.

    • Scenario: The authors state that LLMs have entered scenarios such as healthcare, military, and finance, and can still be bypassed by adversarial prompts after alignment. RLHF and prompt decontamination have incomplete coverage and generalization gaps against adaptive attacks.
    • Existing shortcomings: The authors list three points. A single attack type struggles to simultaneously overcome input filtering, alignment, and output review; static templates are tied to specific versions and often require manual rework after updates; and when queries are unlimited, failures cannot distinguish structural vulnerabilities from brute-force trial and error.
    • Core observation: The authors argue that writing complementary minimal attack features into the same prompt can simultaneously pressure multi-layer defenses in a single turn, without relying on model-specific tuning or internal knowledge of defenses.
    • This paper proposes: UniAttack, a fusion-based single-turn black-box adversarial testing framework. The authors state this is the first time multiple attack strategies are fused into a unified framework.
    • Threat model:
      • Goal: Induce the target LLM to generate harmful, policy-violating content in a single turn. This includes bypassing input filtering, model alignment, and output refusal, as well as evaluating its tendency to generate misinformation, illegal activities, violence, hate speech, privacy leaks, or malicious code.
      • Knowledge: black-box. Only public input/output types, disclosed high-level safety guidelines, and observed behavior from historical queries. The paper considers text only. It does not know architecture, parameters, gradients, training or alignment data, internal system prompts, filtering rules, or safety classifier logic.
      • Capability: Submit one fully self-contained complex prompt at a time, with no follow-up queries. Multiple prompt engineering techniques can be used within a single prompt, and auxiliary models can be used to rewrite or generate templates.
      • Victim system: Assumed to have three layers of protection consistent with commercial systems: input filtering, model alignment, and output control (refusal, sensitive information masking, self-criticism). These components are opaque to the attacker.
  2. What related research exists?

    Related work is divided into black-box testing, defense in depth, and other threats; the authors position this paper as feature fusion.
    • Black-box Adversarial Testing: Goal Hijacking (Chen and Yao, 2024), semantic rewriting (Huang et al., 2025), SequentialBreak (Saiem et al., 2025), and fixed templates for direct rewriting or preset packaging. The paper states such methods often struggle to generalize as defense boundaries evolve; the introduction also claims that model-specific tailoring or iterative adaptation remains narrow and fragile under combined defenses.
    • Iteration and Evolution: PAIR (Chao et al., 2025), LLM-FUZZER (Yu et al., 2024), Tree of Attacks (Mehrotra et al., 2024) use feedback or search to improve effectiveness. The paper states query costs are high and rate limits apply; tree or graph expansion remains static, not using model feedback to discover new weaknesses. AutoDAN (Zhu et al., 2023) refines prompts with selection and mutation; the paper claims insufficient stability.
    • Superficial Perturbations: CIPHER (Yuan et al., 2023) uses encoding to bypass input filters, DAN (Shen et al., 2024) performs role-playing, and there is automatic fuzzing. The paper states these works mostly stay at superficial exploitation.
    • Defenses and Alignment: Input decontamination (Kumar et al., 2023), RLHF/RLAIF and Constitutional AI (Ouyang et al., 2022; Bai et al., 2022), and Llama Guard-style output auditing (Inan et al., 2023) constitute defense-in-depth. The paper states they often rely on pattern matching, leading to reflexive refusals without understanding intent (Wei et al., 2023). CoT, AutoDefense, and DeepSeek-R1's deliberation buffer are called a different class of problems by the paper, distinct from this work's goals.
    • Other Threats: Backdoor poisoning, training data extraction, Sponge Attack, and indirect prompt injection via untrusted plugins. The paper states UniAttack only handles direct adversarial prompts, being orthogonal to these works.
    • Baselines and Benchmarks: Experimental baselines are LLM-FUZZER, PAIR, CIPHER, DEEPINCEPTION (Table 3). The dataset is AdvBench (Zou et al., 2023) harmful behaviors, 520 items total.

    The authors claim pilot testing moves heavy iteration into a manageable pipeline, then uses feature extraction and fusion to balance effectiveness and cost; and claim to be the first to fuse multiple attack strategies into a unified framework.

  3. How does the paper address this problem?

    UniAttack extracts and verifies features in four stages, then fuses them into single-turn templates that must exceed each sub-attack.

    UniAttack distills existing sub-attacks into reusable features, then fuses them into a single-turn prompt to simultaneously pressure multi-layer defenses.

    Attack Initialization

    • Sub-attack Library: Methods are selected based on strategy diversity, reported empirical effectiveness, and reproducibility, and categorized by defense layer (Table 1). Input layer includes goal hijacking, semantic rewriting, sequence decomposition; middle layer includes context confusion, many-shot pressure; output layer includes representation transformation, disguising as harmless. The authors state the list is not exhaustive and can be extended.
    • Pilot Attack: Each round selects at least three sub-attacks covering different defense layers, collecting prompt-response pairs from proprietary DeepSeek and open-source Llama3 models as input for subsequent extraction. The paper does not specify the size of this diagnostic set.

    Feature Extraction and Validation

    • Feature Definition: Extract the minimal usable instruction that retains the original adversarial logic and removes redundant context from complex prompts. The auxiliary model is DeepSeek-V3.1, tuned with system prompts and few-shot examples.
    • Condensed Form: The auxiliary model outputs a single sentence, either as a direct core instruction (Type A) or a high-level abstract strategy (Type B); the paper states it only performs meta-analysis without generating specific entities or examples. Figures 4–6 give the full prompts for condensation, use-case generation, and template rewriting.
    • Inclusion Criteria: On the same models and data, the distilled feature's ASR must reach at least 50% of the original method's ASR. If not achieved after more than five rounds, it is discarded and other sub-attacks are selected instead. Use-case generation also uses DeepSeek-V3.1.

    Template Construction

    • Fusion Motivation: The authors cite the Swiss cheese model, arguing safety relies on multiple layers, and evaluation should have one probe hit gaps across layers. Features are first synthesized into seed templates, then rewritten by DeepSeek-V3.1 using few-shot human templates.
    • Advancement Criteria: The template's target ASR must exceed that of every feature-source sub-attack. If not achieved, prompt-response pairs are sent back for optimization; if still failing after five rounds, the few-shot seed is replaced.
    • Optimization Operations: Use high-scoring templates for in-context learning, resolve internal semantic conflicts, and rewrite expressions of sensitive words and malicious intent. The paper does not provide the final template count.

    Testing and Success Determination

    • Instantiation: Templates retain placeholders, filled with malicious intents from the query set; each sample receives only a single-turn interaction.
    • Determination: Local toxicity classifier Detoxify does the first-layer screening; outputs that bypass this layer are then audited by an instruction-tuned Judge-LLM for semantic review. Only replies flagged by this unified pipeline are counted as successful. The report includes per-example results and average ASR. The paper does not explain how the two levels merge, nor does it give the Detoxify threshold or Judge-LLM model name.
  4. What experiments did the paper conduct?

    The authors report an average ASR of 87.17%; on uncensored Llama, LLM-FUZZER is higher than UniAttack.

    Experimental Setup

    • Target Models: Table 2 has 9 in total. DeepSeek-Chat (V3.2-Advanced), DeepSeek-Reasoner (V3.2-Thinking), GPT-4.1-Nano, GPT-3.5-Turbo, Gemini-2.0-Flash, Gemini-2.5-Pro, Claude-3-Haiku, Claude-3.5-Sonnet have multi-layer defenses; Dolphin-2.9-Llama3-8B is marked as uncensored.
    • Data: All 520 AdvBench harmful behaviors. The paper states each attack method generates 520 tests per target model. The methods section also writes that each optimized template maps to each query; the paper does not state the final template count or how they correspond.
    • Baselines: LLM-FUZZER, PAIR are multi-turn; CIPHER, DEEPINCEPTION are single-turn (Table 3). The max iteration budget for multi-turn methods is K=20; the authors state PAIR's original text reports success within 20 queries, while LLM-FUZZER lacks this information, so they uniformly use 20.
    • Metrics: ASR is the proportion of successful attacks out of all attacks. T-CSA is the ratio of tokens consumed to successful attacks; C-CSA is the ratio of LLM query count to successful attacks.
    • Evaluation: UniAttack and baselines share the same pipeline: Detoxify initial screening, then Judge-LLM audit. The paper does not specify the Detoxify threshold, Judge-LLM model, or number of repeats.
    • Auxiliary Models: The methods section states features and templates use DeepSeek-V3.1. Section 6.1 says in evaluation, the attacker's available auxiliary models are only the latest DeepSeek and GPT series, without specifying the GPT checkpoint.

    Main Results

    The following is Table 5's Full System. 9 models minus 8 rows, omitting DeepSeek-Reasoner: ASR 87.30%, T-CSA 286.3, C-CSA 1.14. Baseline per-model ASRs mostly appear only in Figure 8, not given cell-by-cell in the text, so they are not filled.

    Swipe horizontally to read the table

    ModelASRT-CSAC-CSASource
    Gemini-2.0-Flash99.00%353.31.009Table 5
    DeepSeek-Chat98.65%253.41.01Table 5
    GPT-4.1-Nano98.46%396.01.01Table 5
    Llama-3-8B98.07%2551.02Table 5
    Gemini-2.5-Pro96.92%361.11.03Table 5
    GPT-3.5-Turbo96.35%404.71.03Table 5
    Claude-3-Haiku85.18%586.91.17Table 5
    Claude-3.5-Sonnet35.57%1405.42.81Table 5
    • Average ASR: The authors report UniAttack's average ASR as 87.17% based on Figure 8, with an improvement of 64.63%–248.82% over the baseline average (24.99%–52.95%). The abstract limits this improvement to multi-layer defense models; RQ1 writes 87.17% as the average across all target models.
    • Claude-3.5-Sonnet: The authors state all baselines fail here, with PAIR's ASR at 2.11% and UniAttack at 35.57%, claiming a 16.8x improvement over the best baseline.
    • Cost: The authors state T-CSA is below 405 on GPT, DeepSeek, and Gemini; the introduction claims successful attacks consume only 0.03%–4.96% of baseline tokens and find vulnerabilities within 1.01–2.81 queries. The authors state baseline T-CSA often reaches tens of thousands or even millions; the paper does not provide per-model token counts for those baselines. Except for the two Claude models, the authors claim C-CSA is close to 1.0.

    Multi-Layer Defense Comparison

    • What Was Tested: Table 4 compares Llama-3 without censorship against multi-layer defense. The latter includes keyword filtering, safety alignment, and refusal policies. The paper does not specify the checkpoint of the defended version or how the three layers stack.
    • Results: Without censorship, UniAttack has 98.07%, PAIR 29.04%, CIPHER 92.88%, DEEPINCEPTION 71.73%, LLM-FUZZER 99.62%. With multi-layer defense, they are 59.61%, 5.77%, 1.34%, 10.57%, and 41.92% respectively.
    • Author Interpretation: The authors claim single strategies get stopped by one layer, while UniAttack simultaneously pressures input filtering, reasoning layer, and output policies. LLM-FUZZER's smaller decline is attributed to the resource consumption of multi-turn fuzzing rather than more features. In the uncensored setting, LLM-FUZZER is higher than UniAttack.

    Ablations

    • Setup: Table 5 compares Full System, w/o-Feature (fixed predefined features), w/o-Template (using the feature library directly to craft prompts), and w/o-Both. "–" in the table indicates the configuration is ineffective for that model. The paper does not state whether ablations use all 520 samples.
    • Results: The authors state that on GPT-3.5-Turbo, w/o-Template is 83.34%, and w/o-Feature drops to 26.66%; on DeepSeek-V3.2-Chat, w/o-Feature at 85.00% is higher than w/o-Template's 60.00%. On Claude-3.5-Sonnet, they are 0.00% and 9.00%, while the full system is 35.57%. w/o-Both is 0.00% on the 8 defended models and 62.30% on Llama-3-8B.
    • Author Interpretation: The authors believe neither module is universally effective alone; only together do they exceed 96% on GPT and Gemini series. They claim DeepSeek's filtering intercepts specific semantic patterns rather than underlying structural logic.

    Other Ablations and Analysis

    • w/o-Feature ASR: GPT-4.1-Nano 13.33%, Claude-3-Haiku 15.00%, Llama-3-8B 89.61% (Table 5).
    • w/o-Template C-CSA: Claude-3.5-Sonnet is 10.32; its T-CSA is 5158.4 (Table 5).
    • w/o-Feature on GPT-4.1-Nano has T-CSA of 2712.4 and C-CSA of 6.95; Claude-3.5-Sonnet row is "–" (Table 5).
    • The authors use Figure 7 to claim that for malicious code requests against GPT-4.1, baselines with only scenario nesting or only encoding are blocked, while the fused template elicits the requested content. This example has no separate success rate.
  5. What are some points that can be further explored?

    The authors note that the single-turn design cannot detect multi-turn vulnerabilities, and the extrapolation of auxiliary models and seeds is also unclear.

    Limitations and Future Directions Noted by the Authors

    • Multi-turn Vulnerabilities: Single-turn design cannot detect vulnerabilities that only appear in multi-turn interactions, potentially underestimating issues exposed only by continuous attacks or malicious long conversations (Section 6.1).
    • Online Defenses: Assumes the target LLM remains stable and does not deploy online training-based defenses (Section 6.1).
    • Auxiliary Models: Evaluation uses only the latest DeepSeek and GPT series for feature extraction and template construction; how results generalize when using other LLMs is unclear (Section 6.1).
    • Seed Coverage: The selected seed prompts may not represent all real attack prompts and scenarios (Section 6.1).
    • Defense Direction: In Section 6.2, the authors advocate embedding safety checks into internal reasoning, with three steps: goal extraction, adversarial intent audit, and reflection during generation, rather than adding external filters post-hoc.

    Experimental Coverage

    • Tested models are the 9 from Table 2: two DeepSeek, two GPT, two Gemini, two Claude, and Dolphin-2.9-Llama3-8B.
    • Baselines are LLM-FUZZER, PAIR, CIPHER, DEEPINCEPTION; the multi-turn method iteration budget is K=20 (Section 5.1).
    • Evaluation set is all 520 AdvBench harmful behaviors, with 520 tests per method per target model (Section 5.1.6).
    • Defense comparison is Llama-3 without censorship, and multi-layer defense composed of keyword filtering, safety alignment, and refusal policies (Table 4). Ablations are Full, w/o-Feature, w/o-Template, w/o-Both (Table 5).
    • The paper does not report the specific Judge-LLM model, Detoxify threshold, number of repeats, ablation sample size, final template count, or the specific sub-attack combination used in the final experiment; the auxiliary GPT checkpoint is also not reported.
  6. Summarize the main content of the paper

    The authors state that the feature-fusion single-turn attack outperforms four baselines in ASR and token consumption.

    UniAttack is a single-turn black-box jailbreak testing framework targeting multi-layer defenses.

    • Problem: A single attack type cannot break through the combination of input filtering, alignment, and output review; static templates cannot keep up with model updates; and unlimited queries conflate brute-force trial and error with structural vulnerabilities.
    • Approach: Extract minimal features from at least three sub-attacks covering different defense layers, have DeepSeek-V3.1 verify them to no less than 50% of the original methods' ASR, then compose templates that must exceed each source sub-attack. Templates are filled with AdvBench for single-turn probing, and success is determined by Detoxify plus Judge-LLM. The attacker does not know parameters, gradients, or internal rules.
    • Main results: The authors report an average ASR of 87.17%, a 64.63%–248.82% improvement over baselines averaging 24.99%–52.95%; the abstract places this improvement on multi-layer defense models. In Table 5, Gemini-2.0-Flash is 99.00%, and Claude-3.5-Sonnet is 35.57% (T-CSA 1405.4, C-CSA 2.81). The authors state the latter is a 16.8x improvement over the best baseline, and give PAIR as 2.11%.
    • Exceptions: In Table 4, on uncensored Llama, LLM-FUZZER is 99.62%, higher than UniAttack's 98.07%. After adding keyword filtering, safety alignment, and refusal policies, UniAttack is 59.61%, and the highest baseline in the same table is LLM-FUZZER at 41.92%. After removing feature extraction and template construction, the ASR on 8 defended models is 0.00%, while uncensored Llama remains at 62.30%.
    • Cost and conclusion: The authors state that token consumption for successful attacks is only 0.03%–4.96% of baselines, and vulnerabilities are found within 1.01–2.81 queries. The authors argue that high ASR need not rely on large-scale brute-force queries and recommend embedding safety checks into model reasoning rather than only surface-level pattern matching.

Related papers

Show 3 more papers
Read originalarxiv.org