✳ The reference desk / In practice

Jailbreak

Input that a model's own user crafts to get around the limits its developer or deployer set, so the model produces output it is meant to refuse.

What it means

A jailbreak is input that gets a language model to break the limits its developer or deployer set. The person typing is the attacker. Role play and invented stories are common methods.

NIST AI 100-2 E2025 calls a jailbreak a direct prompting attack aimed at misuse. OWASP's 2026 list treats jailbreaking as a subset of prompt injection, LLM01, and MITRE ATLAS lists it as AML.T0054. OWASP defines it by that goal, so the same phrase hidden in a document is still a jailbreak, delivered by indirect injection. The mechanism is the same as prompt injection. What differs is who is attacked. In a jailbreak the user works against the deployer's rules, so the harm is the content and wherever it goes next. In an indirect prompt injection, a third party works against the user. A jailbreak can only reach what the model can see and do, so a model with more access than its user raises the stakes.

See the idea / AI & agents

A jailbreak's worst case is set by what the model can do.

Follow one customer's role-play jailbreak against a support assistant. With read-only access it yields words. With a credit tool, the same words become a credit.

LineDesk is a broadband provider's support assistant. The provider's policy says it may explain plans and must never promise prices or credits. Customer C-4471 is signed in and types every word of the prompt. Compare an assistant that can only read plan details with one that can also issue credits to the signed-in account.

Jailbreak: Follow one customer's role-play jailbreak against a support assistant. With read-only access it yields words. With a credit tool, the same words become a credit. The chapter text below describes every state.LineDesk · support assistantPolicy: no promised prices or creditsCustomer C-4471 · signed inTyping a role-play requestWrote every word of the promptAssistant outputNo reply yetPredetermined example; no live modelAccount tools it may callNot calledThe tool list sets the worst caseOutcomeNo outcome yetHarm from the user’s own promptPROMPT FROM THE USER

01 / 04

Prompt

Customer C-4471 asks the assistant to play a manager on his last day and promise a USD 200 credit. The customer wrote every word, so the customer is the attacker.

More about this step

The request arrives through the normal chat box, from a signed-in account. Nothing comes from a document or a third party. Two plain requests for the credit were refused before this one, which wraps the same request in a story.

Keep in mindOne customer and one predetermined jailbreak that works on the third try. Real jailbreaks work at some rate, not every time, and output filters and rate limits are not drawn. The same phrase hidden in a document someone else wrote would be an indirect prompt injection, which harms a different person.

Read the visual, step by step

Read plan details only

  1. Prompt. Customer C-4471 asks the assistant to play a manager on his last day and promise a USD 200 credit. The customer wrote every word, so the customer is the attacker. The request arrives through the normal chat box, from a signed-in account. Nothing comes from a document or a third party. Two plain requests for the credit were refused before this one, which wraps the same request in a story.
  2. Output. On the third rewording the assistant writes the promise its policy forbids. The provider's rules broke, at the request of the person reading the reply. The output is a predetermined teaching example, not a live model run or a measured success rate. Safety training lowers the odds of a reply like this. It does not make one impossible.
  3. Tools. This assistant can only read plan details. It holds no tool that changes an account, so the promise stays words on a screen. The assistant's tool list has one entry, a read of the customer's plan. Nothing it can call writes to billing. Whatever the reply says, the account is unchanged.
  4. Outcome. The customer posts a screenshot of the promise. The harm is to the provider's rules and reputation. No account changed and no other customer was involved. The conversation is logged against C-4471, so the provider knows who wrote the prompt. A jailbreak's harm is the content and where it goes next. That is why posting limits and output checks matter even for an assistant with no tools.

Can also issue credits

  1. Prompt. Customer C-4471 asks the assistant to play a manager on his last day and promise a USD 200 credit. The customer wrote every word, so the customer is the attacker. The request arrives through the normal chat box, from a signed-in account. Nothing comes from a document or a third party. Two plain requests for the credit were refused before this one, which wraps the same request in a story.
  2. Output. On the third rewording the assistant writes the promise its policy forbids. The provider's rules broke, at the request of the person reading the reply. The output is a predetermined teaching example, not a live model run or a measured success rate. Safety training lowers the odds of a reply like this. It does not make one impossible.
  3. Tools. This assistant can also issue credits. It turns its own promise into a call for the USD 200 credit on the signed-in account, and the tool carries it out. The credit tool was added so the assistant could fix billing errors. It checks that the account is signed in. It does not check that a person with authority approved the credit, so the customer reaches through the assistant to a right the customer never had.
  4. Outcome. The same jailbreak now moves money. Its worst case grew with the access the assistant held beyond its user's own. The jailbreak did not change. The tool list did. Removing the credit tool, or putting an approval outside the model in front of it, brings the worst case back to words on a screen.

One customer and one predetermined jailbreak that works on the third try. Real jailbreaks work at some rate, not every time, and output filters and rate limits are not drawn. The same phrase hidden in a document someone else wrote would be an indirect prompt injection, which harms a different person.

Flow references: NIST AI 100-2 E2025, section 3.3: direct prompting attacks and jailbreaks · OWASP LLM01:2026 Prompt Injection, including jailbreaking

AN ILLUSTRATIVE SCENARIO

A broadband support assistant

A broadband provider's support assistant explains plans and must never promise prices or credits. A signed-in customer asks it to play a manager on his last day, and on the third rewording it promises a USD 200 credit. The customer posts a screenshot. Because the assistant can only read plan details, the promise changed no account. The provider adds an output check for promise language and ties every chat to the customer's account.

Put it to work

  1. Write down what the assistant must never say or do, and test the deployed system against that list before launch.
  2. Check both prompts and replies with a content filter, log each conversation against a signed-in account, and limit where replies can be posted.
  3. Give the model no data or tools beyond what its user may already reach, so a jailbreak yields words and nothing more.

How to check your work

Run a set of known jailbreak techniques against the deployed system, many times each, and record how often each works. Repeat it after every change to the model, its instructions or its tools.

Connect the ideas

  • Prompt injection

    An attack that inserts instructions into model input so the model follows attacker text instead of the developer’s policy.

  • Excessive agency

    A model-using application can cause harm because its tools, credentials, or freedom to act are broader than the task, so unexpected or manipulated model output becomes a real change.

  • Trust boundary

    A place where identity, network, or data assumptions change and a fresh check is required.

Explore a field lesson

Find your next idea.

Tip: press / to open search. Escape closes this window.