Automate CIS Benchmark auditing of a Linux host using OpenSCAP and the SCAP Security Guide content

domain: open-scap.org · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install the openscap-scanner package (the oscap CLI) and the distribution's SCAP Security Guide (SSG) content package, which ships datastream XML files mapping to CIS, STIG, and other profiles for that OS release.
  2. List available profiles in the datastream with oscap info <ssg-datastream.xml> to find the exact CIS profile ID for your OS version.
  3. Run oscap xccdf eval --profile <cis-profile-id> --results results.xml --report report.html <ssg-datastream.xml> to evaluate every rule in the profile against the live system.
  4. Review the generated HTML report for pass/fail/not-applicable results per control, optionally applying SSG-provided Ansible or Bash remediation content for failing controls.
  5. Schedule the scan via cron, a systemd timer, or a config-management job, and archive the results.xml artifacts as compliance evidence over time.

Known gotchas

Related routes

Automate FedRAMP System Security Plan control evidence collection and formatting
fedramp.gov · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans