NOTE: This repo is no longer maintained here. Please use inspec_tools.
A small parser to take the JSON full output of an InSpec profile results and update the DISA Checklist file.
#> ./inspec2ckl --help
Usage: inspec2ckl.rb [options]
-j --json : Path to Inspec results json file
-c --cklist : Path to Stig Checklist file
-t --title : Title of Stig Checklist file
-d --date : Date of the Stig Checklist file
-a --attrib : Path to attributes yaml file
-o --output : Path to output checklist file
-V --verbose : verbose run
title: 'NGINX'
date: '3-13-2018'
To run the parser:
./inspec2ckl exec -c checklist.ckl -j results.json -o output.ckl
To run the parser without xccdf:
./inspec2ckl exec -j results.json -o output.ckl
To run the parser with title and date:
./inspec2ckl exec -j results.json -o output.ckl -t nginx -d 03-13-2018
To run the parser with title and date from attrib yaml
./inspec2ckl exec -j results.json -o output.ckl -a attributes.yml
To run the parser verbose:
./inspec2ckl exec -c checklist.ckl -j results.json -o output.ckl -V
Help:
./inspec2ckl help
Version:
./inspec2ckl -v
- Validation for the Json and XML files not yet implemented
- More Issues welcome - please submit suggestions or issues on the board.
- Error occurred while installing libxml-ruby (2.9.0) on MacOS. Solution: https://gist.github.com/unixcharles/1226596
© 2018 The MITRE Corporation.
Approved for Public Release; Distribution Unlimited. Case Number 18-3678.
This software was produced for the U. S. Government under Contract Number HHSM-500-2012-00008I, and is subject to Federal Acquisition Regulation Clause 52.227-14, Rights in Data-General.
No other use other than that granted to the U. S. Government, or to those acting on behalf of the U. S. Government under that Clause is authorized without the express written permission of The MITRE Corporation.
For further information, please contact The MITRE Corporation, Contracts Management Office, 7515 Colshire Drive, McLean, VA 22102-7539, (703) 983-6000.