Skip to content

Commit

Permalink
Merge pull request #4 from chainguard-dev/scap-workbench
Browse files Browse the repository at this point in the history
add scap workbench docs
  • Loading branch information
joshrwolf authored Jul 11, 2024
2 parents f558960 + af3bf9f commit d267981
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ and available within Chainguard's openscap image, we'll refer to this as the
docker run --name target -d cgr.dev/chainguard/wolfi-base:latest tail -f /dev/null

# Run the scan image against the target image
# NOTE: This is a highly privileged container since we're scanning a container
being run by the host's docker daemon.
# NOTE: This is a highly privileged container since we're scanning a container being run by the host's docker daemon.
docker run -i --rm -u 0:0 --pid=host \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(pwd)/out:/out \
Expand All @@ -62,6 +61,12 @@ directory. The `report.html` file will contain a human-readable report of the
scan results, and the `results.xml` file will contain the raw results of the
scan.

### Alternative Uses

The SSG content in this repository can be used by any other tool that supports
the format, such as SCAP Workbench. For an alternative walkthrough of using
SCAP workbench, see [alternative uses](./docs/alternatives.md).

## Updates

The Chainguard STIG profile is re-evaluated and evolves alongside Wolfi OS and
Expand Down
30 changes: 30 additions & 0 deletions docs/alternatives.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Alternative Uses

The SSG content in this repository can be used by any other tool that supports
the format. The sections below provide examples of using other tools.

## XCCDF Files

As an alternative to the datastream file, the XCCDF format is also supported. While they represent identical checks, the format may be preferable by certain tooling.

The XCCDF files are suffixed with `-xccdf` in the folder. For example, the GPOS profile is located at:

```
./gpos/xml/scap/ssg/content/ssg-chainguard-xccdf/ssg-chainguard-xccdf/
```

## SCAP Workbench

The following will walk through using SCAP Workbench alongside with GPOS Datastream file.

1. Clone the `chainguard-dev/stigs` repository

2. Navigate to the directory with the XCCDF files, by default this is:

```
./gpos/xml/scap/ssg/content/ssg-chainguard-xccdf/OvalChecks/
```

3. From that directory, load the content into SCAP Workbench by selecting `Other SCAP Content > Load Content`.

4. The GPOS content has a single profile, which when loaded into SCAP Workbench can be customized and saved as a Tailoring file.

0 comments on commit d267981

Please sign in to comment.