bdenning / scap-example

Playing around with some SCAP content

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example SCAP Content

Some SCAP content that I've created with the intention of learning the SCAP XML.

# Install OpenSCAP and build the datastream
yum install -y openscap-scanner openscap-engine-sce python-jinja2
make

# Read the doco
firefox example-xccdf.html

# Evaluate compliance against the baseline
oscap xccdf eval example-xccdf-ds.xml

# Create an Ansible playbook to remediate non-compliant settings
make fix

# Remediate non-compliant hosts
ansible-playbook -c local -i localhost, example-playbook.yml

# Tidy up
make clean

About

Playing around with some SCAP content


Languages

Language:Makefile 55.7%Language:Python 30.8%Language:Shell 13.6%