Eight worries, one list
Lantern Print's directors worry about ransomware, phishing, a lost USB stick and the till. Each worry lives in a different head.
A risk register puts them in one list, scored the same way, each with a name beside it.
By the end of this lesson
Note
I can score risks in a register and find those above the risk appetite.
Key words
| Word | What it means |
|---|---|
| Risk register | a list of risks with scores, owners and actions |
| Likelihood | how probable the harm is, from 1 to 5 |
| Impact | how bad the harm would be, from 1 to 5 |
| Residual risk | the risk left after controls |
| Risk appetite | how much risk the leaders accept |
| Risk owner | the person who answers for one risk |
The cells students fill in are left blank in this preview.
Starter
Have a go
Starter
3 questionsA score is likelihood times impact
Each risk gets a likelihood and an impact from 1 to 5. Multiplied, they give a score from 1 to 25. The score before controls is the inherent risk.
Controls usually cut the likelihood. The score after them is the residual risk. The scale is a shared habit, not a measurement, so two people must score the same way.
Try it: inherent and residual
likelihood = 3
impact = 5
cut = 1
print("inherent", likelihood * impact)
print("residual", max(1, likelihood - cut) * impact)
# Offline backups cut the likelihood by 2. Set cut = 2 and run again.
Make a free account to save your work and track your progress.
Check
Have a go
Check
3 questionsFour ways to treat a risk
| Treatment | Meaning | Lantern Print example |
|---|---|---|
| Reduce | Add controls | Offline backups against ransomware |
| Transfer | Pass part of it on | A card provider handles card data |
| Accept | Live with it, on purpose | A defaced website costs little |
| Avoid | Stop the activity | No more customer files on USB sticks |
The cells students fill in are left blank in this preview.
Lantern Print's register
riskdata.py holds eight risks and an appetite of 9: a residual score above 9 needs action or a director's decision. register.py sorts the risks, gives each a band and draws a heat map.
Run it as it is for inherent risk, then with residual.
Write the risk register
docker exec jupyter sh -c "mkdir -p steps && printf '%s\n' 'risks = [' ' (\"R1\", \"Phishing steals a mailbox\", \"Office manager\", 4, 3, 2, \"reduce\"),' ' (\"R2\", \"An old laptop is attacked\", \"IT lead\", 3, 4, 2, \"reduce\"),' ' (\"R3\", \"Ransomware stops the presses\", \"Director\", 3, 5, 1, \"reduce\"),' ' (\"R4\", \"A supplier leaks customer files\", \"Director\", 2, 4, 0, \"transfer\"),' ' (\"R5\", \"The server is stolen\", \"Office manager\", 1, 4, 0, \"accept\"),' ' (\"R6\", \"A USB stick of artwork is lost\", \"\", 3, 3, 1, \"reduce\"),' ' (\"R7\", \"The website is defaced\", \"IT lead\", 2, 2, 0, \"accept\"),' ' (\"R8\", \"Card data leaks from the till\", \"\", 2, 5, 1, \"transfer\"),' ']' '' 'APPETITE = 9' > steps/riskdata.py"Shown here, not run. Press Start lab to type it into your own lab’s terminal.
Write the register report, part 1
docker exec jupyter sh -c "mkdir -p steps && printf '%s\n' 'import sys' 'from riskdata import APPETITE, risks' '' '' 'def band(score):' ' if score >= 15:' ' return \"critical\"' ' if score >= 10:' ' return \"high\"' ' if score >= 5:' ' return \"medium\"' ' return \"low\"' '' '' 'after = \"residual\" in sys.argv' 'rows = []' 'for rid, title, owner, likely, impact, cut, treatment in risks:' ' if after:' ' likely = max(1, likely - cut)' ' rows.append((likely * impact, rid, likely, impact, title, owner, treatment))' 'rows.sort(key=lambda r: (-r[0], r[1]))' 'print(\"residual risk\" if after else \"inherent risk\", \"(likelihood x impact)\")' 'for score, rid, likely, impact, title, owner, treatment in rows:' ' who = owner or \"NO OWNER\"' ' print(f\"{rid} {score:>2} {band(score):<8} {title:<32} {treatment:<8} {who}\")' 'print(\"heat map, likelihood 5 at the top, impact 1 to 5 across:\")' 'for likely in range(5, 0, -1):' > steps/register.py"Shown here, not run. Press Start lab to type it into your own lab’s terminal.
Write the register report, part 2
docker exec jupyter sh -c "printf '%s\n' ' cells = []' ' for impact in range(1, 6):' ' n = sum(1 for r in rows if r[2] == likely and r[3] == impact)' ' cells.append(str(n) if n else \".\")' ' print(f\" {likely} | \" + \" \".join(cells))' 'over = [r[1] for r in rows if r[0] > APPETITE]' 'print(f\"above the appetite of {APPETITE}:\", \" \".join(over) or \"none\")' >> steps/register.py"Shown here, not run. Press Start lab to type it into your own lab’s terminal.
Report inherent risk
docker exec jupyter python3 steps/register.pyShown here, not run. Press Start lab to type it into your own lab’s terminal.
Report residual risk
docker exec jupyter python3 steps/register.py residualShown here, not run. Press Start lab to type it into your own lab’s terminal.
Check
Have a go
Check
3 questionsA common mistake
Warning
Many people think a risk with no owner is still managed because it is on the list. A risk nobody answers for gets no decision and no budget. R6 and R8 need a name before the register is finished.
The register asks for decisions
R3, ransomware, is still 10 after the controls. The directors must cut it further, with offline restores tested, or accept it in writing.
A register is read at every board meeting. Scores change as controls land, and new risks are added.
Assignment: score the register
score(likelihood, impact) multiplies two values from 1 to 5 and raises ValueError outside that. band(points) returns "low", "medium", "high" or "critical" by the lesson's bands. residual(likelihood, impact, cut) cuts the likelihood, never below 1. over_appetite(register, appetite) returns the ids whose residual score is above the appetite, sorted.
def score(likelihood, impact):
# Both are 1 to 5. Raise ValueError outside that. The score is likelihood times impact.
return 0
def band(points):
# 1 to 4 "low", 5 to 9 "medium", 10 to 14 "high", 15 to 25 "critical".
return ""
def residual(likelihood, impact, cut):
# Controls cut the likelihood by cut, but never below 1. Return the new score.
return 0
def over_appetite(register, appetite):
# register is a list of (id, likelihood, impact, cut). The ids whose residual score is
# above the appetite, sorted.
return []
Make a free account to save your work and track your progress.
Exit quiz
Have a go