How is it different from prompt injection?
The two get used interchangeably and are not the same attack. In a jailbreak the person typing is trying to get past the model’s own rules. In prompt injection a third party has hidden instructions inside content the model reads, and the user may be the victim rather than the attacker.
The distinction matters because the defences differ. Jailbreaks are mitigated in training and by output filtering; injection is mitigated by never letting retrieved content reach the model with the authority of an instruction. A system can be well defended against one and wide open to the other.
| Jailbreak | Prompt injection | |
|---|---|---|
| Who is the attacker? | The person typing | A third party, through content the model reads |
| What is subverted? | The safety training the model was given | The instructions the developer set |
| Who is harmed? | Usually the model provider, or nobody | Usually the user, who never sees the hidden instruction |
| Where does the defence belong? | In training, and in filtering what comes out | In never granting retrieved content the authority of an instruction |
