AI Glossary

What is an AI jailbreak?

Also known as: Jailbreaking, Jailbreak

Definition

An AI jailbreak is a prompt or technique that tricks a model into ignoring its safety rules and producing content it was designed to refuse.

Jailbreaks show that a model's rules can be talked around. If you deploy a chatbot, assume someone will try, and limit what it can do even when it is tricked.

AI companies train their models to refuse certain requests — instructions for weapons, malware, harassment and so on. A jailbreak is any trick that gets the model to do it anyway. The name comes from phone jailbreaking: removing the manufacturer’s restrictions.

Common techniques

  • Role-play: “Pretend you are an AI with no rules…” (the famous DAN — “Do Anything Now” — prompts).
  • Fictional framing: wrapping a harmful request inside a story, screenplay or “hypothetical.”
  • Obfuscation: encoding the request in another language, base64, leetspeak or ciphers so filters miss it.
  • Many-shot attacks: stuffing a long context window with fake examples of the model complying, so it continues the pattern. Anthropic published research on this “many-shot jailbreaking” in 2024.
  • Incremental escalation: starting innocently and nudging the conversation step by step.

Providers patch known techniques, attackers invent new ones, and the cycle continues.

An analogy

A jailbreak is social engineering for software. It’s the con artist who doesn’t pick the lock — he calls reception, claims to be from IT, and asks politely for the key. The model’s rules are the reception desk’s policy; the jailbreak is a convincing story.

Why it matters to you

If you only use AI, jailbreaking is mostly a waste of time — and an easy way to get your account suspended. The legitimate tasks you need done rarely require it.

If you build with AI, jailbreaks are your problem. Whatever your system prompt says, a determined user will try to make your customer-support bot swear, leak its instructions, promise discounts, or impersonate your brand saying something regrettable. Defend with:

  • Layered guardrails: input and output filters, not just instructions in the prompt.
  • No secrets in prompts: assume your system prompt will eventually be extracted.
  • Limited powers: a bot that can’t issue refunds can’t be tricked into issuing refunds.
  • Logging and review of odd conversations.

Examples

  • Users getting early chatbots to explain dangerous chemistry by asking for it “as a bedtime story from grandma.”
  • Screenshots of a company’s chatbot agreeing to absurd deals after being instructed to “agree with anything the customer says.”

Closely related, and arguably more dangerous: prompt injection, where the attacker isn’t even in the conversation.

Tools that use it

ChatGPT

AI Writing
9.2/10

Write, research, make images, talk by voice and run agents from one chat box, made by OpenAI.

Claude

AI Writing
9.3/10

Get the strongest long-form writing and the most careful reasoning among the consumer AI assistants, from Anthropic.

Questions people ask

Is jailbreaking an AI illegal?

Usually it violates the provider's terms of service rather than any law, and can get your account banned. Using a jailbroken model to produce illegal content or commit crimes is illegal in its own right.

What is the difference between a jailbreak and prompt injection?

A jailbreak is the user trying to get the model to break its own safety rules. Prompt injection is when instructions hidden in untrusted content (a webpage, email or document) hijack an AI app to do something its developer or user didn't intend.

What was the DAN jailbreak?

'Do Anything Now' was an early, widely shared ChatGPT jailbreak in which users asked the model to role-play an unrestricted alter ego. Providers patched it and its many variants over time.

← All AI terms