# What is Jailbreaking and How Guardrails Work

> Understand the core mechanics of LLM jailbreaking and the multi-layered guardrail architectures designed to prevent it.

Canonical: https://codelivly.com/rooms/what-is-jailbreaking-and-how-guardrails-work
Last updated: 2026-10-08

| | |
|---|---|
| Level | Intermediate |
| Category | Cybersecurity |
| Lessons | 2 |
| Estimated time | 30 min |
| XP | 100 |

This module defines LLM jailbreaking and contrasts it with traditional prompt injection. You will explore the anatomy of modern AI guardrails—including pre-flight intent classification, internal alignment (RLHF), and post-flight output filtering. By understanding how these defensive layers operate and where their seams exist, you will learn how attackers systematically bypass them and how defenders must implement true defense-in-depth to secure generative AI applications.

## Lessons

1. What is a Jailbreak and How It Differs from Prompt Injection (30 min)
2. How Safety Guardrails & Content Filters Are Built (30 min)

## Related

- [Learning path: Jailbreaking and Guardrail Bypass](https://codelivly.com/learning-paths/jailbreaking-and-guardrail-bypass)
- [All rooms](https://codelivly.com/rooms)
