Skip to content
ComplianceAsCodePublic

About

Next Gen CVE scanning for Fedora-based distros.

Resources

Stars

10 stars

Watchers

2 watching

Forks

Repository files navigation

veseer

This tool scans a Red Hat based Linux environment and reports present CVEs based on installed RPM packages and Red Hat provided VEX data. The tool can scan local file systems, mounted VM images or container images.

The tool is based on Claircore and clair-action).

Note

veseer was formerly called cvetool. The project was renamed because the original name was too generic and too narrowly focused on CVEs. The command is now veseer, and the default database directory has changed from ~/.local/share/cvetool to ~/.local/share/veseer.

Install

You can install veseer from the copr repos below.

  • rhel copr badge - RHEL
  • fedora copr badge - Fedora

Build

Install Go development tools and libraries (golang) and GNU make. Run

$ make build

to build the CLI tool.

Run

Update (or Initialize) the Database

In order to use the tool for CVE analysis and report generation first the CVE database must be initialized and filled with CVE records.

Run

$ ./veseer update

to create or update the DB (SQLite).

The --db-path argument is the path to the database location.

Note

If the parameter is omitted the tool creates database for the user in ~/.local/share/veseer/matcher.db.

If you previously used cvetool, you can keep using your existing database by passing --db-path ~/.local/share/cvetool/matcher.db to veseer update and veseer scan.

The initial update procedure could take up to 30 minutes. Further incremental updates will be significantly faster.

Scan Local System

Run

$ ./veseer scan --root-path=/

to scan the underlying system and generate vulnerabilities report.

The --root-path argument defines root directory of the target file system.

For local or mounted RHEL filesystem roots, veseer automatically discovers the target's enabled repositories with DNF and generates a temporary package catalog for the scan. The temporary catalog and DNF cache are removed when the scan finishes.

Scan a Container Image

Run

$ ./veseer scan --image-path=./rhel-10-ubi.tar

to scan a podman/docker image save ...-compatible .tar image and generate vulnerabilities report.

Scan a Virtual Machine Image

The tool does not directly support indexing VM images. But it can work with a mounted file system, e.g. with guestmount.

Run

$ mkdir -p ./rhel10-vm
$ guestmount -a ~/.local/share/gnome-boxes/images/rhel10.0 -i --ro ./rhel10-vm

to mount the file system, and then

$ ./veseer scan --root-path=./rhel10-vm --db-path=./matcher.db

to scan and generate vulnerabilities report.

Generate and Use a Package Catalog

Offline filesystem scans and container image scans can use an explicit catalog instead of discovering repositories from the target root. Generate a catalog on a connected RHEL system with the relevant repositories enabled:

$ ./veseer catalog --output-path=./rhel10.catalog

The standalone veseer catalog command remains available for preparing a catalog ahead of a scan. Use a catalog for the target's RHEL major version and architecture, then pass it to the offline filesystem or image scan with --catalog-path:

$ veseer scan --root-path=./rhel10-vm --db-path=./matcher.db --catalog-path=./rhel10.catalog
$ veseer scan --image-path=./rhel-10-ubi.tar --db-path=./matcher.db --catalog-path=./rhel10.catalog

Report Formats

Default report format is plain, which represents basic information about found vulnerabilities in a human-readable form. It could be changed with the --format argument. Possible options are 'clair', 'quay' and 'sarif'.

Help

Run the tool with --help argument for detailed information about invocation options.

About

Next Gen CVE scanning for Fedora-based distros.

Resources

Stars

10 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages