AI Red Teaming

Advanced · Roadmap · 24 lessons · 6 groups

Finding the ways a model, its prompts, and the systems around it can be broken — before someone else does. Twenty-four lessons from prompt injection and jailbreaks through model extraction, poisoning, and agentic exploits, to the testing methodology and defenses a real engagement runs on.

0%

Not started

Nothing saved yet. Progress is kept in this browser until you sign in.

Start the path

What AI red teaming actually is

4 lessons

  1. 01 / 04What is AI red teaming?AI red teaming probes a deployed model's behavior for ways it can be made to misbehave — a discipline distinct from pentesting and ML evaluation.15 min
  2. 02 / 04Threat modeling for AI systemsThreat modeling an AI system means naming its real assets and adversaries before testing it — the prompt itself is now an entry point.15 min
  3. 03 / 04The OWASP Top 10 for LLM applicationsA tour of OWASP's ten named LLM vulnerability categories and why a shared, versioned checklist makes red-team scoping possible.9 min
  4. 04 / 04Rules of engagement and ethicsScope, written authorization, and hard limits before testing an AI system — and why AI red-team ethics go beyond traditional pentest rules.45 min

Attacking through the prompt

4 lessons

  1. 01 / 04Prompt injection, direct and indirectPrompt injection tricks a model into treating attacker text as instructions — either typed straight into chat or smuggled inside content it reads.8 min
  2. 02 / 04Jailbreak techniquesJailbreaking targets a model's own trained refusal behavior directly, using role-play, split payloads, and many-shot framing to defeat it.15 min
  3. 03 / 04Safety filter and guardrail bypassesGuardrails are a separate system bolted around a model — bypassing them, via tricks like Skeleton Key or Best-of-N, is a distinct problem from jailbreaking.17 min
  4. 04 / 04Multi-turn and encoding attacksCrescendo escalates gradually across turns while encoding tricks disguise text — both exploit filters that judge surface text, not final intent.10 min

Attacking the model itself

4 lessons

  1. 01 / 04Model extraction and weight stealingModel extraction clones a deployed model's accuracy or exact behavior purely from its API responses, without ever touching its weights.11 min
  2. 02 / 04Model inversion and membership inferenceMembership inference tests whether a record was in a model's training set; model inversion goes further and reconstructs the data itself.18 min
  3. 03 / 04Data poisoning and backdoor triggersPoisoning corrupts a model's training signal to skew its behavior, and backdoor triggers hide that corruption behind normal-looking accuracy.17 min
  4. 04 / 04Adversarial examples and black-box attacksAdversarial examples fool a model with inputs that look unchanged to a human, and black-box attacks craft them using only output labels.17 min

Attacking the system around the model

4 lessons

  1. 01 / 04Insecure deserialization and RCE in model filesPickle-format model checkpoints can embed executable code, so loading a "model" can secretly mean running an attacker's instructions.20 min
  2. 02 / 04API and infrastructure security for model servingShadowRay and the TorchServe exposure show that ML-serving infrastructure gets ordinary infrastructure bugs when it skips standard API hardening.40 min
  3. 03 / 04The RAG and tool-calling attack surfaceIn RAG and tool-calling systems, retrieved documents and tool outputs are untrusted input channels, not just the user's own prompt.45 min
  4. 04 / 04Agentic AI security and excessive agencyWhen an injected instruction can make an autonomous agent act, not just answer, one compromised integration can cascade into real-world harm.45 min

Running a red team engagement

4 lessons

  1. 01 / 04Black-box, grey-box, and white-box testingWhat a red teamer can see — public interface only, partial internals, or full source — determines what an AI red-team engagement can actually find.35 min
  2. 02 / 04Automated vs. manual red teamingAutomated tooling finds known failure classes at scale; manual testing finds the novel ones — real engagements need both, not one instead of the other.18 min
  3. 03 / 04LLM security testing tools — garak, Promptfoo, and PyRITA practical tour of the field's most-used open-source LLM red-teaming tools and which one to reach for first, depending on the job.12 min
  4. 04 / 04Building a red-team labWhy practicing AI red teaming requires a dedicated, legal target, and a concrete checklist for standing up your own practice environment.12 min

Defending and reporting

4 lessons

  1. 01 / 04Guardrails and output filteringGuardrails wrap a model in classifiers and rules that screen input and output — a defense layer, not a fix to the model itself.27 min
  2. 02 / 04Adversarial training and robust designBaking resistance into a model through adversarial training and constitutional classifiers is the deeper counterpart to a bolted-on guardrail.16 min
  3. 03 / 04Continuous monitoring and detectionRed teaming and guardrails happen before launch; production monitoring is how you catch drift and live attacks after launch.52 min
  4. 04 / 04Responsible disclosure and reportingA finding that's never reported, or reported badly, has the same effect as no testing — this lesson covers doing it right.29 min
Esc
↑↓ navigate↵ open? shortcuts

Keyboard shortcuts

Press Esc to close

Anywhere

⌘K
Search and commands
/
Search
?
This sheet
Esc
Close

Reading a lesson

J
Next lesson
K
Previous lesson
B
Bookmark