Claude Certified Developer · Professional

Module 5: Runtime guardrails and agent identity

Practice this module

Study notes, not official course material. Our take on official course 5 (layered guardrails, prompt-injection defence, least-privilege identity for tool-using agents). Facts checked 2026-11-25.

What you'll be able to do

  • Draw the threat model of a tool-using agent and explain the confused-deputy problem in one sentence.

  • Layer defences around the tools, not only around the prompt: context handling, identity, tool policy and output scanning.

  • Replace a shared, long-lived admin key with the agent's own OAuth identity: short-lived tokens, scoped to the task, bound to one tenant's API, and acting on behalf of the ticket's user through token exchange.

  • Put enforcement in the API (scope and tenant checks that return 403), not in the agent.

  • Apply the MCP authorization rules when your tools sit behind an MCP server.

  • Add argument checks, human approval and per-run limits to high-risk tools, and audit every call.

  • Carry the same thinking over to coding agents: Claude Code permission modes, deny rules and hooks.

In this module

  • What you'll be able to do
  • 1. The threat model in one picture
  • 2. Reproducing the attack
  • 3. Layer 1: input and context handling
    • Keep untrusted content clearly separated
    • Screen inbound text with a cheap model
    • Be honest about this layer
  • 4. Layer 2: identity, the part that actually limits damage
    • The agent gets its own OAuth client
    • What the token says
    • The API enforces it, not the agent
    • When your tools sit behind an MCP server
    • No long-lived key for the model API either
  • 5. Layer 3: tool policy in code
  • 6. Layer 4: output scanning and the audit trail
  • 7. Replaying the attack
  • 8. The same model for coding agents
  • Trade-offs
  • Common mistakes
  • Exam traps
  • Remember
  • Flashcards
  • Check before relying on it

Sign up free to continue

It takes a minute and costs nothing. Module 1 of every course stays open to everyone.

Sign up freeSign in

Built by Sanjay Shah; drafted with Claude Opus 5.5 and Fable 5.2. Unofficial study notes, not affiliated with or endorsed by Anthropic. Check facts against the official Claude docs (opens in a new tab) and your exam's official guide (opens in a new tab). Facts last checked 25 Nov 2026 · Report an error

↑ ↓ navigate · ↵ select · esc close