Threat modelling

Hand-drawn wide hatched terracotta band running across a dense patchwork of angular cream, sand, umber and moss hatched cells, with four solid terracotta wedges sitting in notches along its upper edge.

Threat modelling is the analysis of a software design to list the ways it could be attacked, usually before the system is built, so that defences can be designed in. The method practitioners name most often is STRIDE, which steps through six kinds of threat: spoofing, tampering, repudiation, information disclosure, denial of service and elevation of privilege (Verreydt et al., 2024). Other methods ask different questions. LINDDUN lists threats to people’s privacy, PASTA starts from the business objectives of an application, and attack trees break one harmful goal down into the ways it could happen (DistriNet Research Unit, n.d.a; VerSprite, n.d.; Schneier, 1999).

Experiments find that a large share of the threats STRIDE produces are not valid (Mbaka & Tuma, 2022). In a student study that also counted missed threats, analysts found about a third of the real ones (Wuyts, 2015). The analysis often starts from a data flow diagram, a drawing of how data moves through the system, and studies disagree on whether giving analysts one improves their work (Verreydt et al., 2024; Schneider et al., 2024; Mbaka et al., 2025).

In organisations, threat modelling is mostly informal, done once and rarely followed up. Its most reported benefit is that developers become more aware of security, not that attacks are prevented (Verreydt et al., 2024). Comparisons between methods are small: one found more threats with attack trees than with misuse cases, but the difference was not statistically significant (Mbaka & Tuma, 2026).

Methods in use Weak evidence: few or small studies support this

STRIDE is the method most named in practice, but practitioners rarely apply it step by step. Among 11 security experts working on cyber-physical systems (software that controls physical equipment), 6 had used STRIDE, more than any other named method, which 1 or 2 had used each (Jamil et al., 2021). In large Dutch organisations STRIDE is the most frequent driver of threat elicitation (the step of listing threats), yet that step is not necessarily systematic and the organisations prefer flexibility (Verreydt et al., 2024).

STRIDE comes in variants. One applies the six categories to each element of a design diagram, another to each interaction between elements (Mbaka & Tuma, 2022). A third ranks the risk of parts of the system first and then concentrates the analysis on the riskiest ones (Tuma et al., 2019).

Experts often work without any named method. Security experts who threat-model medical devices do not follow a stepwise procedure but switch between strategies (Thompson et al., 2024). They used use cases (descriptions of how the device is meant to be used), and found it critical, but unclear, how to integrate patient safety into the analysis (Thompson et al., 2024).

The data flow diagram behind the analysis

Most threat modelling starts from a drawing of the system, most often a data flow diagram (DFD). A DFD shows external entities, processes, data stores and the data flows between them. Threat modelling adds a fifth element, the trust boundary (Sion et al., 2020). In Microsoft’s Threat Modeling Tool, a trust boundary marks where different entities are in control (Microsoft, 2025a).

In large Dutch organisations, DFDs were the most common model type for threat modelling software systems. The diagrams ranged from reused architecture documentation to whiteboard drawings (Verreydt et al., 2024).

Whether a diagram helps the analysis Contested: studies disagree on this

Studies disagree on whether giving analysts a DFD improves their security analysis. In a small experiment, 24 participants answered security questions about a microservice application 41% more correctly when they had a DFD as well as the source code (Schneider et al., 2024).

Experiments on validating threats, judging whether listed threats are real, found no such benefit. One experiment gave 98 students a sequence diagram, a drawing of the messages components exchange over time. Adding a DFD had no significant effect on how well they validated threats, although they rated it more useful (Mbaka et al., 2025). In a registered experiment with 68 practitioners, neither a DFD nor advice from a language model significantly improved validation; the authors conclude that for extra material, “less is more” (Mbaka & Tuma, 2026). A registered study is one whose design and analysis were published before the data were collected.

What a data flow diagram leaves out Weak evidence: few or small studies support this

Critics argue that a DFD shows how data moves but not where components run or what the data is, and that this hides threats. A DFD does not capture deployment information; in one example, this gave little help in deciding where access control measures belong (Sion et al., 2020). In an example by STRIDE’s authors, a flow drawn inside one trust boundary takes on the threat profile of an external flow if the database runs on another machine (Hernan et al., 2006).

The diagram also cannot show what the data is or what is missing. A DFD models data flows but not data types, so it cannot show whether untrusted data is treated as code, the cause of flaws such as SQL injection (Sion et al., 2020). Nor can it show the absence of a feature, such as missing encryption on a connection (Schneider et al., 2024).

