What you get
- Your threat models as a vertical tab list on the left, each with its threat count, open threats, risks and how much is handled.
- A data flow diagram with trust zones, boxes and arrows, and a numbered pin for every threat.
A threat model: model tabs, the data flow diagram and the threats. - A list of threats, sorted by STRIDE, each with a mitigation and a status.
- The step from threats to risks, right in the model.
- A warning when code inside the model's scope changed since your last review.
Create a threat model
Click Threat model with AI, or the plus at the top of the model list. A short guide asks two things.
- What to protect. Pick one or more assets. The AI follows the data from where an attacker gets in to these assets, and finds the threats on the way. The assets are grouped as Crown jewels, Reachable from the internet and Everything else, and a tip suggests a good place to start, such as a crown jewel no model covers yet. For something that is not an asset yet, such as a flow across several services, use Not in the list? Describe it instead and write one or two sentences.
- Name and scope. The name and the folders come prefilled from the assets you picked (from Where it is defined on each asset). Change what does not fit. When files in these folders change after a review, the model is marked out of date.
What the AI works with lists it plainly: the focus assets the model is built around, the other assets in the inventory as context, and the code in the scope folders, read only. Nothing is changed.
Click Create with AI. The new model gets its own tab in the list right away, and its pane shows a short hunt animation while the AI reads the code. This takes a few minutes.
No assets yet? The guide says First find what is worth protecting and offers Discover assets with AI or Describe a part instead.
Review what the AI found
The threats of a new model wait in a review box at the top of the threat list. Click one to see its status, mitigation and where it sits. Accept it into the model or Discard it, one by one or with Accept all. A discarded threat is not suggested again.
Derive again runs the AI on an existing model. It never overwrites your threats: a threat it adds is marked New, a status it would change is marked Change, and a threat it no longer finds in the code is marked Remove. Nothing happens until you accept it.
The diagram
The diagram shows people and external systems, your code, and the data stores, with arrows for the data between them. A trust zone is the dashed frame around a group of boxes: data that crosses its border passes from a less trusted area into a more trusted one. Most attacks happen at such a border.
- Trust zones never overlap. Each zone is laid out as a block of its own, and when you drag a box so that its zone runs into another one, the other zone moves out of the way.
- Drag a box to move it; its zone grows with it. Drag a zone to move it with everything inside it. Drag the empty canvas to pan, and pinch or Ctrl+scroll to zoom.
- The toolbar has Zoom in, Zoom out, Fit to view, Reset layout and Full screen.
- Each numbered pin is a threat, marked as open or mitigated as the legend shows. Several threats on one arrow share a pin such as 5+1.
Above the diagram, Assets in play shows the focus assets and the ones used as context. Click one to open it.
Work through the threats
- Each threat carries its STRIDE letter: Spoofing, Tampering, Repudiation, Information disclosure, Denial of service or Elevation of privilege.
- Where in the diagram shows the pin and the arrow or box. Click it to highlight that spot in the diagram.
- Set the status with Open, Mitigated or Accepted. Accepting a threat asks for a reason. The list keeps its order when you change a status, so the threat you just set stays where it is and its number still matches its pin.
- Create task on an open threat hands it to an agent. The task and any test case show up on the threat. A mitigation only counts once a task or a passing test case backs it.
- Filter with Open, Mitigated, Accepted or all, and with the STRIDE letters. A dot on a letter means it still has open threats.
- The plus above the list adds a threat by hand.
From threats to risks
On top of each model, three steps show where it stands: the model (assets, boxes and flows), its threats (open and done) and its risks (not rated and decided). A threat becomes one or more risks: how likely, how bad, and what you decide.
Below the diagram, Threats and their risks lists the risks grouped by threat, numbered like the pins. Each threat card shows its risks too, or No risk yet while it is open. Derive the risks in the Risks tab.
Keep the model current
When code inside a model's scope changes, the model is marked out of date in the list, and the model shows Changed since the last review with the number of changed files. Look at the threats again, then click Mark as reviewed. The release gate on the Overview checks that all threat models are up to date.
Deleting a model removes its threats and their links. Tasks and test cases stay.
Example: TM-2 Checkout
- The guide suggests
AS-4Payment API: a crown jewel no model covers yet. You pick it and addAS-1Acme Shop Web. - You name the model Checkout and keep the folders taken from the assets. Create with AI opens a new tab with the hunt animation.
TM-2Checkout appears with a browser zone, a backend zone holding the Payment API andAS-7Customer database, and the threats in review. You accept them.- Threat 3, Receipt can be forged, sits on the arrow from the shop to the Payment API. You leave it open and click Create task. Mint, an agent, picks it up.
- You drag the backend zone further right. Everything inside moves with it, and no zone overlaps another.
Related
- Assets: what you pick when you start a model.
- Risks: rate, own and decide what the threats mean.
- Quality: the test cases that back a mitigation.
- Security overview: the chain from asset to fix.