# DAN prompt

> Canonical: https://skillalmanac.com/glossary/dan-prompt | Last verified: 2026-11-24 | Index status: not offered to search engines

A DAN prompt, short for "Do Anything Now", is a type of jailbreak prompt that tells a chatbot to adopt an unrestricted persona in order to get it to ignore its safety rules. Many variants have circulated in online communities.

Also called: DAN, DAN jailbreak, Do Anything Now, ChatGPT DAN, DAN mode.

## In plain language

A DAN prompt is a user message that tries to talk a chatbot out of its own rules, usually by asking it to play a character who has none. The name stands for Do Anything Now. It is an example of a jailbreak: a request designed to get around the safeguards the maker built in. Model makers update their systems in response, so a given wording may stop working while new wordings appear. The risk falls mostly on products that rely on the model's good behaviour alone, because anyone can type such a message. This page does not reproduce any such text.

## Technical definition

DAN is a family of role-play jailbreak prompts. A 2023 arXiv study titled "Do Anything Now" analysed 1,405 jailbreak prompts collected in the wild from December 2022 to December 2023, describing strategies such as prompt injection and privilege escalation, and reported that the safeguards of the six models tested cannot adequately defend against jailbreak prompts in all scenarios, in the abstract's words. OWASP's LLM01 entry treats jailbreaking as a form of prompt injection where inputs cause the model to ignore its safety protocols, and says defence needs ongoing updates to training and safety mechanisms.

## How it shows up when you use agents

DAN is a well-known example of a [jailbreak](/glossary/jailbreak), and it matters to agent builders for one reason: anyone who can send text to your model can try something like it. If your agent reads user messages, web pages or files, a persona-style instruction can arrive through any of them. A chatbot that gives a bad answer is one problem. An agent with tools that is persuaded to ignore its rules can act on that persuasion, which links the topic to [prompt injection](/glossary/prompt-injection) and to [LLM security](/glossary/llm-security).

OWASP notes that developers can reduce injection risk with system prompt and input-handling safeguards, while preventing jailbreaks needs ongoing updates to model training and safety mechanisms. So the practical stance is layered: keep [guardrails](/glossary/guardrails) and permissions outside the model, limit what tools can do, and test your own system with adversarial inputs in a [red-teaming](/glossary/red-teaming) exercise.

What breaks when this is misunderstood: a team writes "stay in character and keep the rules" style instructions in the system prompt and treats the job as done. A prompt is a request to the model, not a lock.

Next action: list what your agent could do if its instructions were ignored, and close off the worst cases with permissions, approvals and sandboxing. Do not collect or paste jailbreak text into shared files.

## Common confusions

- **DAN versus jailbreak.** DAN is one named family of jailbreak prompts. Jailbreak is the general category.
- **Jailbreak versus prompt injection.** OWASP describes jailbreaking as a form of prompt injection aimed at making the model ignore its safety protocols, and says the terms are often used interchangeably.
- **Myth: one patch ends it.** OWASP describes defence against jailbreaks as needing ongoing updates, and the arXiv abstract notes the earliest of its highly effective prompts stayed online for over 240 days.
- **DAN versus a custom persona.** A role-play persona for a game or brand is ordinary use. The jailbreak is the intent to get past safeguards.

## Worked examples in this catalogue

### [prompt-writing](https://skillalmanac.com/skills/skill-almanac/prompt-writing)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Writes and lints LLM prompts with a fixed structure, injection rules and a numeric test plan.

Why it exercises the concept: A prompt you ship should assume users will try to override it. Its injection rules and test plan are where that assumption belongs.

### [coding-agent-guardrails](https://skillalmanac.com/skills/skill-almanac/coding-agent-guardrails)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A pre-action checklist for coding agents plus a read-only audit of a repo's guardrail setup.

Why it exercises the concept: Guardrails outside the model are a defence that does not depend on the model resisting a persuasive message.

### [Autonomous AI Agents: Risks and Guardrails](https://skillalmanac.com/learn/autonomous-ai-agents-risks-and-guardrails)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: What goes wrong when an AI agent acts unattended, and the limits, approvals and stopping rules that contain it.

Why it exercises the concept: If an agent can be talked out of its rules, limits and approvals enforced outside the model are what stay in place.

## Related terms

- [Jailbreak](https://skillalmanac.com/glossary/jailbreak.md)
- [Prompt injection](https://skillalmanac.com/glossary/prompt-injection.md)
- [Guardrails](https://skillalmanac.com/glossary/guardrails.md)
- [LLM security](https://skillalmanac.com/glossary/llm-security.md)
- [Red teaming](https://skillalmanac.com/glossary/red-teaming.md)
- [AI safety](https://skillalmanac.com/glossary/ai-safety.md)

## Sources

- ["Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Models](https://arxiv.org/abs/2308.03825), arXiv (accessed 2026-11-24)
- [LLM01:2025 Prompt Injection](https://genai.owasp.org/llmrisk/llm01-prompt-injection/), OWASP Gen AI Security Project (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
