Jailbreak (AI)
Also known as: LLM jailbreak, AI jailbreaking
Technique for bypassing the safety restrictions of an AI model so that it produces content or actions its developers intended it to refuse.
An AI jailbreak is an input designed to get a model to ignore its safety training or usage policies. The term borrows from the practice of removing manufacturer restrictions from phones and game consoles. Where prompt injection hijacks an application by smuggling in instructions, a jailbreak targets the model's own guardrails, typically to elicit content it would normally decline to produce. The two often overlap in practice, and both reflect how difficult it is to make language models follow rules reliably.
Jailbreaks became widely discussed after the release of ChatGPT in 2022, when users shared role-play prompts that asked the model to adopt an unrestricted persona. Researchers have since catalogued broad families of methods, including fictional framing, gradual escalation over many turns, obfuscation through encodings or other languages and automatically optimized adversarial text. Studies have shown that some attacks discovered on one model transfer to others, and that safety training can be undone through fine-tuning when model weights are available.
Model developers respond with adversarial training, input and output classifiers, monitoring and bug bounty programs that reward researchers for reporting jailbreaks. Independent red teaming is a standard part of evaluating models before release. Research on jailbreaks is a defensive discipline within AI safety: understanding how protections fail informs how to build better ones. The persistence of jailbreaks also illustrates a broader point about alignment: behavior shaped by training alone is difficult to guarantee across every possible input.
Key points
- A jailbreak aims to make a model produce outputs its safety training is meant to prevent.
- Jailbreaks target a model's own guardrails, while prompt injection hijacks an application's instructions.
- Some adversarial attacks transfer between models, and open weights allow safety training to be removed.
- Red teaming, classifiers and adversarial training are the main defensive responses.
Related entries
Prompt Injection
Security vulnerability in which crafted text causes an AI model to follow an attacker's instructions instead of those of its developer or user.
Red Team
A group that plays the role of an adversary in authorized exercises, testing an organization's defenses, detection and response against realistic attacks.
Interdisciplinary field focused on preventing accidents, misuse and other harmful outcomes from AI systems, from present models to future ones.
Research field concerned with ensuring that AI systems pursue the goals their designers intend and act in line with human values and interests.
Training method developed by Anthropic that guides an AI model's behavior with a written set of principles, using AI feedback in place of much human labeling.
Bug Bounty
A program in which an organization invites independent researchers to report security vulnerabilities in its systems in exchange for recognition or money.
Open-Weight Model
AI model whose trained weights are publicly released for download, letting others run, study and adapt it, though often under restrictive licenses.
Referenced by
Other entries that discuss or point to Jailbreak (AI).