You need to verify that no system binaries were tampered with after a suspected incident, without trusting the server's own tools. How?
AdvancedScenarioPackages, kernel and boot
Answer
Situation read → Verify against package checksums from a trusted environment.
What I'd do →
- Snapshot the disk and mount it read-only on a clean forensic host.
- Verify using the clean host's
rpmagainst the evidence root:
sudo rpm --root /mnt/evidence -Va | grep -E '^..5' # checksum changed
For Debian: debsums -r /mnt/evidence -c or compare hashes with packages downloaded from the mirror.
3. Check /etc/ld.so.preload and loaded kernel modules in the memory capture.
Why → A rootkit can make the compromised host's rpm and ls lie.
Interview tip → Note that the package DB itself could be altered; downloaded packages from the official mirror are the true reference.
More on Packages, kernel and boot
You must upgrade the kernel on 50 production servers and be able to roll back if the new kernel misbehaves. Plan it.AdvancedYou need to pin a package version so routine updates don't upgrade it (e.g. Docker or PostgreSQL). How?BeginnerA package update broke an application. How do you roll it back?IntermediateYour servers can't reach the internet but need packages. How do you provide repositories?IntermediateYou need to compile and install software from source on a server that also uses packages. How do you avoid making a mess?IntermediateYou need to change kernel boot parameters (e.g. add `transparent_hugepage=never`) persistently. How?Intermediate