Skip to content
mentoor

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?

Choose one answer

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:

  1. Scope. One paragraph: what the feature does, who uses it, what it touches.
  2. Diagram. The data-flow sketch with trust boundaries, as an image or a text block.
  3. Assets. The short list with owners.
  4. 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.
  5. Accepted risks. Anything left open, with who accepted it and until when.
  6. Review triggers. The events that reopen the model.
  7. 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?

Choose one answer

Check yourself · 3 of 3

Why store the threat model in the code repository?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic