# What is Prompt Injection

> Understand the core mechanics of prompt injection. Learn how the blurring of data and instructions creates the most critical vulnerability in LLMs.

Canonical: https://codelivly.com/rooms/what-is-prompt-injection
Last updated: 2026-10-07

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

This module defines prompt injection and explores why it is the foundational vulnerability of Large Language Model applications. You will learn how the inherent architectural design of LLMs blurs the line between data and instructions, allowing attackers to hijack model behavior. We will cover the anatomy of a prompt injection attack, differentiate it from traditional injection flaws, and establish the baseline knowledge required to detect and mitigate these sophisticated linguistic exploits.

## Lessons

1. What is Prompt Injection & Why It's Fundamentally Different from SQLi/XSS (30 min)
2. Why Prompt Injection Can't Be Fully "Patched" Like Traditional Vulns (30 min)

## Related

- [Learning path: Prompt Injection Fundamentals](https://codelivly.com/learning-paths/prompt-injection-fundamentals)
- [All rooms](https://codelivly.com/rooms)
