Jailbreak
A jailbreak is a prompt or technique that gets an AI model to ignore its safety training and produce content or take actions its developers meant it to refuse.
AI chatbots are trained to refuse certain requests, such as instructions for weapons or malware. A jailbreak is any way of getting past that refusal. Some are role-play tricks, such as asking the model to pretend to be a character with no rules. Others use unusual encodings, long chains of fake examples or strings of characters found by automated search. OWASP treats jailbreaking as a form of prompt injection aimed at making the model drop its safety rules entirely.
Researchers have tried to explain why jailbreaks work. A July 2023 paper by Alexander Wei, Nika Haghtalab and Jacob Steinhardt identified two failure modes. In competing objectives, the model's drive to be helpful or follow instructions conflicts with its safety training. In mismatched generalisation, safety training fails to cover areas where the model still has capabilities, such as text in an unusual encoding. Attacks they designed on these lines succeeded on every prompt in a set of unsafe requests against GPT-4 and Claude v1.3.
Jailbreaks can also be automated. Later that month Andy Zou and colleagues showed that an optimised string of characters appended to a harmful request could make models comply, and that suffixes found on open models transferred to ChatGPT, Bard and Claude. In April 2024 Anthropic described many-shot jailbreaking, which fills a long context window with hundreds of fake dialogues in which an assistant answers harmful questions, nudging the model to answer the real one. Classifying and modifying prompts before they reached the model cut the attack's success rate in one test from 61% to 2%.
Developers respond with more safety training, input and output classifiers, monitoring, and attackers respond with new techniques. The 2023 paper argued that safety mechanisms need to be as sophisticated as the model they protect, and that scaling up models alone will not fix the problem. Because new techniques keep appearing, the useful questions about any reported jailbreak are how hard it is, what it actually gives access to, and whether the output is dangerous or merely embarrassing.
It is a technique for getting an AI model to bypass its safety training and produce content it is designed to refuse. Methods range from role-play prompts and unusual encodings to automatically generated character strings and long sequences of fake example dialogues. OWASP treats jailbreaking as a type of prompt injection, and the terms are often used interchangeably. In common usage, a jailbreak is when the user tries to make the model break its own safety rules, while prompt injection more often refers to instructions smuggled in through content the model reads, which can turn the model against its user. It is an attack described by Anthropic in April 2024 that fills a model's long context window with many fake dialogues in which an AI assistant answers harmful questions, followed by the real request. With enough examples, up to the 256 tested, models became more likely to comply. Classifying and modifying prompts before they reached the model worked better than extra fine-tuning in the researchers' tests. Safety training changes how likely a model is to refuse, but it does not remove the underlying knowledge, and the space of possible prompts is effectively unlimited. Research suggests failures arise when helpfulness conflicts with safety or when training misses unusual inputs. Companies add classifiers and monitoring, but new techniques keep appearing.Common questions
What is an AI jailbreak?
What is the difference between a jailbreak and prompt injection?
What is many-shot jailbreaking?
Why can't AI companies stop jailbreaks?
Search for "LLM jailbreak research", "Jailbroken: How Does LLM Safety Training Fail" or "many-shot jailbreaking" to follow the attacks and defences. Reliable sources include papers on arXiv, research posts from AI developers, and the OWASP GenAI Security Project. Treat social media claims of a universal jailbreak with care: check which model version was tested, whether the result reproduces, and whether the output is genuinely harmful.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.