Goal. By the end you can ask the four threat-modelling questions of any system, say when modelling is worth doing and who should be in the room, and name the assets, adversaries and impacts that frame a model.
Why it matters#
Most security work starts from a checklist: patch, turn on multi-factor authentication, close the unused ports. A checklist is a sensible floor, but it knows nothing about your system. It cannot tell you that the refund button trusts a price sent by the browser, or that the deployment pipeline holds the keys to production. Those are design flaws, and they are cheapest to fix while the design is still a sketch. Threat modelling is the habit of asking "what can go wrong?" early, and of writing the answer down so that builders, testers and defenders can all act on it.
What you will learn#
Threat, vulnerability, risk#
Four words get mixed up. Keep them apart:
| Term | Meaning | Example in a small web app |
|---|---|---|
| Threat | Something that can go wrong: an action that can cause harm | Someone reads another member's invoices |
| Vulnerability | A weakness that lets the threat happen | Invoice links contain a guessable number and the server never checks who is asking |
| Risk | How much the threat matters: how likely it is, and how bad the impact would be | Likely, and it exposes personal data, so high |
| Adversary | A person or group who could cause the threat, on purpose or by accident | A curious member, a criminal, a careless administrator |
A threat is not always an attack. OWASP's definition includes incidental events, such as a storage device failing. Threat modelling finds the threats; ranking them and deciding what to do is the job of risk management (stage 4).
The four questions#
Adam Shostack's Four Question Framework is the spine of the subject. The Threat Modeling Manifesto and the OWASP cheat sheet use it, and so does this roadmap:
| Question | What you do | Where in this roadmap |
|---|---|---|
| What are we working on? | Draw the system: its parts, its data, where trust changes | Stage 2 |
| What can go wrong? | Brainstorm with a structure such as STRIDE | Stages 3 and 6 |
| What are we going to do about it? | Rank the threats, then mitigate, eliminate, transfer or accept | Stage 4 |
| Did we do a good enough job? | Check the model matches reality and the fixes are tested | Stages 4 and 5 |
You can start by asking these four out loud at a whiteboard, and that is far better than not asking them. The fourth question is the one teams skip. Without it, a model becomes a document that slowly stops describing the system.
When to model, and who should#
Model early, while changing the design is cheap, and again when something changes: a new feature, a new third party, a new place where data is stored, a change to how people sign in or how code is deployed, or a security incident. OWASP names new features, incidents and architecture changes as triggers.
The Manifesto's answer to "who should threat model?" is "you, everyone". In practice a useful session has:
- builders, who know what the system really does;
- a product owner, who knows which harms matter to the business and its users;
- a security person, who brings the attacker's view and a catalogue of known patterns; and
- someone from operations, who knows how it is deployed and what the logs show.
You do not need a hero. "Hero Threat Modeler" is one of the Manifesto's named anti-patterns: modelling does not depend on one person's special mindset.
The Threat Modeling Manifesto#
Fifteen practitioners wrote the Manifesto in 2020. It is deliberately short and does not prescribe a method. Its five values, in plain words:
- Finding and fixing design problems matters more than ticking compliance boxes.
- People and collaboration matter more than process, methods and tools.
- Understanding is a journey, not a one-off snapshot.
- Doing threat modelling beats talking about it.
- Refine continuously rather than deliver once.
Its four anti-patterns are worth memorising now, because you will meet all of them: the Hero Threat Modeler, Admiration for the Problem (analysing without reaching a fix), the Tendency to Overfocus (on one adversary, asset or technique) and Perfect Representation (hunting for the one ideal diagram).
Assets, adversaries and impact#
Three lists frame every model.
- Assets are what you are protecting: customer data, accounts, money, the build pipeline, uptime, people's safety, your reputation.
- Adversaries are who or what could cause harm, with their motives and skills: a fraudster, a rival, a disgruntled insider, a curious customer, a mistyped command.
- Impact is the harm if it happens: leaked personal data, wrong data, an outage, a legal duty to notify, lost trust. Business impact usually matters more than technical impact, so write it in terms the owner cares about.
A village bakery's online order form shows the idea. Assets: customers' names and addresses, the order list, the site being up on Friday afternoon. Adversaries: a competitor, a bored teenager, a staff member who edits the wrong order. Impact: failed deliveries, a data-protection complaint, lost sales.
What threat modelling is not#
It is not a penetration test, which probes a running system, nor a vulnerability scan, which finds known flaws in components. It is not threat intelligence, which tells you who attacks organisations like yours; stage 7 joins the two. And it is not paperwork: a model nobody reads has not answered anything.
Do this#
- Ask the four questions about something familiar (45 minutes). Pick a home Wi-Fi network with a smart doorbell, a club sign-up form or a note-taking app. Write one page under the four headings. A good result has at least eight "what can go wrong" items, each a full sentence saying who does what, and a decision for the worst three.
- List assets, adversaries and impacts (30 minutes). Do it for the same system. A good result separates harm to people from harm to the organisation and includes one non-malicious adversary.
- Mark up the Manifesto (20 minutes). Mark two values you already act on and two you do not, and note where you have seen each anti-pattern.
- Read a finished model (30 minutes). Open the OWASP Threat Dragon demo, choose "Explore a sample threat model", and read a diagram and its threat list. Which of the four questions does each part answer, and which does it leave out?
Resources#
Free first
- Threat Modeling Manifesto - the values, principles, patterns and anti-patterns. It is short; read all of it.
- The Ultimate Beginner's Guide to Threat Modeling - Shostack + Associates' plain overview of the four questions, techniques and users. The firm sells training, so treat its opinions on methods as one view.
- Shostack's Four Question Frame - the framework's own repository, useful as a printable prompt.
- OWASP Threat Modeling Cheat Sheet - the four questions applied to software teams, with a short list of techniques.
- OWASP Threat Dragon - a free demo site with sample models to read.
Paid or needs an account
- Threat Modeling: Designing for Security (paid) - Adam Shostack's standard book (Wiley, 2014). As of 26 November 2026 a second edition, Designing for Security in an AI World, is listed for 2 February 2027.
- Threats: What Every Engineer Should Learn From Star Wars (paid) - Shostack's lighter book (Wiley, 2023), which uses film examples to teach how to think about threats.
Checkpoint#
You are ready to move on when you can:
Go deeper (optional)#
- Threat Modeling Quick Start Guide - a short way to run your first session.
- NIST SP 800-154, a 2016 draft on data-centric threat modelling. It was never finalised; NIST's page notes (January 2025) that it plans to finalise it.