What is AI jailbreaking?

In brief

AI jailbreaking is crafting a prompt that gets a language model to produce output its safety training is meant to refuse, by role-play, hypothetical framing, encoding, or sheer volume of examples. It works because refusals are learned behaviour rather than a hard rule, and vendors treat it as a security problem they measure and patch.

A refusal is a habit, and a jailbreak is a way to break it

A model doesn't contain a rule that says "do not explain how to pick a lock". It contains the habit of refusing, installed during the post-training stage that what is fine-tuning in AI describes, where people rated refusals of harmful requests above compliance until refusing became the most probable continuation of such a request. Probable, not certain.

A jailbreak is any prompt that changes the probabilities. Wrap the request in a story and the most likely continuation is the next line of the story. Split it into innocent pieces and no piece triggers the habit. Encode it in base64 and the refusal training, which saw plain English, doesn't recognise it. Give the model two hundred examples of an assistant complying and the two-hundred-and-first request is answered in kind, which Anthropic named many-shot jailbreaking in April 2024 and which got easier as context windows grew.

The mechanism is the same one that makes the model useful. It follows the pattern of its input. Safety training makes some patterns much less likely; a jailbreak finds a pattern the training didn't cover. That's why the problem isn't solved by a better rule, and why the vendors measure it as a rate.

The common techniques, and what each one exploits

TechniqueHow it worksWhat it exploits
Role-play ("you are DAN, Do Anything Now")Assigns the model a persona with no rulesRefusals are tied to the assistant persona, not the underlying predictor
Hypothetical or fiction framing"In a novel, a character explains how to..."Fiction is a legitimate task, and the training rewarded completing it
Encoding and obfuscationBase64, ciphers, leetspeak, another languageRefusal training was mostly in plain English
Many-shotHundreds of example exchanges where the assistant compliesThe model continues the pattern of its context
Gradual escalationA long conversation that moves one step at a timeEach step is close to the last; no single message trips the habit
Prompt injection into the instructions"Ignore previous instructions"Overlaps with injection; the target is the app's rules rather than the model's

The DAN prompts that circulated on Reddit from December 2022 are the folk version, and each version stopped working within weeks to months as OpenAI updated the model, and the next version appeared. Every named technique follows that cycle: published, then patched. Anthropic ran a paid bounty for a universal jailbreak against its classifiers, which is where the durable work now goes.

One distinction to keep. A jailbreak is the user against the model's policy. What is prompt injection is a third party against the user, through content the model reads. The techniques overlap; the victims do not.

What a guardrail actually stops, measured

The best public number comes from Anthropic's constitutional classifiers, published in February 2025. The team trained separate classifier models to screen inputs and outputs around Claude, then ran the same automated jailbreak attacks against the model with and without the screen.

Anthropic's classifier cut successful jailbreaks from 86 in 100 to 4
Bare modelno classifier in front of Claude86 in 100With constitutionalclassifiersinputs and outputs screened4.4 in 100one square is one successful attack per 100 attempts

The cost of that drop is the other half of the result. The classifiers added 23.7 percent to compute per query and raised refusals of harmless requests by 0.38 percentage points. Before the automated test, 183 people spent more than 3,000 hours in a bug bounty trying to find a universal jailbreak, one prompt that unlocked all ten forbidden questions, and none did. A later public challenge found one after a week. The rate isn't zero; the point is that it moved from most attempts succeeding to a few.

That is what "guardrails" means in practice: a stack of probabilities. The trained refusal catches most. A classifier catches most of what is left. A human review catches some of the remainder. Each layer costs latency or money or false refusals, and the vendor picks a point on that curve. Is AI safe to use covers what that point means for the risks you actually face.

Why you probably wanted a rephrase, not a jailbreak

Many people who search for a jailbreak were just refused something reasonable. A doctor asked about a dosage, a novelist writing a villain, a security researcher describing a real attack, a historian quoting a real text. The 0.38 point rise above is only the classifier's share; the trained habit refuses on its own, and nobody publishes that rate.

Two things work and neither is a jailbreak. The first is context. A refusal is the model's guess that the request is harmful, and a sentence of who you are and why you are asking changes the guess: "I am a pharmacist checking a paediatric dose" is a different input from the bare question. The second is the model. Vendors draw their lines in different places, and a request one model refuses is routinely answered by another that considers it ordinary. In a multi-model workspace that is a picker change that costs the second model's rung, 1 credit for Whizi AI or 10 for Claude Sonnet 5, and how to choose an AI model covers the differences that go beyond refusals.

What does not work, and what Whizi will not help with: prompts designed to defeat a provider's policy. Every model on Whizi is served through OpenRouter and the routed provider, so that provider's safety layers and usage policy apply to every message, and a jailbreak that works is a policy violation at both companies. The legitimate need, a frank answer to a legitimate question, is met by asking plainly and, if refused, asking a model with a different policy.

Where jailbreaking is going

Three shifts are already visible in the published work. Classifier layers are becoming standard, and their false-refusal rate is the number to watch, because a guard that blocks a pharmacist is a guard people route around. Open-weight models, which the open-source LLM guide covers, can have their refusal training removed by fine-tuning, so for those models the guardrail is wherever they are hosted rather than in the weights. And agents raise the stakes: a jailbroken chatbot says something it should not, while a jailbroken agent with tools does something, which is why the confirmation step before an action matters more than any refusal.

Workflow checklist
  • Treat a refusal as the model's guess about intent, and add one sentence of context before trying again
  • When a model refuses a reasonable request, ask a different model; vendors draw the line in different places
  • Read vendor safety claims as rates, and look for the false-refusal number next to the attack-success number
  • Do not use published jailbreak prompts; they are patched within weeks and they breach the terms of every provider
  • For anything with tools attached, care about the confirmation step before an action more than about refusals
Common questions

Frequently asked questions

What does jailbreaking an AI mean?

Getting a model to produce output its safety training is meant to refuse, using a crafted prompt: a role-play persona, a fictional framing, an encoded request, or hundreds of example exchanges. It works because refusal is a trained habit rather than a hard rule, so a prompt that makes compliance look more probable than refusal gets through.

Is AI jailbreaking illegal?

It breaches the usage policy of every major provider and can get an account banned; whether it is illegal depends on what the output is used for and where you are. Vendors run bug bounties for it, so finding a jailbreak and reporting it is welcomed, while using one to obtain harmful content is not.

What was the DAN jailbreak?

DAN, "Do Anything Now", was a role-play prompt circulated on Reddit from December 2022 that told ChatGPT to act as a persona with no rules. It worked because refusal behaviour was tied to the assistant persona, and it stopped working within weeks to months as OpenAI updated the model. Each new version repeated the cycle.

How effective are AI guardrails?

Anthropic's constitutional classifiers paper measured it: 86 percent of automated jailbreak attempts succeeded against the bare model and 4.4 percent against the model with classifiers screening inputs and outputs, at 23.7 percent more compute per query and a 0.38 point rise in refusals of harmless requests. Guardrails lower the rate; no vendor claims zero.

What should I do when an AI refuses a reasonable request?

Add context, then change the model. A sentence stating who you are and why you are asking changes the model's guess about intent. If it still refuses, another vendor's model often answers, because each draws its line differently. In Whizi that's a model change in the same conversation. Published jailbreak prompts are patched quickly and breach provider terms.