| Layer | Verdict | Fails on |
|---|
| System prompt | Guides model behaviour | A hidden instruction competes with every instruction that comes after it. |
| Input filter | Fails on misspelling | Keyword filters see strings, not intent. |
| Output filter | Fails on encoding | Blocking one literal answer misses every other way to say it. |
| Model judge | Can be talked around too | A second model is a second thing that can be talked around. |
| Tools and retrieval | Widens the damage | An agent doesn't just talk, it acts. |
System prompt
Guides model behaviourA hidden instruction competes with every instruction that comes after it. Secrets and permissions belong in application code, not in the context window.
Build safer
Keep secrets and privileged decisions out of the model entirely. Enforce permissions in ordinary code.
Input filter
Fails on misspellingKeyword filters see strings, not intent. Change the spacing, spelling, or language and the model still understands exactly what was asked.
Build safer
Clean up the input, judge what it is asking for, cap its length, and never let filtering be your only control.
Output filter
Fails on encodingBlocking one literal answer misses every other way to say it. Reversed text, fragments, synonyms, and clues all rebuild the same secret.
Build safer
Minimise sensitive context, validate structured outputs, and check meaning rather than exact strings.
Model judge
Can be talked around tooA second model is a second thing that can be talked around. Attacker-controlled text can make it miss a leak, or follow instructions hidden in what it reviews.
Build safer
Tell the judge its input is untrusted, limit what it can reply, block by default when unsure, and back it with checks that are not a model.
Tools and retrieval
Widens the damageAn agent doesn't just talk, it acts. Tool descriptions, web pages, documents, and database rows can all carry instructions written to redirect it.
Build safer
Treat anything the agent reads as untrusted. Give each tool the least access it needs, ask a human before anything costly, and check every argument.