AI CompendiumA public chart of the language
Home / Safety & Alignment / Jailbreak
Safety & Alignment

Jailbreak

Talking the model past its own restrictions.

Definition

A prompt crafted to get a model to produce output its safety training would normally prevent — role-play framing, obfuscation, incremental escalation.

Jailbreaks are an arms race. Build for the fact that some will succeed: assume you cannot prompt your way to safety and put the real controls elsewhere.

The direction of travel is discouraging in a specific way: as context windows grew, an attack that simply demonstrates the behaviour many times became feasible, which ties the attack surface to a capability trend rather than to a bug that can be patched.

How people use it
Handling a user report.
"Someone jailbroke it into writing an insult. Report upstream, add it to the red-team suite, keep the output filter."
Worked example

The long context as an attack surface

A system accepts large amounts of user-supplied text.

Many-shot attacks scale with how much text you accept, so a generous input limit is a safety parameter, not just a cost one. Constraining input size and staying current with classifier defences are both parts of the response.

Sources
  • blogMany-shot jailbreaking ↗Anthropic Research · 2024

    A long-context attack that uses many illustrative dialogues to steer a model past its guardrails — the link between context-window size and jailbreak surface.

  • blogNext-generation Constitutional Classifiers ↗Anthropic Research · 2026

    Classifier-based jailbreak defence and its safety-usability trade-off: the earlier generation reduced jailbreak success but raised refusals on harmless queries.

  • standardLLM01: Prompt injection ↗OWASP Gen AI Security Project · 2025

    Defines direct versus indirect injection and the downstream effects — data disclosure, unauthorised tool use, command execution — with least privilege and human approval as the recommended controls.

Related terms