SBOM generator

Free SBOM generator for CycloneDX and SPDX

Generate an SBOM for any repository or container image with one command, on your machine or in CI. Your source code never leaves your environment.

Generate an SBOM in two commands

Install the CLI. It also installs the generators your stack needs. No account, root or system Python required.

curl -fsSL https://sbombox.com/install.sh | sh
# In your project directory
sbombox generate -o sbom.json            # CycloneDX 1.6
sbombox generate -f spdx -o sbom.spdx.json
sbombox score sbom.json                  # what is missing

What the SBOM generator does

One command, any stack

sbombox generate detects your ecosystem from the manifest and lockfile, then runs the best generator for it: the package manager's own SBOM command where one exists, else cyclonedx-py, cyclonedx-npm, cdxgen or syft.

CycloneDX or SPDX

Writes CycloneDXCycloneDXOne of the two standard SBOM file formats, maintained by the OWASP Foundation. Popular with security teams. 1.6 by default. Pass --format spdx for SPDXSPDXOne of the two standard SBOM file formats, maintained by the Linux Foundation and published as an international standard (ISO/IEC 5962). Strong on licence information. 2.3. Both are accepted under the CRACRA: EU Cyber Resilience ActAn EU law that requires products with software in them to be secure when sold and kept secure with updates. It requires an SBOM and the reporting of actively exploited vulnerabilities., NTIA and CISA guidance.

Container images too

sbombox generate --image ghcr.io/acme/api:1.4.0 reuses the SBOM BuildKit attached to the image if there is one, else scans it with syft. Private registries use your docker login.

Runs where your code lives

Generation happens on your machine or in your CI runner. Nothing is uploaded unless you add --upload, and then only the finished SBOM.

Quality score on every run

sbombox score sbom.json shows what the generator missed (versions, purls, suppliers, hashes, licences) against BSI TR-03183-2, CISA, NTIA and CRA readiness rules.

Every release, in CI

Use the GitHub Action or the GitLab CI template to generate an SBOM on each release, gate builds with sbombox check --fail-under 7, and keep one SBOM per version.

Supported languages and package managers

Commit your lockfile. Without it, no generator can list transitive dependencies or exact versions.

EcosystemPackage managersGuide
JavaScript & Node.jsnpm, pnpm, Yarn, BunJavaScript & Node.js SBOM guide
Pythonuv, Poetry, pip, PipenvPython SBOM guide
Java & KotlinMaven, GradleJava & Kotlin SBOM guide
GoGo modulesGo SBOM guide
RustCargoRust SBOM guide
.NETNuGet.NET SBOM guide
RubyBundlerRuby SBOM guide
PHPComposerPHP SBOM guide
Container imagesDocker, OCI, any registryContainer images SBOM guide

Generate an SBOM on every release

Add SBOM generation to your pipeline so each release gets its own SBOM. See the GitHub Action, GitLab CI, Jenkins, Azure Pipelines, Bitbucket Pipelines and CircleCI guides, or build a config with the CI config generator.

Comparing open source SBOM generators? Read Syft vs Trivy vs cdxgen and SBOM tools by language.

SBOM generator FAQ

What is an SBOM generator?

An SBOM generator is a tool that reads your source code, lockfiles or container image and writes a Software Bill of Materials: a machine-readable list of every component and version in the product, in CycloneDX or SPDX format.

Is the SBOMBox SBOM generator free?

Yes. The CLI generates and scores SBOMs without an account. You only need an account to store SBOMs, monitor them for vulnerabilities and share them; three projects are free.

How do I generate an SBOM?

Install the CLI with `curl -fsSL https://sbombox.com/install.sh | sh`, then run `sbombox generate -o sbom.json` in your project directory. Commit your lockfile first so the SBOM lists transitive dependencies with exact versions.

Does the SBOM generator upload my source code?

No. It runs locally or in your CI runner. Only the finished SBOM is uploaded, and only when you pass `--upload` or run `sbombox push`.

Can I generate an SBOM for a Docker image?

Yes. Run `sbombox generate --image <ref>`. It uses the SBOM attached to the image by BuildKit when present, otherwise it scans the image with syft. Use `--platform` for multi-platform images.

Which SBOM generator is best: Syft, Trivy or cdxgen?

It depends on your stack. SBOMBox picks one for you per ecosystem and falls through to the next if a tool fails or returns no components. To compare them yourself, read our Syft vs Trivy vs cdxgen guide.

Can I keep my existing SBOM tool?

Yes. Upload an SBOM from any generator with `sbombox push` and SBOMBox scores, stores and monitors it the same way.

Is the generated SBOM enough for the Cyber Resilience Act?

The CRA asks for a machine-readable SBOM covering at least top-level dependencies. Run `sbombox compliance sbom.json -p cra-readiness` to see which requirements pass and what to fix. It is a readiness check, not legal advice.

Store, score and monitor every SBOM

Push generated SBOMs to a project for daily vulnerability checks and per-release history. Three projects free.

Sign up free