Skip to content

For research use only — using jailbreaks to study jailbroken LLMsFor Research Purpose Only --- Jailbreaking Large Language Models with Jailbreaking Research

Wenxiang He, Linyi Li
School of Computing Science, Simon Fraser University
arXiv: Jailbreaks, Prompt Injection, Poisoning & DefensesarXiv:2611.38450Originally published Indexed by this site · 2 days agoAttacks

Quick read

Attacks

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

The authors propose a two-stage jailbreak framework, JARC; on three frontier commercial models, JARC-AUXGEN achieves an average ASR of 80.7% (Table 1).

Threat modelA black-box attacker can only query victim model responses and cannot access weights; it can open new sessions, use an auxiliary LLM to construct intermediate artifacts, and call the dialogue or tool/function-calling interfaces provided by the model, with the goal of inducing the model to generate harmful responses that violate the terms of service.

Questions
Static jailbreak prompts tend to fail on frontier models, while dynamic attacks require iterative optimization and more tokens. The authors focus on whether safety alignment remains consistent across stages, models, sessions, and tool-calling interfaces.
Methods
JARC first generates a placeholder template that masks sensitive details in an alignment research context, then resets the session or switches models, generates slot values through dialogue or function calling, and finally merges locally; it additionally uses Claude Code to automatically generate different implementations under a fixed process constraint.
Experiments and results
On AdvBench-50 and HarmBench-80, the authors report that JARC-AUXGEN achieved an average ASR of 80.7% across three frontier commercial models; the five implementations generated by Claude Code were also effective, but fluctuated more between runs. Neither perplexity filtering nor victim model rewriting of templates fully prevented the attacks.
Limitations and future work
The authors point out that JARC cannot reach an ASR above 95% on frontier commercial models, and that it studies only open-domain harmful behaviors in AdvBench and HarmBench. The main evaluation was conducted in May 2026; the paper does not report an agreement experiment between judges and human annotation.
Experimental setupGPT-5.1-Codex-Max、Gemini 3.1 Pro et al. · AdvBench-50、HarmBench-80 et al. · ASR、Avg. Token et al.
AI summaryThe researchers propose a two-stage jailbreak framework called JARC (Jailbreaking with Alignment Research Context), achieving an average attack success rate of 80.7% on three strongly safety-aligned frontier models, GPT-5.1-Codex-Max, Gemini 3.1 Pro, and Claude Sonnet 4.5, more than 40% above the state-of-the-art baseline. The framework first places the victim model in an LLM alignment research context and asks it to answer with a neutralized template, then uses fill-in-the-blank function calls to have the model complete the template's blanks; as a static attack that does not rely on an auxiliary red-team model, its token cost is significantly lower. The authors also encode JARC as a lightweight skill-style workflow and instantiate it with Claude Code; results show that the agent scaffold can autonomously generate diverse attack implementations that retain strong effectiveness.

