What changed since the last scan?
Every quarter the invoice server is scanned and the result is filed. You have the June scan and the September scan, plus the log of authorised changes: compare them and find out what appeared without anyone asking for it.
Lab 7 of 10 in the Recon & Scanning path. If you get stuck you have 3 hints, from the vaguest to the most precise: they cost 0, 40 and 100 XP.
What you learn
Objectives complete themselves while you work in the terminal; each one is worth experience points:
- Read the log of authorised changes (60 XP)
- Compare the two scans (120 XP)
- Check live what is open right now (100 XP)
- Query the port that was not planned (150 XP)
Topics: recon, nmap, baseline, diff.
Commands you will use
The terminal is simulated and understands about forty Linux commands. In this lab you will mostly need these:
cat: prints the contents of a file: the most direct way to read configurations, notes and logs.diff: compares two files line by line and shows the differences, for example between a configuration and the recommended one.nmap: discovers the live hosts of a network and the open ports of a machine, with services and versions. Defenders use it to compare the real network with the inventory.nc: netcat opens a raw connection to a port and shows what the service answers, including its greeting message (banner).curl: makes HTTP requests from the terminal and shows the server’s raw answer, headers included.
The simulated environment
The target is an invented host on a simulated private network: you can only reach it from the game terminal.
The target exposes these services:
- SSH: encrypted remote command-line access; it is protected with keys instead of passwords and without direct root login.
- Web (HTTP): a web server with pages, APIs or admin panels: the most exposed part of almost every organisation.
The defensive lesson
Once the lab is solved, the write-up explains what went wrong and how to protect yourself:
A single scan tells you what the network looks like today; compared with the previous one it tells you what changed, and that is where problems hide: a port opened for testing and forgotten, a database exposed by mistake, a service nobody owns. Here two changes were authorised (an upgrade and a closure) and one was not. Defense: keep a baseline of periodic scans, compare it automatically against the change log and raise an alert for every new port; a firewall with a default "deny" rule so a service started by mistake is not reachable from outside; no test services in production and an owner for every service.
Before and after this lab
To unlock it you must have solved:
- Who's on the network? (Recon & Scanning, medium)
After this lab you can move on to:
- The scanner report (Recon & Scanning, hard)
The Recon & Scanning path
Recon & Scanning is reconnaissance: before defending a network, or testing it with permission, you need to know what is in it. You learn to discover live hosts, list ports and services, read the banners services greet you with, and query DNS and HTTP headers. Every lab also shows the defender’s point of view: an up-to-date asset inventory, minimal banners, internal DNS kept apart from public DNS and nothing forgotten left running.