Introduction
A hostel room has a door with a cheap lock. Is that a problem? It depends. If the room holds nothing but old notebooks, a cheap lock is fine. If it holds a new laptop and the corridor has many strangers, it is not. Security decisions are always about risk: how likely something bad is, and how much it would hurt.
This lesson gives you the words professionals use, so you can talk about risk precisely, and two ways to put a number on it: a quick score for ranking risks, and a money calculation for deciding whether a protection is worth its price.
How it works
Four words carry most of the meaning, and they are often mixed up:
| Word | Meaning | Hostel example |
|---|---|---|
| Asset | Something of value you want to protect | The laptop in the room |
| Vulnerability | A weakness that could be used to cause harm | The lock opens with any thin card |
| Threat | Something or someone that could use the weakness | A thief walking the corridor |
| Risk | The chance of harm, combined with how bad it would be | Fairly likely, and losing the laptop costs a lot |
A vulnerability with no threat is not much risk (a weak lock on an empty room). A threat with no vulnerability is not much risk either (a thief at a steel door). Risk needs both, and it grows with the value of the asset. An exploit is the actual method that uses a vulnerability, and a control is anything that reduces risk.
The quickest way to compare risks is a risk matrix: score each risk's likelihood and impact from 1 to 5, and multiply. A score of 16 needs attention before a score of 6. The bands below are one common scale; every organisation picks its own.
| Score | Level |
|---|---|
| 15 to 25 | critical |
| 10 to 14 | high |
| 5 to 9 | medium |
| 1 to 4 | low |
// Risk = likelihood x impact, each scored 1 (lowest) to 5 (highest).
const risks = [
{ name: "Phishing steals a staff password", likelihood: 4, impact: 4 },
{ name: "Lab PC hard disk fails", likelihood: 3, impact: 2 },
{ name: "Web server flooded on result day", likelihood: 2, impact: 5 },
{ name: "Laptop with student records stolen", likelihood: 2, impact: 4 },
];
function level(score) {
if (score >= 15) return "critical";
if (score >= 10) return "high";
if (score >= 5) return "medium";
return "low";
}
for (const r of risks) r.score = r.likelihood * r.impact;
risks.sort((x, y) => y.score - x.score);
for (const r of risks) {
console.log(String(r.score).padStart(2) + " " + level(r.score).padEnd(9) + r.name);
}Once risks are ranked, there are four ways to respond to each one:
- Reduce it with a control (a better lock, two-factor login, a backup).
- Transfer it to someone else (insurance, or a hosting company that handles floods of traffic).
- Avoid it by not doing the risky thing (do not store the data at all).
- Accept it, on purpose and in writing, when the cost of a control is more than the risk.
Example
A risk matrix ranks risks, but it cannot tell you whether a control is worth its price. For that, analysts use money. Three numbers do the work:
- SLE (single loss expectancy) = asset value × exposure factor, where the exposure factor is the fraction of the value lost in one incident.
- ARO (annualised rate of occurrence) is how many times a year the incident is expected.
- ALE (annualised loss expectancy) = SLE × ARO, the expected loss per year.
A control is worth buying when the drop in ALE is bigger than the control's yearly cost.
// Quantitative risk: is a protection worth its price?
const assetValue = 500000; // taka: what the result-day web server is worth to the university
const exposureFactor = 0.2; // each flood attack costs 20% of that value
const attacksPerYear = 3; // ARO: how often it is expected to happen in a year
const singleLoss = assetValue * exposureFactor; // SLE
const annualLoss = singleLoss * attacksPerYear; // ALE
console.log("Loss per attack (SLE): " + singleLoss);
console.log("Loss per year (ALE): " + annualLoss);
// A flood-protection service costs 120000 a year and cuts the rate to one attack every two years.
const protectionCost = 120000;
const annualLossAfter = singleLoss * 0.5;
const saving = annualLoss - annualLossAfter;
console.log("ALE with protection: " + annualLossAfter);
console.log("Saving per year: " + saving);
console.log(saving > protectionCost ? "Worth it: saves " + (saving - protectionCost) + " more than it costs" : "Not worth it at this price");Line by line
- The web server is worth 500000 taka to the university, and each flood attack costs 20% of that, so the SLE is 500000 × 0.2 = 100000.
- Three attacks are expected each year, so the ALE is 100000 × 3 = 300000 taka a year.
- A protection service cuts the rate to one attack every two years, an ARO of 0.5, so the ALE becomes 100000 × 0.5 = 50000.
- The yearly saving is 300000 − 50000 = 250000.
- The service costs 120000 a year, less than the saving, so it is worth buying: it saves 130000 more than it costs.
Expected result
Loss per attack (SLE): 100000
Loss per year (ALE): 300000
ALE with protection: 50000
Saving per year: 250000
Worth it: saves 130000 more than it costs
In the real world
- Companies keep a risk register: a list of risks, each with its score, an owner and the chosen response. It is reviewed every few months, because likelihoods change.
- Public vulnerability lists such as the CVE list give each known software weakness an ID, so everyone can talk about the same bug.
- Insurance for cyber attacks is a real product: it is the "transfer" response in action.
- The numbers in a risk calculation are estimates. Their value is in forcing a clear argument, not in being exact.
Common mistakes
- Calling a vulnerability a threat. "Our server runs old software" is a vulnerability; "a group scanning the internet for that version" is the threat.
- Treating every risk as critical. If everything is urgent, nothing gets fixed first. Rank them.
- Forgetting that accepting a risk is a decision. Accepted risks should be written down with who accepted them and why.
- Spending more on a control than the loss it prevents. A 200000-taka lock on a 20000-taka laptop is a bad deal.
Best practices
- Start with a list of your assets: you cannot protect what you have not named.
- Score likelihood and impact separately before multiplying, so the reasons stay visible.
- Give every risk an owner, the person who decides what to do about it.
- Revisit the scores after any incident; a risk that happened once is more likely than you thought.
Summary
Risk joins a threat, a vulnerability and an asset: it is the chance of harm together with how bad the harm would be. A risk matrix multiplies likelihood by impact to rank risks quickly, and the money method (SLE, ARO and ALE) shows whether a control saves more than it costs. Each risk is then reduced, transferred, avoided or accepted, on purpose.
Quick check
Key takeaways
- Risk needs a threat, a vulnerability and an asset worth harming; remove any one and the risk falls.
- Multiply likelihood by impact to rank risks, and fix the highest first.
- A control is worth buying when it lowers the yearly expected loss by more than it costs.
- Every risk is reduced, transferred, avoided or accepted, and accepting must be a written decision.
Practice problems for this lesson
Was this lesson clear?
My notes
Write down what you want to remember from this lesson. Notes are saved on this device as you type, and appear on your dashboard.