Skip to content

Security scanner

SBOM

A software bill of materials (SBOM) is an industry standard mechanism of surfacing metadata about dependencies in images or applications. Source. An SBOM can be created based on the source code, binaries (language-specific artifacts or container images) or dynamically at runtime.

formats

SBOM tools

Software Composition Analysis (SCA)

vulnerability scanner

These scanners usually allow to scan binaries, but some also allow to start form a existing SBOM file.

  • OWASP DependencyCheck scanner from owasp (cli or build plugins for maven, gradle, etc.)
  • Trivy multi purpose scanner.
  • Grype a vulnerability scanner for container images and filesystems
  • Clair a vulnerability scanner for container images from redhat

examples

# generate spdx sbom from maven project
spdx-sbom-generator
## creates: bom-Java-Maven.spdx

# scan spdx or cyclonedx sbom for vulnerabilities
trivy sbom bom-Java-Maven.spdx
## or 
grype sbom:/bom-Java-Maven.spdx

## generate sbom from jar
syft --output cyclonedx-json name.jar > sbom-cyclonedx.json
syft --output spdx-json name.jar > sbom-spdx.json

## scan jar for vulnerabilities
grype name.jar

vulnerability databases

Common Platform Enumeration (CPE)

Is a structured naming scheme for information technology systems, software, and packages.

Lists