Skip to main content
vet supports CycloneDX v1.6 SBOM generation. The generated SBOM lists all packages and their dependencies. It also includes security metadata about detected vulnerabilities, malware, and license information. Vet writes CycloneDX, not SPDX. To scan an SBOM that another tool wrote, including SPDX, see Scan an SBOM.

Generate the SBOM

Generate an SBOM with a custom application name:
--report-cdx-app-name is optional. With -D, the default name is the last element of the -D path, so -D . gives the name .. With --lockfiles, the default name is vet-scanned-project.

What the SBOM includes

  • Package inventory: the packages in your manifests and lockfiles, and the dependency graph. For a manifest with no lockfile, such as pom.xml, add --transitive to include transitive dependencies, to a depth of 2. Set --transitive-depth to go deeper.
  • Vulnerabilities: known vulnerabilities from OSV and other sources, with CVSS ratings
  • Licenses: the license identifiers of each component
  • Malware: the results of malicious package analysis, as vulnerabilities entries
To also add the AI SDKs and services that your code calls, see Generate the AI BOM.

Write other reports in the same scan

Generate multiple report formats simultaneously:

Generate the SBOM in CI/CD

Validate and convert the SBOM

Use the CycloneDX CLI to validate the SBOM or convert it to XML. Install it with brew install cyclonedx/cyclonedx/cyclonedx-cli, or run its container image:
Tools such as Dependency-Track can import the SBOM to monitor it for new vulnerabilities.

Sample SBOMs

Chat Server SBOM

Download a sample SBOM for a Node.js chat app

Express.js SBOM

Download a sample SBOM for an Express.js app

Next steps

CycloneDX Documentation

Learn more about the CycloneDX v1.6 JSON specification

Vet Repository

Explore Vet’s complete SBOM generation capabilities

Scan an SBOM

Scan an SBOM that your build tool generates