Threat Model a Feature
Talk it through out loud with your AI coach.
The problem
- hard
- Pro
Your team is about to build a feature that lets users upload a profile photo from a web address they paste in. Walk through a simple threat model for this feature: what could go wrong and how you'd defend against it.
What a strong answer covers
- A structured way to walk through what could go wrong, rather than a list of guesses.
- The danger of the server being tricked into fetching things it should not reach.
- Risks from the content of the file itself, and how to handle files safely.
- Ways the feature could be abused at scale, and defences against that.
Common mistake: Focusing only on the uploaded file and missing that the server itself makes a request to an address the user controls.
Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.
Practise it out loud