Interview Prep/Linux/Security, hardening and incident response

You need to prove to auditors that your servers meet CIS Level 1. How do you produce evidence repeatedly?

AdvancedScenarioSecurity, hardening and incident response
Answer

Situation read → Automated scanning and remediation as code.

What I'd do →

  1. Scan with OpenSCAP and the SCAP Security Guide profile, saving reports:
oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_cis_server_l1 \
  --results results.xml --report report.html /usr/share/xml/scap/ssg/content/ssg-rhel9-ds.xml
  1. Remediate using the generated Ansible playbook (oscap xccdf generate fix --fix-type ansible).
  2. Bake compliance into the golden image and run scans on a schedule, storing reports centrally.
  3. Document justified exceptions.

Why → Auditors want consistent, timestamped evidence, not screenshots.

Interview tip → Mention that some CIS controls break apps, so you test and record exceptions rather than applying blindly.

All Linux questions Roadmap: Linux

More on Security, hardening and incident response