Nexus Void AI Research
SBOM, CycloneDX, SPDX, VEX, Software Supply Chain, Syft, Trivy, EU Cyber Resilience Act, How-to
How to Generate an SBOM: CycloneDX and SPDX Guide (2026)
How to generate an SBOM for npm, Python, Java and Docker with Syft, Trivy, cdxgen or npm sbom, validate it, automate it in CI and share it with VEX.
To generate an SBOM (software bill of materials), run a generator against your lockfiles or your built container image and export the result in CycloneDX or SPDX: for example syft dir:. -o cyclonedx-json=sbom.cdx.json, trivy fs --format cyclonedx --output sbom.cdx.json . or npm sbom --sbom-format cyclonedx. Validate it, generate it again on every release in CI, store it with the release, and pair it with VEX so customers can see which CVEs do not affect you.
Last updated 19 November 2026.
An SBOM is a complete, machine-readable inventory of every component in your software, including open-source dependencies, their exact versions and how they relate. For a startup it is how you answer, in minutes, the question enterprise buyers and incidents now ask: what is actually in your product? Enterprise security questionnaires increasingly ask for one, US federal guidance from CISA has made SBOMs standard practice, and the EU Cyber Resilience Act requires manufacturers of products with digital elements sold in the EU to draw one up, with its main obligations applying from December 2027.
The value is not the document. It is being able to answer "are we affected?" the same day the next critical vulnerability in a widely used package is published. In 2026 that happens often: NVD published 99,943 CVEs between January 1 and November 18, about double all of 2025, as we show in vulnerability statistics for 2026.
What goes into an SBOM?
At minimum, every component that makes up your software and enough metadata to identify each one precisely. NTIA's minimum elements set the common core:
Field | Purpose |
|---|---|
Component name and version | Identify exactly what is included |
Supplier or author | Know who produced it |
Unique identifier (purl, CPE) | Match against vulnerability data |
Dependency relationship | Show direct versus transitive |
Author of the SBOM data | Establish provenance |
Timestamp | Show how fresh it is |
Most generators also add licenses and file hashes. Licenses matter for legal review; hashes let a customer confirm the component is the one you claim.
Should you use CycloneDX or SPDX?
Both are open, machine-readable standards, and most tools can produce either.
CycloneDX | SPDX | |
|---|---|---|
Steward | OWASP (also standardised as ECMA-424) | Linux Foundation (ISO/IEC 5962:2021) |
Origin | Security and supply chain | License compliance |
Strong at | Vulnerabilities, VEX, services, hardware and crypto BOMs | Licensing detail, file-level provenance |
Common formats | JSON, XML | JSON, tag-value, RDF, YAML |
For most startups, pick the one your customers ask for. If nobody has asked yet, CycloneDX JSON is a sound default for security use, and you can produce SPDX from the same tools when a customer or regulator requires it.
How do you generate an SBOM?
Always generate from what is actually locked or installed, never from a hand-written list. Pick the method that matches what you ship.
Generate an SBOM from source code or a repository
Run a generator in the project root so it reads your lockfiles, including transitive dependencies:
Commit your lockfiles first. A generator reading only package.json or an unpinned requirements.txt will miss or guess versions.
Generate an SBOM for a Node.js project
npm 10 and later can produce one without extra tools:
Add --omit dev to describe only what ships to production.
Generate an SBOM for a Python project
Use the CycloneDX Python tool against your environment or requirements file:
Run the environment form inside the project's virtual environment so it lists what is really installed. Poetry and Pipenv projects can be read from their lockfiles with the same tool or with Syft.
Generate an SBOM for Java
Use the CycloneDX build plugins so the SBOM matches what Maven or Gradle resolved:
Generate an SBOM for a Docker image
Scan the built image so operating system packages from the base image are included, not just your application dependencies:
For a container you ship, the image SBOM is the one customers usually want, because it describes what actually runs. Our guide to scanning Docker images for vulnerabilities covers the matching scan.
How do you check that an SBOM is complete?
An SBOM that silently misses components is worse than none, because it gives false confidence. Before you share one:
Validate the schema.
cyclonedx validate --input-file sbom.cdx.jsonwith the CycloneDX CLI, orpyspdxtools -i sbom.spdx.jsonfor SPDX.Check every component has a version and a purl. Without a package URL, vulnerability tools cannot match the component.
Spot-check transitive dependencies. Pick a package you know is deep in the tree and confirm it is listed.
Compare counts between two generators once. Big differences point to a missing lockfile or a language the tool does not read.
How do you keep an SBOM up to date?
Generate it in CI on every release, never by hand. A manual SBOM is out of date the next time someone installs a package. A minimal GitHub Actions step:
Store each SBOM with the release it describes, named by version, so you can answer for a specific build months later. For container images, you can attach the SBOM to the image as a signed attestation, for example with cosign attest --predicate sbom.cdx.json --type cyclonedx <image>@<digest>, so customers can verify it came from you.
How do you share an SBOM with customers?
Send the format they asked for, for the exact version they run.
Add VEX. A raw SBOM matched against advisories produces a long CVE list, much of it in code you never call. A VEX (Vulnerability Exploitability eXchange) document states, per CVE, whether your product is affected and why, which is what turns an SBOM from a source of questions into an answer. CISA's VEX guidance sets out the minimum fields.
Agree how often you will send updates, usually per release.
Treat it as confidential if your dependency list would help an attacker; share under NDA where customers allow it.
What should you do with an SBOM once you have it?
Use it, or it is paperwork:
Answer incident questions fast: search the SBOM for the affected package and version the day an advisory lands.
Track vulnerabilities continuously by feeding it to a scanner, and prioritise with CVSS, EPSS and KEV rather than severity alone.
Review licenses before a funding round or acquisition.
Catch risky packages, including malicious and lookalike names. See what is a software supply chain attack?.
How does ARGUS generate SBOMs?
ARGUS makes the SBOM a by-product of scanning, so it is always current and costs no extra work.
An SBOM on every scan, with each component's name, version, purl, license, scope and artifact hashes taken from lockfile integrity data, exported as CycloneDX 1.6 or SPDX 2.3.
VEX from reachability. ARGUS turns its reachability results into VEX in OpenVEX or CycloneDX format: unreachable findings become "not affected" with the evidence, fixed ones become "fixed". It can also import a supplier's VEX to suppress CVEs they have declared not affecting you.
Scan an SBOM without sharing code. Upload a CycloneDX or SPDX JSON SBOM made by Syft, cdxgen or
npm sbom, and ARGUS runs dependency vulnerability and malicious-package checks on it, without access to your source.More than software. ARGUS also builds an infrastructure bill of materials from Terraform, Docker Compose, Dockerfile base images and Kubernetes workloads, plus cryptography and post-quantum readiness inventories (both in beta).
Limits: SBOM-only scans cannot assess code-level risks such as SAST findings, secrets or reachability, and report them as not assessed rather than clean. Read more about ARGUS SBOM and VEX, see what ARGUS produces on every scan, or scan a repository free.
Frequently asked questions
How do I generate an SBOM?
Run an SBOM generator against your project's lockfiles or your built container image, and export CycloneDX or SPDX. Common commands are syft dir:. -o cyclonedx-json=sbom.cdx.json, trivy fs --format cyclonedx --output sbom.cdx.json . and npm sbom --sbom-format cyclonedx. Validate it, then automate it in CI for every release.
How do I generate an SBOM for a Python project?
Install the CycloneDX tool with pip install cyclonedx-bom, activate the project's virtual environment and run cyclonedx-py environment --output-file sbom.cdx.json, or point it at requirements.txt with cyclonedx-py requirements. Syft and Trivy can also read Poetry and Pipenv lockfiles.
How do I generate an SBOM for a Docker image?
Scan the built image rather than the source, so base image OS packages are included. Use syft <image> -o spdx-json=sbom.spdx.json, trivy image --format cyclonedx --output sbom.cdx.json <image> or docker scout sbom <image>, and store the SBOM with the image version or attach it as a signed attestation.
CycloneDX or SPDX: which should I use?
Use whichever your customers or regulators ask for; good tools produce both. CycloneDX, from OWASP, is security-focused and has strong VEX support. SPDX, an ISO standard from the Linux Foundation, is strongest for license compliance. If nobody has asked, CycloneDX JSON is a sound default.
What are the minimum elements of an SBOM?
NTIA's minimum elements are supplier name, component name, component version, other unique identifiers such as a purl, the dependency relationship, the author of the SBOM data and a timestamp. Most generators also add licenses and hashes, which customers often expect.
Do early-stage startups really need an SBOM?
Increasingly yes. Enterprise buyers and security questionnaires ask for one, the EU Cyber Resilience Act requires one for products sold in the EU, and having it ready removes a sales blocker. It also lets you answer "are we affected?" within minutes when a major vulnerability is published.
How often should an SBOM be updated?
On every release, generated automatically in CI, because dependencies change constantly. Store each SBOM with the version it describes. A stale SBOM is worse than none during an incident because it gives a confident wrong answer.
What is the difference between an SBOM and VEX?
An SBOM lists what is in your software. VEX states, for specific CVEs affecting those components, whether your product is actually affected and why, for example because the vulnerable code is not reachable. Together they let customers see your real exposure instead of a raw CVE list.
Is an SBOM required by law?
For US federal software suppliers, SBOMs are expected under guidance that followed Executive Order 14028. In the EU, the Cyber Resilience Act requires manufacturers of products with digital elements to draw up an SBOM, with main obligations applying from December 2027. Many enterprise contracts now require one regardless.
Our read
An SBOM turns a panicked, multi-day audit into a single search, which is why it has moved from compliance paperwork to operational necessity. For a startup the winning approach is to make the SBOM a by-product of a system that already tracks your dependencies, so it is always current and free to produce, and to ship VEX with it so the conversation with a customer starts from what actually affects them.
Related: Startup security before your first enterprise deal · Reachability analysis · How to detect malicious npm packages.
DATA SOURCES
CISA SBOM: https://www.cisa.gov/sbom ; NTIA minimum elements: https://www.ntia.gov/report/2021/minimum-elements-software-bill-materials-sbom ; CycloneDX: https://cyclonedx.org/ ; SPDX: https://spdx.dev/ ; CISA VEX minimum requirements ; EU Cyber Resilience Act