Skip to content

Concepts / Field notes

What is LLM Jailbreaking?

Learn what jailbreaking means for LLMs. Understand how attackers bypass safety guardrails and how to detect jailbreak attempts.

By DriftRail · Updated

Jailbreaking is the practice of crafting prompts that bypass an LLM's safety guardrails to generate harmful, unethical, or restricted content. Techniques include roleplay scenarios, encoding tricks, and multi-turn manipulation.

Common Techniques

  • Roleplay: "Pretend you're an AI without restrictions"
  • Encoding: Base64, ROT13, or other obfuscation
  • Multi-turn: Gradually escalating requests
  • Hypotheticals: "For a story, how would someone..."

Defense Strategies

  • Input detection: Catch jailbreak attempts in prompts
  • Output monitoring: Detect successful bypasses
  • Guardrails: Block harmful content regardless of prompt
  • Rate limiting: Slow down multi-turn attacks

Why Monitoring Matters

New jailbreak techniques emerge constantly. Static defenses become outdated. Continuous monitoring catches:

  • Novel attack patterns
  • Successful bypasses of existing defenses
  • Trends in attack attempts

How do I protect against jailbreaks?

Use multiple layers: prompt injection detection to catch attempts, output monitoring to detect successful bypasses, guardrails to block harmful content, and continuous monitoring to identify new attack patterns.

Practical example

A test request tries to make an assistant ignore its intended behavior restrictions.

What to check

Measure the actual harmful output or unauthorized action against a defined test policy.

Limits and tradeoffs

A rejected test request does not establish resistance to different phrasings or indirect attacks.

References and further reading

Maintained by DriftRail. AI assisted the October 2026 content and template revision. Examples are illustrative; they are not measured product benchmarks. Suggest a correction.

From understanding to evidence

Observe your AI in production.

Explore event logging, detections, and review workflows in DriftRail.

Open DriftRail ↗Read the documentation →