Compliance requires that every server's file system be checked for unexpected changes daily. What do you implement?
IntermediateScenarioSecurity, hardening and incident response
Answer
Situation read → File integrity monitoring.
What I'd do →
sudo dnf install -y aide
sudo aide --init
sudo mv /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz
sudo aide --check
Schedule aide --check daily with a timer, send reports centrally, and re-baseline after approved changes (aide --update).
Why → AIDE hashes binaries and configs and reports differences.
Interview tip → Store the baseline DB off-host or read-only, or an attacker just updates it.
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?IntermediateA critical OpenSSL CVE is announced. How do you find and patch affected servers quickly?Intermediate