Skip to content
Simple Python program to parse OpenSCAP result files and give results
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Add --no-color option Dec 9, 2016
tests refactored structure Feb 13, 2015
.gitignore just python-coveralls Feb 25, 2015
LICENSE initial commit Feb 13, 2015
README.md some tweaks Feb 13, 2015
requirements.txt just python-coveralls Feb 25, 2015
sample_out.png readme Feb 13, 2015

README.md

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
You can’t perform that action at this time.