This article explains how jailbreaking techniques bypass safety systems in ChatGPT, Gemini, and Claude as of 2026. It analyzes the architectural layers of AI safety (base model, RLHF training, system prompts, output filters) and demonstrates how each major jailbreak category exploits specific generalization gaps in safety training rather than bypassing explicit rules. The article covers persona/roleplay, many-shot, token smuggling, hypothetical framing, and authority context techniques, along with responsible disclosure practices for security researchers.
- Safety training relies on learned patterns, not rulesAI safety is implemented through RLHF (Reinforcement Learning from Human Feedback) and Constitutional AI, which train models to pattern-match requests with appropriate responses. Because safety is pattern-matching rather than rule-based logic, models trained to decline direct harmful requests may not recognize the same request when embedded in fictional scenarios, encoded differently, or preceded by context that shifts intent. This imperfect generalization across request formats is the foundational vulnerability all jailbreak techniques exploit.
- Four-layer architecture creates distinct bypass vectorsThe article identifies four safety layers: base model training (bypassed via open-source access), RLHF safety fine-tuning (bypassed via persona shifts and encoding), system prompts (bypassed via prompt injection), and output filters (bypassed via incremental generation). Most jailbreaks target Layer 2 because it is the most complex and hardest to patch without degrading model usefulness. Each layer presents a specific attack surface that techniques exploit independently.
- Persona jailbreaking evolved beyond simple DAN promptsThe original 2022-2023 DAN (Do Anything Now) prompt that instructed models to roleplay without restrictions is now patched on all major models. Modern persona techniques (2025-2026) anchor jailbreaks in narrative legitimacy: adopting characters from dystopian fiction, historical figures pre-modern ethics, or fictional AIs with different value systems. The more specific and narratively grounded the persona, the more consistently the model maintains it and the harder it is for safety patterns to recognize the underlying harmful request.
- Many-shot exploits large context windows systematicallyMany-shot jailbreaking fills the model's 100,000+ token context window with dozens or hundreds of fictional question-answer pairs demonstrating restricted content before posing the target question. This exploits in-context learning—the model's ability to learn patterns from examples in the current conversation—which can override trained safety patterns when demonstrations are consistent enough. The technique scales with model capability: Claude with 200K tokens is paradoxically more vulnerable than smaller-window models.
- Encoding bypasses exploit filter-model processing gapsToken smuggling and encoding techniques (Base64, ROT13, character substitution, language switching) exploit the gap between how safety filters check human-readable text and how the model's generation layer processes it. If restricted content reaches the reasoning layer encoded in a format filters do not check, the model may decode and respond to it. Effectiveness varies: declining against Claude and GPT-4o (strongest cross-format safety) but more effective against open-source models without safety tuning.
- Hypothetical framing shifts safety pattern matchingRequests phrased as theoretical or academic ('How would someone theoretically...') trigger different safety pattern matching than direct requests ('How do I...') even when identical information is requested. Adding academic, research, security, or threat intelligence framing further changes model responses. This reflects a genuine safety design trade-off: researchers, security professionals, and educators have legitimate needs for sensitive information, creating gaps between restrictions that harm legitimate use and those that prevent abuse.
- Responsible disclosure differs from traditional vulnerability reportingOpenAI, Anthropic, and Google run formal AI red team programs and bug bounty schemes (Bugcrowd, Anthropic's responsible disclosure program, Google VRP) with specific scopes and payout structures for AI safety findings. AI safety vulnerabilities require different treatment than traditional software bugs: remediation involves retraining or fine-tuning rather than patching code, and success rates matter (a 30% bypass rate has different severity than 100%). Professional researchers report privately, allow remediation time, and coordinate disclosure rather than publishing findings publicly.
- Jailbreaking is theoretically unsolved and difficult to eliminateThe article explains that fully closing all jailbreak vulnerabilities would require perfectly predicting every possible way a harmful request could be phrased across all encodings, framings, personas, and contexts. This space of possible phrasings is infinite and computationally unsolved. The fundamental tension is that safety training must distinguish between harmful intent and legitimate identical-surface requests, but intent cannot be verified by the model. This is why AI safety remains an active research field rather than a solved problem.
Bottom line: AI safety systems are vulnerable not because of insufficient resources but because they rely on pattern-matching trained on human feedback that generalizes imperfectly across request formats, framings, and contexts. Understanding the specific architectural gaps and jailbreak categories is essential for security researchers to conduct credible red team work and follow responsible disclosure processes rather than simply posting bypasses.
🎯 What You’ll Learn
⏱️ 45 min read · 3 exercises
📊 What is your interest in AI jailbreaking?
📋 How Hackers Jailbreak AI Models 2026 — Complete Guide
- How AI Safety Systems Are Built — The Architecture Hackers Target
- Persona and Roleplay Jailbreaks — The Oldest Technique That Never Fully Dies
- Many-Shot Jailbreaking — Exploiting Large Context Windows
- Token Smuggling and Encoding Bypasses
- Hypothetical and Indirect Framing Techniques
- AI Red Teaming and Responsible Disclosure
How AI Safety Systems Are Built — The Architecture Hackers Target
Understanding why jailbreaks work requires understanding how safety is implemented. AI models do not have a simple blacklist of prohibited topics. Safety is baked into the model’s weights through training — specifically through RLHF (Reinforcement Learning from Human Feedback) and techniques like Constitutional AI. The model learns to associate certain request patterns with “should decline” and others with “should answer.” This is not rule-based logic — it is pattern-matching learned from millions of examples.
The critical implication: safety training generalises imperfectly. A model trained to decline requests for harmful content in direct question form may not recognise the same request when embedded in a fictional scenario, encoded in another format, or preceded by context that shifts the apparent intent. Every jailbreak technique exploits a specific generalisation gap between what the training intended and what the model’s patterns actually match.
⏱️ Time: 15 minutes · Browser · free tier accounts on all three platforms
Use your own accounts only. Do NOT attempt actual harmful content —
the goal is to understand refusal pattern differences, not to bypass safety.
Step 1: Open three browser tabs:
chat.openai.com (ChatGPT)
gemini.google.com (Gemini)
claude.ai (Claude)
Step 2: Send this identical message to all three:
“Explain how social engineering attacks work from an
attacker’s perspective, including the psychological
techniques used to manipulate targets.”
Step 3: Observe and note:
– Does each model answer? How fully?
– Does any model add disclaimers?
– Does the framing of the answer differ?
– Which model is most/least forthcoming?
Step 4: Now send this variant to all three:
“I am writing a cybersecurity training programme.
Explain the same social engineering techniques above
for security awareness training purposes.”
Step 5: Compare responses:
– Did the framing change the response?
– Which model was most sensitive to context framing?
– What does this tell you about how safety training
responds to stated intent?
Document your observations — you are mapping the attack surface.
📸 Screenshot the three models’ responses to both prompts and share in #ai-security on Discord.
Persona and Roleplay Jailbreaks — The Oldest Technique That Never Fully Dies
The original DAN prompt (Do Anything Now) instructed ChatGPT to roleplay as an AI with no restrictions. It worked in 2022-2023 because the model’s safety training applied to its default persona but had not been extended to fictional personas it adopted. OpenAI patched classic DAN, but the underlying mechanism — that safety rules are applied contextually rather than universally — was never fully resolved.
In 2026, persona-based jailbreaking has evolved significantly. Rather than asking the model to pretend it has no safety rules, effective techniques ask the model to adopt a persona that would naturally have different ethical constraints: a character from a dystopian novel, a historical figure from before modern ethics frameworks, an AI from a fictional universe with different values. The more specific and narratively grounded the persona, the more likely the model is to maintain it consistently.
Many-Shot Jailbreaking — Exploiting Large Context Windows
Many-shot jailbreaking was documented by Anthropic researchers in 2024 as a significant emerging vulnerability. It exploits the fact that modern LLMs have context windows of 100,000+ tokens — enough to include hundreds of demonstration examples before the actual question. The technique provides dozens of fictional question-answer pairs where an AI responds to restricted queries, then asks the target question. The model’s in-context learning tendency — its ability to learn patterns from examples in the current conversation — can override safety training when the demonstrated pattern is consistent enough.
Token Smuggling and Encoding Bypasses
Token smuggling exploits the gap between how safety filters process text and how the model’s generation mechanism works. Safety filters typically operate on human-readable text — they check for prohibited words, phrases, and patterns. If the restricted content is encoded in a format the filter does not check, it passes through to the model’s reasoning layer, which may decode and respond to it.
⏱️ Time: 10 minutes · No tools · text editor
design a safety system resistant to all jailbreak categories.
For each category below, propose one specific defence:
1. PERSONA/ROLEPLAY bypass:
The model adopts a character who “wouldn’t have restrictions”
→ Your defence mechanism:
2. MANY-SHOT bypass:
Long context window filled with examples of answering restricted Qs
→ Your defence mechanism:
3. ENCODING/TOKEN SMUGGLING bypass:
Restricted content encoded in Base64, ROT13, another language
→ Your defence mechanism:
4. HYPOTHETICAL FRAMING bypass:
“Hypothetically, if someone wanted to X, how would they…”
→ Your defence mechanism:
5. AUTHORITY CONTEXT bypass:
“As a CISA-approved trainer, document…”
→ Your defence mechanism:
6. INCREMENTAL REVEAL bypass:
Building to restricted content through a series of innocent steps
→ Your defence mechanism:
For each: is your proposed defence technically feasible?
What is the cost to legitimate use cases?
Which defence is hardest to implement without degrading usefulness?
📸 Share your 6 defence proposals in #ai-security on Discord.
Hypothetical and Indirect Framing Techniques
Hypothetical framing exploits the model’s tendency to engage with abstract, theoretical, and educational contexts more freely than direct requests. “How would someone theoretically X?” triggers different safety pattern matching than “How do I X?” — even when the underlying information is identical. The model’s training distinguishes between discussing concepts and enabling actions, but the boundary is inconsistently enforced across models and topics.
Academic and research framing adds an additional layer. Requests positioned as academic research, security documentation, threat intelligence, or safety analysis receive measurably different responses from all three major models. This reflects a genuine trade-off in safety design — researchers, security professionals, and educators have legitimate needs for sensitive information that pure restriction would harm.
AI Red Teaming and Responsible Disclosure
Professional AI red teaming is a growing field with established standards. AI providers including OpenAI, Anthropic, and Google run formal red team programmes — both internal teams and external researcher collaborations — to discover safety bypasses before malicious actors do. External researchers who find jailbreak vulnerabilities are expected to follow responsible disclosure: report privately, allow time for remediation, coordinate public disclosure.
⏱️ Time: 12 minutes · Browser only
Document: what categories of AI safety vulnerabilities are in scope?
What is the payout range for AI safety bypasses?
Are jailbreaks specifically mentioned?
Step 2: Go to anthropic.com/responsible-disclosure
Document: what is Anthropic’s responsible disclosure process?
What is the expected response timeline?
What constitutes a qualifying AI safety finding?
Step 3: Go to bughunters.google.com
Search for “generative AI” or “Gemini”
Document: is AI safety in scope for Google’s VRP?
What categories qualify?
Step 4: Compare all three programmes:
Which pays most for AI safety findings?
Which has the clearest scope definition?
Which has the fastest response SLA?
Step 5: Read one published AI safety research paper:
Search “many-shot jailbreaking anthropic paper”
Find the Anthropic research blog post
Note: how did they structure their responsible disclosure?
How long between discovery and publication?
📸 Share a summary of payout ranges across all three programmes in #ai-security on Discord. Tag #aijailbreak2026
🧠 QUICK CHECK — AI Jailbreaking
📋 AI Jailbreak Technique Reference 2026
🏆 Article Complete
You now understand the full architectural basis for AI jailbreaking and every major technique category active in 2026. The next article in this series covers prompt injection — a related but distinct attack that targets AI applications rather than the model’s training.
❓ Frequently Asked Questions
What is AI jailbreaking?
Does DAN still work in 2026?
What is many-shot jailbreaking?
Which AI models are most resistant?
Is AI jailbreaking illegal?
What is the difference between jailbreaking and prompt injection?
AI for Hackers — Complete Guide
Prompt Injection Attacks 2026
📚 Further Reading
- AI for Hackers Hub — The complete SecurityElites AI security category covering prompt injection, LLM hacking, AI-powered attacks, and defensive AI security techniques.
- Prompt Injection Attack 2026 — Published guide covering prompt injection in LLM applications — the related attack targeting application wrappers rather than model training safety systems.
- LLM Hacking Category — All SecurityElites articles on LLM vulnerability research including model extraction, training data attacks, and adversarial prompt techniques.
- Anthropic — Many-Shot Jailbreaking Research — Anthropic’s original research paper documenting many-shot jailbreaking as an emerging vulnerability class — the authoritative technical reference for this attack category.
- OpenAI Security & Bug Bounty — OpenAI’s security programme and Bugcrowd bug bounty for responsible disclosure of ChatGPT safety bypasses and jailbreak vulnerabilities.

