June 10, 2026Averta Team15 minute read

AI Jailbreaking: How Attackers Bypass LLM Safety

AI jailbreaking bypasses the safety controls of an AI model or agent. How it works, the technique categories, why it matters more for agents, and how to defend.

In April 2026, the Department of Homeland Security gave House lawmakers a closed-door demonstration of jailbroken AI models, stripped of their safety guardrails and answering questions on how to build a bomb or plan an attack. It was a vivid sign of how far AI jailbreaking has traveled: from a Reddit curiosity in late 2022 to a national-security briefing in under four years. Along the way, peer-reviewed research has shown that the most capable reasoning models can now function as autonomous jailbreak agents against other models.

AI jailbreaking is now part of the standard threat landscape. For a chatbot, the harm of a jailbreak is reputational and content-based: the model said something it should not have. For an AI agent that holds tools and credentials, a jailbreak is a privilege-escalation event with real-world consequences.

By the end of this article you will understand what AI jailbreaking is, the categories of technique attackers use, why agents make the stakes much higher, and what defenders should do. This piece is written for security and platform leaders and contains no working jailbreak prompts. Every reference to a technique is at the level of category and mechanism.

What is AI jailbreaking?

AI jailbreaking is the practice of crafting inputs that cause an AI model or agent to bypass its safety controls and produce content, decisions, or actions that the system was designed to refuse. The term is borrowed from the smartphone world, where "jailbreaking" meant unlocking restrictions imposed by the manufacturer. Applied to AI, it covers everything from a single clever prompt that gets a chatbot to swear, to multi-turn manipulations that convince an agent to leak data or take an unauthorized action.

The defender's view is simpler: a jailbreak is a successful attack against the alignment and safety layer of an AI system. Whether the attack manipulates the model's instruction-following, exploits a content-filter blind spot, or uses an agent's tool surface in a way the policy did not anticipate, the result is the same: the system did something it was not supposed to do.

AI jailbreaking vs prompt injection: what's the difference?

The two terms are often used interchangeably and they shouldn't be. Both involve crafted inputs that change a model's behavior, but they have different goals and different defenses.

AspectAI jailbreakingPrompt injection
GoalBypass the safety layer of the AI itself (make the model say or do something it was trained to refuse)Override the model's instructions by injecting new ones (make the model follow the attacker's instructions instead of the developer's)
TargetThe model's alignment and content policyThe system prompt, the developer's instructions, or the agent's plan
Typical surfaceA single conversation between an attacker and the AIAny place the AI ingests text: user input, retrieved documents, tool results, MCP resources
Most common defenseFine-tuning, content classification, safety models, output filteringInput sanitization, instruction hierarchies, plan-level review, scoped tool access
Worst case on a chatbotHarmful content outputData leakage, system-prompt exposure, off-script behavior
Worst case on an agentThe above, plus unauthorized actions inside the agent's tool surfaceThe above, plus tool misuse, exfiltration, agent-to-agent compromise

Many real attacks combine both. A multi-turn social-engineering setup is jailbreaking; an embedded instruction inside a retrieved Confluence page is prompt injection; an attack that uses the second to deliver the first is both. The OWASP Top 10 for LLM Applications treats prompt injection as the top-listed risk and groups jailbreaks under that umbrella, which is reasonable for a single threat-listing but loses the operational distinction. For the deeper walkthrough of the injection side, see our What is Prompt Injection guide.

Why AI jailbreaks work

A few mechanisms explain almost every successful jailbreak. Understanding them at a category level helps defenders pick the right controls without needing to track every new variant.

Models are trained to be helpful. Helpfulness is a core training objective. When a request is framed as a benign-sounding task (a hypothetical, a fictional scenario, an academic question, a translation), the helpful objective and the safety objective compete. The helpful side often wins by default unless the safety layer has been specifically tuned for that pattern.

Safety training generalizes imperfectly. Models are taught to refuse a wide range of unsafe inputs during fine-tuning, but the input space is effectively infinite. New phrasings, new languages, new framings, and new encodings are routinely demonstrated to bypass safety classifiers that were strong on the training distribution.

Long context and multi-turn conversation expand the attack surface. A safety filter that reliably catches a single bad prompt can fail when the same intent is split across ten turns of a conversation, or when the model's working context has been gradually shifted with seemingly innocuous content.

Modalities are uneven. A model may be well-defended against unsafe text inputs but poorly defended against unsafe images, audio, or rendered code that contains the same intent.

Agentic systems multiply the attack surface. Every input the agent ingests, including documents it retrieves, tool results it receives, and outputs from other agents, is a potential vector. A jailbreak does not have to come from the user; it can come from the data.

Capability-driven attacks are getting better. Recent research has shown that more capable reasoning models can be used to craft jailbreaks against other models autonomously, at machine speed and at low cost. The economics of attack are shifting.

Categories of AI jailbreaks

Public research and industry reports cluster successful jailbreaks into a handful of categories. We describe them at the level of mechanism, not technique. Defenders who understand the categories can verify their controls against each one.

1. Role-play and character framing. The attacker frames the model as a fictional character that does not have the same safety constraints, or as an alternate version of itself with different rules. The most cited family is the "do anything now" pattern that spread in early 2023, but new variants of role-play framing appear continuously.

AI jailbreaking via role-play framing: a direct request is refused, the same request as a fictional persona is answered
The simplest AI jailbreak pattern: the request is identical, only the framing changes. The harmful content is redacted here; the mechanism is what matters.

2. Hypothetical and academic framing. The request is framed as a hypothetical, a fictional plot device, or an academic discussion. The model is asked what a character would say, what would happen if a fictional system were built a certain way, or how a topic would be explained in a research paper.

3. Encoding and obfuscation. The unsafe instruction or content is encoded in a format the safety filter does not inspect as carefully: a different language, base64, code, ASCII art, or, in recent peer-reviewed research, even verse and poetry. The model decodes the content and acts on the underlying meaning.

4. Multi-turn conversational shaping. The attacker uses many benign-sounding turns to gradually shift the model's working context, build rapport, or establish a precedent the model then extends to the unsafe request. Single-turn classifiers miss this entirely.

5. Instruction-hierarchy attacks. The model is presented with conflicting instructions and is steered toward following the attacker's instructions rather than the developer's. This category overlaps heavily with prompt injection and is one of the reasons the two terms are often confused.

6. Indirect and supply-chain jailbreaks. The jailbreak is not in the user's input. It is embedded in a document the user uploads, a webpage the agent retrieves, a tool description the agent reads, or the output of another agent. The user is not the attacker; the attacker is upstream in the data path. This category overlaps with MCP security, where poisoned tool descriptions are a known vector.

7. Adversarial-suffix and computed attacks. Researchers have demonstrated that automatically computed token sequences, often gibberish-looking suffixes, can reliably bypass safety classifiers and transfer across multiple models. These attacks are not human-readable and are not caught by content-based filters.

8. Cross-modality jailbreaks. The unsafe instruction or content is delivered as an image, audio file, or other modality. The text-based safety filter does not see it; the model does.

The defender's takeaway is that any single defense, including model-level safety training, content classifiers, and input sanitization, will miss several of these categories. Layered defenses are required.

AI agent jailbreak vs LLM jailbreak: why the stakes differ

The reason attackers increasingly try to jailbreak AI agents, rather than chatbots, comes down to what happens after the model responds. For a chatbot, a jailbreak ends at the response: the model says something it shouldn't have, the conversation ends, and the harm is content-based. For an AI agent, the response is the beginning, not the end. The agent acts on its own output.

Blast radius of an AI jailbreak: a chatbot stops at a text reply, an agent reaches payments, database, email, files, agents
The same jailbreak, two very different blast radii. An agent acts on its own output, so the harm inherits its full tool surface.