Trust boundaries carry several meanings. A boundary can mark a different privilege level or a deployment grouping, so readers can make conflicting assumptions and overlook security issues (Sion et al., 2020). How deployment is drawn in architecture documentation is covered in Architecture description and modelling.

Combining flows with other views Weak evidence: few or small studies support this

Proposed remedies either set other models beside the DFD or put more into one model. Sion and colleagues argue that DFDs are not enough for systematic, reproducible threat modelling. They call for a modelling language with several complementary but consistent views (Sion et al., 2020). Faily and colleagues keep the DFD simple, because enriching it endangers its ease of take-up, and place it alongside usability and requirements models (Faily et al., 2020).

Other proposals extend a single model. A cyber-physical DFD adds hardware to the diagram, and its authors report that it found numerous other attack scenarios in an experimental study (Liebl et al., 2026). A unified architectural model covers both information flow and access control, evaluated in a case study of 22 cases (Seifermann et al., 2021).

How many valid threats it finds Weak evidence: few or small studies support this

The evidence on STRIDE’s output rests on student experiments and one small industrial case, and it suggests many of the threats STRIDE produces are not valid. A useful measure here is precision: the share of reported threats that are real, from 0 (none) to 1 (all). In a replication with 45 students, precision was about 0.40 for the per-element variant and 0.43 for the per-interaction variant (Mbaka & Tuma, 2022). Per-element groups found on average 5.33 true threats against 11.25 false positives (reported threats that were not real) (Mbaka & Tuma, 2022).

The replication did not reproduce the original experiment’s precision. The original reported 0.62 for per-element and 0.58 for per-interaction, against 0.40 and 0.43 in the replication (Mbaka & Tuma, 2022). In the replication, the per-interaction variant found 3.57 true threats per hour against 2.5. As in the original, the two variants did not differ significantly in precision or productivity (Mbaka & Tuma, 2022).

How many real threats an analysis misses is the weakest point of this evidence. The replication did not measure false negatives (real threats left out) (Mbaka & Tuma, 2022). An earlier study of 57 master’s students did (Scandariato et al., 2015). Its recall, the share of real threats the analysts found, was 0.36, so about two thirds were missed (Wuyts, 2015).

With practitioners, focusing on risk first found more of the threats that matter, in a study too small to settle it. At Volvo, a team using the risk-first variant found 8 high-priority threats against 4 for a team using per-element STRIDE (Tuma et al., 2019). The two teams did not differ in productivity or in how fast they found high-priority threats, and the per-element team found more medium- and low-priority ones (Tuma et al., 2019).

The Volvo teams had 3 and 4 experts and 6 hours for the whole analysis (Tuma et al., 2019). The authors name team dynamics as the most important confounder, a difference other than the method that could explain the result. At the time, the study had not been repeated (Tuma et al., 2019). A later version of the work covered two industrial case studies. Teams using the risk-first variant, called eSTRIDE, found twice as many high-priority threats, and a similar number of threats in a fixed time (Tuma et al., 2021).

Methods beyond STRIDE

Other methods change what the analysis starts from: harm to people’s privacy, the business risk of the application, or one goal an attacker could reach. The table sets the four methods side by side; STRIDE’s row restates the section above.

MethodStarts fromWhat the analyst asks
STRIDEA diagram of the designWhich of six kinds of threat applies to each element or interaction (Verreydt et al., 2024; Mbaka & Tuma, 2022)
LINDDUNA data-flow diagramWhich of seven privacy threat types applies (DistriNet Research Unit, n.d.a; DistriNet Research Unit, n.d.c)
PASTAThe business, financial and operational objectives of the applicationWhich risks remain after controls, and what they cost the business (VerSprite, n.d.)
Attack treesOne undesired goalWhich ways, alone or together, lead to that goal (Schneier, 1999)

LINDDUN and privacy threats

LINDDUN looks for threats to the privacy of the people whose data a system handles. It names seven threat types: linking, identifying, non-repudiation, detecting, data disclosure, unawareness and non-compliance (DistriNet Research Unit, n.d.a). In this sense linking means connecting records about the same person, and non-repudiation means a person cannot plausibly deny an action. Detecting means learning that data or an action exists, and unawareness means people do not know about the processing. How systems build privacy protections in is the subject of Privacy by design.

