Threat Modeling Agent Systems
In this article
- Draw the data flows of an agent system and label its principals, assets, untrusted inputs and credentials.
- Mark a trust boundary wherever untrusted text or a credential crosses, including the tool-result channel and the model itself.
- List the sinks of an agent and predict the blast radius of each component an attacker takes 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
By now the inbox assistant has six defences, from a permission check to a policy function. A security reviewer asks one question: which way in does each defence guard, and is there a way in that none of them guards? A list of defences cannot answer that. A map of the system can.
The assistant is made up: it reads one person's work inbox, opens pages linked in mail, and drafts and sends replies. Its company, pages and numbers are invented. You will check it in four steps: draw how data moves, mark where untrusted text or a credential crosses into a part that acts, list what each part could damage if an attacker took it over, and give every crossing a control or 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
- What a threat model is
- Step 1: draw the data flows
- Step 2: mark the trust boundaries
- Step 3: sinks and blast radius
- Step 4: a control or a written risk for every crossing
- Common mistakes
- Sources
- Check yourself, 13 questions