The build phase is generally the most appropriate stage for generating a Software Bill of Materials (SBOM) because it provides visibility into the software components and dependencies assembled into the resulting application artifact.
During a build, dependency managers, package-resolution processes, compilers, and build tools determine which components and versions are incorporated into the software.
Generating the SBOM at this stage enables the organization to associate component information with a particular build artifact.
The resulting inventory may include direct dependencies, transitive dependencies, library versions, package identifiers, and supplier information.
This improves vulnerability tracking, software supply-chain transparency, and incident-response readiness.
For example, when a vulnerability is disclosed in a third-party library, security engineers can compare the affected package against stored SBOMs to identify potentially vulnerable application builds.
CISA ' s guidance on SBOM document types recognizes that build-generated SBOMs can provide greater confidence in the correspondence between the component inventory and the resulting product artifact.
Generating an SBOM only during user acceptance testing or after production deployment may delay identification of vulnerable dependencies.
Requirements gathering occurs before the final dependency composition is established.
A mature implementation should regenerate the SBOM for each relevant build and associate it with the corresponding artifact version.
Official reference / study topic: CISA, Types of Software Bill of Materials Documents and Build-Generated SBOMs.
===============