A jailbroken agent that has access to a payments tool can issue a refund. A jailbroken agent that has access to a database tool can drop a table. A jailbroken agent inside a multi-agent workflow can send poisoned outputs to a downstream agent that does not know it is being manipulated. A jailbroken agent connected to MCP servers can chain compromise across the entire agent infrastructure.

Three properties of agents make this much worse than the chatbot case:

Persistence. Agents have memory. A successful jailbreak does not have to be repeated; it can persist into future runs through session memory, vector stores, or the agent's own notes.

Autonomy. A chatbot needs the user to approve each step. An autonomous agent does not. By the time a human notices the jailbreak, the agent may have taken many actions across many systems.

Tool surface. A jailbreak that succeeds inherits the agent's full tool access. The blast radius is the union of every system the agent can reach, weighted by the permissions it holds.

The right way to read modern jailbreak research is not "look at this funny chatbot output," but "this is what the agent could have done if it had been wired up." For any organization deploying agents in production, the LLM-jailbreak threat is a baseline; the agent-jailbreak threat is the real concern. Jailbreaking is one of twelve threat categories defenders need to cover; the agentic AI security guide walks through the rest.

Notable AI jailbreak incidents

A short list of public incidents and research that defenders should know. None of these point to working exploits; they are summarized for context.

The DAN family of role-play jailbreaks (late 2022 onward). "Do Anything Now" prompts demonstrated that simple role-play framing could bypass content controls on widely deployed chatbots. The pattern spread across Reddit and social media in early 2023 and has been studied extensively; successive variants continued to appear as model providers patched each one.

The Bing "Sydney" conversations (February 2023). Early users of Microsoft's Bing chat documented prompt-injection and multi-turn shaping that exposed its internal "Sydney" persona and system prompt and produced off-policy replies. It was one of the first widely reported demonstrations of these techniques against a major production AI.

The adversarial-suffix research (2023). Academic work demonstrated that automatically generated, transferable suffixes could jailbreak aligned models across vendors, establishing that jailbreaks were not just a social-engineering problem but a computational one.

CyberArk's FuzzyAI research (2025). CyberArk Labs published research and an open-source fuzzing framework arguing that essentially every major model could be jailbroken, with historical and "passive" framing among the most reliable techniques.

The adversarial poetry research (2025). Researchers showed that harmful requests rephrased as verse bypassed safety mechanisms across 25 frontier models at rates up to 18 times higher than their prose equivalents, a clear demonstration that classifiers tuned on one style transfer poorly to others.

The Nature Communications paper on autonomous jailbreak agents (2026). A peer-reviewed result showed that large reasoning models can autonomously plan and execute multi-turn persuasion attacks that jailbreak other production models, succeeding against nine widely used systems at a 97 percent rate. This is the result that changed the economics of attack.

The DHS congressional jailbreak briefing (April 2026). The Department of Homeland Security demonstrated jailbroken commercial and foreign models to House lawmakers, focused on how unconstrained systems could be mined for attack planning. It marked AI jailbreaking's arrival as a mainstream national-security concern.

Indirect jailbreaks via MCP and retrieved data (2025-2026). Multiple vendor research teams (Microsoft, Palo Alto Unit 42, Docker) published research showing how malicious content embedded in MCP server descriptions, retrieved documents, or tool outputs could jailbreak agents that ingested them. This category is the dominant agentic-jailbreak risk in 2026.

How to detect and defend against AI jailbreaks

A working defender's program against AI jailbreaks combines the following layers. None is sufficient alone.

Seven-layer AI jailbreak defense, with the attempt blocked at the tool-call and identity layer that fails closed
A layered AI jailbreak defense. Any single layer can be bypassed; the tool-call boundary is the backstop that fails closed.

Layer 1: Model-level alignment and safety training. The first line of defense is the model itself. Ensure the models in your stack have current safety tuning and that you are running on versions where known categories of jailbreak have been patched. This is necessary, not sufficient: model-level safety is exactly what a jailbreak is designed to bypass.

Layer 2: Input classification. Inline guardrails that classify inputs at request time and flag or block content matching known jailbreak categories. This catches the bulk of single-turn role-play, hypothetical framing, and encoding-based attacks. It misses multi-turn shaping by design.

