When Log4Shell broke in December, the first question every security team asked was "where do we run Log4j?" Most could not answer quickly. The library was buried as a transitive dependency in their own code and inside dozens of vendor products whose contents they had no way to inspect.
A software bill of materials (SBOM) is meant to make that question a database query instead of a two-week hunt.
What an SBOM is
An SBOM is a formal, machine-readable inventory of the components that make up a piece of software: every library, module and package, with its version, supplier and relationship to other components. It is the software equivalent of the ingredients list on packaged food.
The idea is not new. Manufacturing has used bills of materials for decades, and open-source compliance teams have produced license inventories for years. What changed was Executive Order 14028, signed in May 2021, which directed the US government to require SBOMs from software suppliers. In July 2021, the NTIA published The Minimum Elements for a Software Bill of Materials. And on 3 February this year, NIST finalised its Secure Software Development Framework (SP 800-218), which is expected to shape what federal buyers ask suppliers to attest to.
The minimum elements
NTIA defines three groups of requirements.
Data fields, for each component:
| Field | Example |
|---|---|
| Supplier name | Apache Software Foundation |
| Component name | log4j-core |
| Version | 2.17.1 |
| Other unique identifiers | pkg:maven/org.apache.logging.log4j/log4j-core@2.17.1 (purl), CPE |
| Dependency relationship | included in my-service 3.4.0 |
| Author of SBOM data | build pipeline of Example Corp |
| Timestamp | 2022-02-15T09:30:00Z |
Automation support. SBOMs must be machine-readable in a standard format: SPDX, CycloneDX or SWID tags.
Practices. A new SBOM is generated for every release, with depth covering at least top-level dependencies (and ideally all transitive ones), known unknowns stated explicitly, and a way for customers to access it.
SPDX or CycloneDX?
Both are good, both are widely supported by tooling, and many generators can output either.
- SPDX, from the Linux Foundation, grew out of license compliance and became an international standard (ISO/IEC 5962:2021) last year.
- CycloneDX, from OWASP, was designed for security use cases from the start. It has first-class support for vulnerabilities and services.
A fragment of a CycloneDX SBOM looks like this:
{
"bomFormat": "CycloneDX",
"specVersion": "1.4",
"metadata": {
"timestamp": "2022-02-15T09:30:00Z",
"component": { "type": "application", "name": "payments-api", "version": "3.4.0" }
},
"components": [
{
"type": "library",
"group": "org.apache.logging.log4j",
"name": "log4j-core",
"version": "2.17.1",
"purl": "pkg:maven/org.apache.logging.log4j/log4j-core@2.17.1",
"hashes": [{ "alg": "SHA-256", "content": "..." }]
}
]
}If your customers do not specify a format, pick the one your tooling supports best and be ready to convert.
Producing SBOMs
The golden rule: generate SBOMs automatically in the build pipeline, from the actual artefact you ship, every time.
# Generate a CycloneDX SBOM from a container image with Syft
syft registry.example.com/payments-api:3.4.0 -o cyclonedx-json > payments-api-3.4.0.cdx.json
# Or from source during a Maven build
mvn org.cyclonedx:cyclonedx-maven-plugin:makeAggregateBom
# Check the SBOM for known vulnerabilities with Grype
grype sbom:./payments-api-3.4.0.cdx.json --fail-on highStore each SBOM next to the artefact it describes, in your registry or artefact repository, so you can always answer "what was in version 3.4.0?"
Consuming SBOMs
Producing SBOMs is the easy half. The value comes from using them.
flowchart LR
B[Build pipeline] -->|SBOM per release| R[(SBOM repository)]
V[Vendor SBOMs] --> R
F[New CVE feeds] --> M{Continuous matching}
R --> M
M -->|affected components| T[Tickets to owning teams]- Ingest SBOMs from vendors alongside your own, and store them in one searchable place.
- Match continuously. A component that was clean on release day can be vulnerable tomorrow. New CVEs should be matched against every stored SBOM automatically.
- Route findings to owners. An SBOM hit is only useful if it reaches the team that can upgrade.
The industry is also working on VEX (Vulnerability Exploitability eXchange), a way for suppliers to say "this CVE is present in a component but not exploitable in our product". It will help reduce the noise that raw SBOM matching produces.
Honest limitations
An SBOM will not tell you whether code is malicious, whether a vulnerable function is actually reachable, or whether a supplier's build system was compromised (as happened with SolarWinds). It is an inventory, not a verdict. Combined with build integrity measures such as signed artefacts and hardened pipelines, it becomes the foundation that the rest of supply-chain security is built on.
Where to start this quarter
- Add SBOM generation to the CI pipeline of your most critical application.
- Ask your top five software vendors whether they can provide SBOMs, and in which format.
- Load both into a tool that matches against vulnerability feeds and alerts owners.
- Run a "Log4Shell drill": pick a library and measure how long it takes to list every system that contains it.
If that drill takes more than an hour, SBOMs are the most valuable security investment you can make this year. Our secure code review and application security testing teams can help you build the pipeline.