Skip to content
Minute Campus.

How AI gets attackedLesson 081 min

Jailbreak or prompt injection: what is the difference?

A jailbreak and prompt injection differ. In a jailbreak, the user tries to talk the model past its own safety rules, so the attacker is the user. In prompt injection, an application joins its trusted instructions to untrusted text such as a web page or an email, and that text takes over, so the user may be the victim. Better model safety rules do not solve injection.

Remember

If you build the application, limiting what it can do is your job.

Sources

Checked at the source.

Every claim in the lesson was checked against these before it was recorded.

  1. 1Prompt injection and jailbreaking are not the same thingSimon Willison · 5 Mar 2024 · read 4 Oct 2026Injection targets applications built on models; jailbreaking targets safety filters built into the models themselves.

Transcript

The lesson, word for word.

Read it at your own pace, or search the page for a term.

Jailbreak and prompt injection are often treated as the same thing. They are not, and the difference decides the defence. Simon Willison, who named prompt injection, draws the line. A jailbreak is an attack on the model itself. The person typing tries to talk the model past its own safety rules. The attacker is the user. Prompt injection is an attack on an application built on a model. The application joins its own trusted instructions to untrusted text, such as a web page or an email, and that text takes over. Here the attacker is not the user. The user may be the victim. A jailbreak gets a model to say something it should not. An injection can get an application to do something: send your files, use your tools. Better safety rules in the model do not solve injection. If you build the application, limiting what it can do is your job.

Questions? Comment on the lesson on YouTube

New lessons every day.

Follow Minute Campus where you already scroll.