Pcornel
Automation · Compliance Automation

CIS Benchmarks

Cheat sheet · https://pcornel.dk/topic.php?topic=6017

Back to the Topic

Answer

CIS Benchmarks are consensus hardening guides for operating systems, cloud and applications, with Level 1 and Level 2 profiles. Tools like CIS-CAT, OpenSCAP or Ansible roles check and apply them.

Remember

  • Level 1 is practical; Level 2 is stricter.
  • Test before applying to production.
  • Document exceptions.

First checks

  • oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_cis ... — CIS via OpenSCAP
  • CIS-CAT results — official tool
  • Ansible CIS roles (remediation) — automation

Verify in this order

benchmark → scan → remediate → rescan

Where it usually breaks

Commit/input → runner/job → build/test artifact → deployment request → target rollout/reconcile → effective version/config → health/readiness → workload.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6017

Confirmation

Confirm action

Continue?