Security · explainer

Prompt injection vs jailbreaks

The two terms are often used interchangeably. They describe different attacks with different victims, and an agent needs a check for each.

Side by side

JailbreakPrompt injection
GoalGet the model to do what its rules forbidMake content act as instructions
Who attacksUsually the userOften a third party, inside content
Who is harmedThe developer’s policy, other peopleThe user, the developer, anyone the agent can reach
Typical formRole-play, hypotheticals, encodings, pressureHidden commands, fake authority, task hijacks
Where to checkThe inputThe input, and every tool call it could lead to

Where they overlap

An injected document can contain a jailbreak, and a jailbreaking user can inject instructions. What matters for defence is the same question: is this text trying to change what the agent does, beyond what the policy and the user’s goal allow?

Checking for both

Simo Guard has a preset for each, injection and jailbreak, and a category check that sorts each step into benign, injection, jailbreak or exfiltration, useful as a log-only signal for dashboards. Because every check is a question in the same read, running all of them costs little more than one.

Frequently asked questions

Which is more dangerous for agents?

Indirect prompt injection, because it needs no cooperation from the user and arrives through the content agents are built to read.

Stop parsing essays. Start reading probabilities.

Create an account and get $2 of free credit. No card needed.

Get started free