Threat Modeling Compound AI Systems › Why compound systems need their own 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 › Why compound systems need their own threat model
Reading section 2 of 15 · Why compound systems need their own threat model · 3 minSection 2 of 15 · 3 min

Section 2 of 15 · 3 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

A compound AI system combines a model with application components such as retrieval, policy, and rendering. In the catalog assistant, the policy service determines which records a reader may access, the retrieval service reads them, and the model proposes a reply. A change to retrieval or to the renderer can change the assistant's behavior even when the model is unchanged. Scope the review to the whole path from the reader's request to the reply.

Start with concrete outcomes. A catalogue answer can be wrong, a staff note can reach a reader who lacks access to it, or an authorized reader can lose access when the service fails. These are integrity, confidentiality, and availability concerns, respectively. Assign an owner and a test to each concern. That gives the team a way to revisit a design decision after a component changes.

What changes when the model is one component?

Think of this as reviewing something that makes an application decision in stages. You can hand the same natural-language request to two deployments and get different capabilities even when their application code uses the same model. In one design the application preselects a catalog entry and tasks the model with phrasing a reply. In another the application asks the model to recommend which entry to use. The input sentence stays the same. The second design adds a choice about which information to retrieve, and the application has to check that choice under the reader's authority.

That example also shows why a prompt is a poor place to document a permission decision. You need a way to trace the decision to the actor that can enforce it and the state it reads. A model-facing instruction can describe how to phrase an answer with insufficient evidence. The service that retrieves the record owns the check that decides whether the evidence can be obtained at all. Those two decisions can change on different release cycles. Treat them as distinct rows when assigning ownership and tests.

A diagram or matrix will be wrong if it leaves out an alternate route. The familiar place to start is the live request. Draw it through to the response first. Then ask whether the same data can take a separate route through caching, review, or troubleshooting. The test is whether a reviewer could come back after release and ask, for every arrow, what operation runs and what fields cross. If the team can only point to a prompt or to a diagram of model calls, the next step is to inspect the surrounding software.

This exercise focuses on application boundaries the developer can inspect. It uses a fictional dataset and named roles to keep distinctions clear. That lets you work through security implications without having to learn a provider's APIs or infer how an external service behaves.

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