BLOG

How to Perform Threat Modelling

Published 11 August 2026 · By P Larner

Security in Practice#secure design#attack trees#threat modelling#DREAD#STRIDE

Illustration for: How to Perform Threat Modelling

Illustration for: How to Perform Threat Modelling

Threat modelling is the discipline of working out what can go wrong with a system before an attacker does it for you. It is cheap, it works at design time when fixes cost almost nothing, and yet most organisations still skip it or do it once and file the output. This is a practical walkthrough of the method I use, from scoping through to keeping the model alive after go-live, taking in the techniques that do the heavy lifting along the way, data flow diagrams, STRIDE, DREAD and attack trees.

Scope the system before you draw anything

Every failed threat modelling session I have sat in started with a fuzzy scope. “The payments platform” is not a scope. Pin it down four ways.

  • Name the system boundary. Which components are in, which are assumed trusted, which are someone else’s problem, and the last of those needs evidence rather than hope.
  • List the actors. End users, administrators, batch jobs, third-party APIs, support staff with database access.
  • Identify the assets worth attacking. Cardholder data, credentials, the ability to move money, the audit trail itself.
  • Agree the abstraction level. For a first pass, model the whole system at container level. Save code-level modelling for the two or three components that handle your most sensitive data.

Timebox this. Thirty minutes of scoping with the lead engineer and the product owner in the room beats a week of solo document archaeology. If you cannot get the people who built the thing into the session, postpone the session.

Draw the data flow diagram

The data flow diagram (DFD) is the working surface for everything that follows. Keep it simple, because four element types are enough.

  • External entities. Users, partner systems, anything outside your control.
  • Processes. Services, functions, scheduled jobs.
  • Data stores. Databases, queues, file shares, browser local storage.
  • Data flows. Every arrow between the above, labelled with what travels on it.

Then add trust boundaries as dotted lines, internet to DMZ, DMZ to internal network, application to database, tenant to tenant in a multi-tenant system. Trust boundaries are where threats concentrate. A DFD with no trust boundaries drawn on it is a picture, not a model.

Data flow diagram of the order-processing example with two red trust boundaries

Data flow diagram of the order-processing example with two red trust boundaries

The example order-processing system as a data flow diagram. The interesting threats cluster where the flows cross the two red boundaries.

A whiteboard photo is a perfectly good artefact. I would rather have an ugly diagram the engineers correct in real time than a beautiful Visio file nobody argued with.

Apply STRIDE per element

STRIDE stands for Spoofing, Tampering, Repudiation, Information disclosure, Denial of service and Elevation of privilege, the six categories of threat worth hunting for. The trick that makes it manageable is applying it per element rather than to the whole system, because not every category applies to every element type.

  • External entities attract spoofing and repudiation.
  • Processes attract all six.
  • Data stores attract tampering, information disclosure, denial of service, and repudiation where logs live.
  • Data flows attract tampering, information disclosure and denial of service.

Table showing which STRIDE categories apply to each data flow diagram element type, with processes attracting all six

Table showing which STRIDE categories apply to each data flow diagram element type, with processes attracting all six

Which STRIDE categories apply to each element type, with processes attracting all six.

Walk the diagram element by element and ask what each relevant category looks like in concrete terms. Not “tampering with the data flow” but “an attacker on the same network modifies the price field in transit because this internal API call is plain HTTP”. Specific threats produce specific mitigations. Vague threats produce a policy document.

Asked of the order-processing example, the six categories produce threats like these.

STRIDE category

The question you ask

Example in the order system

Spoofing

Can anyone pretend to be this?

A replayed session token lets an attacker act as a paying customer

Tampering

Can the data or logic be changed?

The price field is modified in transit on the plain HTTP internal call

Repudiation

Could someone deny doing this?

Refund actions are logged without the operator identity attached

Information disclosure

Can data leak to the wrong eyes?

A verbose error page returns the database connection string

Denial of service

Can this be made unavailable?

The order queue accepts unbounded messages until storage is exhausted

Elevation of privilege

Can anyone gain rights they should not have?

A support role reaches the admin API because authorisation is only checked in the UI

Expect 30 to 60 candidate threats from a medium-sized system on a first pass. That is normal. Most will be duplicates or already mitigated, and the next step deals with that.

Rate the threats

You need a way to decide what matters, because 40 threats cannot all be top priority. DREAD is the traditional companion to STRIDE, and it deserves a proper explanation before I talk you partly out of it. Each threat is scored on five factors.

  • Damage. How bad is a successful attack? Full database exposure scores high, while a defaced status page does not.
  • Reproducibility. Does the attack work every time, or does it need a race condition and a following wind?
  • Exploitability. How much skill and effort does it take? A script a teenager can download scores worse than a bespoke exploit chain.
  • Affected users. One tenant, all tenants, or every visitor?
  • Discoverability. How likely is an attacker to find the weakness in the first place?

Infographic of the five DREAD scoring factors as stacked bars

Infographic of the five DREAD scoring factors as stacked bars

The five DREAD factors, with Reproducibility, Exploitability, Affected users and Discoverability shortened for the diagram. Score each 1 to 3, sum to rank, and treat the result as a conversation starter rather than a measurement.

Score each factor 1 to 3 (some teams use 1 to 10), sum them, and rank. Take the tampering threat from the table above. Damage 3, because price integrity is the business. Reproducibility 3, it works on every call. Exploitability 2, you need a network position first. Affected users 3, every order crosses that flow. Discoverability 2. Total 13 of 15, which puts it at the top of the pile, and honestly that matches intuition.

