Linux Labs

Server security / Stage 2 of 10

The update is in, the vulnerability is still alive

Not running Starting usually ~20 s
Leave the lesson

Step 6 of 7 · lab · 25 minmedium

After the update

A colleague installed security updates and the packages are new, yet the scanner still flags the server as vulnerable. Find the services running old code and restart only those.

Situation

The reports portal on this server is three services, each from its own package: lab-gateway (the API), lab-reports (the reports themselves) and lab-metrics (request statistics). A colleague installed security updates and went home. dpkg -l shows the new versions, yet the vulnerability scanner flagged the server again: the vulnerable code is still running.

Task

  1. No portal service runs old code: there are no deleted files in /proc/<PID>/maps of their processes.
  2. All three services are active and answer: curl http://127.0.0.1:8071/health, and the same for ports 8072 and 8073.
  3. Restart only the services that have old code in memory: every restart drops the clients' connections and resets whatever the service has accumulated in memory. Do not reboot the machine.
  4. The update stays in place: do not roll the package versions back, and do not edit the package files or the service units.

There is no internet on the machine; everything you need is already installed. Run administrative commands with sudo.

Lab · on your own

No commands are given in this lab: type them in the terminal yourself. Goals are checked on the machine after every command.

Goals

0 of 4
  • No portal service runs old code — there are no deleted files in /proc/PID/maps — not done yet
  • lab-gateway, lab-reports and lab-metrics are active and answer /health — not done yet
  • The service the update did not touch was not restarted, and the machine was not rebooted — not done yet
  • The update stays in place — the package versions are new, the package files and service units are unchanged — not done yet
Ctrl+Enter
Starts the machine node1 · Ubuntu 24.04

The machine is starting

Hints

0 of 3

Lab goals

0 of 4
  • No portal service runs old code — there are no deleted files in /proc/PID/maps — not done yet
  • lab-gateway, lab-reports and lab-metrics are active and answer /health — not done yet
  • The service the update did not touch was not restarted, and the machine was not rebooted — not done yet
  • The update stays in place — the package versions are new, the package files and service units are unchanged — not done yet
node1 Ubuntu 24.04

Lab goals

0 of 4
  • No portal service runs old code — there are no deleted files in /proc/PID/maps — not done yet
  • lab-gateway, lab-reports and lab-metrics are active and answer /health — not done yet
  • The service the update did not touch was not restarted, and the machine was not rebooted — not done yet
  • The update stays in place — the package versions are new, the package files and service units are unchanged — not done yet
Loading…