Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Free lesson

EPSS and the KEV catalogue

After this lesson: I can rank vulnerabilities using EPSS and the KEV catalogue beside CVSS.

60 min lesson12 commandsVulnerability management lab: Trivy, CVSS, EPSS and KEV

A quick check that you are not a bot, then your own lab opens on the interactive lesson.

Already have an account? Sign in

Which flaws are attackers using?

EPSS, the Exploit Prediction Scoring System, estimates how likely a CVE is to be exploited soon. The KEV catalogue lists the CVEs already known to be exploited.

CVSS says how bad a flaw could be. These two say whether anyone is using it, which changes what you fix first.

By the end of this lesson

Note

I can rank vulnerabilities using EPSS and the KEV catalogue beside CVSS.

Key words

WordWhat it meansExample
Exploitcode or steps that use a vulnerability
EPSSa daily estimate of the chance a CVE is exploited soon0.59304
Percentilethe share of scored CVEs at or below this score0.99141
KEV catalogueCISA's list of vulnerabilities known to be exploited
Snapshota copy of data frozen on one date

The cells students fill in are left blank in this preview.

Starter

Have a go

Starter

4 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

EPSS estimates the chance of exploitation

EPSS is published every day by FIRST, the Forum of Incident Response and Security Teams. For each CVE it gives a probability from 0 to 1 that exploitation will be seen in the next 30 days.

The percentile says how a score compares: 0.99 means it is higher than 99% of all scored CVEs. This lab carries the scores of 20 November 2026, for 410,485 CVEs.

Write the helper that reads reports, part 1

Command
docker exec tools sh -c "printf '%s\n' 'import csv' 'import gzip' 'import json' '' 'EPSS_FILE = \"/work/snapshot/epss-2026-11-20.csv.gz\"' 'KEV_FILE = \"/work/snapshot/kev-2026-11-20.json\"' '' 'def findings(name):' '    with open(\"/work/reports/\" + name + \".json\") as f:' '        report = json.load(f)' '    rows = []' '    for result in report.get(\"Results\", []):' '        rows = rows + (result.get(\"Vulnerabilities\") or [])' '    return rows' '' 'def cve_list(rows):' '    cves = []' '    for v in rows:' '        if v[\"VulnerabilityID\"] not in cves:' '            cves.append(v[\"VulnerabilityID\"])' > steps/snap.py"

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

Write the helper that reads reports, part 2

Command
docker exec tools sh -c "printf '%s\n' '    return cves' '' 'def epss(wanted):' '    scores = {}' '    with gzip.open(EPSS_FILE, \"rt\") as f:' '        for row in csv.reader(f):' '            if row[0] in wanted:' '                scores[row[0]] = [float(row[1]), float(row[2])]' '    return scores' '' 'def kev():' '    with open(KEV_FILE) as f:' '        catalogue = json.load(f)' '    return {v[\"cveID\"]: v for v in catalogue[\"vulnerabilities\"]}' '' 'def nvd(v):' '    return v.get(\"CVSS\", {}).get(\"nvd\", {}).get(\"V3Score\")' >> steps/snap.py"

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

Write the EPSS and KEV lookup

Command
docker exec tools sh -c "printf '%s\n' 'import sys' 'import snap' '' 'wanted = sys.argv[1:]' 'scores = snap.epss(wanted)' 'catalogue = snap.kev()' 'for cve in wanted:' '    print(cve, \"EPSS\", scores[cve][0], \"percentile\", scores[cve][1])' '    if cve in catalogue:' '        k = catalogue[cve]' '        print(\"   \", \"in KEV, added\", k[\"dateAdded\"], \"due\", k[\"dueDate\"], \"ransomware\", k[\"knownRansomwareCampaignUse\"])' '    else:' '        print(\"   \", \"not in KEV\")' > steps/lookup.py"

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

Look up a low and a critical CVE

Command
docker exec tools python3 steps/lookup.py CVE-2024-2511 CVE-2024-45492

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

What lookup.py printed, beside the severity

CVESeverityCVSS (NVD)EPSSPercentile
CVE-2024-2511LOWnone0.593040.99141
CVE-2024-45492CRITICAL9.80.013930.73038

The cells students fill in are left blank in this preview.

Check

Have a go

Check

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Try it: sort by CVSS, then by EPSS

Code: python
findings = [
    ["CVE-2024-45492", "CRITICAL", 9.8, 0.01393],
    ["CVE-2024-2511", "LOW", 0, 0.59304],
    ["CVE-2024-6119", "HIGH", 7.5, 0.66582],
]

