Scan your whole stack
From OX Research Newsroom
Are you using @cyclonedx/cdxgen?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v12.9.2
@cyclonedx/cdxgen was last scanned on 13 Nov 2026 at version 12.9.2. Risk score 5 of 100 (low). High-severity rules fired.
| Version | Published | Status |
|---|---|---|
| 12.9.2 LATEST | 13 Nov 2026 | 3 rules fired |
| 12.9.1 | 6 Nov 2026 | 3 rules fired |
| 12.9.0 | 22 Oct 2026 | 3 rules fired |
| 12.8.8 | 22 Oct 2026 | Not shown |
| 12.8.6 | 14 Oct 2026 | Not shown |
Findings for v12.9.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
Several behaviors that are each common on their own, such as reading registry credentials, contacting a variable host or running shell commands, appear together in this package in a combination associated with attacks. The finding message lists the behaviors that were combined.
HIGHThe score describes 12.9.2; other versions have their own rules, not their own score.
0 CRITICAL 1 HIGH 2 MEDIUM 0 LOW
The publisher’s own README, as collected from the registry.
[![JSR][badge-jsr]][jsr-cdxgen]
[![NPM][badge-npm]][npmjs-cdxgen]
[![GitHub Releases][badge-github-releases]][github-releases]
[![NPM Downloads][badge-npm-downloads]][npmjs-cdxgen]
[![GitHub License][badge-github-license]][github-license]
[![GitHub Contributors][badge-github-contributors]][github-contributors]
[][swh-cdxgen]
cdxgen is a CLI tool, library, REPL, and server to create, validate, sign, and verify software BOMs. It generates CycloneDX JSON BOMs and supports SPDX 3.0.1 JSON-LD export. CycloneDX is a full-stack BOM specification that is easily created, human and machine-readable, and simple to parse. The tool supports CycloneDX specification versions from 1.5 - 1.7.
Supported BOM formats:
Supported output document formats:
cdxgen --format spdx or cdx-convert)| Persona | What cdxgen helps you do | First command | Read next |
|---|---|---|---|
| Developers | Generate a CycloneDX BOM from a local repo, git URL, purl, or container image | cdxgen -o bom.json . |
[CLI Usage][docs-cli], [Supported Project Types][docs-project-types] |
| AI platform teams | Generate AI/ML BOMs, catalog prompt/model/MCP surfaces, and run AI-BOM governance | aibom . |
AI-BOM Guide, AI-BOM lesson |
| Hardware teams | Generate an HBOM or merged HBOM+OBOM host view for the current host | hbom -o hbom.json |
HBOM guide, HBOM lesson |
| AppSec | Enrich BOMs with evidence, run BOM audit rules, and feed downstream security workflows | cdxgen -o bom.json --profile appsec --evidence --bom-audit . |
BOM Audit, Threat Model |
| SOC analysts | Build OBOM inventories for live hosts and triage runtime posture issues | obom -o obom.json --deep --bom-audit --bom-audit-categories obom-runtime |
OBOM lessons, [Server Usage][docs-server] |
| Compliance teams | Validate BOM quality, check SCVS/CRA posture, and export SPDX deliverables | cdx-validate -i bom.json --benchmark scvs-l2,cra |
cdx-validate, cdx-convert, [Permissions][docs-permissions] |
| Security Teams | Dynamically trace executions to capture cryptographic activities, CBOM properties, software components, and services | tracebom --cbom-output cbom.json -- npm test |
Threat Model |
hbom when you need a CycloneDX hardware inventory for the current host rather than a software dependency graph.hbom --dry-run first when you want a read-only partial HBOM plus an exact list of blocked hardware probe commands before a full collection run.hbom diagnostics when you want a focused summary of missing native utilities and permission-denied enrichments before deciding whether to install host packages or rerun with --privileged.hbom --include-runtime when you want one topology-aware CycloneDX host document that merges hardware inventory with runtime evidence using strict, non-guessing joins.--profile appsec, --evidence, and --bom-audit when you want richer security context.tracebom to dynamically profile applications & services and capture negotiated TLS cipher suites, protocols, cryptographic libraries, dynamically resolved software components, and services in CycloneDX 1.7 format.--include-formulation plus --bom-audit --bom-audit-categories ai-bom when you want one AI-BOM workflow for prompt files, AI services, MCP configs, and model metadata.aibom when you want the same defaults in one dedicated CLI, including direct Hugging Face purls/URLs and direct Modelfile / .gguf inputs.obom for live-system and runtime inventory on Linux, Windows, and macOS hosts.cdx-validate to assess structural and compliance posture, then cdx-convert when SPDX output is required.Most SBOM tools are like simple barcode scanners. For easy applications, they can parse a few package manifests and create a list of components only based on these files without any deep inspection. Further, a typical application might have several repos, components, and libraries with complex build requirements. Traditional techniques to generate an SBOM per language or package manifest either do not work in enterprise environments or don't provide the confidence required for both compliance and automated analysis. So we built cdxgen - the universal polyglot SBOM generator that is user-friendly, precise, and comprehensive!
Our philosophy:
--dry-run mode for review-first workflows.Please visit our [documentation site][docs-homepage] for detailed usage, tutorials, and support documentation.
Sections include:
Install the npm package without the optional binary plugins for basic SBOM generation.
npm:
npm install -g @cyclonedx/cdxgen --omit=optional --ignore-scripts --min-release-age=2
For a full and rich experience with support for multiple BOM types, remove --omit=optional.
npm install -g @cyclonedx/cdxgen --ignore-scripts --min-release-age=2
pnpm:
pnpm add -g @cyclonedx/cdxgen --omit=optional --ignore-scripts --minimum-release-age=2880
bun:
bun install -g @cyclonedx/cdxgen --ignore-scripts
Installing @cyclonedx/cdxgen exposes these commands:
| Command | Purpose | Standalone GitHub release binary |
|---|---|---|
cdxgen |
Generate CycloneDX / SPDX BOMs from source, images, binaries, git URLs, or purls | yes |
aibom |
Generate CycloneDX AI/ML BOMs from source, Hugging Face URLs/purls, Modelfiles, or GGUF artifacts (-t ai defaults) |
yes |
hbom |
Generate a CycloneDX hardware BOM for the current host | yes (hbom, hbom-slim) |
tracebom |
Trace command execution to capture dynamic CBOM, cryptographic properties, software components, and services | yes |
cdx-audit |
Prioritize existing BOM dependencies for upstream supply-chain review using explainable risk signals | yes |
cdx-convert |
Convert CycloneDX JSON to SPDX 3.0.1 JSON-LD | yes |
cdx-sign |
Sign BOMs with JSF signatures | yes |
cdx-validate |
Validate BOMs and benchmark posture | yes |
cdx-verify |
Verify BOM signatures | yes |
cdxi |
Open the interactive REPL | no |
evinse |
Add evidence, reachability, and service context | no |
cbom |
Alias for CBOM-oriented cdxgen defaults |
yes |
obom |
Alias for cdxgen -t os |
yes |
saasbom |
Alias for SaaSBOM-oriented cdxgen defaults |
yes |
spdxgen |
Alias for cdxgen --format spdx |
use cdxgen |
cdxgen-secure |
Alias for hardened cdxgen defaults |
use cdxgen |
Standalone GitHub release binaries are published for cdxgen, cdxgen-slim, aibom, cbom, obom, saasbom, hbom, hbom-slim, cdx-audit, cdx-convert, cdx-sign, cdx-validate, cdx-verify, and tracebom.
hbom release binaries bundle both @cdxgen/cdx-hbom and the matching @cdxgen/cdxgen-plugins-bin* companion helpers for the target platform. hbom-slim keeps the dedicated hardware collector (@cdxgen/cdx-hbom) but omits the companion plugin bundle when you want the smallest single-file HBOM executable.
The cbom and saasbom release binaries bundle the Atom analysis stack (@appthreat/atom and @appthreat/atom-parsetools) plus protobuf export support (@cdxgen/cdx-proto and @bufbuild/protobuf). The obom release binary bundles the matching platform plugin package, pruned to runtime OS inventory helpers, plus the same protobuf export support. These aliases therefore support --export-proto --proto-bin-file <file> without requiring a separate npm install.
cdx-audit is designed to accelerate upstream dependency review with explainable, evidence-backed risk prioritization. It complements provenance, reproducibility, and manual investigation rather than replacing them.
For AI-heavy repositories, cdxgen also supports an AI-BOM workflow via the aibom command or the -t ai project type aliases (ai, aibom, ai-bom). This emits AI service/model evidence and pairs naturally with the ai-bom BOM-audit category alias for governance, security, performance, AI-agent, and MCP findings.
For host inventories, hbom --include-runtime produces a merged HBOM + OBOM view with strict topology links such as interface-name, driver-module, storage/runtime, and explicit secure-boot trust matches, plus a host-topology BOM audit pack for higher-confidence host findings. When the live hardware collector reports missing utilities or permission-sensitive enrichments, use hbom diagnostics (or inspect the derived cdx:hbom:analysis:* summary properties) before deciding whether a rerun with --privileged is justified.
To run cdxgen without installing (hotloading), use the pnpm dlx command.
corepack pnpm dlx @cyclonedx/cdxgen --help
You can call any packaged command the same way:
corepack pnpm dlx --package=@cyclonedx/cdxgen cdx-audit --help
corepack pnpm dlx --package=@cyclonedx/cdxgen cdx-convert --help
corepack pnpm dlx --package=@cyclonedx/cdxgen cdx-validate --help
corepack pnpm dlx --package=@cyclonedx/cdxgen cdx-sign --help
corepack pnpm dlx --package=@cyclonedx/cdxgen cdx-verify --help
corepack pnpm dlx --package=@cyclonedx/cdxgen hbom --help
corepack pnpm dlx --package=@cyclonedx/cdxgen hbom diagnostics --help
corepack pnpm dlx --package=@cyclonedx/cdxgen evinse --help
corepack pnpm dlx --package=@cyclonedx/cdxgen cdxi --help
If you are a [Homebrew][homebrew-homepage] user, you can also install [cdxgen][homebrew-cdxgen] via:
$ brew install cdxgen
If you are a [Winget][winget-homepage] user on windows, you can also install cdxgen via:
winget install cdxgen
If you want a single-file executable instead of an npm installation, download a published release asset and verify its hash before executing it.
Common asset names:
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.