Threat Modeling Compound AI Systems › The anatomy of a threat model

Michael BrenndoerferDecember 2, 20263 min read
Language AI HandbookAll chapters
Part 61 of 67Agentic AI and Protocol Security
Chapter 465Threat Modeling Compound AI Systems › The anatomy of a threat model
Reading section 3 of 15 · The anatomy of a threat model · 3 minSection 3 of 15 · 3 min

Section 3 of 15 · 3 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

In its Threat Modelling guidance, the UK's National Cyber Security Centre recommends accounting for components, their interactions and data flows, interconnections, and trust boundaries. A boundary identifies a place where a control can govern the transfer. In this exercise the application receives the catalog record from retrieval and then selects the fields allowed across the separate boundary to the answer model.

Record a few details about each crossing. Describe the claim you want to rely on, the component that enforces it, and how you would check it. Include an assumption whenever the claim depends on another component. For example, limiting the model's input to public fields depends on both the completeness of the field selection and the accuracy of the catalog's visibility labels. If ownership or evidence is missing, record the open item so it can be resolved.

The assumptions behind the diagram

A design diagram changes meaning when an assumption changes. Use terms that can be verified by an application owner. A useful working record for one assumption includes an observable condition, the service owner who can check it, and what the control should do if the condition fails. For the model handoff, an observable condition is that the actual request contains only fields from the agreed selection. The application owner can check a captured test request with fixture field values. If a field is unexpected, the assistant can return an unavailable result while the service owner examines the request builder.

Treat a threat as a condition or event that could undermine an asset. Treat a vulnerability as a weakness that could let the condition affect that asset. Our read boundary gives a simple example without any operational attack. A reader who has lost access should no longer get the current record. A component that assumes all previously cached authorizations still hold risks showing information after policy changes. Notice that the test can be written from the desired outcome, without constructing an intrusion. Provide two authenticated fixture identities with different intended visibility. Ask the same question and assert the documented results.

It also helps to log which assumptions are explicitly outside the chapter. Here we describe intended behavior for a single library request with no external send interface, one catalog and one renderer. We assume the source store has a staff-only field that the application can see before projecting the model context. We use public field to mean these three fields are displayable for this record once the reader's access check succeeds. In another workflow with private records, a field may have different visibility when the reader, purpose, resource, or destination changes. That policy needs its own check before any projection.

Some threat models carry numerical risk ratings. A rating is only as interpretable as the scale and the evidence behind it. In this example record the impact in plain language and show whether a named control exists in the design. A field-count difference will be useful later because it has a clear unit. We leave the probability that a design yields a bad answer unspecified.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy