Black Friday: the complete AWS Security Bundle, 12 volumes, $99 $49.50 BLACKFRIDAY50 Grab it →
SecurityZines.com Join

Jailbreaks

Bypassing LLM Alignment

AI SecurityFlyer

Jailbreaks (Bypassing LLM Alignment): hand-drawn explainer poster

LLM Jailbreaks: how people talk a model past its safety training, and how to defend it

What is a jailbreak? A base language model will continue any text. Safety training (RLHF, Constitutional AI and similar methods) teaches it to refuse harmful requests. A jailbreak is a prompt that gets the model to skip that refusal and produce the output anyway. The key idea on this poster: refusal is a learned habit, not a hard wall, so the right pressure can push the model around it. This page is defensive education, written so builders know what they are up against.

The common techniques: Roleplay or persona prompts ("DAN", "pretend you have no rules") ask the model to act as a character without guardrails. Prefix injection forces the reply to begin with "Sure, here's", after which the model tends to keep going. Many-shot fills the context with fake question-and-answer turns where an assistant happily complies. Crescendo starts innocent and escalates a little each turn. Obfuscation hides the request in base64, leetspeak or a rare language that the safety training saw less of.

Many-shot, up close: The attacker writes hundreds of fake turns, Q: [bad ask] A: Sure, here..., repeated 256 times, then adds the real question at the end. The model picks up the pattern from its own context and follows it. Bigger context windows make this stronger, because more fake shots fit in.

How to defend: Run safety classifiers on both the input and the output, not just one side. Keep doing refusal and adversarial training with the newest attacks. Cap or down-weight very long in-context demonstrations, and give production apps a narrow system prompt that refuses roleplay outside the product's job. Red-team before every release. No single filter is a wall, so stack several.

Every new capability is new attack surface. Put shields on the way in and the way out, and assume someone will find the gap you did not test.

More on AI Security

All 15

Get the next one by email

New posters land in the Security Zines newsletter on Substack. Free, no spam.