Red-teaming LLM apps and agents
For engineers
Jailbreak families, adversarial test sets, red-teaming agents by their actions, automated tools and findings that get fixed
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
A user asks a chatbot for something harmful inside a short story where a character explains it. Which jailbreak family is this?
Check yourself · 2 of 5
What should an adversarial test case for an AI feature start from?
Check yourself · 3 of 5
When red-teaming an agent with tools, what should the grader mainly check?
Check yourself · 4 of 5
A red-teaming scan finishes with zero findings. What does that mean?
Check yourself · 5 of 5
Why should a red-team finding give a success rate such as 14 of 20 runs?
Topics
- Jailbreak families and how they evolve4 min read · Role-play, many-shot, multi-turn escalation, encodings and best-of-N sampling, and which defenses each one slips past
- Building an adversarial test set5 min read · Attack goals per feature, seeds from the OWASP lists, mutations, automatic graders and keeping the set as a regression suite
- Red-teaming agents by the actions they take5 min read · Injected tool results, multi-step attacker goals and scoring harmful actions rather than harmful words, in a sandboxed test environment
- Automated red-teaming with garak, PyRIT and promptfoo5 min read · What scanners and attack orchestrators find, what they miss, and how to read their reports without over-trusting a pass
- Writing red-team findings that get fixed5 min read · Reproducible steps, success rate over repeated runs, severity, business impact and a concrete fix for a nondeterministic system
Start here
- Lessons From Red Teaming 100 Generative AI Products (Microsoft) (opens in a new tab)PaperFree
Microsoft's own lessons on scoping, simple attacks that work, and why red teaming is never finished.
- OWASP Top 10 for LLM Applications (opens in a new tab)DocsFree
The risk list to draw attack goals and test seeds from.
- promptfoo: LLM red teaming guide (opens in a new tab)DocsFree
How to generate attacks, run them against an app and read the report, with plugins and strategies explained.
Scenarios
Helps to know first
110 questions · last verified 2026-12