by_cvss = sorted(findings, key=lambda f: f[2], reverse=True)
by_epss = sorted(findings, key=lambda f: f[3], reverse=True)
print("by CVSS:", [f[0] for f in by_cvss])
print("by EPSS:", [f[0] for f in by_epss])
# CVE-2024-2511 has no NVD score here, so it sorts last by CVSS.
# Change its EPSS to 0.001. Where does it go in each list?

Make a free account to save your work and track your progress.

KEV lists what is already exploited

The KEV catalogue is kept by CISA, the US Cybersecurity and Infrastructure Security Agency. A CVE joins it when there is reliable evidence of exploitation and a clear action, usually an update.

Each entry has the date it was added and a due date for US federal agencies. It also says whether ransomware gangs are known to use it. This lab carries version 2026.11.20, with 1,790 entries.

Look up Log4Shell in the catalogue

Command
docker exec tools python3 steps/lookup.py CVE-2021-44228

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

The KEV entry lookup.py printed

CVEEPSSAddedDueRansomware use
CVE-2021-442280.999992021-12-102021-12-24Known

The cells students fill in are left blank in this preview.

A common mistake

Warning

Many people think a CVE missing from KEV is safe. KEV lists only what CISA has evidence for. A flaw can be exploited before it is listed, so absence is a reason to look at EPSS, not to relax.

Your turn: look up its follow-up flaw

Command
docker exec tools python3 steps/lookup.py CVE-2021-45046

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

Put KEV, EPSS and CVSS together

One simple rule, written for this lesson and not a standard, uses all three. Tier 1 is anything in KEV. Tier 2 is an EPSS of 0.1 or more. Tier 3 is a CVSS of 9 or more. Everything else is tier 4.

Run it on the old web image and on the Java reports service. Watch where the critical CVEs land.

Save the old image's scan as JSON

Command
docker exec scanner trivy image --input /targets/web-1.25.3.tar --format json -o /work/reports/web.json

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

Scan the Java service's lock file

Command
docker exec scanner trivy fs /targets/reports --format json -o /work/reports/reports.json

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

Write the ranking script, part 1

Command
docker exec tools sh -c "printf '%s\n' 'import sys' 'import snap' '' 'rows = snap.findings(sys.argv[1])' 'cves = snap.cve_list(rows)' 'scores = snap.epss(cves)' 'catalogue = snap.kev()' 'best = {}' 'for v in rows:' '    cve = v[\"VulnerabilityID\"]' '    chance = scores.get(cve, [0, 0])[0]' '    cvss = snap.nvd(v) or 0' '    if cve in catalogue:' '        tier = 1' '    elif chance >= 0.1:' '        tier = 2' '    elif cvss >= 9.0:' '        tier = 3' '    else:' '        tier = 4' > steps/rank.py"

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

Write the ranking script, part 2

Command
docker exec tools sh -c "printf '%s\n' '    best[cve] = [tier, -chance, cve, v[\"Severity\"], snap.nvd(v), chance]' 'counts = [0, 0, 0, 0]' 'for row in best.values():' '    counts[row[0] - 1] = counts[row[0] - 1] + 1' 'print(len(best), \"CVEs.\", \"Tiers 1 to 4:\", counts)' 'for row in sorted(best.values())[:6]:' '    print(\"tier\", row[0], row[2], row[3], \"CVSS\", row[4], \"EPSS\", row[5])' >> steps/rank.py"

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

Rank the old web image

Command
docker exec tools python3 steps/rank.py web

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

Rank the Java service

Command
docker exec tools python3 steps/rank.py reports

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

What rank.py printed

TargetCVEsTier 1Tier 2Tier 3Tier 4First in the list
web4405336CVE-2024-6119, EPSS 0.66582
reports2322019CVE-2021-44228, in KEV

The cells students fill in are left blank in this preview.

Check

Have a go

Check

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Assignment: rank findings into tiers

Rank findings with the lesson's four tiers. Each finding is a dictionary with cve, cvss, epss and kev (True or False).

tier(cvss, epss, in_kev) returns 1 for anything in KEV, 2 for an EPSS of 0.1 or more, 3 for a CVSS of 9.0 or more, and 4 otherwise. count_tiers(findings) returns a list of four counts, tier 1 first. first_to_fix(findings) returns the CVE in the best tier; between two in the same tier, the one with the higher EPSS.

Code: python
def tier(cvss, epss, in_kev):
    return 0


def count_tiers(findings):
    return [0, 0, 0, 0]


def first_to_fix(findings):
    return ""

Make a free account to save your work and track your progress.

Exit quiz

Have a go

Exit quiz

5 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Teaching a class? Set this module for your students with a teacher guide, marked assignments and a lab for every student.