That last phrase is DREAD’s problem. Scores drift between assessors, Discoverability rewards wishful thinking (“nobody will find it”), and the sum implies a precision the inputs never had. Microsoft, who invented it, largely dropped it years ago. It survives because ranking beats not ranking, and because the five questions are genuinely good questions even when the arithmetic is theatre.

My honest advice is to use simple likelihood and impact on a three-point scale, agreed in the room, and record the reasoning in a sentence. “Likely, because the endpoint is internet-facing and the flaw class appears in every pentest we commission. High impact, because it exposes all tenant data.” That sentence is worth more than any number, because in six months it tells you whether the rating still holds.

Whatever scheme you pick, be consistent within the model and rank rather than agonise. The purpose is ordering the work, not producing defensible decimals.

Build attack trees for the threats that matter

STRIDE tells you what could go wrong. For the handful of threats at the top of your ranking, an attack tree tells you how, and that changes which control you buy. The technique is old, popularised by Bruce Schneier in the late 1990s, and it has aged far better than DREAD.

The root of the tree is the attacker’s goal, stated as an outcome such as “steal order data”. Each branch below it is a distinct route to that goal, and branches decompose until you reach concrete actions. Branches are OR nodes by default, so any one route suffices. Where a route needs several steps to all succeed, mark them as an AND group, because AND nodes are where a single control can sever a whole path.

Attack tree with the goal steal order data decomposing into phishing, web exploitation and insider routes

Attack tree with the goal steal order data decomposing into phishing, web exploitation and insider routes

One goal, three routes, and the phishing branch decomposed one level further. The cheapest path for the attacker is where your next control pound should go.

Two habits make trees earn their keep. First, annotate each leaf with rough cost and skill for the attacker, even just low, medium or high, because the cheapest adequate path is the one a real attacker takes and therefore the one to defend first. Second, prune honestly. A branch that dies against an existing, verified control gets marked mitigated and left visible, which is how the tree stays useful evidence rather than growing back next year.

Do not tree everything. Thirty STRIDE threats do not need thirty trees. Build trees for the three to five threats whose mitigations are expensive or contested, where knowing the attacker’s cheapest route settles the argument about where the money goes.

Turn threats into risks and mitigations

A threat model that stays in the security team’s folder has failed. Each threat that survives triage should become one of three things.

  • A mitigation ticket in the delivery backlog, written in the engineers’ own tracker, with acceptance criteria such as “all internal service calls use mTLS, verified by config test”.
  • A risk entry in the risk register, where the fix is expensive or the exposure is accepted for now, with a named owner and a review date.
  • A documented non-issue, with the reason. “Out of scope, mitigated by X” recorded in the model saves you rediscovering the same threat next year.

Flowchart showing a triaged threat becoming a mitigation ticket, a risk register entry or a documented non-issue

Flowchart showing a triaged threat becoming a mitigation ticket, a risk register entry or a documented non-issue

The three acceptable destinations for a triaged threat.

Map mitigations back to your control framework where you have one. A threat model that shows CIS Control 4 or ISO 27001 Annex A 8.24 actually doing something is also useful evidence at audit time.

Where the other methodologies fit

STRIDE plus a DFD is the right default, but it is not the only tool in the drawer, and the alternatives are worth knowing by name because they answer different questions.

Method

Centre of gravity

Reach for it when

STRIDE

Technical threats, per element

You have a DFD and the engineers in the room

Attack trees

One goal, every route to it

Your top threats need depth and a spending decision

PASTA

Business impact, staged attacker simulation

Risk needs to be argued in money to executives

LINDDUN

Privacy threats to personal data

UK GDPR duties dominate the system’s risk profile

OCTAVE

Whole-organisation risk

The scope is the operation, not one system

These compose rather than compete. A mature programme runs STRIDE in delivery teams, builds trees for the contested threats, and borrows LINDDUN’s categories whenever a DFD shows personal data crossing a boundary. Buying a methodology wholesale is rarely the answer, while knowing which question each one answers usually is.

Keep the model alive

The model decays the day the architecture changes. Four habits keep it honest.

  • Store the DFD and threat list in the repository next to the code, in plain text or Markdown, so changes go through review like everything else.
  • Add a checkbox to your change or design review process asking whether this alters a trust boundary, adds a data flow, or introduces a new data store. If yes, spend 20 minutes updating the model. Most changes need nothing.
  • Revisit the full model annually, or after any incident that the model should have predicted. An incident the model missed is the best calibration data you will ever get.
  • Rotate who facilitates. If only one person can run a session, threat modelling dies when they leave.

Where to start

Do not start with a methodology purchase or a tooling evaluation. Pick one system, ideally something being redesigned right now, and book 90 minutes with the people building it. Draw the DFD together, mark the trust boundaries, run STRIDE over the three or four elements that cross them, and leave with five ticketed mitigations and two register entries. That single session will teach you more about your real exposure than a quarter of framework reading, and it gives you a worked example to show the next team. Threat modelling spreads by demonstration, not by mandate.

Threat modelling canvas showing STRIDE analysis in RaptorGRC

Threat modelling canvas showing STRIDE analysis in RaptorGRC

The threat modelling canvas in RaptorGRC.

Run your GRC programme in your own network.

RaptorGRC Community Edition is free: every module, offline licence activation, nothing phones home.

Register / Download Contact us
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.