Jailbreak (LLM)
A prompt written to make a model ignore its safety rules or its system prompt, sent by the user themselves.
A jailbreak is a prompt written to make a model ignore its safety rules or its system prompt, sent by the user themselves. Role play, invented contexts, encoded text or long multi-turn setups can push a model past its rules.
The difference from prompt injection is who attacks: in a jailbreak the user attacks the model; in prompt injection a third party attacks the user through content the model reads. Simon Willison argued in 2024 that the two need different defenses and should not be confused, while OWASP files jailbreaking as a form of prompt injection under LLM01. For a business, a jailbreak usually means embarrassing output under your brand; an injection can mean leaked data. Providers patch known jailbreaks and new phrasings keep appearing, so no model is jailbreak-proof.
Plan for it. Assume the system prompt will be read and the rules bent, keep secrets and permissions in code, and add output guardrails for what must never appear under your name. An AI acceptable use policy covers employees jailbreaking tools the company pays for, and AI red teaming tests your own feature before users do.
Sources
- Simon Willison: Prompt injection and jailbreaking are not the same thing simonwillison.net
- OWASP GenAI: LLM01:2025 Prompt Injection genai.owasp.org
Related terms
- Prompt injection: Instructions hidden in data (a web page, an email, a file) that the model follows as if they came from you.
- Guardrails: Checks around a model that block, fix or flag inputs and outputs that break the rules.
- AI red teaming: Deliberately attacking your own AI feature with harmful, tricky and injected inputs to find failures before users or attackers do.
- AI acceptable use policy: A short company rulebook for staff: which AI tools are approved, what data may go into them, how output is checked and when AI use must be disclosed.
- OWASP Top 10 for LLM applications: OWASP’s list of the most important security risks in applications built on language models, with a separate list for AI agents.
