Stage 1 of 8 · about 3–4 hours · beginner · checked 2026-11-26

What and why

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:

  1. Finding and fixing design problems matters more than ticking compliance boxes.
  2. People and collaboration matter more than process, methods and tools.
  3. Understanding is a journey, not a one-off snapshot.
  4. Doing threat modelling beats talking about it.
  5. 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#

  1. 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.
  2. 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.
  3. 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.
  4. 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

Paid or needs an account

Checkpoint#

You are ready to move on when you can:

Go deeper (optional)#

0 / 5 checkpoints ticked

View this page on GitHub