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 →
- Find versions fleet-wide:
ansible all -m shell -a "rpm -q openssl || dpkg -l openssl". - Patch:
dnf update openssl/apt-get install --only-upgrade openssl libssl3. - 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
- Restart those services or reboot.
- 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.
More on Security, hardening and incident response
Monitoring shows a web server making outbound connections to an unknown IP on port 4444 at 2 AM. You suspect it is compromised. What do you do?AdvancedAfter the compromise you need to find how the attacker got in. Where do you look?AdvancedYour CISO asks you to harden a fresh Linux server baseline. What's on your list?IntermediateA developer says "SELinux keeps breaking my app, can we just disable it?" How do you respond and what do you do?IntermediateYou need to know when anyone modifies `/etc/sudoers`, `/etc/passwd` or SSH config. How?IntermediateHow do you make sure only signed, approved packages can be installed on your servers?Intermediate