Threat Modeling Agent Systems
In this article
- Draw the data flows of an agent system and label its principals, assets and untrusted inputs.
- Mark a trust boundary wherever untrusted text or a credential crosses, including tool results and the model itself.
- Predict the blast radius of each component if an attacker takes it over.
- Map every boundary to one named control or to a written accepted risk.
- Terms defined here: threat model, security principal, trust boundary, data sink.
Overview
You gave an agent a mailbox, a way to open web pages and a send button, and you added a few defences. A reviewer asks the question that matters: do those defences cover every way in, or only the ones you happened to think of?
The example is a made-up inbox assistant that reads a person's work inbox, opens pages linked in mail and sends replies. You will check it with a four-step method: draw how data moves through the system, mark where untrusted text or a credential crosses, list what each part could damage if taken over, and tie every crossing to a control or to a risk you accept in writing.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Four steps, one picture
- Step 1: draw the data flows
- Step 2: mark the trust boundaries
- Step 3: sinks and blast radius
- Step 4: a control for every crossing
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions