Security foundations Threat modeling 2 min read

What is threat modeling?

A teammate sketches a password reset flow. It ends with the app setting a new password. What should the app verify before it makes that change?

  1. Trace what the app is about to change

    Follow one reset request. A person asks for a reset, the app sends a link to the account’s registered address, and someone returns with the reset token. Mark the last step on the sketch: the server is about to change who can sign in.

    A reset request leads to an email link. The server checks the reset token before changing the password. Reset requestEmail linkServerChecks token

    In short Mark the step that changes who has access.

  2. Turn the concern into a check

    Ask what could go wrong at that step: could the app accept a reset that doesn’t belong to this account? Require a valid, unexpired, unused token tied to the account. Give the check an owner and verify that the server refuses the reset when the token belongs to a different account.

    In short Write down what the server must verify before the change.

Where this example stops

This sketch covers the password change. The email account, recovery support process, and other ways to regain access deserve a review of their own.

Keep this

Sketch the flow, then name what must be true at the sensitive step.

Turn that requirement into a check someone owns and can verify.

Sources

Last reviewed 21 November 2026.

Next byte · Security foundations Threat, vulnerability, and risk