Interview Prep/Linux/Packages, kernel and boot

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 →

  1. Snapshot the disk and mount it read-only on a clean forensic host.
  2. Verify using the clean host's rpm against 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.

All Linux questions Roadmap: Linux

More on Packages, kernel and boot