Linux Labs

Server security / Stage 2 of 10 · step 6 of 7

After the update

medium ~25 min
Not running Starting usually ~20 s
Report a problem

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.

Visible only to you. Saved as you type.

All notes

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

Leave the lab?

The machine keeps running for 10 more minutes, then it is removed. Files are lost; completed goals stay.

Loading…