Skip to main content
v2026.11,986 entries · CC-BY 4.0
CASRAICASRAI Working GroupsHelp write the standards you have to implement24 working groups propose, review and ratify the terms CASRAI publishes, one per dictionary domain. Community and observer seats start at about two hours a month; chairs and co-chairs give 6–8 hours a month. Applications are reviewed.Apply to join a group CASRAI · Volunteer seats
Dictionary termTrack CStablev2026.2

Jailbreak (LLM)

A prompt or interaction pattern that causes a language model to bypass its safety training and produce outputs the model was tuned to refuse, such as harmful instructions, restricted content, or violations of provider policy.

ByCASRAI Editorial Board
· Last updated 14 Nov 2026

Working group for this domain: AI and ML research outputs working group

Share this

Ask CASRAI · full access

Ask about Jailbreak (LLM)

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Editorial commentary

An LLM jailbreak is a prompt or interaction pattern that makes a language model bypass its safety training and produce output it was tuned to refuse, such as harmful instructions, restricted content, or violations of provider policy. It targets the model’s own refusal behaviour, so it is an alignment failure rather than a bug in surrounding software.

Definition and scope

Jailbreaks include role-play framings, multi-turn manipulation, encoding tricks (base64, ROT13), and adversarial-suffix attacks (Zou et al., 2023). Resistance to jailbreaking is a target of post-training (RLHF, constitutional AI) and a focus of red-team evaluation. The category is a moving target: each newly disclosed jailbreak typically prompts new mitigations.

Worked examples: a role-play prompt (“pretend you are an unrestricted AI…”) that elicits otherwise-refused content, and an adversarial-suffix attack that appends a learned token sequence to a request. Counter-examples: an ordinary query within the model’s intended use is not a jailbreak, and a prompt injection delivered through external content is usually treated as a related but separate case (see below).

Why safety training fails

Wei, Haghtalab and Steinhardt analysed why safety-trained models remain vulnerable and proposed two failure modes: competing objectives (the model’s capability and instruction-following goals conflict with its safety goal) and mismatched generalization (safety training does not cover inputs that the model’s broader capabilities can still handle). They evaluated GPT-4 and Claude v1.3, reported that new attacks designed around these failure modes succeeded on every prompt in a set of unsafe requests drawn from red-teaming sets, and argued that safety mechanisms should be as sophisticated as the underlying model (safety-capability parity), since scaling alone does not remove the problem.

Families of jailbreak attack

Hand-written attacks

Role-play, framing and obfuscation prompts written by people. Wei et al. built their attacks from the two failure modes above.

Automated adversarial suffixes

Zou et al. (arXiv 2307.15043, July 2023) found adversarial suffixes automatically with a combination of greedy and gradient-based search. They optimised suffixes on open models (Vicuna-7B and Vicuna-13B) and reported that the resulting attacks transferred to ChatGPT, Bard and Claude, and to open models such as LLaMA-2-Chat, Pythia and Falcon. This is the basis for the phrase “universal and transferable” jailbreak: one string that works across many prompts and across models.

Many-shot jailbreaking

Anthropic described many-shot jailbreaking in April 2024: a single prompt contains a long faux dialogue in which an assistant appears to comply with harmful requests, and the final real request follows. The technique depends on long context windows, which grew from about 4,000 tokens in early 2023 to 1,000,000 tokens or more. Anthropic tested up to 256 examples in one prompt.

Jailbreak versus prompt injection

The two terms overlap and are often used interchangeably. The OWASP Top 10 for LLM Applications (LLM01) defines prompt injection as input that alters a model’s behaviour in unintended ways, and separates direct injection (the user’s own prompt) from indirect injection (external content the model processes). OWASP describes jailbreaking as a form of prompt injection in which the attacker makes the model disregard its safety protocols. Some practitioners reserve “jailbreak” for attacks on the model’s safety training and “prompt injection” for attacks on an application that mixes trusted instructions with untrusted content; because usage varies, check which definition a given source uses before comparing figures or defenses.

