Appendix C, online only

Threat model template for agents

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

Threat model template for agents

Download the PDF (PDF, 556 KB)

This worksheet turns Chapter 11 into one or two hours per agent, with builder, owner and security in the room. Store it next to the code and link it from the registry (Chapter 12).

What you will get:

  • A per-session Rule of Two check.
  • An OWASP-mapped threat register.
  • Residual risks with a named sign-off.

How to use this template

  • Leave no cell empty: "n/a" with a reason, or "unknown" with an owner and date.
  • Redo sections 3, 4 and 7 on any tool, server, skill or plugin change. Leaders can skip to sections 4, 9 and 10.
  • Similar agents share one family worksheet plus a delta for sections 1, 3, 4.
  • It complements STRIDE and a GDPR DPIA.

1. System summary

ItemAnswer
Agent id, owner, backup, process owner
Mandate and hard limits (must never do)
Autonomy level (L0 to L5), users
Runtime, model, prompt and config versions (SHA)
Date, reviewer

2. Assets and data

What would hurt if it leaked, changed or disappeared?

AssetSensitivity (L/M/H)Read / writePersonal data?Storage, retention

3. Tool and capability inventory

List every tool, including MCP servers, skills and plugins. Tag: outsider-written content [A], sensitive systems or data [B], changes state or sends outside [C]. A tool taking a URL or destination is [C].

ToolSource (own, MCP, skill, plugin)Read-only?A/B/CScopeApproval?

4. Rule of Two check per session

Any session holding A, B and C needs a mitigation: split the agent, return drafts instead of [C], taint after untrusted reads, or approve every [C] action.

Session or entry pointToolsA/B/C presentMitigationAccepted by

5. Trust boundaries and entry points

Trace user → agent → tools → systems → outbound channels.

ChannelIn/outWho can write to itTrusted?Filtering, egress

6. Threat register

Write the most plausible scenario per threat using this agent's real tools, or why n/a. References: LLM Top 10 2026 and Agentic Top 10 2026.

ThreatScenario, likelihood/impact, control, gap, ownerOWASP
Direct prompt injectionLLM01/ASI01
Indirect prompt injectionLLM01/ASI01
Tool poisoning, shadowingLLM04/ASI02
Rug pull, malicious packageLLM04/ASI04
Confused deputy, token passthroughLLM03/ASI03
Data exfiltrationLLM02/ASI01,ASI02
Code execution, local server compromiseLLM10/ASI05
SSRF via discovery or fetch toolsASI02
Memory and context poisoningLLM05,LLM09/ASI06
Hidden context exposure (prompts, schemas)LLM08
Inter-agent trust (A2A, sub-agents)ASI07
Cascading failures, unbounded consumptionLLM06/ASI08
Over-trust in agent output or approvalsLLM07/ASI09
Agent acting outside mandateLLM03/ASI10

7. Supply chain

How will you notice a changed tool description?

ComponentPublisher verifiedHash pinnedDefinitions fingerprintedCVEs patchedReviewed (who, when)

8. Identity, auth and secrets

QuestionAnswer and evidence
End-user permissions? Token lifetime, audience
Scopes per tool, no wildcards; step-up
Own servers reject foreign tokens
OAuth and fetch URLs validated (http(s), no shell, no private ranges)
Secrets in a vault, none in prompts, skills or config

9. Human approval matrix

ActionApproverCondition (always, threshold, tainted)Timeout behaviorVolume per dayFails closed in code?

10. Detection, response and residual risk

ItemAnswer
Traced fields (user, tool, redacted args, taint)
Alerts (new destination, private read then external send)
Kill switch under five minutes, runbook
Injection suite in CI; last red team
Residual riskWhy acceptedCompensating controlAccepted byReview date

Sign-off (name, date, go, go with actions or no go): agent owner, security, process owner.

Go live when no session holds A, B and C unmitigated, no High/High threat lacks a control, and every "unknown" has an owner. Lower gaps ship as signed residual risks.

Appendix C: Go further: free on this site