Interview Prep/Linux/Security, hardening and incident response

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.

All Linux questions Roadmap: Linux

More on Security, hardening and incident response