Notes
Attack trees
An attack tree puts one attacker goal at the root, for example read all customer data. Below it, branches show the ways to reach that goal. An OR node means any one of its children is enough; an AND node means all of them are required together. The leaves are concrete attack steps. You then annotate the leaves with things like cost, required skill, likelihood and whether the step would be detected. The cheapest path from a leaf to the root is the attacker's likely route, and your priority to block.
- root: one attacker goal "read all customer data"
- branches: ways to achieve it
- OR nodes: any one child works
- AND nodes: all children are needed
- leaves: concrete attack steps
- annotate leaves: cost, skill, likelihood, detectability
A small example
Here is a small one. The goal is to read customer data. One path is to steal credentials, by phishing or by reusing a password from another breach, and then defeat weak multi-factor; because MFA is required as well, that is an AND. Another path is to exploit the API directly, such as an insecure direct object reference on an orders endpoint. You look at the whole tree and ask which leaf is cheapest. Blocking phishing and password reuse, and fixing the object reference, cuts off the easy routes.
- OR: path A: steal credentials phishing (cheap, common) password reuse (cheap) then: weak MFA (AND) path B: exploit the API IDOR on /orders (cheap if present) auth bypass (harder)
- block the cheapest leaves first
When to use them
Attack trees are not a replacement for STRIDE; they answer a different question. Use them when you have one critical asset or goal and want to understand it deeply: moving funds, protecting key material, reaching administrator access. They are good for comparing the cost of different attack paths and deciding where a single control buys the most protection, and the picture communicates risk well to non-experts. For broad coverage of a whole system, STRIDE against a diagram is still the better starting point.
- one critical asset or goal: funds transfer, key material, admin access
- comparing the cost of attack paths
- deciding where a control adds the most value
- communicating a risk to non-experts (a picture)
- less good for broad coverage of a whole system (use STRIDE)
PASTA
Recognise two heavier methods. PASTA, the process for attack simulation and threat analysis, is a seven-stage, risk-centric method that starts from business objectives and works through threats, weaknesses, attack simulation and risk. Its strength is tying technical threats to business impact and real attacker behaviour. Its cost is that it is heavy, suited to high-value systems and teams who can invest the time. For most feature work it is more than you need, but know the name and idea.
- Process for Attack Simulation and Threat Analysis
- seven stages, from business objectives to threat and attack analysis to risk
- strength: ties threats to business impact and real attacker behaviour
- cost: heavy; for high-value systems and dedicated teams
- know the name and the idea
VAST and others
A few more worth knowing. VAST, visual agile and simple threat modeling, is built to scale across many teams and pipelines rather than one deep analysis. LINDDUN is a STRIDE-like method focused specifically on privacy threats, which is increasingly important under data protection law. Trike and OCTAVE are older and more risk-management oriented. You choose by the problem: for privacy, reach for LINDDUN; to scale across an organisation, VAST or templated STRIDE; for depth on one target, an attack tree.
- VAST: visual, agile, simple threat modeling, built to scale across many teams and pipelines
- LINDDUN: a STRIDE-like method focused on privacy threats
- Trike, OCTAVE: older, risk-management oriented
- pick by the problem: privacy -> LINDDUN; scale -> VAST or STRIDE templates
Threat modeling as code
One modern approach is threat modeling as code. With a tool like pytm you describe the elements, data flows and trust boundaries in Python, and it generates the diagram, a list of candidate threats and a report. Because the model is code, it lives in the repository, is reviewed in pull requests, and shows a diff when the design changes. Another tool, threatspec, lets you write threats as annotations next to the code they concern. This suits teams who would rather maintain code than a separate diagram.
- describe elements, flows and boundaries in Python (pytm)
- generate: the diagram, a threat list, a report
- lives in the repo, reviewed in pull requests, diffed when the design changes
- threatspec: threats as annotations in code
- fits teams who prefer code to diagrams
Diagramming tools
For drawing, the best-known free tool is OWASP Threat Dragon: open source, it lets you draw data flow diagrams and suggests STRIDE threats for each element. The Microsoft Threat Modeling Tool is another free, STRIDE-based option. Commercial platforms such as IriusRisk and SD Elements integrate with issue trackers and pipelines and scale across teams. And a photograph of a whiteboard attached to the ticket is a completely valid tool. The goal is a shared understanding, not a beautiful diagram.
- OWASP Threat Dragon: free, open source, draws DFDs and suggests STRIDE threats
- Microsoft Threat Modeling Tool: Windows, STRIDE-based
- IriusRisk, SD Elements: commercial, integrate with Jira and pipelines
- or a whiteboard photo in the ticket: completely valid
Choosing an approach
So how do you choose? For most features, STRIDE on a one-page diagram in an hour is the right default. For one critical goal, draw an attack tree. For a privacy-heavy system, use LINDDUN. For a large organisation with many teams, VAST or templated STRIDE with tooling. For a code-first team, pytm. For a high-value system with a dedicated team, PASTA. The principle is to start simple and add rigour only where the risk justifies the extra effort. A simple model that gets done beats a perfect one that does not.
- most features: STRIDE on a one-page DFD
- one critical goal: an attack tree
- privacy-heavy: LINDDUN
- large org: VAST or templated STRIDE
- code-first team: pytm
- high-value: PASTA
- start simple; add rigour where risk justifies it
Common mistakes
Mistakes. Always reaching for the heaviest method, so threat modeling becomes a project and stops happening. Using an attack tree to try to cover a whole system, where STRIDE fits better. Producing beautiful diagrams but never tracking the mitigations, which is the only output that matters. Buying an expensive tool and expecting it to create the habit. Ignoring privacy threats because the method only looked at security. And a model that is drawn once and never updated as the system changes.
- always using the heaviest method available
- an attack tree for whole- system coverage
- beautiful diagrams, no mitigations tracked
- buying a tool instead of building the habit
- privacy threats ignored (no LINDDUN or equivalent)
- a model that never updates
Say it like this
In the interview: STRIDE for breadth across a design, so every category is considered. An attack tree for depth on one high-value goal, to compare attack paths by cost and decide where a control buys the most. For privacy I add LINDDUN; to scale across teams, VAST or templated STRIDE with tooling such as Threat Dragon. I like pytm for keeping the model in the repo. The key is matching the method to the risk and keeping it light enough to repeat.
- "STRIDE for breadth across a design; an attack tree for depth on one high-value goal, comparing attack paths by cost. For privacy I add
- LINDDUN, for scale VAST or templated STRIDE, and I like
- pytm to keep the model in the repo. I match the method
- to the risk and keep it light."