Lesson 12.10 · Phase 12 · Safety, Security & Guardrails
Red-teaming your agent
Don't ask "is my agent safe?". Ask "which of these 60 attacks still work, and why?". Generate attacks as a product of goals, framings and disguises, judge them by what happened in the world, read the success rate by slice to find the hole, fix it, and keep every attack that worked as a regression test.
Learning objectives
- Generate a structured attack set from goals, framings and mutations, so coverage is something you can count.
- Judge attacks by side effects (emails sent, URLs fetched, files deleted), never by what the model said.
- Read attack success rate by goal, framing and mutation to locate which defence is missing.
- Turn successful attacks into a regression suite and replay it against the fix.
You've built defences from Lessons 2 to 9. Before launch someone asks "did you red-team it?", so you spend an afternoon typing attacks into the chat. Ten attempts, nothing works, and you write "red-teamed, no issues" in the launch doc.
Loading the full lesson…