Topic 5 of 5 · 4 min read
Writing and maintaining an AI threat model
Goal: Produce a one-page threat model with ranked risks, mitigations and owners, and name what change would trigger a review.
Keep the threat model to one page that ranks the risks, names a mitigation and an owner for each, and lists the changes that force a review. A long model nobody reads protects nothing. The OWASP threat modeling method ends the same way: respond to the threats, then review them over time.
Check yourself · 1 of 3
Which is the best review trigger for an AI threat model?
Why it matters
An AI feature changes faster than most systems. A new tool, a swapped model or a new data source changes the threats the same day. A model written once and filed away is wrong within a few releases. A short page that lives in the repo gets updated in the pull request that changes the feature.
How to do it
Use a fixed layout:
- Scope. One paragraph: what the feature does, who uses it, what it touches.
- Diagram. The data-flow sketch with trust boundaries, as an image or a text block.
- Assets. The short list with owners.
- Risks table. Columns: id, abuse case, likelihood, impact, rank, mitigation, owner, status. Rank by likelihood times impact, using three levels (low, medium, high) so the scale stays honest.
- Accepted risks. Anything left open, with who accepted it and until when.
- Review triggers. The events that reopen the model.
- Last reviewed. Date and reviewer.
Good review triggers are concrete: a new tool or a wider tool scope, a new data source in the index, a model or provider change, a new tenant type, a first external user, a security incident, or a new published attack against a component you use.
Store it next to the code, review it in pull requests, and link mitigations to tickets or tests. Better still, turn a mitigation into a test: an automated check that the email tool rejects other recipients.
Before and after
Weak: "Threat model v1.pdf, 30 pages, last edited by someone who left." Fixed:
R3 Poisoned wiki page | likelihood M | impact H | rank High
Mitigation: strip hidden text on index; links limited to allow-list
Owner: search team | Status: in progress | Review by: next release
What goes wrong
- No owners. A risk without a name does not get fixed.
- No triggers. The model goes stale because nothing says when to look again.
- Ranking everything high. When all risks are urgent, none are.
- Mitigations without checks. A claimed control that no test exercises may not work.
Examples
A review trigger list
The team adds three triggers to the page: any new tool or tool scope change, any change of model provider, and any new content source in the search index. The pull request template has a checkbox that links to the page.
Accepted risk
The model notes that a prompt-leak risk is accepted: the system prompt holds no secrets, and the product lead signed off until the next major release. The accepted-risk line has a name and a date.
Key points
- Keep the model to one page: scope, diagram, assets, ranked risks, accepted risks, review triggers.
- Every risk gets a mitigation, an owner and a status; unowned risks do not get fixed.
- Rank with a simple three-level scale of likelihood and impact so the order is believable.
- Name concrete review triggers: new tool, new model, new data source, new user type, incident.
- Store the model in the repository and tie mitigations to tests or tickets so they stay true.
Common mistakes
- Writing a long document that nobody opens again.
- Listing risks without owners or status.
- Giving no events that reopen the model.
- Marking every risk as high priority.
Check yourself · 2 of 3
What should every risk on the page have next to it?
Check yourself · 3 of 3
Why store the threat model in the code repository?
Practice items, not counted towards your mastery.
Start here
- OWASP Threat Modeling Cheat Sheet (opens in a new tab)ArticleFree
A short method: scope, diagram, find threats, respond, review.
- MITRE ATLAS (opens in a new tab)DocsFree
A catalogue of real adversary tactics and techniques against AI systems, with case studies.
- NIST AI 100-2 E2025: Adversarial Machine Learning taxonomy (opens in a new tab)PaperFree
A shared vocabulary of attacks on predictive and generative AI, with mitigations.
More for this topic
- CSA: MAESTRO agentic AI threat modeling framework (opens in a new tab)ArticleFree
A layered threat-modeling approach built for agents, tools and multi-agent systems.