A threat model follows the data through a system on a data-flow diagram: where it travels, where it is stored, and who can change it. Each point has its own risk (read on the way, copied from storage, used by the wrong person) and its own defence (HTTPS, hashing and encryption, access control and MFA). One defence doesn't cover them all.
The club app has HTTPS: the padlock is showing. Is it secure?
Your mission: before the club app launches, map where members' data goes and name a defence for every point where it could go wrong.
How this lesson works: Engage, Explore, Explain, Elaborate, Evaluate
Engage: Commit to a prediction before you test anything. A wrong guess is fine: it shows you what to look for.
Explore: Try it on the board and compare what happens with your prediction.
Explain: Put a name to what you saw, and why it works.
Elaborate: Use the idea in a new situation.
Evaluate: Look back at your first ideas and what changed.
Extra examplesYour teacher may tell you which.
Make your prediction first. Help opens once you've locked it in.
EngageCommit to a prediction before you test anything. A wrong guess is fine: it shows you what to look for.
Engage: Is the padlock enough?
ExploreTry it on the board and compare what happens with your prediction.
Explore: Defend each point
Was your prediction right?
Try it yourselfYour edits are saved in this browser.
For each point in the diagram, choose what could go wrong and the defence that fits.
Use the board. This ticks when you get there.
ExplainPut a name to what you saw, and why it works.
Explain: Follow the data
A threat model follows the data through a system and asks, at each point, what could go wrong and what stops it.
Worked exampleBefore each step, say what you think comes next.
draw the flowBrowser → app → database, plus anyone who can change things (the admin).
travellingData on the network can be read on the way: encrypt it (HTTPS).
storedData in a database can be copied: hash passwords, encrypt the rest.
who may actA page that changes data can be used by the wrong person: access control and MFA.
checkEvery point has a defence; no single defence covers every point.
Find the mistake
The club app as a data-flow diagram
Sam secures the club app. Click the line where it first goes wrong.
ElaborateUse the idea in a new situation.
Elaborate: Photos
Try it yourselfYour edits are saved in this browser.
Members can now upload photos. Defend all five points.
Use the board. This ticks when you get there.
ElaborateUse the idea in a new situation.
Elaborate: Messages
Try it yourselfYour edits are saved in this browser.
Is the message travelling, stored, or being opened by someone?
Another hint
Who should be allowed to read a conversation?
The committee wants members to message each other. Threat-model the new feature.
Use the board. This ticks when you get there.
ElaborateMore · widerUse the idea in a new situation.
Elaborate: An AI helper reads the messages
An AI helper that reads text from anyone and can act adds a new point to the diagram. Text it reads can contain instructions (this is called prompt injection), and AI models can't reliably tell the difference between your instructions and the text they're reading.
The UK's National Cyber Security Centre says this can't be fully fixed like older attacks, so the defence is access control for the AI: give it only what it needs, and make a person approve anything that sends, deletes or shares.
EvaluateLook back at your first ideas and what changed.
Evaluate: Look back
Lesson done. You've finished every step you need.
Now you can
Follow data through a system on a data-flow diagram.
Name what could go wrong where data travels, is stored or is changed.
Students use a data-flow diagram of the club app to name a risk and a defence at each point where data travels, is stored or is changed, then threat-model two new features (AC9TDI10P13 node 1). Defensive and conceptual. A 5E mission lesson. About 45 minutes.
I can follow data through a system on a data-flow diagram.
I can name what could go wrong where data travels, is stored or is changed.
I can match a defence to each point.
Before class
AI step (wider, added 18 Oct 2026): prompt injection as a new point on the data-flow diagram; the defence is limiting what the AI can do (access control and a person approving actions). Source (checked 18 Oct 2026, AI society research brief claim 55): UK NCSC, 8 Dec 2025, "prompt injection will never be properly mitigated in the same way" as SQL injection. https://www.ncsc.gov.uk/blog-post/prompt-injection-is-not-sql-injection. Conceptual only: no attack practice (the course rule).
Try the board yourself. The club app is made up.
The one idea: follow the data; each point (travelling, stored, who may act) has its own risk and its own defence.
Typical width: have students draw the data-flow diagram for an app they know (the school canteen, a game) on paper first, then mark the points.
Running the lesson
Engage: ask what the padlock actually means.
Explore: ask which point they defended wrongly first, and why.
Explain: model the three questions on the admin page.
Elaborate: ask what the photos feature added to the diagram.
Evaluate: compare answers for the canteen app.
The hard part (on purpose)
Students pick HTTPS for everything. Ask: is this data travelling right now, or sitting in the database?
When students get stuck
A student thinks HTTPS covers everything (Sam's mistake). Ask: Where is the data at this point: on the network, or in the database? Fix: Each place needs its own defence.
A student confuses hashing with HTTPS. Ask: Is the password moving or stored? Fix: HTTPS on the way, hashing in storage.
Stretch and support
Stretch: Draw the diagram for the canteen app with three actors (parent, school, bank) and defend every arrow.
Support: A card with the three questions: travelling? stored? who may act?
Where it leads
Next: Kinds of weakness.
What each step is for
Engage: is the padlock enough?: Committing to whether HTTPS secures the whole app tests the new move: each point in a data flow needs its own defence.
Explore: defend each point: Students match a risk and a defence to each point of the diagram and find that one defence doesn't fit all.
Explain: follow the data: The teacher models the threat-model questions on one point. Sam trusts HTTPS for everything, the misconception planted after the method.
Elaborate: photos: One change: a new feature adds two points to the diagram, one travelling and one about who may see.
Elaborate: messages: Applying the model to a feature on their own: students place each point and its defence without the earlier diagram.
Elaborate: an AI helper reads the messages: A new point on the diagram: an AI helper that reads untrusted text and can act. The defence is to limit what it can do.