Skip to main content

Parse XCCDF files and produce human-readable outputs

Project description

xccdfparser

Extensible parser for XCCDF Benchmark/Result XML files.

pip install xccdfparser

Produces a human-readable JSON from an incomprehensible XCCDF schema/result file:

For every TestResult tag in the input file,

  • Benchmark Details

    • Benchmark ID
    • Rule ID
    • Title/Description
    • Fixtext
  • Dictionary

    • Metadata
      • Timestamp
      • Target Machine
      • IP address(es)
      • XCCDF Domain
    • Results
      • Rule ID
      • Value

To run the parser on a file input.xml, just use:

xccdfparser -o output.json input.xml

OR

xccdfparser input.xml

Testing xccdfparser

To test the pre-built tox environments:

First, install tox if you don't have it:

pip install tox

Then in the package directory:

tox

Or for a specific environment:

tox -e py36

Project details


Release history Release notifications

This version
History Node

1.5.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
xccdfparser-1.5.1-py2-none-any.whl (94.4 kB) Copy SHA256 hash SHA256 Wheel py2
xccdfparser-1.5.1.tar.gz (90.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page