Library / APPSEC
LEARNING NOTE / PR-008

Threat modeling with a whiteboard

You do not need a complicated framework to ask good questions about how a feature could fail.

EDITORIAL EDITION · 2026BEGINNER FRIENDLY#threat model#data flows#design
At a glance

Start with what you are protecting and where trust changes.

01

The working idea

Start with what you are protecting and where trust changes.

The goal is not to guess the answer faster. It is to make a decision that another person can understand and repeat.

02

What to check

Sketch people, services, data stores, and arrows. Mark boundaries where identity or permission changes. Ask what could go wrong at each crossing.

The goal is not to guess the answer faster. It is to make a decision that another person can understand and repeat.

03

A realistic example

A file-upload feature crosses a boundary when a visitor-controlled file reaches application storage. Consider type checks, size limits, and access controls.

Good security work usually becomes visible through notes, tests, and the questions you decide to ask next. Keep the first iteration small.

04

What to avoid

Do not start with a list of fashionable attack names and retrofit the design to match.

Good security work usually becomes visible through notes, tests, and the questions you decide to ask next. Keep the first iteration small.

Try this today

Draw one feature of your own project and mark two trust boundaries.

Good security work usually becomes visible through notes, tests, and the questions you decide to ask next. Keep the first iteration small.

A self-paced walkthrough. Nothing here requires accessing a system you do not own or have permission to test.