ovh / debian-cis

PCI-DSS compliant Debian 10/11/12 hardening
Other
716 stars 127 forks source link

Feat: Add rules-details option #172

Closed fe80 closed 8 months ago

fe80 commented 1 year ago

Hello,

This feature add a a full report of all tested rules. This is useful for passing to a metric reporting solution. It's look like:

$ jq <<< $(cat /tmp/cis-audit.json)
{
  "rules": {
    "5.2.4_sshd_protocol": 0,
    "1.1.6_var_partition": 1,
    "6.2.8_check_user_dir_perm": 1,
    "3.1.2_disable_wireless": 0,
    "1.1.1.5_disable_squashfs": 1,
....
  },
  "available_checks": 233,
  "run_checks": 233,
  "passed_checks": 148,
  "conformity_percentage": 63.51
}

Regards,

ThibaultDewailly commented 8 months ago

Closing as part of cleaning