Software bill of materials (SBOM)
A Software Bill of Materials (SBOM) might be required for compliance with government security regulations.
You can generate an SBOM through Contrast, through a simple API, or with a command through the Contrast command line interface (CLI).
The Contrast SBOM meets the specifications of the OWASP's CycloneDX SBOM standard and the international open SPDX standard. It contains information about the software that your application uses including:
Libraries - Open source and third-party components present in a codebase
Licenses that govern the software components
Versions of software components used in the codebase
Note
Currently supports CycloneDX v1.4 and SPDX 2.2.
The Contrast SBOM also meets the requirements of the National Telecommunications and Information Administration (NTIA). It includes the author name, supplier name, component name and version, component relationship, timestamp and other unique identifiers like PURL and package SPDX identifier.
Before you begin
A Contrast Assess license is required for export via Contrast
Supported languages: Java, .NET Framework, .NET Core, Node.js, Python, Ruby, Go, PHP
Steps
There are three options for generating an SBOM report.
To generate a report with Contrast:
Select Applications in the header.
Select the Reports icon ( ) located at the top of the application list.
In the dropdown, select Generate Software Bill Of Materials (SBOM) to generate and download a copy of the SBOM. Supports CycloneDx and SPDX standards.
To generate a report with API:
For CycloneDX: Make a GET
<HOST>/Contrast/api/ng/<ORG_ID>/applications/<APP_ID>/libraries/sbom/cyclonedx
request.For SPDX: Make a GET
<HOST>/Contrast/api/ng/<ORG_ID>/applications/<APP_ID>/libraries/sbom/spdx
request.
See REST API for more information about using APIs.
To generate a report with CLI:
Use the
--save
command. Choose the type with--save cyclonedx
or--save spdx
. See CLI commands for more information.Note
.NET support is currently limited for CLI.
Use the CLI to generate the SBOM for static SCA results.
The SBOM generated via CLI will provide class usage information of the application the CLI is registered to that has library data.