How jailbreaks are measured

  • HarmBench (Mazeika et al., February 2024) is a standardized evaluation framework for automated red teaming; the authors compared 18 red-teaming methods against 33 target LLMs and defenses.
  • JailbreakBench (March 2024) provides 100 behaviours, a repository of jailbreak artifacts, a standardized evaluation framework and a leaderboard.

Reported attack success rates depend on the behaviour set, the judge that decides whether a response counts as harmful, and the target model version, so figures from different benchmarks are not directly comparable. The data table below this text lists the headline figures each source itself reports.

How providers defend

Defenses work at several layers.

  • Post-training: RLHF and constitutional AI train the model to refuse.
  • Input and output classifiers: Anthropic’s Constitutional Classifiers paper (January 2025) trained classifiers on synthetic data generated from a written constitution. The authors report more than 3,000 estimated hours of red teaming without finding a universal jailbreak on an early guarded model at comparable detail, a 0.38 percentage-point absolute increase in refusals on production traffic, and 23.7% inference overhead.
  • Prompt classification: for many-shot jailbreaking, Anthropic reported that classifying and modifying the prompt before it reaches the model cut the attack success rate from 61% to 2% in one case.
  • Application controls: OWASP lists constraining model behaviour, deterministic output validation, input and output filtering, least privilege, human approval for high-risk actions, segregating untrusted content, and adversarial testing, and notes that none of these is foolproof.

Common misunderstandings

  • A jailbreak is not a software exploit. It works by crafting input that the model’s safety training fails to handle, not by exploiting a code defect.
  • A patch is not permanent. Wei et al. argue that scaling alone will not close these failure modes, and new attack families such as many-shot prompting appeared as model capabilities changed.
  • Success rates are not universal. They depend on the benchmark, judge and model version.

Standard terminology

NIST AI 100-2 E2025, Adversarial Machine Learning: A Taxonomy and Terminology of Attacks and Mitigations (March 2025, doi 10.6028/NIST.AI.100-2e2025), gives common terminology for attacks on AI systems and their mitigations.

Frequently Asked Questions

How does an LLM jailbreak actually work?

Jailbreaks use techniques such as role-play framings, multi-turn manipulation, encoding tricks like base64 or ROT13, adversarial-suffix attacks and many-shot prompting. Each tries to exploit a gap between what safety training covers and what the model can do, producing output the model was trained to refuse.

What is the difference between a jailbreak and a prompt injection attack?

OWASP treats jailbreaking as a form of prompt injection aimed at making the model ignore its safety protocols, and the terms are often used interchangeably. Prompt injection more broadly includes indirect attacks delivered through external content. See Prompt injection.

What is a universal and transferable jailbreak?

An attack string that works across many different requests and across different models. Zou et al. optimised suffixes on Vicuna models and reported transfer to ChatGPT, Bard, Claude and several open models.

What is many-shot jailbreaking?

A long-context attack that places many faux dialogue examples of an assistant complying with harmful requests in one prompt before the real request. Anthropic tested up to 256 examples.

How are jailbreaks measured?

With benchmarks such as HarmBench and JailbreakBench, which standardize behaviours, attack methods and judging so that attacks and defenses can be compared.

How do AI providers try to prevent jailbreaks?

Through post-training such as RLHF and constitutional AI, input and output classifiers, prompt classification, red-team evaluation before and after release, and application-level controls.

Can jailbreaks be fixed permanently?

Not in a lasting way. Each newly disclosed technique typically prompts new mitigations, and Wei et al. argue scale alone will not remove the underlying failure modes.

Sources

