Skip to content
StackDecode
System Design
13. Security ArchitectureAnimated

Threat Modelling

Finding threats before attackers do.

The idea

Draw the system, identify what can go wrong (for example with STRIDE), and plan mitigations.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

User + devicePolicy engineIdentityApp AApp B
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Never trust, always verify: being "inside" the network grants nothing.

step:
1/5
at:
User + device
1/11

The green dot is a request moving through the system.

Step by step

  1. 1Diagram the system
  2. 2List threats at each boundary
  3. 3Rate their risk
  4. 4Add mitigations

Where it is used

Design stage.

Watch out for

Do it early and revisit as the system changes.

Related