Interview Prep/Linux/Security, hardening and incident response

Your CISO asks you to harden a fresh Linux server baseline. What's on your list?

IntermediateScenarioSecurity, hardening and incident response
Answer

Situation read → Follow a benchmark and automate it.

What I'd do →

  1. Patch and enable automatic security updates.
  2. SSH: keys only, no root, allowlisted groups.
  3. Remove unneeded packages and services (systemctl list-unit-files --state=enabled).
  4. Host firewall default-deny inbound.
  5. SELinux/AppArmor enforcing.
  6. auditd plus log forwarding; time sync with chrony.
  7. Mount options (nodev,nosuid,noexec on /tmp), sysctl hardening.
  8. Scan with OpenSCAP: oscap xccdf eval --profile cis --report report.html /usr/share/xml/scap/ssg/content/ssg-rhel9-ds.xml.

Why → CIS gives an auditable standard; OpenSCAP proves compliance.

Interview tip → Say you bake the hardened baseline into the golden image, not apply it by hand.

All Linux questions Roadmap: Linux

More on Security, hardening and incident response