Vulnerability management lab: Trivy, CVSS, EPSS and KEV

This lab gives each student a vulnerability scanner and things to scan: Trivy, an old nginx web server, two container images, a Flask app's requirements.txt and a Java service's lock file. They read CVE identifiers and CVSS vectors, rank findings with EPSS and CISA's Known Exploited Vulnerabilities catalogue, write and search SBOMs, record a VEX statement, set patch deadlines and report risk.

The lab has no internet at all, so everything is a frozen snapshot inside it: Trivy 0.76.2 with its database of 21 November 2026, EPSS scores of 20 November 2026 and the KEV catalogue, version 2026.11.20. Every copy gives the same answers. A real scan today would find more, and the lessons say so.

What students learn

How to go from a scanner's output to a decision. The old image gives 74 findings, 3 of them critical, and the newer one 12. The shop's requirements give 49 and the Java service 23, two of them Log4Shell and its follow-up, both in KEV.

They see one CVE scored 9.8 by NVD and 6.2 by Red Hat, a low-severity flaw with an EPSS in the top 1%, an SBOM search that finds Log4j in one system of three, and a VEX statement that hides two findings with a reason.

Run it in your browser

The lab starts three services. scanner is Trivy, with the images and projects in /targets. web is the old nginx, the same image as web-1.25.3.tar. tools is Python, reading Trivy's reports and the EPSS and KEV snapshot in /work. The terminal beside the lab reaches them with docker exec.

  1. Open the Container page. Open Build on the bar and choose Run a container. Anybody may open it, and the Git lab and the SQL lab start with no account. Every other lab needs a free account: create one, sign in, then press Start.
  2. Find the lab. The Sample labs card lists every sample. Find Vulnerability management: Trivy, offline.
  3. Press Start. Start runs it as it is, in one press. Edit the file first opens the compose file so you can change it before you start.
  4. Open it. On the lab's page, press Open terminal and type docker exec scanner trivy image --input /targets/web-1.25.3.tar --severity CRITICAL to see the three critical findings.

What to ask students to hand in

A short triage of the newer web image and the shop: their findings ranked by what to fix first with the reason, the due date their own patch policy gives each, and one VEX statement they would sign, with its evidence. Nothing is marked automatically: the reasons show whether it was understood.

A basic lesson on this lab

Vulnerability Scanning Basics is a small lesson worked in this lab. In it a student checks the scanner's database date, reads the web server's Alpine release and scans its image and the Java service's lock file for critical flaws.

Free personal accounts have it in the Basics module, which is on Home, and every college can copy it from the Library's Basics folder. It is deliberately small. The module Vulnerability management goes further in six lessons.

The code on GitHub

The scanner is our own image, built in the open from the repository's image folder by the public lab-builder workflow on GitHub and pinned by digest: Trivy (Apache 2.0) from Aqua Security's official image, its database pinned by digest, two nginx images and the EPSS and KEV files copied unchanged. The web server and the Python are stock public images, pinned by digest.

Set it as work

Say in the task what to hand in.

  1. Make the lab. In your module add a task and choose the Container lab card, then In a GitHub repository. Give https://github.com/mitsurutech/lab-vuln-lab with the branch main. The compose file is the default, compose.yaml. Fork the repository first if you want to change it.
  2. Publish and try it. Publish pins the commit you were shown, so a later change in the repository does not alter a lab you have already set. Start your own copy first.
  3. Hand it out. Assign it like any task, with a due date if you want one, and say in the task what to do and what to hand in.
  4. Mark what is handed in. Open a student’s copy and the work they handed in, mark it, and send it back with a reason if it needs more.

Try this lab, and what it costs

A free personal account can work through the basic lessons in this lab, with enough free credit each month to follow most lessons and no card. For a class, a school or college has its first 365 days free for up to 50 students, then pays per student a year, with every lab included and staff free.

Questions people ask

Why does the scanner never update its database?
A lab has no way out to the internet, so the database is built into the image and pinned. That also means a whole class sees the same findings. A real scan today, with a newer database, would find more.
Can students scan their own images or a website?
No. The scanner cannot pull images or reach anything outside the lab, so it scans only what it carries. Scanning anything else needs its owner's written permission.
Is anything attacked?
No. The old web server is there to be scanned and read. Nothing is exploited, and the lessons are about deciding what to fix first.
Does it cost anything or use credits for AI?
No AI is used, so nothing is charged for it. The lab runs like any other container lab.