Threat modeling without the theater

A threat model is a structured guess about what can go wrong, for whom, and what you will do about it. It is how you decide what is worth testing.

Lesson 2 of 18 · 12 min read · practice only with authorization

Diagram

Four questions on one diagram

Follow the path. One example at a time.

Step 1 of 4

What are we building?

Draw components, data stores, and the lines between them.

Illustration: What are we building?
# What are we building?
# Draw components, data stores, and the lines between
# them.

The example on the open step is one illustration, or the fix you can paste into an application you own.

What this page is made of

3 pieces. Each one says what fails, who is affected, what you would notice, and what you change.

  1. Start from the diagram

    What fails
    A model built from a list of bug names misses your actual design.
    Who is affected
    Teams reviewing systems.
    What you would notice
    Threat lists with no diagram.
    What you change
    Draw data flows first, then ask questions per flow.
  2. Trust boundaries

    What fails
    Most threats sit where data crosses from one trust level to another.
    Who is affected
    Data crossing those boundaries.
    What you would notice
    Diagrams without boundaries marked.
    What you change
    Mark boundaries and review each crossing.
  3. Keep it alive

    What fails
    A model written once goes stale.
    Who is affected
    New features.
    What you would notice
    Models older than the last major change.
    What you change
    Review on design changes and link to tickets.

Why lists of bugs are not a model

The OWASP lists and the HackBlue lesson library are catalogs. A catalog tells you the names of failures people have seen. A threat model tells you which of those names matter for this system, this data, and these users. A brochure site and a hospital records API do not deserve the same test plan, even though both speak HTTP.

Start with a picture you can draw on one page: the browsers or apps, the accounts, the services, the data stores, and the admin paths. Mark trust boundaries, the lines where something you do not fully trust hands data to something that can do damage. Most interesting bugs live on those lines.

A checklist that earns its keep

STRIDE is a set of questions, not a religion. Spoofing: can someone pretend to be a user, a service, or a build? Tampering: can they change data in transit, at rest, or in a pipeline? Repudiation: can they do something you cannot later prove? Information disclosure: can they read what they should not? Denial of service: can they exhaust a resource the owner cares about? Elevation of privilege: can a low-rights caller gain a higher one?

Ask each question at each boundary. Write the answer as an abuse case in plain language: who, what they already have, what they want, what the system does if it fails. If you cannot say what the owner loses, you do not have a finding yet. You have a curiosity.

Assets are not only databases

People model the customer table and forget the password reset mailbox, the CI token, the support agent's screen, the backup bucket, and the contractor's laptop. Identity providers, source repos, and SaaS admin consoles are assets. So is availability for a business that stops making money when the site stops.

Rank by impact, not by how fun the test would be. A public marketing page with a reflected bug in a query string is usually a smaller story than a support tool that can export every account. The model is how you explain that ranking to someone who will not read a fifteen-page sidebar.

Keep it alive

A model drawn once at kickoff goes stale the week someone adds SSO or a new admin API. Tie it to design review. When a pull request adds a trust boundary, the model changes. When an incident happens, the model was missing a path, and the write-up should say which question nobody asked.

You do not need a special tool. A diagram and a table with columns for boundary, abuse case, impact, and control is enough until the system is large. The point is the argument, not the stencil.

Check yourself

Recognition and the fix. Nothing here is a procedure.

1 / 3

Which STRIDE category covers a user changing another user’s order total?

Sibling techniques

Pages at the same depth, plus a lab and a glossary card for this one.

This page stands on its own. The lab and the glossary card are the next reading.

Practice

  1. LabSTRIDE threat model boardSort twelve threat cards for a clinic booking system into STRIDE categories, then map them to fixes and decide which one gets fixed first.