Lesson 1 · Unit 04
Threat modeling
Assets, attackers, trust boundaries and ranking risks
What you practise
- Assets, attackers, entry points and trust boundaries
- STRIDE as a checklist
- Attack surface
- Defence in depth
- Ranking risks by likelihood and impact
Try a question from this lesson
Pick one
You have one day to make a small photo-sharing app safer. What should you work out first?
Correct answer
What is worth protecting, and who would want it
Why
Tools come last. Until you know what matters (private photos, accounts, the bill) and who is likely to come for it, you cannot tell a useful defence from an expensive decoration.
The ideas
Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.
Concept
Four questions
A threat model answers four questions. What are we building? What can go wrong? What will we do about it? Did it work?
Sketch how data moves, then mark each trust boundary: a place where data passes from something you do not control into something you do. That is where input must be checked.
browser | app server | database
^ ^
trust boundary trust boundaryConcept
STRIDE: what can go wrong
STRIDE is a checklist to hold against each part of a system.
Spoofing: pretending to be someone else. Tampering: changing data. Repudiation: denying you did something. Information disclosure: reading what you should not. Denial of service: making it unavailable. Elevation of privilege: gaining rights you were not given.
10 more exercises in the app
- 5× multiple choice
- 2× type the answer
- 1× match the pairs
- 1× true or false
- 1× order the lines
Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.