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 →
- 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
- Remediate using the generated Ansible playbook (
oscap xccdf generate fix --fix-type ansible). - Bake compliance into the golden image and run scans on a schedule, storing reports centrally.
- 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.
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