Berk Bayri

Jailbreak

An input written to make an AI model ignore its safety training or usage rules and produce something it is designed to refuse. It targets the model's own limits, while prompt injection hijacks an application through untrusted content.

A jailbreak is an attempt to get an AI model to do what it was trained to refuse. The person typing the prompt is usually the attacker. Common tricks include wrapping the request in a role play, splitting it across many turns so no single message looks harmful, encoding it in another language or format, or flooding the context with fake examples of the model complying.

Jailbreaks work because refusal behaviour is learned, not hard-coded. Methods such as RLHF teach a model to decline certain requests, but they shape tendencies. A phrasing the training never covered can still get through, and every new model version has to be tested again.

Jailbreak or prompt injection

The two are often mixed up, and the difference changes who you defend against. A jailbreak goes after the model's own safety limits, usually from the user's side of the conversation. Prompt injection goes after the application built on the model: instructions hidden in an email, a web page or a document get treated as commands, so the system acts for someone other than its user. A jailbroken chatbot can produce harmful or embarrassing output. An injected agent with access to email, payments or files can do something with real consequences.

What it means for a deploying team

Assume a determined user can get past the model's built-in refusals some of the time. The protection then has to come from the system: input and output checks, narrow permissions, logging, and limits on what a single response can trigger. These controls, guardrails among them, matter more than which model claims the strongest safety training. Before launch, red teaming against your own use case shows how far a jailbreak can actually reach, which is the blast radius question in another form.