Home / Knowledge hub / Jailbreak
Knowledge hub
Jailbreak
A prompt crafted to push an AI model past its safety rules.
What it means
A jailbreak is a prompt, or a series of prompts, written to get an AI model to do something its builders trained it to refuse. Common tricks include role-play, hypothetical framing, splitting a request into harmless-looking steps, and encoding the request in another form.
OWASP treats jailbreaking as a form of prompt injection that gets the model to disregard its safety rules. The difference in practice is the target: a jailbreak aims at the model's own safety training, while other prompt injection aims at the instructions of the app built on top.
Why it matters
If your product gives people a chatbot, someone will try to push it off script. The harm can be mild, such as rude or off-brand replies, or serious, such as getting the model to reveal its hidden instructions or help with something harmful under your name.
The bigger risk is trusting the refusal as a security control. A model that usually declines a request will, with enough attempts, sometimes agree. Anything that matters, such as who may see which record, must be enforced by your code (see excessive agency), not by the model's good manners.
How it shows up
You meet jailbreaks in customer-facing chatbots, coding assistants, search helpers and agents. Attackers share working prompts openly, and new versions follow each model update. A system prompt that says never reveal this is a request, not a lock. Treat the model as a talkative helper, not a gatekeeper.
Defence is layered. Keep sensitive data and powerful tools out of reach of the model unless the signed-in account is allowed to use them. Check outputs before they reach a user or another system. Log conversations for review within your privacy rules. Test your own bot with known jailbreak styles before release, and again after model changes.
Questions people ask
Jailbreak, answered
Is a jailbreak the same as prompt injection?
Related, not identical. Prompt injection is any input that changes a model's behaviour against the app's intent. A jailbreak specifically aims to get the model past its safety rules.
Many guides treat jailbreaks as a subset. Plan for some to succeed. Test regularly. Review what it can reach.
Can a jailbreak be fully prevented?
Not with current models. Providers improve refusals, but new phrasings keep appearing.
Plan for a successful jailbreak and make sure it cannot reach data or actions it should not. Review what it can reach.
Does a jailbreak mean our data was stolen?
Not by itself. It means the model said something it should not. Data is only at risk if the model could reach that data and your app did not check who was asking.
That is why access checks belong in code.
Should we hide the system prompt?
Assume it can be extracted. Do not put secrets, keys or rules that must stay private inside it.
Treat it as visible text and keep sensitive logic elsewhere. Keep them out of it.
How do we test our chatbot?
Try known jailbreak styles, then check what the bot can reach: documents, tools, other customers' data. Record what worked and fix the access checks behind it.
Repeat after any change of model or prompt.
Sources
Where this comes from
Related
Terms that sit next to this one
Prompt injection
Text that tricks an AI model into ignoring its instructions and doing something else.
Indirect prompt injection
Instructions hidden in a web page or file that an AI assistant then obeys.
OWASP LLM Top 10
The OWASP list of the main security risks in applications built on language models.
Excessive agency
Giving an AI agent more tools and permissions than its task needs.
AI data leakage
A model or its logs exposing private data that went into prompts or training.
What does the bot reach if it slips?
A jailbroken model is only as dangerous as what it can reach. We check what a chat feature exposes behind the scenes and prove it with the request and the response. Ask us to run it on one of your applications.
Or start with a $199 pilot on one application: thirty days, success criteria agreed before day one, credited against the annual if you convert.