LLM Security

LLM Security

My notes on attacking and defending LLM applications, following the OWASP Top 10 for LLM Applications 2025. It starts with how an LLM actually works, then the threat model, then each vulnerability class with a local lab you can break and patch.

Everything here is for learning, CTFs, authorized red teaming, and defending your own systems. Payloads are only meant for the local labs or systems you have written permission to test.

Chapter 1: Foundations

Part 00 · Intro to LLM Security

Part 01 · LLM Foundations

Part 02 · The Toolkit

Chapter 2: OWASP Top 10 for LLM

Part 03 · LLM01 Prompt Injection

Part 04 · LLM05 Improper Output Handling

Part 05 · LLM06 Excessive Agency

Part 06 · LLM04 & LLM08 RAG

Part 07 · LLM03 Supply Chain

#Lesson
7.1Supply chain

Part 08 · LLM10 Unbounded Consumption

Part 09 · LLM09 Misinformation

#Lesson
9.1Misinformation

Chapter 3: New techniques and practice

Part 10 · New Techniques

Part 11 · Hands-on