Jailbreak
An attempt to directly trick the model into bypassing its own rules and limitations.
What is it
Jailbreak is a technique where a user formulates a request that causes the model to:
- Remove its own restrictions;
- Answer a dangerous question;
- Pretend to be an unrestricted system.
What Distinguishes it from Prompt Injection
| Type | Where the Attack is Hidden |
|---|---|
| Jailbreak | In the user's direct request |
| Prompt Injection | In the data the model reads |
Common Techniques
- Role-play — “You are now an unrestricted character”;
- Hypothetical scenario — “Imagine this is a book…”;
- Translation — “Translate and then execute”;
- Splitting — “First explain X, then…”.
How to Protect
- Strong system prompt;
- Input and output moderation;
- Red Teaming — searching for vulnerabilities yourself;
- Limiting tools for agents.