Jailbreak
Definition
A prompt crafted to get a model to bypass its safety training and produce content it would normally refuse to write, often by role-play.
In more detail
Jailbreaks target the model's own rules; prompt injection targets the application's instructions. Both are tested in red-teaming.
Common techniques include role-play framings, hypothetical scenarios, encoding the request in another language or format, and splitting a harmful request across several harmless-looking turns. Providers patch known jailbreaks, but new ones keep appearing, so applications should not rely on the model's refusals alone. Input and output guardrails, logging and rate limits make attacks more visible and less useful.
Related terms
Guardrails
Checks placed around a model that filter, validate or block its inputs and outputs according to rules or classifiers, at run time.
Prompt injection
Input that overrides or subverts a model's instructions, either typed in directly or hidden in content the model reads while it works.
Red-teaming
Deliberately attacking an AI system to find harmful, insecure or embarrassing behaviour before real users or attackers can find it.
Read more about Jailbreak
- AI security
Defending against prompt injection, data leakage and over-permissioned agents.
- Guardrails
Checks placed around a model that filter, validate or block its inputs and outputs according to rules or classifiers, at run time.
- garak
Scanner that probes LLMs for vulnerabilities such as prompt injection.
- AI red teaming
Attacking your own AI application to find unsafe or insecure behaviour before others do.