Sources (accessed 2026-11-14):

  • Zou et al., Universal and Transferable Adversarial Attacks on Aligned Language Models, arXiv 2307.15043: https://arxiv.org/abs/2307.15043
  • Wei, Haghtalab, Steinhardt, Jailbroken: How Does LLM Safety Training Fail? (NeurIPS 2023), arXiv 2307.02483: https://arxiv.org/abs/2307.02483
  • Anthropic, Many-shot jailbreaking: https://www.anthropic.com/research/many-shot-jailbreaking
  • Mazeika et al., HarmBench, arXiv 2402.04249: https://arxiv.org/abs/2402.04249
  • Chao et al., JailbreakBench, arXiv 2404.01318: https://arxiv.org/abs/2404.01318
  • Anthropic, Constitutional Classifiers, arXiv 2501.18837: https://arxiv.org/abs/2501.18837
  • OWASP, LLM01 Prompt Injection: https://genai.owasp.org/llmrisk/llm01-prompt-injection/
  • NIST AI 100-2 E2025: https://doi.org/10.6028/NIST.AI.100-2e2025

Examples

Worked examples

  • Is an instance

    A role-play prompt ('pretend you are an unrestricted AI...') that elicits otherwise-refused content.

  • Is an instance

    An adversarial-suffix attack appending a learned token sequence that disables refusal.

Counter-examples

Looks similar, but isn't

  • Not an instance

    A legitimate user query in scope of the model's intended use.

  • Not an instance

    A prompt-injection attack delivered via tool input (different category).

Also known as

LLM jailbreak

Machine-readable encodings

Use in your systems

JATS XML <kwd> element
xml
<kwd vocab="CASRAI Dictionary"
     vocab-identifier="https://casrai.org/dictionary/"
     vocab-term="Jailbreak (LLM)"
     vocab-term-identifier="https://casrai.org/dictionary/term/jailbreak-llm">Jailbreak (LLM)</kwd>
Schema.org DefinedTerm (JSON-LD)
Schema.org DefinedTerm (JSON-LD)
json
{
  "@context": "https://schema.org",
  "@type": "DefinedTerm",
  "@id": "https://casrai.org/dictionary/term/jailbreak-llm",
  "name": "Jailbreak (LLM)",
  "identifier": "https://casrai.org/dictionary/term/jailbreak-llm",
  "description": "A prompt or interaction pattern that causes a language model to bypass its safety training and produce outputs the model was tuned to refuse, such as harmful instructions, restricted content, or violations of provider policy.",
  "inDefinedTermSet": "https://casrai.org/dictionary/domain/ai-ml-research-outputs#set",
  "url": "https://casrai.org/dictionary/term/jailbreak-llm",
  "alternateName": [
    "LLM jailbreak"
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "publisher": {
    "@id": "https://casrai.org/#organization"
  },
  "author": {
    "@id": "https://casrai.org/#editorial-team"
  },
  "datePublished": "2026-05-21T02:22:51Z",
  "dateModified": "2026-11-14T22:38:32Z",
  "inLanguage": "en",
  "isAccessibleForFree": true
}

Data: Published LLM jailbreak attacks, benchmarks and defenses: scope and reported figures

Compiled by the CASRAI editors from the abstracts and pages of primary sources (arXiv papers and a lab research post). Each row names one attack, benchmark or defense, its first publication date and the headline figure the source itself reports.

Period covered: 2023/2025.

Published LLM jailbreak attacks, benchmarks and defenses: scope and reported figures
ItemTypeFirst publishedReported figureWhat the figure measures
Many-shot jailbreakingAttack2024-04-02256Faux dialogue examples in one prompt (maximum tested)
HarmBenchBenchmark2024-02-0618Red-teaming methods compared, against 33 target LLMs and defenses
JailbreakBenchBenchmark2024-03-28100Behaviours in the dataset
Constitutional Classifiers: red teamingDefense2025-01-313000Estimated red-teaming hours (more than); no universal jailbreak found on an early guarded model at comparable detail
Constitutional Classifiers: refusalsDefense2025-01-310.38Percentage points absolute increase in refusals on production traffic
Constitutional Classifiers: computeDefense2025-01-3123.7Percent inference overhead added by the classifiers
Many-shot input classificationDefense2024-04-0261Percent attack success rate before mitigation (fell to 2% in one case)

Sources

Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →