Chrysolites Open Courses

Cybersecurity from the Ground Up · Course book

Chapter 3: Threats, Vulnerabilities and Risk

Pairs with Lesson 3: Threats, Attacks and Defences: A Complete Overview

No organisation can defend against everything at once. Money, time and attention are limited, so security teams must decide which dangers deserve action first. Making that decision well requires a shared vocabulary and a way of comparing very different problems, such as an unpatched server, a careless email habit and a flood-prone server room. This chapter introduces the language of threats, vulnerabilities and risk, describes the main kinds of attacker and the routes they use, surveys the families of malicious software, and then shows how risk is measured, both with a simple likelihood-and-impact matrix and with a worked financial calculation. It ends with the four ways an organisation can respond to a risk once it has been measured.

Threats, vulnerabilities and risk

Three words are often used loosely in the news, but security professionals keep them distinct. An asset is anything of value: data, devices, systems, reputation or people's time. A threat is anything that could cause harm to an asset, such as a criminal group, a disgruntled employee, a fire or a software bug. A vulnerability is a weakness that a threat could exploit, such as an outdated program, a weak password policy or an unlocked door. Risk exists where a threat and a vulnerability meet an asset that matters, and it combines how likely harm is with how bad it would be.

This distinction shows where action is possible. Organisations can rarely remove threats; criminals will exist whatever a company does. They can, however, reduce vulnerabilities by patching, training and configuring systems carefully, and they can reduce the impact of harm by keeping backups and planning their response. A vulnerability with no threat able to reach it, such as an old program on a computer that is never connected to any network, carries little risk. A minor vulnerability on a system exposed to the whole internet may carry a great deal.

Two further terms are useful. An exploit is a technique or piece of code that takes advantage of a specific vulnerability. A zero-day vulnerability is one that the software's makers do not yet know about, so no fix exists; defenders then rely on other layers of protection until a patch is released. Most successful attacks, however, use vulnerabilities that have been publicly known, with fixes available, for months or years.

Threat actors and attack vectors

A threat actor is the person or group behind an attack. Understanding their motives helps predict what they will target and how hard they will try.

Threat actorTypical motiveResources and skillCommon targets
Organised cyber-criminalsMoney, through ransom, fraud or selling dataModerate to high; often buy ready-made toolsAny organisation that can pay; individuals' accounts
Nation-state groupsEspionage, disruption, strategic advantageVery high; patient and well fundedGovernments, defence, infrastructure, research
HacktivistsPublicity for a political or social causeLow to moderateOrganisations linked to the cause they oppose
InsidersGrievance, money, or simple carelessnessLegitimate access already grantedTheir own employer's data and systems
OpportunistsCuriosity, reputation, small gainsLow; use freely available toolsPoorly protected systems found by scanning

An attack vector is the route an attacker uses to reach a target. The most common include email, through phishing messages and malicious attachments; the web, through compromised or fake websites; exposed services on the internet, such as remote access systems with weak passwords or missing patches; removable media such as memory sticks; the supply chain, in which attackers compromise a supplier or a software update so that it carries their code into many customers at once; and people themselves, through phone calls or in-person deception. The total set of vectors available against an organisation is called its attack surface. Every new internet-facing system, every new supplier connection and every new staff member who handles sensitive data enlarges it, which is why reducing unnecessary exposure is one of the cheapest forms of defence.

Families of malicious software

Malware, short for malicious software, is any program written to harm or exploit a device, network or user. Malware is usually classified by how it spreads and what it does.

A virus attaches itself to a legitimate file or program and spreads when that file is shared and opened. A worm spreads by itself across networks, exploiting vulnerabilities without any user action, which is why worms can infect huge numbers of machines within hours. A Trojan disguises itself as something useful, such as a free game or a fake software update, and relies on the user to install it. Once inside, malware may carry different payloads. Spyware and keyloggers secretly record what the user does or types. Ransomware encrypts files and demands payment for the key, and modern criminal groups often steal data first and threaten to publish it as well. A botnet is a network of infected devices, often including poorly secured cameras and routers, controlled remotely and used to send spam or overwhelm websites. A rootkit hides deep in the operating system to conceal other malware and keep the attacker's access.

