Core Concepts

Threat, Vulnerability, and Risk

25 min

Prerequisites

Lesson 1, for the CIA triad and assets.

Three words people mix up

These three words appear in every security report. They mean different things:

  • A vulnerability is a weakness: a bug in software, a weak password, a file that everyone can write to, a door left unlocked.
  • A threat is someone or something that could take advantage of a weakness: a criminal group, a careless insider, even a flood in the server room. Using a vulnerability is called exploiting it.
  • Risk is how much a threat exploiting a vulnerability would hurt, and how likely that is.

A simple way to hold it in your head:

Risk = likelihood × impact

  • Likelihood: how probable is it? Is the weakness reachable from the internet? Are attackers already using it?
  • Impact: how bad would it be? Which assets, and which part of CIA?

A vulnerability nobody can reach has low likelihood. A vulnerability on a test laptop with no data has low impact. Neither is a top priority, even if the bug itself is serious.

Threat actors

Different attackers want different things. A few common types:

  • Cybercriminals want money: ransomware, stolen card data, fraud.
  • Nation-state groups want secrets or disruption, and have time and money.
  • Hacktivists want attention for a cause: defacing websites, leaking data.
  • Insiders are people with legitimate access who misuse it, on purpose or by mistake.
  • Opportunists run automated tools against anything they find, like the SSH brute-force attempts you saw in Linux Essentials.

Knowing who would target your assets helps you guess the likelihood.

CVE and CVSS: how vulnerabilities get names and scores

When a vulnerability is found in public software, it gets an ID called a CVE (Common Vulnerabilities and Exposures), like CVE-2021-44228. Everyone, from vendors to defenders, uses that ID to talk about the same bug.

Most CVEs also get a CVSS score from 0.0 to 10.0 (Common Vulnerability Scoring System). It rates how bad the bug is in general:

Score Rating
0.1 to 3.9 Low
4.0 to 6.9 Medium
7.0 to 8.9 High
9.0 to 10.0 Critical

CVSS measures the bug, not your risk. A critical bug in software you do not run is zero risk for you. That is why defenders also watch lists like CISA’s Known Exploited Vulnerabilities catalog: a bug attackers are already using raises the likelihood a lot.

Defense in depth and controls

Anything that lowers risk is a control. Good defenders never rely on one:

  • Some controls lower likelihood: patching, firewalls, two-factor authentication, least privilege.
  • Some lower impact: backups, encryption of stored data, separating networks so one breach cannot reach everything.
  • Some help you notice and respond: logs, alerts, and people who read them.

Stacking several layers is called defense in depth. If one layer fails, the next one still stands.

Hands-on: read a real vulnerability record

Open the National Vulnerability Database page for CVE-2021-44228, better known as Log4Shell: nvd.nist.gov/vuln/detail/CVE-2021-44228. It affected a logging library used in a huge amount of Java software in late 2021.

Find and write down:

  1. The description: what could an attacker do?
  2. The CVSS 3.x base score and its rating.
  3. The vector string, which starts with CVSS:3.1/. Look for AV:N (attack vector: network, so it can be reached remotely) and PR:N (privileges required: none). Those two together are a big reason the score is so high.
  4. Whether it appears in CISA’s Known Exploited Vulnerabilities catalog (search the catalog for the CVE ID).

What to notice

  • A vulnerability is a weakness, a threat is who could use it, and risk is likelihood times impact.
  • A CVE is a vulnerability’s name; CVSS scores how bad it is in general, not how risky it is for you.
  • A bug that attackers are actively exploiting deserves attention before a higher-scored one nobody uses.
  • Defense in depth stacks controls, so one failure is not the end.
Stuck, or just want to talk it through? Ask in the Discord, no need to get stuck here alone.

Reflect on your own

  • A server has a serious vulnerability but is not connected to any network. Is the risk high or low? Why?
  • Why can a CVSS score of 9.8 still be a low priority for one company?
  • Name one control from earlier tracks that lowers likelihood, and one that lowers impact.

Go further

Spotted a mistake, or a command that did not work for you? Report it on GitHub or by email.