Attackers look for what can go wrong. Defenders should look first. Doing this on purpose, with a method, is called threat modelling. It does not need special tools: four questions and a drawing are enough to start.
Four questions
The four questions come from Adam Shostack, author of Threats, one of the books this course uses. They are also the basis of the Threat Modeling Manifesto, written by a group of practitioners in 2020.
- 1What are we working on?
- 2What can go wrong?
- 3What are we going to do about it?
- 4Did we do a good job?
↻ Back to 1 when the system changes
Threat modelling means thinking about what could go wrong with a system before an attacker does. Adam Shostack, who wrote one of this course's books, sums it up in four questions.
Start with a picture
The first question is easiest to answer with a simple drawing: boxes for the people and devices, arrows for where data goes. Most security problems sit on the arrows, where data passes from one place to another, and at the boundaries where something you control meets something you do not, such as a student’s phone.
When to ask them
Ask the questions early, while a system is still being planned, because changes are cheap then. Ask them again whenever the system changes: a new feature, a new kind of user, a new connection to another service. Threat modelling is a habit, not a single event.
THRM-1 counts as completed once you step through the figure to its last step.