1def risk(likelihood, impact):2 return likelihood * impact3print(risk(4, 3)) # phishing4print(risk(3, 2)) # laptop5print(risk(1, 5)) # flood6print(risk(2, 3)) # MFA1234512345LIKELIHOOD 1 → 5IMPACT 1 → 5RISK REGISTERAVOIDMITIGATESHAREACCEPTphishinglaptop theftflood
Back: the Python risk() function and the 5 × 5 risk matrixFront: the risk register and the four responsesTokens: three risks, MFA, insurance and an acceptance tickA small firm rates three risks from 1 to 5 for likelihood and impact, and a Python function multiplies the two. Phishing scores 12 (high), laptop theft 6 and a flood 5 (both medium); each lands on the risk matrix and in the risk register. MFA mitigates phishing, lowering its likelihood from 4 to 2 (score 6); insurance shares the flood's cost; laptop theft is accepted. What remains is residual risk. The ratings belong to one made-up small firm, to show the method. Another firm, with other systems and people, would rate the same risks differently.

Rating risk

  1. Risk is the chance that a threat causes harm, and how bad that harm would be. NIST describes it with two parts: likelihood (how probable) and impact (how much damage). This grid crosses the two.

Ranking and responding

What happens

;; step 1/10 · what
risk        how likely a harmful event is,
            and how bad its impact would be
likelihood  1 rare  ...  5 almost certain   (left → right)
impact      1 minor ...  5 severe            (front → back)
the grid    every pair of the two ratings has a square

The ratings belong to one made-up small firm, to show the method. Another firm, with other systems and people, would rate the same risks differently. Multiplying two 1-5 ratings is a common shortcut (OWASP writes Risk = Likelihood × Impact). NIST SP 800-30 combines likelihood and impact levels in a table instead. Either way, the ratings are careful judgements, not measurements.