15.6. Generating SBOMs from scanned images


You can use RHACS to generate a Software Bill of Materials (SBOM) from scanned container images.

重要

Generation of SBOMs from the scanned container images is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.

For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope.

Scanner V4 must be enabled to generate SBOMs. For information about enabling Scanner V4, see the following resources:

SBOMs give you a detailed overview of software components, dependencies, and libraries within your application. RHACS uses the results of scans performed by Scanner V4 to generate an SBOM. You can generate an SBOM by using the RHACS portal, the roxctl CLI, or the RHACS API.

注意

Scanner V4 cannot generate SBOMs from results of delegated scans. In delegated scanning, you are using your secured cluster to index images and sending data to Central for vulnerability matching. SBOM generation is only available when using Scanner V4 configured in Central.

15.6.1. About SBOMs

A Software Bill of Materials (SBOM) is a digital record that lists the components of a piece of software and their origins. Organizations can use SBOMs to locate the presence of vulnerable software packages and components and respond more quickly to mitigate the risk. Additionally, being able to generate SBOMs assists organizations in complying with Executive Order 14028: Improving the Nations Cybersecurity.

SBOMs can contain different types of information, depending on the methods of data collection and how they are generated. The Cybersecurity & Infrastructure Security Agency (CISA) provides a document, Types of Software Bill of Materials (SBOM), that summarizes the types of SBOMs.

The type of SBOM that RHACS generates is "Analyzed." CISA notes that these types of SBOMs are created through an analysis of artifacts such as executables, packages, containers, and virtual machine images. Analyzed SBOMs provide the following benefits, as summarized by CISA:

  • They can provide information about software without an active development environment.
  • They can be generated without access to the build process.
  • You can use them to discover hidden dependencies that might be missed by other tools.

The SBOM generated by RHACS is in System Package Data Exchange (SPDX) 2.3 format.

15.6.2. Generating SBOMs

You can generate SBOMs by using the following methods:

Using the RHACS portal

Go to Vulnerability Management Results and locate the image that you want to use. Do one of the following actions:

  • In the image row, click the overflow menu kebab , and then select Generate SBOM.
  • Select the image to view the image details, and then click Generate SBOM.

A window opens that provides information about the image and the SBOM format that is generated. After you click Generate SBOM, RHACS creates the file in JSON format. Depending on your browser configuration, your browser can automatically download the file to your computer.

Using the roxctl CLI

In the roxctl CLI, run the following command:

$ roxctl image sbom --image=image-name 
1
1
Type the name and reference of the image that you want to generate an SBOM for, in string format. For example, nginx:latest or nginx@sha256:…​.

This command has the following options:

Expand
表 15.10. Options
OptionDescription

-f, --force

Bypass Central’s cache for the image and force a new pull from the scanner. The default is false.

-d, --retry-delay integer

Sets the time to wait between retries in seconds. The default is 3.

-i, --image string

Image name and reference, for example, nginx:latest or nginx@sha256:…​.

-r, --retries integer

Sets the number of times that Scanner V4 should retry before exiting with an error. The default is 3.

Using the API
You can use the RHACS API to create an SBOM. You must use the ROX_API_TOKEN for authorization to connect to the endpoint and generate the SBOM. The request payload is generated in JSON format.

See "GenerateSBOM" in the API reference for more information.

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部