The defences against malware are layered. Keeping software updated closes the vulnerabilities that worms and exploit kits rely on. Anti-malware tools detect known malicious files and suspicious behaviour. Least privilege limits what malware can do if it runs. Email filtering removes many malicious attachments before they reach users, and training helps people recognise the lures that Trojans use. Backups make ransomware an inconvenience rather than a catastrophe.

Measuring risk

Once threats and vulnerabilities have been identified, each risk can be scored. The simplest method is a risk matrix. Likelihood and impact are each rated, often on a scale from 1 to 5, and multiplied. A risk that is likely (4) and severe (5) scores 20 and demands urgent attention; one that is rare (1) and minor (2) scores 2 and may simply be accepted.

510152025 48121620 3691215 246810 12345 A B 12345 likelihood (1 rare → 5 almost certain) 54321 impact (1 minor → 5 severe) A: unpatched public web server (4 × 5 = 20)B: server room flood (1 × 4 = 4)
Figure 3.1 — A 5 × 5 risk matrix. Each cell shows likelihood multiplied by impact; red cells need urgent treatment, green cells may be accepted.

Where money values can be estimated, risk can be measured financially. The single loss expectancy (SLE) is the expected cost of one incident: the value of the asset multiplied by the exposure factor, the fraction of that value lost. The annual rate of occurrence (ARO) is how many times per year the incident is expected. Multiplying them gives the annualised loss expectancy (ALE), the average yearly cost of the risk.

Worked example. A small online shop estimates that its customer database and website are worth $200,000 to the business. A successful ransomware attack would destroy about 40% of that value through lost sales, recovery work and lost customers, so the SLE is 200,000 × 0.40 = $80,000. Based on industry experience for similar shops, it estimates such an attack happens about once every four years, so ARO = 0.25. The ALE is 80,000 × 0.25 = $20,000 per year. A package of offline backups, email filtering and staff training costs $6,000 per year and is expected to cut the ARO to 0.05. The new ALE is 80,000 × 0.05 = $4,000. The control saves 20,000 − 4,000 = $16,000 of expected loss for a cost of $6,000, a net benefit of $10,000 per year, so it is worth buying.

The inputs to such calculations are estimates, and different people may reasonably choose different values. The real benefit is that the method forces assumptions into the open, where they can be questioned, and lets very different risks be compared in a common unit.

Responding to risk

Once a risk has been measured, there are four broad responses. Mitigate it by adding controls that reduce likelihood or impact, as the shop did with backups and training. Transfer it, partly, to someone else, for example through cyber insurance or by contracting a specialist provider, though the organisation keeps responsibility for its customers' data. Avoid it by stopping the risky activity altogether, such as no longer storing card numbers and using a payment provider instead. Accept it when the cost of action exceeds the expected loss, recording the decision so that it can be reviewed.

Controls themselves are often grouped by type. Preventive controls, such as firewalls and MFA, try to stop incidents. Detective controls, such as logging and alerts, reveal incidents in progress. Corrective controls, such as backups and incident response plans, limit damage and restore normal operation. A strong defence includes all three, because no preventive control is perfect. Risks are not assessed once and forgotten; a risk register lists each risk, its score, its owner and the chosen response, and is reviewed whenever systems, threats or the business change.

Check your understanding

  1. Explain the difference between a threat and a vulnerability, giving one example of each for a school's computer network.
  2. Why might an insider be more dangerous than an outside attacker, even with fewer technical skills?
  3. Distinguish between a virus, a worm and a Trojan.
  4. A risk has likelihood 3 and impact 4. What is its score in a 5 × 5 matrix, and which colour band would it fall in?
  5. A laptop worth $1,500 holds data worth $20,000. Theft would lose the laptop and 25% of the data's value, and theft is expected once every five years. Calculate the SLE and ALE.
  6. Give one example each of mitigating, transferring, avoiding and accepting a cyber risk.

Install Chrysolites Open Courses

Android / Chrome / Edge: open the browser menu and choose Install app or Add to Home screen.

iPhone / iPad (Safari): tap the Share button, then Add to Home Screen.