Skip to content
BENIBIX Learn

Threat Modeling

Development🔐 SecuritySecurity Basics

Also known as Threat Model, Threat Modelling, Threat Analysis

Working out how bad people could break in, so you can plan the locks.

Think of it like

Think of it like walking round your house. You ask how a thief would get in.

Example

Lucy's team draws their new payment page on a whiteboard. They spot that the price comes from the browser, so they move the price check to the server.

Why it matters

Many costly holes are mistakes in the plan. Finding them before coding saves weeks of work.

Definition

Threat modeling is a planned look at how your app could be attacked, done before or while you build it. The team draws the parts of the app and how data moves between them. Then they ask what could go wrong at each step. They list the threats, rank them and plan a defence for each. It is far cheaper to fix a weak design on paper than in live code.
Threat modeling is the first check, at the design step, before any code exists.

Common mistake

Doing it once and filing it away. Each new feature adds new ways in, so the model needs updates.

Key takeaways

  1. 1
    Draw the system. Map the parts and how data flows.
  2. 2
    Ask what can go wrong. List the threats at each step.
  3. 3
    Plan the fix. Rank them and design defences.