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
- No portal service runs old code: there are no deleted files in
/proc/<PID>/mapsof their processes. - All three services are active and answer:
curl http://127.0.0.1:8071/health, and the same for ports8072and8073. - 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.
- 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 goals
0 of 4-
No portal service runs old code — there are no deleted files in /proc/PID/maps — not checked yet
-
lab-gateway, lab-reports and lab-metrics are active and answer /health — not checked yet
-
The service the update did not touch was not restarted, and the machine was not rebooted — not checked yet
-
The update stays in place — the package versions are new, the package files and service units are unchanged — not checked yet
Hints
0 of 3 open · they open one at a time
Hint 1
Show the solution
after 3 failed checks