Defending AI Agents
עברית Join waitlist
Menu

Free preview

Read the first units now.

Three complete units, free, before the courses open: the on-ramp and Module 0 of Defending AI Agents, and E3 of Building AI Agents, the agent loop built by hand. Every lesson, its check-yourself questions and the problems are here. Your progress is kept in this browser only.

On-ramp

On-ramp: the web plumbing the course assumes

13 pages
  1. Overview
  2. An HTTP call is text in, text out
  3. JSON is simple, and its parsers still disagree
  4. YAML is JSON with indentation and four traps
  5. An API token is a password with a label
  6. A name is not an address, and the answer can change
  7. A proxy is a server that is also a client
  8. TLS proves you reached a name, not that the name is honest
  9. A JWT is signed claims, and a check has an order
  10. OAuth gives a token a purpose: roles, scope, audience
  11. Two parsers, one message: a check is sound only if it reads what the target reads
  12. OAuth's own threat model: what RFC 9700 requires, and why an agent needs all of it
  13. Problems

Start reading

Module 00

Orientation: why agent security is a statistics problem

14 pages
  1. Overview
  2. An agent is a model with side effects
  3. Four incidents, one pattern
  4. Three capabilities make a leak: the lethal trifecta and the rule of two
  5. Two kinds of defence, and which to trust first
  6. The hard questions in agent security are five statistics problems
  7. A 99%-recall detector's alerts can be wrong 99 times in 100: the base rate in depth
  8. Training is not a boundary
  9. The trifecta is two information flows, not three legs
  10. Twelve questions separate a measurement from a slogan
  11. One gateway, built a module at a time: the course map
  12. Paper exercise: where would you have stopped it?
  13. At scale: thousands of agents, nobody's inventory
  14. Problems

Start reading

E3

The agent loop from scratch

13 pages
  1. Overview
  2. Who decides the next step? Workflows and agents
  3. A tool is a schema, a function and an error message, and the model reads two of them
  4. One tool call, three wire formats
  5. Parallel tool calls: reads commute, writes do not
  6. Retry the server, not the model: errors, backoff and jitter
  7. A step is not a unit of cost: four budgets and a stop reason
  8. An answer a program can read: schemas and one repair
  9. A streamed tool call is half a JSON object
  10. How far can a loop go? Compounding error, code actions and the time horizon
  11. Build: Module 1's loop, made to run unattended, and measured
  12. At scale: the same loop, ten thousand times at once
  13. Problems

Start reading

See where they sit on the map Hear when the next units open