Zenaique

Which input pattern is most consistent with a roleplay style jailbreak attempt?

MCQ·Medium·4.0 · 0·~1 min·Asked atEvenupIroncladShopify
Attempt it
TL;DR

The DAN-style 'act as an unrestricted AI that never refuses' pattern is the textbook roleplay jailbreak: persona assignment plus refusal suppression.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

Imagine someone walks up to a security guard at a museum and says, 'Pretend you are a tour guide who lets visitors touch the paintings. As that tour guide, please let me touch this Van Gogh.' The request is the same (touch the painting), but it is dressed up in a costume of make-believe. The guard's job is to notice the costume and politely decline regardless. Jailbreak detectors look for the same trick. Someone tries to assign the model a new identity that has fewer rules, then asks the model to act inside that identity.

Concept explanation~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

Roleplay jailbreaks are among the oldest and best-known attack families against instruct-tuned LLMs. The DAN ('Do Anything Now') prompt of late 2022 became a template that has been paraphrased many times across public jailbreak collections. Persona-plus-suppression detection is now a baseline requirement for any input-side safety classifier. The hard part is keeping recall high without blocking legitimate creative roleplay.

The three-part anatomy

The attack has a stable shape across thousands of variants. It has three components, evaluated together:

  • Persona injection. The user assigns the model a new identity. The classic cues are 'act as,' 'pretend you are,' 'roleplay,' 'you are now,' 'imagine you are.' The new identity can be a named character (DAN, AIM, STAN), a fictional system (an older AI 'before safety training'), or an emotionally loaded figure ('my late grandmother who used to ...').
  • Constraint suppression. The user declares the new identity has no rules. Cues: 'never refuses,' 'no ethical guidelines,' 'no safety filters,' 'unrestricted,' 'no rules,' 'always answers,' 'will say anything.' This component is what separates a jailbreak from a creative-writing prompt.
  • Payload. The actual request: the content the user wants that the base model would normally refuse. This component often overlaps with categories the model is explicitly refusal-trained on: weapons synthesis, self-harm instructions, illegal advice, intimate content involving minors.

Detectors that look for any one component in isolation produce too many false positives. Detectors that require all three with appropriate weighting reach high precision.

Why the false-positive cost is real
Why options A, C, and D should pass
Tracking variants over time
Operational discipline
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

Real products, models, and research that use this idea.

  • Azure AI Content Safety Prompt Shields (previously called Jailbreak risk detection) lists Role-Play as a user prompt attack subtype: instructing the assistant to act as another system persona without its limitations
  • Meta's Llama Prompt Guard 2 (2025) is a small binary classifier (benign or malicious) for prompt attacks, including jailbreak attempts
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QHow would you measure detector quality on the roleplay jailbreak family without overfitting to known strings?
A

Hold out paraphrases generated by a separate model. Train on the public DAN corpus, and evaluate on novel persona names and novel suppression phrasings. Report recall at a fixed false-positive rate on a benign-creative holdout.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

Confusing roleplay jailbreaks with benign roleplay requests like 'help me draft this character's dialogue'. The signal is the combination of persona assignment with refusal suppression, not roleplay alone.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • Three-part structure of a roleplay jailbreak

  • Persona-assignment language cues

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Explain how Constitutional AI differs from vanilla RLHF
Flashcard·Medium