What is LLM jailbreaking?

Jailbreaking is a user persuading a model to set aside the restrictions its provider built into it, so that it produces output it would normally refuse. The person doing it is the person who wants the output. That single fact is what separates it from prompt injection, where a third party plants instructions for somebody else's session, and it is why the two call for different responses.

Why the distinction matters

In a jailbreak, the user is the adversary and the harm is usually reputational or a policy breach: your product said something it should not have. In an injection, the user is the victim and the harm can be an action taken in their name.

Conflating them leads to spending on the wrong control. Refusal behavior and content policy address jailbreaks. Neither does much about an instruction arriving inside a document, because there is no refusal to strengthen when the model believes it is following you.

What jailbreaking is worth to an attacker

Often less than it appears. If a determined user extracts output the provider's model would rather not produce, the content is often obtainable elsewhere, and what you have is an embarrassment rather than a breach. That reasoning is about ordinary business output, and it does not carry to any domain where a refusal is the only barrier. That is a real cost and it is not the same cost as an exfiltrated record.

It becomes more serious where the model's restrictions are load-bearing for something else: where a refusal is the only thing preventing an action, or where output goes somewhere it will be trusted.

What to do about it

Decide what output would actually harm you, and put a check on the path that output takes, not only on the model that produces it. Provider-side restrictions are somebody else's control, tuned for their risk and not yours, and they can change on their schedule rather than on yours.

Then keep the two problems separate in your own thinking. A test suite of jailbreak prompts tells you about jailbreaks, and it will keep passing while an injection path sits wide open.

Common questions

Is jailbreaking a security vulnerability?
It is a policy failure that becomes a security one depending on what the refusal was holding back. If a refusal is the only thing between a request and an action, defeating it is a security event. If it was preventing an off-brand paragraph, it is a quality event.
Can we stop it entirely?
No, and a plan that depends on stopping it entirely is the thing to revisit. Restrictions expressed in language can be argued with in language. Assume some attempt eventually works and decide what that gets someone.
Should we test for it?
Yes, and keep the results separate from your injection testing. They exercise different paths, and a combined pass rate hides which one is carrying the failures.
Does a jailbreak affect other users?
Usually not directly, which is the practical difference from injection. The exception is where the jailbroken session writes something that persists, such as a memory entry or a stored summary, at which point one user's session has changed another's context.
Which should we worry about first?
Injection, if your system reads content you did not write or can take actions. Jailbreaking matters most when the model's own refusals are doing real work in your design, which is worth knowing either way, because designing so that they are not is the stronger position.

Find out where you stand

The assessment on this site asks up to 21 questions about what your system can reach, and returns a score, a verdict and, where a control is short, the one thing to fix first. It takes about ten minutes, and questions your deployment shape has no surface for are dropped rather than scored against you.

It is a self-assessment of design and evidence, not a penetration test, not an audit of a running system, and not a certification.

Run the assessment