How do you threat-model an MCP-connected agent?
Published 2026-11-14 · Reviewed 2026-11-14 · By the Ingenious AI team
The short answer
Threat-model the graph, not the vibes: list what the agent can hurt (assets: data classes, money, reputation, other systems), who or what might steer it wrong (malicious content authors, careless vendors, compromised servers, confused users, the model's own helpfulness), and trace the concrete paths from each actor to each asset through your actual tool set. Every path gets a control or a conscious acceptance; the model is done when no path surprises you. TrustGate's scan supplies the graph (capability classes and toxic chains), baselines and the gateway cover the change paths, and the model tells you where the fleet's remaining holes honestly are.
What is threat modeling (for MCP agents)?
Threat modeling for an MCP-connected agent is the structured identification of how that agent could be made to cause harm: enumerating the assets within its reach, the actors and inputs that could steer its behaviour, the capability paths connecting steering to assets through its tool set, and the controls that break or bound each path. Its MCP-specific character comes from the steering surface — model-read text (descriptions, prompts, content) — and from the change surface: the paths themselves mutate as servers update, so the model must be re-run against the living tool graph rather than filed as a design-phase artefact.
Step one: assets, stated as losses
List assets as losses you can picture, not categories you can file: ‘customer email addresses leave the CRM’, ‘a refund above the manual threshold executes’, ‘the agent posts publicly in our name’, ‘payroll data reaches a vendor we have not diligenced’. Concrete losses do two jobs categories cannot: they rank themselves by pain (which sets control depth), and they make paths traceable — you can ask of a specific loss exactly which tools and steerings could produce it. Vague assets (‘data breach’) produce vague models, and vague models produce the confident, useless security posture this exercise exists to replace.
Include availability and integrity losses alongside confidentiality: an agent that deletes or corrupts records holds assets too. And include the meta-asset: the approval system's own integrity — a fleet whose queue can be flooded into rubber-stamping has lost the asset every other control depends on.
Step two: actors, including the embarrassing ones
The actor list that matters extends well past ‘external attacker’. Content authors: anyone who can write text your agent reads — customers filing tickets, page authors, counterparties sending documents. Careless vendors: not malicious, merely sloppy with definitions and defaults, historically the most productive actor in this series. Compromised servers and accounts: the vendor's pipeline or a maintainer's credentials in hostile hands. Confused or malicious insiders, including the well-meaning power user who connects a shadow server. And the model's own helpfulness: an ‘actor’ with no intent at all, which completes chains simply because completing them looks like good service.
For each actor, note their steering channels: which of your agent's inputs can they write? A content author's channel is documents; a vendor's channel is definitions and results; an insider's channel may be the config itself. The channel map is what turns the actor list from a dramatis personae into an engineering input — paths are traced from channels, through tools, to assets, and a channel nobody enumerated is a path nobody modelled.
Step three: trace paths through the real tool graph
Take each asset and walk backwards: what is the last tool action that realises this loss? (A send, an export, a delete, a post.) What must the agent have read or held before that? (The data, plus the instruction to move it.) Which actor controls that instruction's channel? The walk produces paths in plain sentences — ‘a ticket author writes an instruction; the support agent reads it holding the CRM export tool; the summary step composes the record into the reply’ — and plain sentences are the model's working currency, because they can be challenged by the people who run the workflows in a way diagrams cannot.
Run the walks against the current scan and toxic-flow graph rather than from memory of the tool set; fleets consistently discover their tool graph has grown paths the design never drew, through additions and vendor updates alike. Paths discovered by walking are the model's yield — expect each first pass over a mature agent to find at least one path that makes the room quiet, and treat that quiet as the exercise working exactly as intended.
Step four: a control or an acceptance for every path
Each path ends in one of two dispositions. Controlled: name the specific mechanism that breaks or bounds it — reader/sender separation, a scoped sink, a human confirmation, definition pinning so the path cannot be silently extended, gateway enforcement so a drifted step cannot execute. Or accepted: a named person records that this path exists, why the business runs it anyway, what compensates partially, and when it is re-argued. The forbidden disposition is the third one most models actually contain: the path nobody wrote down. An unlisted path is not a accepted risk; it is an unowned one, and the model's entire purpose is to empty that category.
Map controls honestly against TrustGate's scope while you are at it: definition integrity and capability governance are covered by the loop; content-level judgements (is this specific email's payload malicious?) are not the gateway's job and need sink-platform controls if the path demands them. A threat model that assigns controls a product does not provide is fiction with a vendor logo; the honest mapping is what lets procurement fill real gaps instead of admiring filled ones.
Step five: the change dimension — model the delta, not just the state
Agent threat models rot faster than classical ones because the graph itself is edited by third parties on their own schedules. Build the re-run triggers into the document: every new server adoption re-runs the walks for its capability classes; every consequential diff re-runs the paths touching that server; the quarterly review re-runs the model whole. In practice the per-change re-run is short — the diff names the new capability, the walks that could use it are a small set — provided the model exists as a living document with the paths written down. A model that cannot be delta-updated will be annually-updated, and annual is a synonym for fictional in a fleet whose vendors ship monthly.
The impact simulator (our guide) is the delta tool: feed it the change class and the setup, and it surfaces the paths the change creates or completes, in the model's own language. Used that way, threat modeling stops being an event and becomes the queue's deeper reading mode — the discipline's final form, in which every governed change is automatically a small, focused threat model of itself.
Running the session: ninety minutes, the right people
Convene the agent's owner, one person who runs the workflows the agent serves, and whoever owns the queue; bring the latest scan, the toxic-flow graph and the asset list drafted in advance. Walk assets in pain order, paths in plain sentences, and keep a scribe on dispositions. Timebox by asset; a model covering the top six losses completely outranks one gesturing at twenty. End with the acceptance list read aloud to the risk owner: acceptances signed in daylight are governance; the same paths discovered later are findings.
File the model beside the inventory and link its paths to the controls they cite, so the quarterly review can verify controls still exist. Then do the thing that separates living models from souvenirs: when the next consequential diff arrives, open the model and run its delta before approving. The first time the model changes a real decision in a real queue, it becomes part of how the fleet thinks.
The 5-action checklist
- State assets as concrete losses (data out, money moved, public statements, records destroyed) ranked by pain.
- Enumerate actors by their steering channels — content authors, careless vendors, compromised servers, insiders, the model's helpfulness.
- Trace paths backwards from each asset through the real, current tool graph (use the latest scan, not memory).
- Give every path a named control or a signed, dated acceptance; the unforgivable output is an unlisted path.
- Wire re-run triggers into the document: adoptions, consequential diffs, and the quarterly whole-model pass.
Worked example: one afternoon, one quiet room, one path nobody had drawn
A fictional logistics platform threat-modelled its dispatch agent with six assets. Five walks produced paths the team recognised and could control. The sixth asset — ‘a shipment's contents and destination are disclosed to a competitor’ — produced the quiet moment: the agent read carrier documents (content authors: every carrier clerk), held a ‘rate inquiry’ tool that sent shipment details to an external pricing API (adopted for a legitimate benchmarking job), and summarised carrier documents as part of its morning routine. The path needed no malice at all — a clerk's document mentioning a competitor, an agent helpfully benchmarking the lane, and the API's logs became the disclosure, assembled entirely from approved parts.
The dispositions took an hour: the rate tool moved to a separate benchmarking agent fed with anonymised lanes (the narrow bridge pattern), the dispatch agent's policy lost the external-call class, and the path was written into the model as controlled with both mechanisms named. No product was bought; the model simply made an existing arrangement visible as a decision. The team's CISO-equivalent — their operations director — now opens every vendor review with the same sentence the afternoon taught her: ‘show me the path, in our tools, in plain words’.
Frequently asked questions
Isn't threat modeling a big-company ritual?
The workshop version is; the graph version is an afternoon that scales down gracefully. A two-person team's model can cover one agent, four assets and six paths on two pages — and will likely change at least one real decision, because small fleets accumulate composition risk fastest. The ritual grows with the fleet; the habit — paths in plain sentences, dispositions named — is the same at every size.
How is this different from the toxic-flow graph?
The graph is one input: it shows capability chains in the current set. The threat model adds actors, channels, assets and dispositions — the why and the so-what — and it covers paths the graph cannot see (insider config changes, queue flooding, confused-user requests). Use the graph as the model's map of the territory; the model itself is the campaign plan drawn on that map.
Do we model the model itself (jailbreaks, alignment)?
Include the model's helpfulness and instruction-following as an actor property — it is the mechanism most paths run on — but deep model-behaviour evaluation is a different discipline with different tools. This model deliberately works at the architecture layer, where controls are deterministic: whatever the model's disposition on a given day, the paths available to it are the ones you granted, scoped and governed. Architecture is the layer you can sign for.
How do we keep the model from becoming shelf-ware?
Wire it into decisions that already happen: the adoption path requires the new server's paths to be added; the queue's consequential diffs require a delta walk; the quarterly review re-verifies cited controls exist. A model consulted by three standing processes stays alive; a model that exists as a document, however excellent, is read at its own funeral — the incident review.
What does a finished model look like?
A short, dated document: assets ranked, actors with channels, paths in plain sentences each ending in a named control or a signed acceptance, re-run triggers, and links to the controls. It should be readable by the workflow owners it protects — if only security specialists can parse it, it will only ever be read by them, once. Plain language is not a style preference here; it is the distribution mechanism.
Keep exploring
Start with the free TrustGate scan of your own MCP setup, compare Free vs Pro vs Team, try the live rug-pull demo and the MCP change impact simulator, or browse the full guides index.
- What are toxic capability combinations in an MCP setup?
- How do you use the MCP change impact simulator?
- How does data leave through an AI agent?
- How do you combine multiple MCP servers safely?
- How do you secure the MCP supply chain for an agent product?
- How do least-privilege policies work for AI agents?