Summary
- A threat model describes what you are building, what can go wrong and what you will do about it, and is best made at the design stage, before the code exists.
- It is a map that is kept up to date, not a certificate, and it is written in plain words as threats and controls, never as techniques.
- POPIA section 19(2) requires a responsible party to identify foreseeable internal and external risks and to put safeguards in place, and a threat model is a good-practice way to show it has done so.
- Assets are ranked by the harm their loss would do. Customers' personal information and staff accounts rank highest, and card data is not held at all.
- The actors include visitors, customers, staff, admin, outside systems, operators and insiders, and a signed-in customer is an actor to model too.
- A trust boundary is wherever data crosses from less trusted to more trusted, and everything that crosses it is checked on the trusted side.
- STRIDE prompts six questions at each entry point: spoofing, tampering, repudiation, information disclosure, denial of service and elevation of privilege.
- Each threat is mitigated, eliminated, transferred or accepted, and an accepted risk is recorded with an owner and a date.
- Threats are ranked by likelihood and impact, and the controls for the highest are built first, which for this shop means sign-in and access control.