Skip to content
This repository has been archived by the owner on Nov 24, 2018. It is now read-only.
/ inspec2ckl Public archive

DEPRECATED: A small parser to take the JSON full output of an InSpec profile and create/update the DISA Checklist file.

License

Notifications You must be signed in to change notification settings

aaronlippold/inspec2ckl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED: inspec2ckl

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.

Usage

Command Line

#> ./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

Attributes YAML

title: 'NGINX'
date: '3-13-2018'

Example

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

Known Issues

  • 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

NOTICE

© 2018 The MITRE Corporation.

Approved for Public Release; Distribution Unlimited. Case Number 18-3678.

NOTICE

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.

About

DEPRECATED: A small parser to take the JSON full output of an InSpec profile and create/update the DISA Checklist file.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages