# Jailbreak

> The Jailbreak is an attempt to bypass the safety rules of an AI model with specially crafted prompts.

## What is an AI jailbreak?

The technique of crafting prompts, such as role play or hypothetical scenarios, that make a model ignore its safety rules and produce content it would normally refuse.

- Topic: Security & Ethics
- Type: cyberattack

## Key points

- Safety is enforced by output checks in code, not only by the system prompt.
- The app's own rules are tested with known jailbreak prompts in its evals.

## Interview questions

### Is jailbreaking an AI model illegal?

It is usually not illegal by itself, but it often breaks the provider's terms of service, and using the output for harm can be illegal.

### How do apps defend against jailbreaks?

They combine model safety training with output checks in code, input classifiers, monitoring and evals that include known jailbreak prompts.

### What is the difference between a jailbreak and prompt injection?

A jailbreak targets the model's safety rules. Prompt injection targets the app's own instructions and the tools or data it can reach.

## Related cards

- [Prompt Injection](https://wonderium.dev/ai/prompt-injection.md)
- [Guardrails](https://wonderium.dev/ai/guardrails.md)
- [Alignment](https://wonderium.dev/ai/alignment.md)
- [System Prompt](https://wonderium.dev/ai/system-prompt.md)

---

- Level: [Artificial Intelligence](https://wonderium.dev/ai.md)
- HTML version: https://wonderium.dev/ai/jailbreak
- Last updated: 2026-11-25
