Jailbreak
A jailbreak is an input designed to get a large language model (LLM) to bypass its safety guardrails and produce responses it is trained to refuse.[1] OWASP treats jailbreaking as a form of prompt injection in which the attacker tries to make the model disregard its safety rules entirely.[4]
What does Jailbreak mean in simple terms?
A chatbot normally says "I can't help with that" to certain requests. A jailbreak is an attempt to get around that refusal anyway. Well-known patterns include asking the model to play a character that supposedly has "no rules" (the widely shared "Do Anything Now", or DAN, prompts) and starting with harmless questions before steering a long conversation toward the request that would normally be refused.[2][6] As companies roll out internal assistants and customer-facing bots, jailbreaks have become one of the risks security teams need to test for. Model makers describe their red-teaming and jailbreak defenses in system cards and research reports.[8][1]
How can Jailbreak be explained with an analogy?
It is like trying to get the CEO's stamp on a document by going around the normal approval chain.
Where is Jailbreak used?
"Do Anything Now" — Role-play prompts shared online
Soon after ChatGPT launched, jailbreak prompts that asked the model to act as an unrestricted persona spread through online communities. A study first posted in 2023 and later updated, named after the "Do Anything Now" prompts collected 1,405 jailbreak prompts posted between December 2022 and December 2023 and identified 131 communities sharing them.[2] The researchers found that some prompts kept working for months, and that the safeguards of the six models they tested could not reliably block jailbreak prompts in every scenario.[2]
Result: Five prompts reached an attack success rate of 0.95 on ChatGPT (GPT-3.5) and GPT-4 in the study; the earliest had stayed online for more than 240 days.[2]
Crescendo — Multi-turn attacks
In April 2024, Mark Russinovich, Ahmed Salem and Ronen Eldan published Crescendo, a multi-turn jailbreak.[6] Instead of one harmful request, the conversation starts with general, harmless-looking questions and escalates gradually, building on the model's own earlier replies.[6] The paper reported high success rates on public systems including ChatGPT, Gemini, Llama and Anthropic's chat model, which shows why defenses that check only single messages are not enough.[6]
Result: The automated version, Crescendomation, performed 29–61% better on GPT-4 and 49–71% better on Gemini-Pro than other state-of-the-art jailbreak techniques on an AdvBench subset (as reported by the authors).[6]
Many-shot jailbreaking — Long context as an attack surface
In April 2024, Anthropic described "many-shot jailbreaking": filling a single long prompt with a large number of fake dialogues in which an assistant appears to comply, so the model follows the pattern.[5] With only a few such dialogues the model still refused, but with many more (Anthropic tested up to 256) it became more likely to give harmful answers. The technique worked on Anthropic's own models and on models from other companies, and Anthropic briefed other developers before publishing.[5] It showed that longer context windows, a useful feature, also open new attack routes.[5]
Result: One prompt-classification mitigation cut the attack success rate from 61% to 2% in one case reported by Anthropic.[5]
Constitutional Classifiers — Public stress testing of a defense
Anthropic built input and output classifiers trained on synthetic data generated from a "constitution" of allowed and disallowed content.[1] In a bug-bounty test of the prototype, 183 active participants spent an estimated 3,000+ hours over two months and found no universal jailbreak.[1] In a public demo from February 3 to 10, 2025, 339 jailbreakers spent about 3,700 hours; four cleared all eight levels, and one found what Anthropic judged to be a universal jailbreak.[1] In January 2026, Anthropic reported a next-generation system adding about 1% compute overhead, with no universal jailbreak found yet in more than 1,700 hours of red-teaming.[7]
Result: In automated tests using 10,000 synthetic attack prompts against Claude 3.5 Sonnet (October 2024), the first-generation classifiers reduced the jailbreak success rate from 86% to 4.4%.[1][7]
Try it today
- Write down, in one line, how your in-house LLM tool separates the system prompt from user input and from external content such as documents or web pages.[4]
- Read OWASP's LLM01:2025 entry and make a short table of how jailbreaks and prompt injection differ.[4]
- With your security team's approval, run an authorized red-team test of your own chatbot that includes role-play scenarios, and record which requests are consistently refused.[2][4]
- Do not stop at single messages: include multi-turn scenarios that escalate gradually.[6]
- Check your model provider's system card or safety documentation for how it tests and reports jailbreak resistance.[8][1]
Limits and direction
Complete protection is not available today. Anthropic notes that, to its knowledge, there are still no fully robust deep-learning models in production.[1] A 2023 study by Zou and colleagues showed that automatically generated adversarial suffixes could transfer to public chatbots such as ChatGPT, Bard and Claude.[3] Later work reported new routes such as multi-turn escalation and long-context many-shot attacks.[6][5] Even Anthropic's public challenge, which held for five days, was eventually beaten by a universal jailbreak.[1]
Defenses are developing in two directions. The first strengthens the model and the safeguards around it. Anthropic's Constitutional Classifiers screen what goes in and out, and the January 2026 report describes a next generation that checks exchanges in context with about 1% compute overhead.[1][7] The second is layered defense in the application. OWASP recommends constraining model behavior, filtering input and output, giving the model least privilege, requiring human approval for high-risk actions, separating untrusted external content, and running regular adversarial testing.[4] OWASP also notes that preventing jailbreaks requires ongoing updates to model training and safety mechanisms, so treat jailbreak testing as a recurring task rather than a one-time check.[4]
Which concepts are related to Jailbreak?
- Related conceptPrompt VersionA related concept from the same prompting and AI-use group.
- Related conceptPrompt LibraryA related concept from the same prompting and AI-use group.
- Related conceptPersona PromptingA related concept from the same prompting and AI-use group. Role-play jailbreaks misuse persona instructions.
Which sources explain Jailbreak?
- Anthropic — Constitutional Classifiers: Defending against universal jailbreaks (2025-02-03, updated 2025-02-13) — https://www.anthropic.com/research/constitutional-classifiers
- Shen et al. (arXiv) — "Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Models (2023-08-07) — https://arxiv.org/abs/2308.03825
- Zou et al. (arXiv) — Universal and Transferable Adversarial Attacks on Aligned Language Models (2023-07-27) — https://arxiv.org/abs/2307.15043
- OWASP Gen AI Security Project — LLM01:2025 Prompt Injection (2025) — https://genai.owasp.org/llmrisk/llm01-prompt-injection/
- Anthropic — Many-shot jailbreaking (2024-04-02) — https://www.anthropic.com/research/many-shot-jailbreaking
- Russinovich, Salem, Eldan (arXiv) — Great, Now Write an Article About That: The Crescendo Multi-Turn LLM Jailbreak Attack (2024-04-02) — https://arxiv.org/abs/2404.01833
- Anthropic — Next-generation Constitutional Classifiers (2026-01-09) — https://www.anthropic.com/research/next-generation-constitutional-classifiers
- OpenAI — GPT-4o System Card (2024-08-08) — https://openai.com/index/gpt-4o-system-card/
Tell us what you think
Your feedback helps us improve the content.