Interview Prep/Linux/Security, hardening and incident response

A critical OpenSSL CVE is announced. How do you find and patch affected servers quickly?

IntermediateScenarioSecurity, hardening and incident response
Answer

Situation read → Inventory, patch, restart the right processes.

What I'd do →

  1. Find versions fleet-wide: ansible all -m shell -a "rpm -q openssl || dpkg -l openssl".
  2. Patch: dnf update openssl / apt-get install --only-upgrade openssl libssl3.
  3. Find processes still using the old library:
sudo lsof -n | grep -E 'libssl.*(deleted)'
sudo needs-restarting -s    # RHEL
sudo needrestart -r l       # Debian/Ubuntu
  1. Restart those services or reboot.
  2. Check containers and statically linked binaries separately.

Why → Updating the package doesn't fix processes that already loaded the old library into memory.

Interview tip → The "(deleted)" library trick shows real experience.

All Linux questions Roadmap: Linux

More on Security, hardening and incident response