Appendices

Threat model template for agents

A fill-in worksheet to threat model one agent in under two hours, before it reaches production

BuilderLeaderSolo4 min read

Inside the chapter

  1. 1How to use this template
  2. 21. System summary
  3. 32. Assets and data
  4. 43. Tool and capability inventory
  5. 54. Rule of Two check per session
  6. 65. Trust boundaries and entry points
  7. 76. Threat register
  8. 87. Supply chain
  9. 98. Identity, auth and secrets
  10. 109. Human approval matrix
  11. 1110. Detection, response and residual risk

Read the full appendix online

Go further: free on this site

Questions readers asked about this chapter, a 5-question self-check with explanations, and every source it cites.

Questions readers ask (4)

4 questions. Open one to read the answer.

We run twenty similar agents. Do we need twenty threat models?

No. Write one per agent family (same runtime, tools and data class), plus a one-page delta per agent for sections 1, 3 and 4. An agent adding a [C] tool, data source or user group leaves the family and gets a full worksheet.

How do we rate likelihood and impact consistently between teams?

Agree on anchors once and reuse them. Take impact from the asset's sensitivity in section 2 and from reversibility: a sent email or a payment is High. Take likelihood from who can write to the entry channel in section 5: anyone on the internet is High, staff only is Medium, a fixed internal system is Low. Then calibrate by reviewing two teams' worksheets side by side and settling disagreements in the shared table.

Does this replace a DPIA or our existing threat modeling?

No. STRIDE still covers the service around the agent; this adds the persuadable model, tool descriptions as prompts and the Rule of Two. A GDPR DPIA (Chapter 12) asks other questions, but sections 2, 5 and 8 supply most facts.

How do we keep the threat model current without redoing it every month?

Tie updates to changes, not the calendar. The template asks you to redo sections 3, 4 and 7 on any tool, server, skill or plugin change, so add a checkbox to the pull request template for agent configuration. Rerun the whole worksheet with the quarterly readiness review (Appendix A). Chapter 20 shows why configuration is the trigger: MCP commands, skill folders and sandbox paths were 2026's main attack surface.

Answered in the book, not repeated here: See Appendix C, 10. Detection, response and residual risk

Self-check (5)

Score: 0 / 5 (0 answered)

  1. Question 1 of 5

    A tool takes a URL and fetches it. How do you tag it?

    Show the answer

    Answer: C.

    The URL itself can carry data out, so it is [C]. What it returns is written by outsiders, so it is usually [A] as well.

  2. Question 2 of 5

    Where do you apply the Rule of Two check?

    Show the answer

    Answer: B.

    Tools are tagged one by one, but the risk comes from what one session holds together: A, B and C at once.

  3. Question 3 of 5

    A session holds A, B and C. Which is NOT one of the template's mitigations?

    Show the answer

    Answer: D.

    A prompt instruction can itself be overridden by an injection. The template's mitigations are split, drafts, taint after untrusted reads, or approval.

  4. Question 4 of 5

    A residual risk is "accepted by: team". What is wrong?

    Show the answer

    Answer: B.

    Known risks ship only when written down and signed by a named person, with a review date.

  5. Question 5 of 5

    Which sections must you redo when you add an MCP server to an agent?

    Show the answer

    Answer: B.

    The tool inventory, the Rule of Two check and the supply chain section change with any tool, server, skill or plugin.

Sources

Sources cited

  • OWASP GenAI Security Project, LLM 2026 (Top 10 for LLM Applications 2026), accessed November 2026. genai.owasp.org
  • OWASP GenAI Security Project, Top 10 For Agentic Applications 2026, accessed November 2026. genai.owasp.org
  • Microsoft Learn, Threats: Microsoft Threat Modeling Tool (STRIDE categories), August 2022. learn.microsoft.com

Further reading

  • Meta AI, Agents Rule of Two: A Practical Approach to AI Agent Security, October 2025. ai.meta.com
  • Simon Willison, The lethal trifecta for AI agents: private data, untrusted content, and external communication, June 2025. simonwillison.net
  • Model Context Protocol, Security Best Practices (specification 2026-07-28), July 2026. modelcontextprotocol.io
  • OWASP Cheat Sheet Series, Threat Modeling Cheat Sheet, accessed November 2026. cheatsheetseries.owasp.org