Threat modeling is working out what could go wrong with a system while there is still time to change the design, and deciding what to do about each answer. A team describes what it is working on, lists the ways it could be attacked or misused, chooses a response to each one and checks that the responses were made. The result is the threat model: a record of the system, the threats, the decisions and the check.
The three definitions most often quoted agree on the essentials. The Threat Modeling Manifesto (2020) calls it "analyzing representations of a system to highlight concerns about security and privacy characteristics." OWASP's cheat sheet calls it "a structured, repeatable process used to gain actionable insights into the security characteristics of a particular system." NIST's draft SP 800-154 (March 2016) calls it "a form of risk assessment that models aspects of the attack and defense sides of a particular logical entity, such as a piece of data, an application, a host, a system, or an environment." Because all three describe work done on a representation of a system, threat modeling can start before the system exists.
Why threat modeling matters
A design flaw is cheapest to fix before anything is built on top of it. Take a video visit that opens for anyone who has its join link. In a design document, fixing it means rewriting a paragraph. After release, the same flaw is an incident.
The flaw
A video visit opens for anyone who holds its join link, and the link is sent by text message.
Design
Found by
A threat model
What has to change
One paragraph of the design. The link opens a waiting room, and the clinician admits the patient.
Build
Found by
A code review
What has to change
The join screen is rewritten after it was built, and its tests with it.
Test
Found by
A penetration test
What has to change
The release waits while the join screen is rebuilt and tested again.
In use
Found by
A patient's relative, who opens a forwarded link
What has to change
An incident. Patients are told, the fix ships under pressure, and trust has to be earned back.
Design
Found by
A threat model
What has to change
One paragraph of the design. The link opens a waiting room, and the clinician admits the patient.
Build
Found by
A code review
What has to change
The join screen is rewritten after it was built, and its tests with it.
Test
Found by
A penetration test
What has to change
The release waits while the join screen is rebuilt and tested again.
In use
Found by
A patient's relative, who opens a forwarded link
What has to change
An incident. Patients are told, the fix ships under pressure, and trust has to be earned back.
The flaw is the same at every stop. At each later stop, more has been built on top of it. Threat modeling is the only one of the four that can find it while fixing it still means rewriting a sentence.
Code reviews and penetration tests do their own jobs well. A code review finds mistakes in code, and a penetration test finds what a skilled person can break in the time they were given. Neither is aimed at the design, and both need something built. OWASP recognised the gap in 2021, when it added "Insecure Design" to its Top 10. The category is sixth in the 2025 edition, and the entry's advice is to "use threat modeling for critical parts of the application such as authentication, access control, business logic, and key flows."
Threat modeling also produces a list of decisions the team made on purpose. Testing cannot produce that list. Every threat on it has an answer, an owner and a reason, including the threats the team chose to accept. Customers' security questionnaires, auditors and regulators all ask to see that list.
Published government guidance asks for threat modeling. The secure by design guidance from CISA, the NSA, the FBI and partner agencies abroad (revised 25 October 2023) says a secure by design product starts with a written threat model. NIST's Secure Software Development Framework (SP 800-218, February 2022) tells software producers in practice PW.1.1 to use "forms of risk modeling". Threat modeling is the first form it names. The US Food and Drug Administration's premarket guidance of 3 February 2026 "recommends that premarket submissions include threat modeling documentation to demonstrate how the medical device system has been analyzed."
None of them names a method. The FDA guidance leaves the choice to the manufacturer: "There are a number of methodologies and/or combinations of methods for threat modeling that manufacturers may choose to use."
Without a threat model, the same decisions still get made. Whoever finds the flaw makes them, later and with fewer options.
Where threat modeling came from
Threat modeling as a written practice began at Microsoft. On 1 April 1999 Loren Kohnfelder and Praerit Garg circulated an internal paper, "The threats to our products", which asked every product team to look for six kinds of threat "during the design phase." The initials of the six spelled STRIDE. Adam Shostack, who later worked on the method at Microsoft, wrote in 2008 that Microsoft "has had documented threat modeling methodologies since 1999", and added that this was "not the first time anyone threat modeled at Microsoft, but rather the first time the methodology was formalized."
The second method still in daily use also appeared in 1999: Bruce Schneier's "Attack Trees", in Dr. Dobb's Journal that December. Our guide to attack trees covers it. Books then spread Microsoft's method beyond the company, starting with Writing Secure Code by Michael Howard and David LeBlanc in 2001.
1999
A method
The threats to our products
Loren Kohnfelder and Praerit Garg, Microsoft, 1 April
An internal paper asks every product team to look for six kinds of threat during design. Their initials spell STRIDE.
1999
A method
Attack Trees
Bruce Schneier, Dr. Dobb's Journal, December
One attacker goal at the root, broken down into every way of reaching it.
2002
A method
Writing Secure Code, second edition
Michael Howard and David LeBlanc, Microsoft Press, December
The edition that added DREAD, a five-factor score for ranking threats.
2008
The shared frame
Experiences Threat Modeling at Microsoft
Adam Shostack
A decade of practice reduced to four steps that engineers with little security training can run: diagram, enumerate threats, mitigate, verify.
2010
A method
LINDDUN
KU Leuven
A privacy counterpart to STRIDE, asked of the same kind of diagram.
2014
The shared frame
Threat Modeling: Designing for Security
Adam Shostack, Wiley
The book that frames the whole practice as four questions.
2015
A method
Risk Centric Threat Modeling
Tony UcedaVélez and Marco Morana, Wiley, May
The book of PASTA, a seven-stage method developed in 2012 that starts from what the business stands to lose.
2020
The shared frame
The Threat Modeling Manifesto
Fifteen practitioners, Shostack among them
Adopts the four questions and adds values, principles and named anti-patterns. It prescribes no method.
2023
Government guidance
Shifting the Balance of Cybersecurity Risk
CISA, the NSA, the FBI and international partners, revised October
Government guidance that secure by design products start with written threat models.
Two things have changed since then, and both matter more than any one method. The first is who does the work. By 2008 Microsoft had reduced its process to "4 major steps: diagramming, threat enumeration, mitigation and verification", and Shostack described the result as "a practical approach, usable by non-experts." The second is that the practice is no longer tied to one method. Shostack's 2014 book framed all of it as four questions, and in 2020 fifteen practitioners published the Threat Modeling Manifesto, which adopts the questions and describes itself as "methodology-agnostic."
How threat modeling works
Threat modeling works by asking four questions of a design, in order. The questions are Adam Shostack's, and the Threat Modeling Manifesto adopted them in this wording:
- What are we working on?
- What can go wrong?
- What are we going to do about it?
- Did we do a good enough job?
Shostack's own current wording of the fourth is "Did we do a good job?" The Manifesto's authors chose to add "enough". The first question has changed as well. It used to ask what "you" were "building". Shostack replaced both words, and gives the reason for the second: "The 'building' frame draws people towards a waterfall approach."
Answering each question produces one part of the record. Together, the four parts are the threat model. Their fields are what people mean when they ask for a threat model template.
The four questions
The threat model
One record, four parts
What are we working on?
Part 1 · The model
A drawing or a description of the system, drawn so it can be questioned.
- System and scope
- Diagram or description
- What was assumed
What can go wrong?
Part 2 · The threats
Each one a sentence that says who does what to which part.
- The threat, as a sentence
- The part it affects
- How bad it would be
What are we going to do about it?
Part 3 · The decisions
One for every threat: change the design, add a control, or accept it.
- The decision
- The control, or the reason
- An owner and a date
Did we do a good enough job?
Part 4 · The check
What shows the work was finished, and when it has to be opened again.
- Checked against what was built
- What is still open
- Who signed, and what reopens it
- 1
What are we working on?
Part 1 · The model
A drawing or a description of the system, drawn so it can be questioned.
- System and scope
- Diagram or description
- What was assumed
- 2
What can go wrong?
Part 2 · The threats
Each one a sentence that says who does what to which part.
- The threat, as a sentence
- The part it affects
- How bad it would be
- 3
What are we going to do about it?
Part 3 · The decisions
One for every threat: change the design, add a control, or accept it.
- The decision
- The control, or the reason
- An owner and a date
- 4
Did we do a good enough job?
Part 4 · The check
What shows the work was finished, and when it has to be opened again.
- Checked against what was built
- What is still open
- Who signed, and what reopens it
The twelve fields are a threat model template. You can keep them in a spreadsheet, a page in a design document or a dedicated tool. You cannot leave out a whole part: a record with a model and no decisions is only a drawing.
The four questions say what a team must answer. The team decides how to answer them. Three other pages show the usual ways. How to do threat modeling, step by step goes through one session from scope to sign-off. What is a data flow diagram in threat modeling? covers the drawing most teams use for the first question, with its notation and trust boundaries. STRIDE, explained with examples covers the six categories most teams use for the second.
Entry points other than the diagram
A diagram of the software is the usual place to start, and it is a sound default. Microsoft's guidance for its threat modeling tool gives the reason: "many software engineers understand their software better than they understand the concept of assets."
Other starting points work too. Shostack wrote in 2008 that "threat modeling can be asset-centric, attacker-centric or software-centric." Microsoft's guidance explains the three with a house. You might start with what is valuable inside it, with who might break in, or with its physical features, such as the pool or the front porch. In Microsoft's words, "any of these three approaches work." You can also start from one outcome you cannot afford. An attack tree is built for that starting point.
- Where this approach starts looking
Start from the software
Take every element and every line on the drawing in turn, and ask what could go wrong with it.
- Finds first, on this system
- Nothing records who joined a visit.
- The method that starts here
- STRIDE on a data flow diagram
Start from the data
Take the visit notes and the call itself. Where does each one rest, and who can read it there?
- Finds first, on this system
- The video provider keeps recordings.
- The method that starts here
- Data-centric modeling
Start from the attacker
Who would want in? A relative holding the patient's phone, or a member of staff who is curious.
- Finds first, on this system
- The join link is all anyone needs.
- The method that starts here
- Attacker lists and personas
Start from one outcome
A stranger sits in on a visit. Work out every route to that, one branch at a time.
- Finds first, on this system
- Two routes: a forwarded link, and a link sent to an old number.
- The method that starts here
- An attack tree
The system is the video visit service from the worked example below, drawn small. Taken to the end, all four starting points produce the same list of threats. They differ in what they find in the first hour.
Starting from the data suits a system that exists to hold one kind of record. NIST's draft SP 800-154 takes the data-first approach, and its first step is to "identify and characterize the system and data of interest." Starting from the attacker suits a product with an obvious adversary, such as a payment flow and the fraudsters who target it. Starting from an outcome suits a question from the board.
Start where the people in the room know the most. When they run out of answers, switch to another starting point. The Manifesto lists staying too long on one starting point as an anti-pattern, the "Tendency to Overfocus": "Avoid exaggerating attention on adversaries, assets, or techniques."
Threat modeling methods and frameworks
A threat modeling method is a structured way of answering one or more of the four questions, most often the second. People use "framework" and "methodology" for the same things, and nobody enforces a difference. OWASP's cheat sheet says plainly that none of them is a standard: "There is no universally accepted industry standard for the threat modeling process."
| Method | What it is | The question it helps answer | Read on |
|---|---|---|---|
| STRIDELoren Kohnfelder and Praerit Garg at Microsoft, April 1999 | Six kinds of threat to ask of every element on a diagram. | What can go wrong? | STRIDE, explained with examples |
| Attack treesMade widely known by Bruce Schneier, December 1999 | One attacker goal at the root, broken down into every way of reaching it. | What can go wrong, in depth, for one outcome | What is an attack tree? |
| PASTATony UcedaVélez and Marco Morana, developed in 2012, book in May 2015 | A seven-stage process that ties every threat to what the business stands to lose. | All four, starting from business impact | What is PASTA threat modeling? |
| LINDDUNKU Leuven, first published in 2010 | Seven kinds of privacy threat, asked of the same diagram STRIDE uses. | What can go wrong, for privacy | linddun.org |
| Data-centric modelingNIST SP 800-154, initial public draft, March 2016 | Starts from one kind of data and follows it to every place it rests and travels. | What are we working on? | NIST SP 800-154 (draft) |
| DREADMicrosoft, in print from December 2002 | A five-factor score for ranking threats that have already been found. It finds none. | What are we going to do about it? | DREAD, in the next section |
| OCTAVESoftware Engineering Institute, Carnegie Mellon, September 1999 | An evaluation of risk to an organisation's critical assets. It assesses the organisation, where the others model one system. | A risk assessment, one level above a threat model | OCTAVE Framework, version 1.0 |
STRIDE
Loren Kohnfelder and Praerit Garg at Microsoft, April 1999
Six kinds of threat to ask of every element on a diagram.
Helps answer
What can go wrong?
Attack trees
Made widely known by Bruce Schneier, December 1999
One attacker goal at the root, broken down into every way of reaching it.
Helps answer
What can go wrong, in depth, for one outcome
PASTA
Tony UcedaVélez and Marco Morana, developed in 2012, book in May 2015
A seven-stage process that ties every threat to what the business stands to lose.
Helps answer
All four, starting from business impact
LINDDUN
KU Leuven, first published in 2010
Seven kinds of privacy threat, asked of the same diagram STRIDE uses.
Helps answer
What can go wrong, for privacy
Data-centric modeling
NIST SP 800-154, initial public draft, March 2016
Starts from one kind of data and follows it to every place it rests and travels.
Helps answer
What are we working on?
DREAD
Microsoft, in print from December 2002
A five-factor score for ranking threats that have already been found. It finds none.
Helps answer
What are we going to do about it?
OCTAVE
Software Engineering Institute, Carnegie Mellon, September 1999
An evaluation of risk to an organisation's critical assets. It assesses the organisation, where the others model one system.
Helps answer
A risk assessment, one level above a threat model
Teams can combine the methods because they are different kinds of thing. STRIDE and LINDDUN are lists of what to look for. Attack trees and data-centric modeling are ways of looking. PASTA is a whole process, and it uses other methods inside its stages. A common pairing is STRIDE across the whole diagram for coverage, then an attack tree for the one outcome that worries you most.
Which method you choose matters less than it seems, because every method leads to the same third question: what are we going to do about it? The Software Engineering Institute surveyed twelve methods in 2018 and concluded that "no one threat modeling method is recommended over another." OWASP adds a warning: "Do not add techniques only to make the model appear comprehensive." Our comparison of STRIDE, PASTA and LINDDUN covers how to choose.
DREAD is the odd one in the table. It finds no threats, and Microsoft, which created it, stopped using it.
What DREAD is, and why Microsoft stopped using it
DREAD is a way of scoring a threat that has already been found, so that a list of threats can be put in order. People search for the "DREAD threat model", but DREAD is a rating scheme, used when answering the third question. The letters stand for five factors. Microsoft's guidance of June 2003 defines each factor as a question.
- Damage potential asks "How great is the damage if the vulnerability is exploited?"
- Reproducibility asks "How easy is it to reproduce the attack?"
- Exploitability asks "How easy is it to launch an attack?"
- Affected users asks "As a rough percentage, how many users are affected?"
- Discoverability asks "How easy is it to find the vulnerability?"
DREAD came out of Microsoft's early security pushes. David LeBlanc, who co-wrote the book that published it, recalled that "DREAD is something that came up out of the Visual Studio security push." The second edition of Writing Secure Code put it in print in December 2002, with a rule LeBlanc later summed up: "we told you to rate them from 1-10, add them up, and divide by 5."
Microsoft's own people documented what went wrong.
The scales were never defined. LeBlanc wrote in August 2007: "what's the difference between discoverability of 6 and 7? Who the heck knows? I don't." Averaging also hid the difference between threats. A well-known nuisance with a damage of 1 and tens for everything else scored the same as a flaw with a discoverability of 1 and tens for everything else. LeBlanc called that result "an obvious malfunction." Shostack's 2008 paper made the same point more formally: DREAD "seems to add numbers without defining their scales, generating a risk of making a risk assessment appear algorithmic when it's not."
Two people could not agree on a score. In March 2010 MSDN Magazine printed a case: one blind SQL injection bug, scored by a developer and by a tester on the same team.
- The developer's score
- The tester's score
- The gap between them
DDamage potential
5 and 10
- Developer, 5
- An attacker could read and alter data in the product database.
- Tester, 10
- An attacker could read and alter data in the product database.
RReproducibility
10 and 10
- Developer, 10
- Can reproduce every time.
- Tester, 10
- Can reproduce every time.
EExploitability
2 and 10
- Developer, 2
- Requires expert knowledge and large time investment.
- Tester, 10
- Easily exploitable by automated tools found on the Internet.
AAffected users
1 and 10
- Developer, 1
- Only affects small subset of user base.
- Tester, 10
- Affects critical administrative users.
DDiscoverability
1 and 10
- Developer, 1
- Affected page not linked from any user pages.
- Tester, 10
- Affected page "admin.aspx" easily guessed by an attacker.
The developer's average
3.8
(5 + 10 + 2 + 1 + 1) divided by 5
The tester's average
10.0
Five tens, divided by 5
The scores and the reasons are the ones printed in MSDN Magazine. On damage, both people wrote the same sentence and chose different numbers. The article concluded that whoever found the bug first would have decided whether it was fixed before release.
The article asks: "How can we rely on a system that produces such subjective, variable results?" It answers: "The SDL team concluded that we can't rely on such a system, and consequently Microsoft developed a more consistent approach: the security bug bar." A bug bar gives each severity level written criteria, so two people who look up the same bug arrive at the same level. The article also says which acronym Microsoft kept: "Unlike DREAD, STRIDE is still very much used by the SDL."
Shostack added a practical reason in 2018: a team that ran DREAD beside another ranking had "two bug-ranking systems, and what do you do when they disagree?"
DREAD still appears in lists of threat modeling methods. Its five named factors are easy to remember. If your team uses it, write down what each score means for each factor before anyone scores anything. The simpler route is the one Microsoft took: a few severity levels with written criteria. Your risk register already has a scale like that. A threat rated on that scale can be compared with every other risk on the register.
A threat model example: telehealth video visits
A company sells a booking product to general practice clinics and is adding video visits. The design is two weeks from build. Four people give it a morning: the engineering lead, a platform engineer, a security engineer and the practice systems manager, who used to run a clinic's front desk.
What are we working on?
The team draws the system as a data flow diagram. The patient and the clinician are outside. The visit service and the patient records are inside the company's cloud. Two suppliers are outside again: one sends messages and one carries video. A patient books a visit, the visit service sends a join link by text message, and at the appointment time the patient taps the link and the call starts.
- Outside the company's control
- A service it runs
- Where data rests
- Trust boundary
Outside · the people
Person
Patient
On their own phone or computer, wherever they happen to be.
Person
Clinician
On a clinic computer, signed in through the clinic's SSO.
Inside the company's cloud
Service
Visit service
Books visits, issues join links and shows the clinician the visit note.
Data store
Patient records
Contact details, bookings and visit notes.
Outside · third parties
Third party
Message provider
Sends the join link by text message or email.
Third party
Video provider
Carries the audio and video of the call.
What moves on each line
- Patient and visit service
- The patient opens the join link and enters the visit.
- Clinician and visit service
- The clinician signs in, sees the day's visits and writes the visit note.
- Visit service to message provider
- The patient's mobile number or email address, and the join link.
- Message provider to patient
- The text message or email that contains the join link.
- Visit service and video provider
- A room for each visit and a pass for each person in it.
- Patient and clinician with the video provider
- The call itself: audio and video in both directions.
- Visit service and patient records
- Contact details, bookings and visit notes.
Lines 4 and 6 never touch the company's cloud. The join link travels from one outside party to another, and so does the call. They are the two lines a drawing of the company's own servers would have left off.
The drawing produces a finding before anyone has named a threat. The call never passes through the company's servers, and neither does the message that contains the link. The two most sensitive things in the design travel between outside parties.
What can go wrong?
The team goes through the drawing with STRIDE for coverage, then spends its last half hour on one outcome: a stranger in a visit. When the discussion ends, the list has five threats.
Four come from the engineers. The fifth comes from the practice systems manager, who knows that reception staff re-send join links all day, often to whichever number the patient reads out over the phone. The Manifesto calls the practice of bringing in people like her "Varied Viewpoints": "Assemble a diverse team with appropriate subject matter experts and cross-functional collaboration."
What are we going to do about it?
Each threat gets one of three answers: change the design, add a control, or accept the risk under a named owner.
- A threat
- The design changes
- A control is added
- The risk is accepted
Outside · the people
PersonT1
Patient
On their own phone or computer, wherever they happen to be.
Person
Clinician
On a clinic computer, signed in through the clinic's SSO.
Inside the company's cloud
ServiceT3
Visit service
Books visits, issues join links and shows the clinician the visit note.
Data store
Patient records
Contact details, bookings and visit notes.
Outside · third parties
Third partyT5
Message provider
Sends the join link by text message or email.
Third partyT2T4
Video provider
Carries the audio and video of the call.
T1Affects: The join link
Anyone holding the join link enters the visit as the patient: a forwarded text, a shared family phone, a preview on a lock screen.
Design changeThe link opens a waiting room. The patient confirms a date of birth, the clinician admits them by name, and the link stops working when the visit ends.
OwnerEngineering lead
T2Affects: The video provider
The video provider records calls unless told not to, and keeps the recordings in its own storage.
ControlRecording is switched off for the whole account, and a daily check confirms the setting has not changed.
OwnerPlatform engineer
T3Affects: The visit service
Nobody can show afterwards who joined a visit, or which clinician let them in.
ControlEvery join, admit and leave is written to the visit's history with the time and the account.
OwnerEngineering lead
T4Affects: The video provider
An outage at the video provider stops every visit at once.
AcceptedThe clinician phones the patient on the number in the booking. Review date 30 June 2027.
OwnerHead of clinical operations
T5Affects: The message provider
Reception re-sends a join link to a mobile number that is out of date, and it reaches a stranger.
ControlThe booking screen asks the patient to confirm their number every time. The waiting room from T1 stops a stranger who gets the link anyway.
OwnerPractice systems manager
T1 is the most valuable finding of the morning. A join link sent by text message works like a password, but the design had treated it as an address. The answer is a design change, and at this stage it costs one paragraph. The link now opens a waiting room, and the clinician admits a person they recognise.
T4 has no design fix. Nothing the company can build removes its dependence on the video provider. The team accepts the risk and writes it on the risk register, with the head of clinical operations as owner and a review date.
Did we do a good enough job?
The team closes the model with three checks. Every element and every line on the drawing has been walked. Every threat has a decision and an owner. And a person who was not in the room, the head of clinical operations, reads the record and understands it.
The decision: the chief technology officer approves the design with one condition, that the waiting room ships before the first clinic goes live. T4 is on the risk register with a review date of 30 June 2027.
One feature change: "export my data"
Two releases later a clinic asks for a way for patients to download their visit history. Nobody draws the whole system again. The product engineer brings the change to the weekly design meeting, and three people spend forty minutes asking the four questions about what is new: one job, one store and four lines.
- New in this change
- A threat
- Design change or control
- Accepted
Threat model · feature change
Export my data
- Changes
- The visit service
- Time taken
- Forty minutes, in the design meeting
- In the room
- Product engineer, security engineer, privacy lead
1What are we working on?
- 1The signed-in patient asks for an export.
- 2The visit service starts an export job for that patient.
- 3The job writes one file of visit history and notes.
- 4The patient downloads the file.
2What can go wrong?
- E1Someone holding the patient's unlocked phone takes the whole history in one file.
- E2The finished file is reached through a link that works for anyone who has it, for as long as the file exists.
- E3Once downloaded, the file is a copy on a device the company cannot see, such as a shared family computer.
3What are we going to do about it?
E1Control
A one-time code goes to the patient's number before an export starts.
OwnerProduct engineer
E2Design change
No link is sent. The file is downloaded from the signed-in account page and deleted after seven days.
OwnerProduct engineer
E3Accepted
The download screen says what the file contains and advises deleting it after use. Reviewed each year.
OwnerPrivacy lead
4Did we do a good enough job?
- An export for a test patient contains that patient's visits and nobody else's.
- An export without the one-time code is refused.
- On day eight the file is gone.
The record fits on one page because the change is small. It reuses what the first model already settled, such as who the patient is and where the trust boundary is. It adds only what changed. E3 is a privacy threat. Nothing is attacked, but personal data still ends up somewhere it should not stay. The decision: the engineering lead approves the change for the next release with E1 and E2 built first, and the privacy lead accepts E3.
Most teams should write this kind of one-page model more often than any other. OWASP's 2025 advice describes it: "Threat modeling should be integrated into refinement sessions (or similar activities); look for changes in data flows and access control or other security controls."
When not to threat model
Do not threat model a change when the last model still describes the system correctly. A threat model answers questions about a design. When the design has not changed, there is nothing new to ask. Running the session anyway teaches a team that threat modeling is paperwork.
Does the change move data, trust or access?
New data, a new integration, a change to sign-in or permissions, a new boundary.
If no · Do not model
A change of wording, a dependency patch or a tidy-up of the code leaves the last model correct. Say so in the change record.
If no · Do not model
A change of wording, a dependency patch or a tidy-up of the code leaves the last model correct. Say so in the change record.
If yes
Is the design yours to change?
You build it, or you decide how it is set up.
If no · Assess the supplier
For a product you buy as it is, ask the supplier for evidence, and model only the part you build around it.
If no · Assess the supplier
For a product you buy as it is, ask the supplier for evidence, and model only the part you build around it.
If yes
Is this new ground?
No approved pattern or earlier model already covers a design like this one.
If no · Apply the pattern
Use the controls the earlier model chose. Model only the places where this design departs from it.
If no · Apply the pattern
Use the controls the earlier model chose. Model only the places where this design departs from it.
If yes
Model it, at the size of the change
A whole system
Model it in full
A drawing, a method for coverage, a decision on every threat and a sign-off.
The first worked example
One change to a system already modelled
Model the change
The four questions, asked about what is new. One page.
The second worked example
The chart leaves out two more cases.
During an incident, contain it first. Reopen the model afterwards, with what the incident showed.
When nobody in the room can decide, wait. A session that cannot change the design or accept a risk produces a list of worries. Bring in the person who can decide, or take the list to them.
The reverse test is short. Model when a change adds or moves data, crosses a new trust boundary, changes who can do what, or brings in a new outside party. The step-by-step guide lists the triggers in full.
Common mistakes
Seven mistakes recur, and each has a plain fix.
- Filing the drawing as the model. Shostack notes the mistake on his resources page: "Sometimes the diagram is even confused for the whole threat model." The fix is to treat a record as unfinished until every threat on it has a decision.
- Scoring before deciding. A session spent arguing whether a threat is a 6 or a 7 has answered nothing. The fix is to decide first, and to rate only the threats that still need ranking.
- Waiting for the expert. The Manifesto calls this the "Hero Threat Modeler" and answers it: "Threat modeling does not depend on one's innate ability or unique mindset; everyone can and should do it." The fix is for the people who build the system to run the session, with security reviewing the result.
- Modeling once. A model of the launch design describes a system that no longer exists two releases later. The fix is a one-page model for every change that moves data, trust or access.
- A list with no owners. A spreadsheet of thirty threats with nobody's name beside them is an example of what the Manifesto calls "Admiration for the Problem". The fix is a decision, a person and a date on every row.
- Leaving privacy out. STRIDE asks whether data can be disclosed by an attack. It does not ask whether the design collects, links or keeps more data than it should. The fix is a pass with LINDDUN, or a privacy lead in the room.
- Adding methods for show. Three methods run badly find less than one run well. The fix is one method for coverage, and a second only where one outcome needs depth.
The first mistake is the most common. It is easy to see when the two records are put side by side.
Filed as the threat model
Part 1 · The model
Six elements, seven lines, one trust boundary.
Part 2 · The threats
Not written
Part 3 · The decisions
Not written
Part 4 · The check
Not written
A threat model
Part 1 · The model
Six elements, seven lines, one trust boundary.
Part 2 · The threats
Five threats, each pinned to the part it affects.
Part 3 · The decisions
One design change, three controls and one accepted risk, each with an owner.
Part 4 · The check
Read by a second person, signed off with one condition.
Both sheets have the same drawing of the video visit system. The one on the left answers the first question and stops. An assessor who opens it learns what the system looks like and nothing about what was decided.
Threat modeling compared with its neighbours
Threat modeling works on a design, so it needs nothing built. To tell it apart from most of its neighbours, ask what each one needs before it can start.
- Threat modeling
- Works on the organisation, not one system
Reopened when the design changes
Threat modeling
A design, before it is built and each time it changes
Runs from Design. Reopened from Build to Run.
Security design review
A design, for approval
Runs from Design.
Code review and static analysis
The code as written
Runs from Build.
Vulnerability scan
Known flaws in what is deployed
Runs from Test to Run.
Penetration test
A running system, attacked on purpose
Runs from Test to Run.
Risk assessment
The organisation, across all its systems
Runs from Design to Run.
Threat modeling and the design review that uses it are the only two rows that work on a design. Every row that starts further right examines something that has already been made.
People use these names loosely. The table sets them side by side.
| Term | What it is | Reach for it when |
|---|---|---|
| Threat modeling | Working out what could go wrong with a design, and deciding what to do about each answer. | A system is new, or a change moves data, trust or access. |
| Security design review | The approval step for a design. The threat model is the main document the reviewer reads. | A design needs a named person to sign it off before it is built. |
| Risk assessment | Identifying and rating risks across an organisation, and recording them in a register with owners and treatments. | Leaders need to compare risks across systems and decide where money goes. |
| Code review and static analysis | Reading the code, by a person or a tool, to find mistakes made while writing it. | Code exists and has not shipped. |
| Vulnerability scan | An automated search of deployed systems for known flaws and missing patches. | Systems are running and need checking on a schedule. |
| Penetration test | A skilled person attacking a running system for a fixed time, within an agreed scope. | You want evidence of what can be broken in what was built. |
Risk assessment is the neighbour most often confused with threat modeling. NIST's draft even defines threat modeling as a form of risk assessment. In practice the two differ in scope and output. A cyber risk assessment covers the organisation and ends in a rated register. A threat model covers one design and ends in design decisions. The threats it accepts go on to the register.
A security design review is the approval step, and the threat model is the evidence the reviewer reads. A threat model also sets the scope of a penetration test: the tester starts with the threats the team decided mattered.
Standards and references
Threat Modeling Manifesto (2020). A definition, the four questions, five values, and named patterns and anti-patterns, from fifteen authors. The Manifesto quotations in this guide are from it.
Adam Shostack, the Four Question Frame (GitHub, with a 2024 whitepaper). The author's account of the questions and how their wording has changed since his 2014 book.
Loren Kohnfelder and Praerit Garg, "The threats to our products" (Microsoft, 1 April 1999). The internal paper that introduced STRIDE.
Adam Shostack, "Experiences Threat Modeling at Microsoft" (MODSEC 2008, CEUR Workshop Proceedings volume 413). The history from 1999 to 2008 and the four-step method.
Microsoft on DREAD: patterns & practices, Improving Web Application Security, chapter 3 (June 2003); David LeBlanc, "DREADful" (August 2007); Bryan Sullivan, MSDN Magazine (March 2010). The five DREAD questions, and two Microsoft accounts of why it was replaced.
NIST SP 800-154, Guide to Data-Centric System Threat Modeling (initial public draft, March 2016). Still a draft. NIST posted a note in January 2025 stating that it plans to finalise the publication.
NIST SP 800-218, Secure Software Development Framework version 1.1 (February 2022). Practice PW.1.1 names threat modeling as a form of risk modeling.
CISA and partner agencies, Shifting the Balance of Cybersecurity Risk (revised 25 October 2023). The secure by design guidance that asks for written threat models.
US Food and Drug Administration, Cybersecurity in Medical Devices: Quality Management System Considerations and Content of Premarket Submissions (3 February 2026). Nonbinding recommendations for device makers, superseding the version of 27 June 2025.
OWASP Threat Modeling Cheat Sheet (read 2 December 2026) and OWASP Top 10:2025, A06 Insecure Design. The community's working summary, which has no date, and the Top 10 entry on design flaws.
Shevchenko and others, "Threat Modeling: A Summary of Available Methods", Software Engineering Institute (July 2018). A survey of twelve methods that recommends none over the others.
How Alvor helps
A threat model stays useful only while it is kept with the design it describes and the decisions it led to. Alvor keeps the four parts in one record.
You draw the system on a diagram in the Secure by Design module, inside a design project. Components, data stores, external entities, data flows and trust boundaries are registered from the diagram, so the parts you question are the parts you drew.
You choose how to run the threat model, as STRIDE or freeform. STRIDE adds a checklist for every element when you want coverage of the whole design. Freeform lets you add each threat as you find it, from whichever starting point. Either way, each threat is recorded against the element it affects, with a severity and a status. The threat library describes each threat by attacker and method, with the controls that deal with it. The library is yours to edit, and your changes survive updates.
Every threat gets one of three decisions: it applies and these controls deal with it, it does not apply and here is why, or the risk is accepted. Accepting a high or critical threat needs a residual risk in the register. An accepted threat such as the video provider outage then has an owner and a rationale, on the same register as the organisation's other risks. When a sign-off is approved with conditions, Alvor raises a linked risk automatically, so a condition such as the waiting room also appears on the register.
The AI Assistant can do the drafting. The AI Design Studio draws the architecture as editable shapes from a written description, and the AI Threat Modeling Studio registers elements and proposes threats from your library. Each batch waits on an approval card until a person approves or rejects it. The AI Assistant runs on the model you bring.
Every module runs in every deployment: a dedicated single-tenant instance in the region you choose, the same containerised platform on your own servers, or fully air-gapped with a self-hosted model such as vLLM or Ollama inside the boundary. Threat Modeling in Alvor covers the diagram, the guided session and the library in more detail.