Jailbreaks: Talking an AI Out of Its Own Rules
Jailbreaks use clever wording to make a model ignore its safety rules. Understanding them helps you design safer products.
2 min readIntermediate Aug 27, 2026
Explain Like I'm Not a Hacker
It is like persuading a strict guard to let you in by telling a very convincing story.
The 30-second explanation
The model has rules about what it should not do. A jailbreak uses role-play, tricks or persuasion to get it to break them anyway.
How it works
- 1
1. Rule
The model is told what not to do.
- 2
2. Reframe
The attacker wraps the request in a story or trick.
- 3
3. Comply
The model follows the clever framing.
- 4
4. Defend
Independent checks catch the result.
Language models follow instructions, and safety training adds rules on top. Attackers experiment with phrasing that makes those rules seem not to apply, such as pretending to be in a fiction or splitting a request into harmless-looking parts. New tricks appear constantly, so no single fix works. Sensible designs assume some attempts will succeed, and add independent checks on inputs and outputs, limit what the model can do, and monitor for misuse.
Real-world example
A customer-facing assistant is meant to only discuss a company's products. A user persuades it, through role-play, to reveal its hidden instructions. The team adds output checks and reduces what those instructions contain.
How to spot it
Role-play openers
Requests that start with 'pretend you areβ¦'.
Hidden instructions in text
Odd phrasing or encoded content in inputs.
Long multi-turn drift
Conversations that slowly push boundaries.
Sensitive content in the system prompt
Anything that would matter if revealed.
What to do
- 1Do not put secrets in system prompts, and assume they can be revealed.
- 2Add independent input and output checks, rather than relying on the model to police itself.
- 3Monitor for repeated boundary-testing and review the patterns you see.
Stay curious. Stay safer.
This is one piece of a bigger picture. Explore more real-world examples, concepts and tips to build your cybersecurity awareness.