The researchers propose a two-stage jailbreak framework called JARC (Jailbreaking with Alignment Research Context), achieving an average attack success rate of 80.7% on three strongly safety-aligned frontier models, GPT-5.1-Codex-Max, Gemini 3.1 Pro, and Claude Sonnet 4.5, more than 40% above the state-of-the-art baseline. The framework first places the victim model in an LLM alignment research context and asks it to answer with a neutralized template, then uses fill-in-the-blank function calls to have the model complete the template's blanks; as a static attack that does not rely on an auxiliary red-team model, its token cost is significantly lower. The authors also encode JARC as a lightweight skill-style workflow and instantiate it with Claude Code; results show that the agent scaffold can autonomously generate diverse attack implementations that retain strong effectiveness.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors study how to split harmful responses into cross-stage, cross-model, and tool-calling tasks in order to test alignment gaps in frontier LLMs.

    The core question is: can harmful content whose direct request would be refused bypass the safety mechanisms of frontier LLMs through stage decomposition, session resets and function calling.

    • Research setting: the authors focus on agentic LLMs with function calling, long-horizon planning and multi-turn interaction capabilities, and consider that these capabilities and differences in alignment investment across models may create new attack surfaces.
    • Shortcomings of existing methods: the authors state that static attacks with fixed templates become ineffective as models are updated; dynamic attacks such as PAIR are more flexible, but iterative optimization usually consumes more tokens, and GCG additionally requires white-box access.
    • Core observation: the authors consider that safety behavior may not transfer across contexts, stages, models, sessions and interfaces; a model may refuse a template it generated itself yet fill in a template provided by an external model.
    • Proposed approach: JARC (Jailbreaking with Alignment Research Context) first generates a placeholder template, then generates slot values in a new session and merges them locally, and is provided in two forms: a static attack and a Claude Code-driven agentic workflow.
    • Threat model: the paper defines it as a black-box attack.
      • Goal: induce the victim LLM to generate responses that violate terms of service and may cause social harm.
      • Knowledge: only permission to query responses; no access to model weights.
      • Capabilities: can create new sessions, use an auxiliary LLM to construct intermediate artifacts, and use chat or tool/function-calling interfaces.
      • Victim systems: LLMs that support ordinary chat, and agentic LLMs that support tool calling.
  2. What related research exists?

    The paper places JARC within three lines of research: static long-context attacks, dynamic optimization attacks, and agentic safety.

    Static and long-context jailbreaks

    • DAN and grandma prompting: Shen et al. (2024) and Vincent (2023) use persuasion or role-playing to construct fixed prompts; the paper states that fixed workflows tend to fail after model updates.
    • MANY-SHOT, PANDAS, NINJA: Anil et al. (2024), Ma et al. (2025) and Shah et al. (2025) use many-shot long-context attacks; the authors state that JARC's context is more structured and more relevant to the harmful question.
    • Multi-turn and transfer attacks: The multi-turn studies of Sun et al. (2024), Weng et al. (2025) and Du et al. (2025), and the transfer attacks of Demontis et al. (2019), are listed by the authors as sources of inspiration for the session reset design.

    Dynamic and automated attacks

    • GCG and AutoDAN: Zou et al. (2023) use gradient optimization of adversarial suffixes, and Liu et al. (2024) use genetic algorithms to generate prompts; the paper notes that GCG requires white-box access.
    • PAIR and TAP: Chao et al. (2025) and Mehrotra et al. (2024) have a stronger LLM propose and iteratively improve jailbreak prompts; the authors state that such methods require more tokens or victim model information.
    • Automated red teaming positioning: The authors describe agentic JARC as zero-shot auto red-teaming supported by an agent scaffold: the LLM does not iteratively optimize attack prompts, but generates concrete prompts and code under a predetermined framework.

    Function calling and agent safety

    • Wu et al. (2025): Studies jailbreak paths in function calling; the paper states that JARC does not rely on an auxiliary LLM to rewrite harmful questions into function-call format, nor does it embed a malicious persona in tool descriptions.
    • Agent safety surveys: Siu et al. (2026), Kim et al. (2026) and Deng et al. (2025) discuss the risks of agents interacting with the external environment; Appendix B also mentions that prompt injection can come from user input and environmental feedback.
    • Defenses and alignment: Appendix B outlines data filtering, RLHF, agentic safe RL and automated red-team feedback, and states that the authors plan to study how to use JARC for safety and alignment enhancement.

    Experimental baselines and benchmarks: The main table compares PAIR, NINJA, MANY-SHOT and PANDAS using AdvBench-50 and HarmBench-80; Table 13 separately lists same-setting results for TAP, GCG, PAP, SAA, etc., taken from Andriushchenko et al. (2025). The authors position this paper as an optimization-free, black-box stage-separated attack that can also be automatically reconstructed by an agentic harness.

  3. How does the paper address this problem?

    JARC splits harmful responses into template generation in a research context, slot value generation after reset, and local deterministic merging.

    JARC's overall idea is to change end-to-end harmful response generation into "template—slot values—local merge," and separately exploit the research context, cross-model template sources, and the function-calling interface. The paper considers only the text domain.

    Problem setting and success determination

    • Input form: The model input is written as x=[c;q], where c may contain multi-turn dialogue and tool definitions, and q is the user question; the output may be a response or a function-call request.
    • Attack artifacts: The pipeline produces template text, slot values text, and a locally merged candidate response; the final merge no longer queries the LLM.
    • Success metrics: ASR is the proportion of harmful questions or behaviors in the benchmark that receive a successful harmful response; the cost metric Avg. Token is the total visible input and output tokens per attack.

    Stage 1: Research context and neutralized template

    • Context construction: A fixed multi-turn dialogue revolves around LLM alignment and red-teaming research, referencing Simple Adaptive Attacks, and introduces harmful behaviors, harmful strings, and placeholder templates. The authors state that this context comes from research discussion and was not manually tuned.
    • Reference length: Post-hoc counting with tiktoken's cl100k base tokenizer gives about 9,000 tokens; the authors state this is a reference instance, not a necessary condition of the framework.
    • Template requirements: The model generates a complete, step-by-step response structure but replaces sensitive implementation details with placeholders; a typical template has about 20–30 placeholders, each usually corresponding to about 2–3 English words.
    • Design role: This stage preserves the structure and semantic direction of the response but does not directly ask the model for the most dangerous details. Appendix F gives the full prompts, and Appendix G gives an end-to-end example.

    Stage 2: Slot value generation after reset

    • Session and model: The Stage 1 session is not continued; instead the session is reset, and a stronger victim model may be used; the new system prompt describes the task as slot value generation for a structured research artifact.
    • Two interfaces: Models that support tool calling return structured function calls, while other models return slot value mappings through ordinary dialogue; both settings require the same content.
    • Local merge: The client parses the template, validates the slot value mapping, replaces placeholders, and generates the final candidate response.
    • Authors' explanation: The authors believe this design reduces the task to local completion within an already-approved template; function calling may also exploit out-of-distribution gaps in agentic alignment in open-domain dialogue.

    Static variants and agentic workflow

    • JARC-SELFGEN: Stage 1 and Stage 2 use the same victim LLM.
    • JARC-AUXGEN: Stage 1 uses an auxiliary LLM that the authors call weaker and possibly less aligned, and Stage 2 uses the main victim LLM; the main configuration uses GPT-4o as the auxiliary model.
    • Claude Code implementation: CLAUDE.md fixes the separation of long-context construction, template generation, slot value generation, and local merge, requires prompts and intermediate artifacts to be externalized, and makes the model for each stage configurable; Appendix D gives the control prompts and generation prompts.
    • Execution mode: Claude Sonnet 4.6 serves as the Claude Code backbone and sequentially completes requirement summarization, scaffolding, a runnable pipeline, model and tool call upgrades, and batch execution; each workflow run consumes about 200K tokens and about 3 USD.

    Evaluation and cost accounting

    • Judges: AdvBench-50 uses GPT-4 and Llama Guard; HarmBench-80 uses the official behavior classifier, determining success by the target behavior and the model completion.
    • Token counting: Visible calls to the attacker, victim, and judge are uniformly counted post hoc with cl100k base, including retries or iterations; JARC static attacks have no separate attacker model, so attacker-side cost is not counted.
    • Hidden reasoning: The authors additionally use GPT-5.1-Codex-Max's API usage to check the underestimation caused by hidden reasoning tokens.
  4. What experiments did the paper conduct?

    The main table covers seven categories of victim models, and additionally tests five agent implementations, three types of adaptive defenses, and several stage-wise ablations.

    Experimental setup

    • Victim models: Table 1 covers GPT-5.1-Codex-Max, Gemini 3.1 Pro, Claude Sonnet 4.5, DeepSeek-V4-Pro, Kimi-K2.5, GPT-4o, and Qwen2.5-7B-Instruct; the appendix additionally tests GPT-3.5-Turbo, Llama-3.1-8B-Instruct, Vicuna-13b-v1.5, Gemini 3 Pro, and GPT-5.6 Sol.
    • Benchmark scale: AdvBench-50 has 50 behaviors; HarmBench-80 is the official 80-behavior text validation set. Table 15 additionally uses the full 400-behavior text set and the 300-behavior non-copyright subset.
    • Baselines and budgets: The main PAIR setting is N=3, K=5, with Mixtral as the attack model; NINJA uses the LongContext pipeline; MANY-SHOT and PANDAS typically use 256 shots, and GPT-3.5-Turbo and Vicuna-13b-v1.5 use 16 shots.
    • Metrics and judges: AdvBench-50 reports GPT-4 and Llama Guard ASR separately; HarmBench uses the official classifier. Avg. ASR = 0.25×GPT-4 ASR + 0.25×Llama Guard ASR + 0.5×HarmBench ASR.
    • Generation settings: Unless otherwise specified, temperature=0 and max output tokens=1024; GPT-5.1-Codex-Max uses the default API configuration. In the five runs of Table 2, the two-stage temperature for Claude Sonnet 4.5 and Gemini 3.1 Pro is changed to 0.4.
    • Repetitions and auxiliary models: The static and agentic conditions in Table 2 are each run independently five times; the agentic implementations are generated by Claude Code driven by Claude Sonnet 4.6. The main table does not state the number of independent repetitions for each cell.

    Main results

    According to Table 1; the Stage 1 auxiliary model for JARC-AUXGEN is GPT-4o, and the main configuration uses tool-calling fill-in.

    Swipe horizontally to read the table

    Victim modelMethodAdvBench-50 GPT-4 / Llama Guard ASRHarmBench-80 ASRAvg. ASR
    GPT-5.1-Codex-MaxJARC-AUXGEN86% / 86%73%79.5%
    Gemini 3.1 ProJARC-AUXGEN80% / 84%85%83.5%
    Claude Sonnet 4.5JARC-AUXGEN72% / 84%80%79%
    DeepSeek-V4-ProJARC-AUXGEN88% / 90%86%87.5%
    Kimi-K2.5JARC-SELFGEN94% / 98%95%95.5%
    GPT-4oSELFGEN; equivalent to AUXGEN(GPT-4o)78% / 82%83%81.5%
    Qwen2.5-7B-InstructJARC-SELFGEN100% / 100%91%95.5%
    • Authors' summary: The authors report that on three frontier commercial models, JARC-AUXGEN's average ASR is 80.7%, and the runner-up MANY-SHOT is 37.5%; across all seven victim models, the average ASR of AUXGEN, SELFGEN, PAIR, and MANY-SHOT is 81.6%, 57.9%, 23.1%, and 20.8%, respectively.
    • Important exceptions: On Claude Sonnet 4.5, SELFGEN's Avg. ASR is only 0.5%; on Kimi-K2.5 and Qwen2.5-7B-Instruct, SELFGEN is higher than AUXGEN. The authors state that commercial models may recognize and refuse templates they generated themselves.
    • Cost comparison: On AdvBench-50 with GPT-5.1-Codex-Max, AUXGEN uses 12,681 tokens, PAIR 64,618, MANY-SHOT 100,907, and PANDAS 159,730; the API counts in Table 6 show that post-hoc counting misses hidden reasoning tokens.

    Agentic workflow and run stability

    • What was tested: Claude Code independently generates five JARC-AUXGEN implementations, each run five times on AdvBench-50 with the three frontier commercial models; the authors did not observe backbone model refusals during generation.
    • Results: According to Table 2, the agentic GPT-4 ASR on GPT-5.1-Codex-Max, Gemini 3.1 Pro, and Claude Sonnet 4.5 is 74.8±10.9%, 71.6±10.2%, and 74.0±12.8%, respectively; static AUXGEN is 91.6±3.8%, 79.2±2.3%, and 68.4±4.6%, respectively.
    • Authors' interpretation: The authors state that different implementations remain effective but fluctuate more across runs; Table 11 shows that a single GPT-4 ASR can be as low as 50% for Claude Sonnet 4.5 Run 1.

    Adaptive defenses and controlled attribution

    • Format detection: In Table 23 on GPT-5.1-Codex-Max and AdvBench-50, the GPT-4/Llama Guard ASR for JSON, XML, and plaintext is 86%/86%, 86%/84%, and 88%/88%, respectively; the authors state that changing the serialization format can bypass detection targeting JSON.
    • Perplexity filtering: A local Qwen2.5-7B-Instruct scores 130 harmful Stage-2 inputs and 130 WildChat-derived benign inputs, and the ROC-AUC of mean logprob threshold classification is 0.6148 (Table 8). Figure 3 labels the harmful and benign means as -1.2787 and -1.3980, respectively; the authors describe it only as a limited independent signal.
    • Rewrite defense: After the same GPT-4o template is rewritten by GPT-5.1-Codex-Max, GPT-4 ASR drops from 86% to 52%, and SelfGen is 34% (Table 22); 20 originally successful cases turn into failures, and 3 turn in the opposite direction. The authors state that residual ASR remains and that there is inference overhead.

    Other ablations and analyses

    • Composition structure: In Table 17 on GPT-5.1-Codex-Max, two rounds of full composition + function calling give 34%/52%, and two rounds of non-composition give 2%/4%; for GPT-4o, single-round direct composition instead reaches 98%/98%.
    • Cross-model Stage 1: In Table 18, GPT-4o→GPT-5.1-Codex-Max with dialogue fill-in gives 92%/90%, and DeepSeek-V4-Pro→the same victim model with tool fill-in gives 86%/96%.
    • Context replacement: In Table 20, after removing the benchmark names and GCG references, the ASR on the three commercial models is 90%, 86%, and 74%; with an unrelated Spanner context it is 64%, 60%, and 54%.
    • Stage-wise refusals: In Table 21, overall Stage-1 refusals are 87/300; after passing Stage 1, Stage-2 refusals for dialogue and function calling are 166/213 and 19/213, respectively.
    • Context compression: In Table 19 on Qwen2.5-7B-Instruct, when the context is reduced from 9,569 to 4,233 tokens, GPT-4 ASR is 100% in both cases, and Llama Guard is 96%–98%.
    • Later models: In Table 16 on GPT-5.6 Sol, AUXGEN's AdvBench-50 ASR is 38%/36%, and HarmBench-80 is 41.3%; the authors state that the effect decreases relative to the original evaluation but some transfer remains, and that the 256-shot inputs of MANY-SHOT and PANDAS are blocked by API safety filters.
  5. What are some points that can be further explored?

    The authors explicitly acknowledge the success rate ceiling on frontier commercial models and the scope of the evaluation scenarios, and propose directions for extending scenarios and for alignment research.

    Limitations and future directions noted by the authors

    • Success rate boundary: Appendix A.4 states that JARC cannot achieve >95% ASR on frontier commercial models; continuing to optimize with an agentic workflow would increase cost, and the authors believe more effective and more economical jailbreak methods may exist.
    • Behavior scope: Appendix A.4 states that the study focuses only on open-domain harmful behaviors in AdvBench and HarmBench, whereas agentic tasks also expose broader vulnerabilities; the authors list effectiveness in broader scenarios as future work.
    • Model-side defense directions: Appendix A.3 proposes research on more safety-oriented self-reflective CoT post-training, cross-model style-diversified synthetic data, and cross-format rewriting alignment for agentic capabilities.
    • Agent guardrail directions: Appendix A.3 proposes deploying harmfulness screening of generated content on the agent guardrail side, and states that the authors are communicating with model developers about risks and defenses.
    • Use for alignment enhancement: Appendix B states that the authors plan to study how to integrate the JARC framework into safety and alignment enhancement.

    Experimental coverage

    • Main table coverage: Table 1 includes seven victim models, four baselines and two JARC variants; the appendix supplements results for traditional commercial, small open-source, Gemini 3 Pro and GPT-5.6 Sol.
    • Benchmark coverage: The main evaluation is AdvBench-50 and HarmBench-80; Table 15 checks the full 400-behavior set and a 300-behavior subset only on GPT-5.1-Codex-Max and Qwen2.5-7B-Instruct.
    • Repetition and stability: Five independent runs were used for the static/agentic comparison in Table 2; Table 11 gives single results for each agentic implementation, and the main table does not report the number of repetitions per cell.
    • Defense coverage: Appendix A.3, C.5 and E.3 evaluate format substitution, logprob/perplexity thresholds and victim model rewriting; the perplexity experiment used n=130 per group, and no claim is made on that basis that all detectors fail.
    • Evaluation information: The main evaluation was conducted in May 2026 (Appendix E.1.6); the paper cites PAIR's judge analysis to support the GPT-4 choice, but does not report an agreement experiment between this study's judge and human annotation.
  6. Summarize the main content of the paper

    JARC tests alignment transfer with stage separation and tool calling; the main table reports a relatively high ASR and shows that simple defenses still carry residual risk.

    JARC is a black-box two-stage jailbreak framework that requires no gradients or iterative prompt optimization, and provides both a static implementation and an agentic workflow automatically generated by Claude Code.

    • Problem: The authors focus on whether safety refusal in frontier models remains consistent across research contexts, generation stages, models, sessions, and function-calling interfaces, and whether an agentic harness can reduce the cost of automated attacks.
    • Method: First generate a placeholder template that masks sensitive details in an alignment research context, then reset the session or introduce an external template, generate slot values through dialogue or tool calling, and finally merge locally; AUXGEN uses GPT-4o to generate the template, while SELFGEN has the victim model generate it itself.
    • Main results: In Table 1, AUXGEN's average ASR on GPT-5.1-Codex-Max, Gemini 3.1 Pro, and Claude Sonnet 4.5 is 80.7%; on Kimi-K2.5 and Qwen2.5-7B-Instruct, SELFGEN has the higher Avg. ASR, both at 95.5%.
    • Automation results: The five Claude Code implementations in Table 2 remain effective on the three commercial models, but the GPT-4 ASR standard deviation is 10.2–12.8 percentage points, higher than the corresponding static implementations; the authors state that the agentic harness can automatically generate diverse attacks.
    • Defenses and follow-up: The ROC-AUC of logprob threshold classification is only 0.6148; after the victim model rewrites the template, GPT-5.1-Codex-Max ASR is still 52%. On GPT-5.6 Sol, AUXGEN's HarmBench-80 ASR is 41.3%, and the authors state that the attack effect decreases but is partially retained.
    • Authors' conclusion: The authors believe that scaling agentic capabilities does not necessarily bring proportionally scaled safety alignment, and that multi-stage pipelines may be affected by weaker upstream components; they also acknowledge that an ASR >95% is not reached on frontier commercial models, and that currently only open-domain harmful behaviors are evaluated.

Research lineage

12 foundations · 0 follow-ups in library
Explore in knowledge graph →

Hover or focus a connected paper to inspect the citation context.

Related papers

Show 2 more papers
Read originalarxiv.org