LINDDUN comes in variants that trade effort for depth. LINDDUN GO uses a card deck and a sketch of the system to support a team brainstorm (DistriNet Research Unit, n.d.a). LINDDUN PRO works on a data-flow diagram, a drawing of where data enters, moves, is stored and leaves. It checks each interaction in that diagram at three points: sending, transfer and receiving (DistriNet Research Unit, n.d.c). LINDDUN MAESTRO adds six further viewpoints on the system to the data-flow diagram (DistriNet Research Unit, n.d.b).

In one example, the authors of LINDDUN PRO show fewer review iterations: 10 diagram elements to check became 6 data flows. They describe their comparison of the two procedures as qualitative (Sion et al., 2018).

An extension for generative AI changes three of the seven threat types and adds 100 examples. The largest changes concern data disclosure and unawareness, which the extension pairs with people’s inability to intervene in the processing (Liao et al., 2026a). Its authors evaluated it by applying it to one AI agent system (Liao et al., 2026b).

How well LINDDUN works Weak evidence: few or small studies support this

Evaluations of LINDDUN are small. In its developers’ own pilot, four student groups all agreed that LINDDUN GO was easier to apply than the full LINDDUN threat trees (Wuyts et al., 2020).

LINDDUN missed fewer real threats than STRIDE, but found them more slowly, in two studies of different systems. LINDDUN’s recall was 0.56 against 0.36 for STRIDE, and its precision 0.71 against 0.81; the author calls both recall figures low (Wuyts, 2015). LINDDUN yielded half a threat per hour against one for STRIDE, which the author suggests may come from analysts knowing privacy concepts less well than security ones (Wuyts, 2015).

Analysts often drop threats without saying why. In 122 threat models written by students, assumptions were often used to exclude potential threats, with no recorded rationale (Van Landuyt & Joosen, 2020).

A list specialised for privacy notices and choices found more threats there than LINDDUN PRO’s general category did. UsersFirst is a taxonomy of threats in privacy notices and in the choices offered to users. In a preliminary study, its users identified on average 13 of 21 known threats, against 4.43 for users of LINDDUN PRO’s unawareness category (Li et al., 2024d). In a follow-up by the same group, its users found over twice as many relevant threats as controls in one scenario and 50% more in the other, with no loss of precision (Li et al., 2026p).

PASTA and business risk Weak evidence: few or small studies support this

The case for PASTA (Process for Attack Simulation and Threat Analysis) rests on practitioner guidance. PASTA ties the analysis to what the application is for: it begins from the application’s business, financial and operational objectives (VerSprite, n.d.). Its final stage analyses business impact and residual risk, the risk left once controls are in place, and identifies ways to reduce it (VerSprite, n.d.). GitLab’s adaptation of the method keeps this step: the rationale for choosing mitigations comes from the remaining risk (GitLab, n.d.d).

Attack trees

An attack tree places an undesired goal at its root and the ways the goal could come about in its branches (Schneier, 1999). A tree can show which conditions must all hold for an attack to work. In the original notation, an AND node is possible only if all of its children are possible (Schneier, 1999).

Attack-defense trees are attack trees that also show defences. The authors of one study of attack-defense trees concluded that a very limited technical background was sufficient for acceptability (Schiele & Gadyatskaya, 2025).

Attack trees led practitioners to more threats than misuse cases, which describe how a system could be used against its purpose, but the difference was not statistically significant (Mbaka & Tuma, 2026). A literature review describes this comparison with industry practitioners as finding effects similar to an earlier one with students, which favoured trees (Schiele & Gadyatskaya, 2025).

Threat modelling with language models Weak evidence: few or small studies support this

Large language models (LLMs) can propose threats, but how well they do depends on both the method and the model. A study of four LLMs applying STRIDE, PASTA and LINDDUN found performance specific to each method and each model (Jeršič et al., 2025).

Letting several LLM agents play a team session can help. In a LINDDUN GO benchmark, multi-agent configurations that simulate a collaborative threat-modelling session can improve the accuracy and completeness of the privacy threats elicited (Bissoli et al., 2026). The benchmark scores the threats found against stored reference answers, which were generated or curated (stfbk, n.d.).

Output can ignore the system’s context. In one case, the tool’s simplest mode produced four threats that its authors judged irrelevant to the system (Mollaeeifar et al., 2025).

How organisations practise it Weak evidence: few or small studies support this