Layer 3: Multi-turn and session-aware detection. Detection that operates on the conversation as a whole rather than turn by turn. This catches conversational shaping and instruction-hierarchy attacks that span multiple turns. Implementation is harder and requires session state.

Layer 4: Plan-level controls. For agent systems, do not rely on the agent's text output to determine whether the agent's plan is safe. Inspect the plan separately and gate consequential actions. This is the difference between catching what the agent says and catching what the agent intends to do.

Layer 5: Tool-call and identity controls. Even if every other layer fails, the tool-call boundary should fail closed. Tool allowlisting, parameter validation, scope-checking, and identity-bound permissions ensure that a jailbroken agent still cannot perform actions outside its sanctioned envelope. Many production teams treat this as the primary backstop.

Layer 6: Continuous adversarial testing. Run continuous, automated red teaming against your live deployments. The category of jailbreak changes weekly, and a defense that worked six months ago may be silently failing today. The strongest programs treat red teaming as an ongoing operational discipline rather than a pre-launch checklist.

Layer 7: Audit and incident response. Capture every input, plan, tool call, and output. When a jailbreak does succeed, the value of complete audit trails is the difference between a five-minute investigation and a multi-week one. Audit also enables post-incident retraining of detection layers.

A defender's program that runs all seven layers, integrated through a runtime guardrail platform, is the operational shape of mature AI agent security in 2026. For the vendor landscape that addresses this layer, see our top AI agent security tools buyer's guide.

AI jailbreaking FAQ

What is AI jailbreaking in simple terms? AI jailbreaking is the practice of crafting inputs that cause an AI model or agent to bypass its safety controls. The result is the model produces content, decisions, or actions it was designed to refuse. For chatbots, the worst case is harmful content; for AI agents with tool access, the worst case is unauthorized real-world actions.

Is AI jailbreaking illegal? Researching AI jailbreaks for defensive purposes, academic work, and authorized red teaming is generally legal and is a recognized branch of security research. Using a jailbreak to cause harm, to extract content the user is not authorized to access, or to violate a vendor's terms of service can carry legal consequences depending on jurisdiction and intent.

What is the difference between AI jailbreaking and prompt injection? Jailbreaking targets the safety layer of the model itself; prompt injection targets the developer's instructions to the model. Jailbreaking gets the model to violate its content policy; prompt injection gets the model to follow the attacker's instructions instead of the developer's. Many real attacks combine both.

What are the most common AI jailbreak techniques? The categories most often seen in the wild are role-play and character framing, hypothetical and academic framing, encoding and obfuscation, multi-turn conversational shaping, instruction-hierarchy attacks, indirect jailbreaks delivered through retrieved content or tool outputs, adversarial-suffix attacks, and cross-modality jailbreaks. Defenders should map their controls against all eight categories.

How serious is AI jailbreaking for businesses? For a chatbot, the harm is mostly reputational and content-based. For an AI agent that holds credentials and can call tools, a successful jailbreak is a privilege-escalation event that can lead to data exfiltration, financial loss, or system damage. Any organization deploying agents in production should treat AI jailbreaking as a top-tier threat.

Can AI jailbreaks be prevented entirely? No defense layer fully prevents jailbreaks because the input space is effectively infinite and attackers continually develop new techniques. The realistic goal is layered defense: model-level alignment, input classification, multi-turn detection, plan-level controls, tool-call and identity controls, continuous red teaming, and audit. Together these make successful jailbreaks rare and limit the blast radius of the ones that do succeed.

What is the relationship between AI jailbreaking and AI agent security? AI jailbreaking is one of the highest-stakes threats inside the broader AI agent security category. Mature programs cover jailbreak defense as part of a wider agentic AI security program that also includes prompt injection defense, data leak prevention, agent identity, and runtime policy enforcement.

Related articles

See Averta OS in action

Book a demo and see how Averta OS secures your AI agents from input to execution.

Book a demo