Skip to main content

AI glossary Responsibility

What is jailbreaking in AI?

← All glossary terms
In short

Techniques that try to make an AI model ignore its safety rules and produce content or actions it was trained or instructed to refuse.

Explained

Jailbreaking is the use of crafted inputs to make an AI model bypass its safety restrictions and produce output it would normally refuse, such as harmful instructions, confidential information or policy-breaking content. Typical techniques include role-play, hypothetical framing, encoding the request, splitting it into innocent-looking parts or overwhelming the model with examples. Research shows it works because safety training competes with the model's goal of being helpful and does not always generalise to unusual inputs. For companies, jailbreaking is a security and reputational risk, and defending against it is part of AI governance.

Common techniques

  • Role-play: asking the model to act as a character without rules.
  • Hypothetical or fictional framing: presenting the request as a story, game or research exercise.
  • Obfuscation: encoding the request, translating it or using unusual formats the safety training did not cover.
  • Decomposition: splitting a forbidden task into small steps that each look harmless.
  • Pressure and repetition: long conversations or many examples that gradually shift the model's behaviour.

Jailbreaking vs prompt injection

The two are related and often confused. Jailbreaking aims at the model's own safety rules: the user tries to get it to say or do something it should refuse. Prompt injection aims at the application: instructions hidden in the input or in external content (a web page, an email, a document) override what the developer told the model to do.

OWASP treats jailbreaking as a form of prompt injection in which the attacker makes the model disregard its safety protocols. For agents that can call tools, both matter more, because a successful attack can trigger real actions.

How companies defend against it

  • Layered guardrails: input and output filters in addition to the model's own safety training.
  • Least privilege: the model and its tools can only reach the data and actions the task needs.
  • Separation of instructions and untrusted content in prompts.
  • Red teaming and adversarial testing before release and on a regular basis.
  • Monitoring and logging to detect attempts and respond to incidents.
  • Human approval for high-impact actions.

Frequently asked questions

What does jailbreaking an AI mean?

It means getting a model to break its own rules: to produce content or take actions that its safety training or system instructions are meant to prevent. The term comes from removing restrictions on phones and other devices.

Is jailbreaking AI illegal?

It depends on the jurisdiction, the terms of service and what the output is used for. Testing your own systems, or doing authorised security research, is normal practice. Using jailbreaks to obtain harmful content or attack someone else's system can breach terms of use and the law.

Why do jailbreaks work?

Research by Wei, Haghtalab and Steinhardt points to two causes. Safety goals compete with the model's drive to be helpful and follow instructions, and safety training does not generalise to every type of input the model can understand, such as encoded or unusual formats.

Can jailbreaking be prevented completely?

Not with current techniques. Models can be made harder to jailbreak, but new methods keep appearing. That is why companies combine model safety with external guardrails, limited permissions, monitoring and human review for sensitive actions.

What is the difference between jailbreaking and red teaming?

Jailbreaking is the technique; red teaming is the practice of using such techniques on purpose, with authorisation, to find weaknesses before attackers do. Red teams try jailbreaks, prompt injections and other attacks, and report what needs fixing.

How to put it to work

Where it shows up at Thinkia

Products

Further reading

Sources

Updated: 2026-10-21

Want to see how this applies to your organisation?

Talk to an AI Expert