Interview Prep/Linux/Security, hardening and incident response

After the compromise you need to find how the attacker got in. Where do you look?

AdvancedScenarioSecurity, hardening and incident response
Answer

Situation read → Timeline reconstruction from logs and the disk snapshot.

What I'd do →

  1. Auth logs: grep -E 'Accepted|Failed' /var/log/secure* (or auth.log), especially unusual IPs or keys.
  2. Web logs around the first bad timestamp: strange POSTs, webshell paths, ../ traversal, ${jndi:.
  3. Recently modified files on the mounted snapshot:
find /mnt/evidence -xdev -newermt "2026-11-08 00:00" ! -newermt "2026-11-09 03:00" -type f -ls
  1. Package integrity: rpm -Va or debsums -c against the snapshot root.
  2. Audit logs: ausearch -ts 11/08/2026 -k exec.

Why → The first malicious event tells you the vulnerability to fix fleet-wide.

Interview tip → Use central logs as the source of truth, since local ones may have been tampered with.

All Linux questions Roadmap: Linux

More on Security, hardening and incident response