Flash cards
What is a threat model?
Show the answer
A short, structured description of what you are building, what can go wrong with it, and what you will do about each thing. It is best made at the design stage.
What are the four questions of threat modelling?
Hint: Build, break, fix, check.
Show the answer
What are we working on? What can go wrong? What are we going to do about it? Did we do a good enough job? OWASP takes them from the Threat Modeling Manifesto.
What is an asset, in a threat model?
Show the answer
Anything of value to the business that could be harmed: data, accounts, money, the ability to trade, reputation and secrets.
Name the three properties of information security.
Show the answer
Confidentiality (only the right people see it), integrity (it is correct and changed only by those allowed) and availability (it is there when needed).
Why does an admin account rank so high in Table Bay Online's asset register?
Show the answer
It is a key to almost every other asset: customer records, products, orders, refunds and the security log.
What is a trust boundary?
Show the answer
A line where data or a request passes from something trusted less into something trusted more, or from one owner's control into another's.
Where must data that crosses a trust boundary be checked?
Show the answer
On the trusted side, by the code about to rely on it. A check in the browser helps honest users but proves nothing to the server.
What does each letter of STRIDE stand for?
Show the answer
Spoofing, Tampering, Repudiation, Information disclosure, Denial of service, Elevation of privilege.
Which STRIDE threat is "a customer sees another customer's order"?
Show the answer
Information disclosure: information reaching someone who should not have it. It is answered by fetching every order by its id and its owner.
Which STRIDE threat is "a customer opens a staff page"?
Show the answer
Elevation of privilege: doing something your role does not allow. It is answered by checking the role on the server on every staff page.
Why may the payment return address never mark an order paid?
Show the answer
It arrives through the customer's browser, so anyone can open it and change its values. Only the provider's signed webhook, once verified, marks an order paid.
Name the four responses to a threat.
Show the answer
Mitigate it with a control, eliminate it by removing the feature, transfer it to someone better placed, or accept it knowingly, recorded with an owner and a date.
How are threats ranked in a small shop's threat model?
Show the answer
By likelihood and impact, each High, Medium or Low, with the reason written down. The controls for the highest are built first.
What does POPIA section 19(2)(a) require?
Show the answer
That a responsible party takes reasonable measures to identify all reasonably foreseeable internal and external risks to the personal information it holds.
Who are Table Bay Online's operators under POPIA?
Show the answer
The host, the payment provider, the courier's booking API and Palesa Mokwena. Section 21 requires a written contract making each keep security measures.
What is the commonest mistake in a first threat model?
Show the answer
Modelling only outsiders, and forgetting signed-in customers, staff accounts used by someone else, and honest mistakes.