/STIGMA

Simple Python program to parse OpenSCAP result files and give results

Primary LanguagePythonMIT LicenseMIT

STIGMA

status

Easy Python program to parse OpenSCAP result files and give results. Like the following:

alt text

Instructions

  • Install OpenSCAP

    yum install openscap-utils

  • Download SCAP DISA STIG zip file from here

  • Unzip DISA STIG content

  • Evaluate your favorite profile, for example MAC-1_Public, and write XCCDF results into a results.xml file.

    # Example
    oscap xccdf eval --profile MAC-1_Public --results results.xml --cpe U_RedHat_5_V1R2_STIG_Benchmark-cpe-dictionary.xml U_RedHat_5_V1R2_STIG_Benchmark-xccdf.xml
  • Run STIGMA
    python stigma.py -P /path/to/results.xml 
  1. Optional Flags:
  • -T Integer representing acceptable pass percentage of all benchmarks Combined
  • -H Integer representing acceptable pass percentage of High Severity Benchmarks
  • -M Integer representing acceptable pass percentage of Medium Severity Benchmarks
  • -L Integer representing acceptable pass percentage of Low Severity Benchmarks