Lesson 12.01 · Phase 12 · Safety, Security & Guardrails

The agent threat model

An attacker doesn't need your password if they can write text your agent reads. Describe every tool by three questions: does it read private data, does it take in content a stranger wrote, can it send something out? If one session has all three, assume the attacker can use your agent to leak your data, and design from there.

Learning objectives

  • Explain why a language model can't reliably separate instructions from data, and what that means for every tool it can call.
  • Classify an agent's tools on the three legs of the lethal trifecta (private data, untrusted content, egress) plus irreversible effects.
  • Enumerate attack paths from a tool list in code, and find the leg that is cheapest to cut.
  • Write a one-page threat model for your own agent before you add a single defence.

You build an inbox assistant. It reads your mail, searches your Drive, fetches links, and drafts replies. You test it for a week and it's great. Then someone emails you:

Loading the full lesson…