Threat modelling in practice is mostly informal and adapted to the team. Almost all of 25 open-source developers interviewed did it ad hoc, valuing ease of use, flexibility and low overhead (Kaur et al., 2025). They see structured methods as costly for limited benefit (Kaur et al., 2025).

In large organisations threat modelling is a group exercise with security staff as facilitators. A Dutch interview study covered 13 security staff from 7 large organisations. There, the participants were usually the development team, product owners and an architect, with a facilitator from the security team (Verreydt et al., 2024). The quality of threat models is checked mostly through peer review and checklists (Jamil et al., 2021).

Threat modelling is often done too late to shape a design. Early threat modelling is valued but often skipped, because security teams with a backlog of high-risk applications have little time, so models are made of applications already live (Verreydt et al., 2024).

Organisations rarely make threat modelling mandatory. They fear that a mandate would turn it into a checkbox activity in which teams stop writing things down (Verreydt et al., 2024). Use can last after training. At New York City Cyber Command, 20 of 25 trained staff still used threat modelling in their daily work 30 days later (Stevens et al., 2018).

What threat models lead to Weak evidence: few or small studies support this

The benefit organisations report is mainly greater security awareness among developers, not prevented attacks. Participants in the Dutch study valued threat modelling for raising developers’ awareness of security (Verreydt et al., 2024). Positive experiences were rarely the prevention of a concrete attack and much more often this awareness (Verreydt et al., 2024). In New York City, mitigations that participants designed during threat modelling brought reported security benefits within 120 days (Stevens et al., 2018).

Threat models are usually made once and not kept up to date. In the Dutch organisations, threat modelling mostly remains a one-time activity and models are rarely revisited (Verreydt et al., 2024). Among cyber-physical-system experts, the threat models of systems that were later modified are often not updated (Jamil et al., 2021).

Acting on the results depends on the team rather than on a process. Follow-up is mostly ad hoc, and several participants said management does not consistently follow up, which can leave the organisation without oversight (Verreydt et al., 2024). Reassessment depends on the development team’s willingness and the product owner’s priorities, and none of the organisations had automatic triggers for it (Verreydt et al., 2024).

These findings come from a small sample of advocates. The Dutch authors avoid percentages because of the small sample. Their participants leaned toward supporters of threat modelling, and no organisation among them had tried it and given it up (Verreydt et al., 2024).

Further reading

  • Verreydt, Yskout, Sion and Joosen, “Threat modeling state of practice in Dutch organizations” (Verreydt et al., 2024): interviews with security staff on who threat-models, when, with which method, and what happens to the results.
  • Mbaka and Tuma, “A replication of a controlled experiment with two STRIDE variants” (Mbaka & Tuma, 2022): the precision and productivity figures for STRIDE, and how they compare with the original experiment.
  • Tuma, Sandberg, Thorsson, Widman and Scandariato, “Finding security threats that matter” (Tuma et al., 2019): a small industrial comparison of risk-first and per-element STRIDE.
  • Kaur and colleagues, on threat modelling in open-source projects (Kaur et al., 2025): why developers prefer ad hoc analysis to structured methods.
  • Wuyts, Sion and Joosen, “LINDDUN GO” (Wuyts et al., 2020): the lightweight, card-based version of the LINDDUN privacy method and its first pilot.
  • Sion, Yskout, Van Landuyt, van den Berghe and Joosen, “Security threat modeling: Are data flow diagrams enough?” (Sion et al., 2020): what data flow diagrams leave out, from deployment to data types, and the several meanings of trust boundaries.

Known gaps

What this article cannot tell you yet.

  1. The recall figures for STRIDE and LINDDUN come from two studies of different systems; no comparison of the two methods on the same system was found.
  2. No experiment compared threat finding on a data flow diagram with trust boundaries against an architecture diagram or a text description, or on a DFD with and without trust boundaries.
  3. No study measured how many threats reviewers find with a combined deployment and data-flow view.
  4. Who takes part in threat modelling, and at what point of design, is not known for the open-source, medical-device and New York City studies.
  5. No study of organisations that tried threat modelling and abandoned it, or that measured whether threat models changed designs, was found.
  6. No experiment with experienced practitioners reports how many of their threats were valid.

References

Solid source
Rated highly trustworthy by the research, and every passage taken from it was found in it.
Weak source
Rated low, or a passage taken from it was not found in it.
Medium trust
Rated medium by the research.
Not checked
Rated high, but its passages could not all be checked against it.
Show all 37 references