02Chapter 2: How an agent turns model output into tool callsThis chapter assumes you know basic LLM function calling, can read short Python and JSON snippets, and understand tokens and API authentication. It shows where permissions can be enforced in an agent, which later chapters build on.2 min read
03Chapter 3: Threat model: prompt injection and the confused deputyThis chapter assumes you know how LLM tool calling works, can read short Python snippets, and understand API tokens and basic access control. It explains who can attack an agent, how, and why the agent's own permissions become the weapon.3 min read
04Chapter 4: Excessive agency: too many tools, too much permission, too much autonomyThis chapter assumes you know how LLM tool calling works, can read short Python and JSON snippets, and understand basic access control such as roles and permissions. It builds on the threat model from the previous chapter: prompt injection can steer a model, and a confused deputy uses its own author3 min read
05Chapter 5: Giving each agent only the tools its task needsThis chapter assumes you know how LLM tool calling works, can read short Python and JSON snippets, and understand roles and permissions. Tool scoping is the first practical control. It limits what the model can ask for before any argument or credential check happens.2 min read
06Chapter 6: Enforcing authorization in code, not in the promptThis chapter assumes you know how LLM tool calling works, can read short Python snippets, and understand roles and permissions. It covers where authorization checks must live in an agent.3 min read
07Chapter 7: Constraining tool argumentsThis chapter assumes you know how LLM tool calling works, can read short Python and JSON snippets, and understand basic access control. The previous chapter put an allowlist in front of tools. Here we look inside a permitted call and limit the arguments it can carry.3 min read
08Chapter 8: Scoped, short-lived, per-user credentialsThis chapter assumes you know how API tokens work, can read short Python and JSON snippets, and understand roles and permissions. Earlier chapters showed how to enforce authorization in code. Here the question is what the tool can reach even when your code has a bug.2 min read
09Chapter 9: Human approval for irreversible or high-impact actionsThis chapter assumes you know how LLM tool calling works, can read short Python snippets, and understand basic access control. Earlier chapters covered tool scoping and enforcing authorization in code. Approval is the next layer. It covers actions that are allowed in principle but too costly to run 3 min read
10Chapter 10: Breaking the combination of private data, untrusted input, and exfiltrationThis chapter assumes you know how tool calling works and have read the earlier chapters on prompt injection, tool scoping, and enforcing authorization in code. Here you will learn a design rule that limits the damage of a successful injection. The rule is to avoid giving one agent step all three of 3 min read
11Chapter 11: Sandboxing code execution and limiting network egressThis chapter assumes you know how tool calls reach your runtime. It also assumes you have read the earlier chapters on tool scoping and deterministic enforcement, and that you can read short Python snippets and basic container flags.2 min read
12Chapter 12: Rate limits and budgets as blast-radius controlThis chapter assumes you know how an agent loop turns model output into tool calls, and that you have already scoped tools and enforced authorization in code. Those controls decide what an agent may do. Usage limits decide how much of it can happen before someone notices.2 min read
13Chapter 13: Logging tool calls for detection and reviewThis chapter assumes you know how LLM tool calling works, can read short Python and JSON snippets, and have seen the earlier controls in this tutorial: allowlists, authorization in code, and human approval. Those controls limit what an agent can do. Audit logging records what it actually did. You ne3 min read
14Chapter 14: Reviewing and testing an agent's permissionsThis chapter assumes you have read the earlier chapters on tool allowlists, deterministic authorization, argument constraints, scoped credentials, and audit logs. Here you check that those controls work and keep working. Permissions drift: new tools are added, scopes widen "just for now", and prompt3 min read