Thinking in threats: modelling a system

A threat model is four questions you can ask about anything, a simple picture of the system, and a checklist of what can go wrong. This set checks that you know the four questions, the shapes in a data flow diagram, and what STRIDE stands for, and that you finish with a decision rather than a worry.

4 questions 1 task Read the lesson

Questions

Each one is marked as you go, and the explanation arrives straight after, which is the part worth reading.

4 questions, marked as you go.

1 Which of these is the second threat modelling question?
2 In a text data flow diagram, what does a store represent?
3 What does the R in STRIDE stand for?
4 What is the output of a threat model?

Tasks

These need your own device. Run the command in Termux, then paste what it printed. The marking looks at what the output means, so spacing, version numbers and ordering do not matter. If you have not installed anything yet, the lesson covers the setup.

Write a threat model you can act on

A threat model is four questions with a decision beside each answer. This writes a short model for a Termux install with sshd and a folder of notes, then reads it back and counts the lines. Notice that every item ends in a decision.

Run this in Termux On your own device. Nothing on this page executes it. The command runs in your terminal, and this box only reads what you paste back.

mkdir -p ~/threatmodel; printf "asset: sshd on port 8022\nthreat: an exposed listener anyone on the network can reach\nrisk: medium, and only while the listener runs\ndecision: keep sshd stopped unless I am using it\n" > ~/threatmodel/sshd.txt; cat ~/threatmodel/sshd.txt; echo "---"; wc -l < ~/threatmodel/sshd.txt
Marking your own work Both halves of this are checked in your browser, with no server involved, so nothing stops you from pasting output you did not run. The tasks are written so that the easiest way to pass one is to actually do it and read the result, which is the whole intention.

All sets Read the lesson