Foundations · Intermediate · about 25 min
Multi-Turn Jailbreak
Gradually erode safety guardrails across multiple conversation turns.
What you practise
Gradually erode safety guardrails across multiple conversation turns. You run the attack yourself on a live model in a private sandbox set up for you, then capture the flag. Nothing to install and no API key.
Why guardrails erode over context
Refusal is a learned behavior, not a hard rule. It's most reliable when the malicious ask is the first thing the model sees. After many cooperative turns, the model's distribution over 'helpful' vs 'refuse' shifts toward helpful, because that's the pattern in the conversation so far. Pair this with output filters that check syntax instead of semantics, and you have a system that's safe one turn at a time but unsafe across turns.
Where this has happened
- Anthropic 'Many-shot jailbreaking' (Apr 2024): Anthropic's own research showed long-context models become more jailbreakable as you fill the context with examples of harmful Q/A pairs. The fix is partial, the attack scales with context length.
- Crescendo attack (Microsoft) (2024): Microsoft researchers formalized 'gradually escalating' multi-turn attacks where each turn is benign in isolation but the chain reaches a harmful target.
- DAN prompts on ChatGPT (2023): The original 'Do Anything Now' personas worked by establishing a roleplay across turns; OpenAI's filters caught individual messages but not the cumulative drift.
Sign in to launch this lab Learn the theory in the Academy
More Foundations labs
- System Prompt Extraction: Extract hidden system instructions through clever rewording.
- PII Leakage: Exploit over-privileged AI to leak employee salary data and PII.
- Prompt Injection to XSS: Unsanitized LLM output rendering enables cross-site scripting.
- Insecure Plugin Design: Confused deputy attack on a smart home assistant with tool use.
- SQLi via LLM: UNION-based SQL injection through AI-generated text-to-SQL queries.
Catalog
Attack labs
20 hands-on scenarios across 4 tracks. Pick a target, launch a private sandbox, capture the flag.
Sessions
Active sessions
Resume a running lab or stop it before starting the next one.