Skip to main content

vulkro sbom

Writes a Software Bill of Materials (SBOM) for the project, or checks an existing SBOM for missing fields.

vulkro sbom . > sbom.cdx.json # CycloneDX 1.6
vulkro sbom . --format spdx > sbom.spdx.json # SPDX 2.3
vulkro sbom --check sbom.cdx.json # completeness check

Match the SBOM against vulnerability data later with vulkro match-cve.

Flags​

FlagDescription
--format <FORMAT>Output format (table below). Default cyclonedx.
--check <FILE>Check an existing CycloneDX or SPDX JSON file instead of generating one. Names each missing field with a fix.
--profile <PROFILE>Field set for --check: ntia (default) or cert-in (adds the CERT-In v2.0 fields as recommendations).
FormatOutput
cyclonedxCycloneDX 1.6 SBOM (default).
cyclonedx-1.7CycloneDX 1.7 SBOM.
spdxSPDX 2.3 SBOM.
spdx3SPDX 3.0.1 JSON-LD SBOM.
cbom, cbom-1.7Cryptographic BOM: each weak algorithm found, with file and line.
aibomAI BOM: AI SDKs, model names, model files and MCP servers, with file and line.
openvexOpenVEX 0.2.0 statements per dependency CVE, with not_affected backed by reachability.
cyclonedx-vexThe same verdicts as CycloneDX 1.6 VEX.

Exit codes​

0 SBOM written, or --check found no required gaps. 1 --check found required gaps. 2 IO or parse failure.

See also: vulkro cra-bundle, Output formats.

Command reference​

Generated from vulkro sbom --help (vulkro 0.41.0). Run scripts/gen-docs.sh in the product repository to refresh it; do not edit this section by hand.

List every package the project depends on, in a standard file format (SBOM).

vulkro sbom [OPTIONS] [PATH]

Arguments​

ArgumentDescription
[PATH][default: .]. Default: ..

Options​

FlagDescription
-f, --format <FORMAT>Output format. cyclonedx (CycloneDX 1.6 JSON SBOM, default), cyclonedx-1.7 (CycloneDX 1.7), spdx (SPDX 2.3 JSON SBOM), spdx3 (SPDX 3.0.1 JSON-LD), cbom (CycloneDX 1.6 CBOM listing detected weak crypto algorithms with file:line occurrences; same emitter as vulkro scan --format cbom), cbom-1.7 (CycloneDX 1.7 CBOM with a richer post-quantum descriptor), or aibom (CycloneDX 1.6 ML-BOM: AI SDKs, model identifiers, model files and MCP servers / tools with file:line evidence). The 1.6 / 2.3 formats stay the defaults; 1.7 / 3.0.1 are additive opt-ins. Default: cyclonedx.
--offlineHard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set.
--check <FILE>Validate an existing SBOM file (CycloneDX or SPDX JSON) for CRA / SSDF completeness instead of generating one, naming each missing field with a fix. Exit 1 when a required field is missing.
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
--profile <PROFILE>Field set --check validates against. ntia (default): the NTIA minimum elements used for CRA / SSDF. cert-in: additionally the CERT-In SBOM guideline v2.0 fields (supplier, description, release and end-of-life dates, criticality, patch status, ...); the extra fields are reported as recommended, so only the NTIA minimum decides the exit code. Default: ntia.
-h, --helpPrint help (see a summary with '-h')
Full vulkro sbom --help
List every package the project depends on, in a standard file format (SBOM).

Emit a Software Bill of Materials for the project. Same data as `vulkro scan <path> --format cyclonedx`, but a focused subcommand for the "I just need the SBOM" use case.

Pass `--check <FILE>` to validate an already-produced SBOM instead of generating one: it reports every missing CRA / SSDF completeness field (component name, version, purl, dependency relationships, SBOM author, timestamp, content hashes, licenses) by name, with a fix for each.

Exit codes: `0` success (SBOM generated, or `--check` found no required gaps), `1` `--check` found required gaps, `2` IO / parse failure.

Usage: vulkro sbom [OPTIONS] [PATH]

Arguments:
[PATH]
[default: .]

Options:
-f, --format <FORMAT>
Output format. `cyclonedx` (CycloneDX 1.6 JSON SBOM, default), `cyclonedx-1.7` (CycloneDX 1.7), `spdx` (SPDX 2.3 JSON SBOM), `spdx3` (SPDX 3.0.1 JSON-LD), `cbom` (CycloneDX 1.6 CBOM listing detected weak crypto algorithms with file:line occurrences; same emitter as `vulkro scan --format cbom`), `cbom-1.7` (CycloneDX 1.7 CBOM with a richer post-quantum descriptor), or `aibom` (CycloneDX 1.6 ML-BOM: AI SDKs, model identifiers, model files and MCP servers / tools with file:line evidence). The 1.6 / 2.3 formats stay the defaults; 1.7 / 3.0.1 are additive opt-ins

Possible values:
- cyclonedx: CycloneDX 1.6 JSON SBOM (library components only). Default
- cyclonedx-1.7: CycloneDX 1.7 JSON SBOM. Same shape, newer `specVersion`
- spdx: SPDX 2.3 JSON SBOM
- spdx3: SPDX 3.0.1 JSON-LD SBOM (`@context` + `@graph`)
- cbom: CycloneDX 1.6 CBOM: one `cryptographic-asset` component per detected weak algorithm (MD5, SHA-1, ECB, RC4, DES, static IV, insecure RNG), with file:line occurrences inlined under `evidence.occurrences`. Same emitter as `vulkro scan --format cbom`
- openvex: OpenVEX 0.2.0 exploitability statements for each dependency CVE, `not_affected` backed by reachability analysis
- cyclonedx-vex: CycloneDX 1.6 VEX (the same verdicts as `openvex`)
- cbom-1.7: CycloneDX 1.7 CBOM: same grouping as `cbom` plus a richer post-quantum descriptor. Same emitter as `vulkro scan --format cbom-1.7`
- aibom: CycloneDX 1.6 ML-BOM (AIBOM): AI SDKs and frameworks, model identifiers named in code, model files, and declared MCP servers and tools, each with file:line evidence. Same emitter as `vulkro scan --format aibom`

[default: cyclonedx]

--offline
Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set

--check <FILE>
Validate an existing SBOM file (CycloneDX or SPDX JSON) for CRA / SSDF completeness instead of generating one, naming each missing field with a fix. Exit 1 when a required field is missing

-q, --quiet
Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged

--no-color
Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb

--profile <PROFILE>
Field set `--check` validates against. `ntia` (default): the NTIA minimum elements used for CRA / SSDF. `cert-in`: additionally the CERT-In SBOM guideline v2.0 fields (supplier, description, release and end-of-life dates, criticality, patch status, ...); the extra fields are reported as recommended, so only the NTIA minimum decides the exit code

Possible values:
- ntia: NTIA minimum elements (CRA / SSDF completeness)
- cert-in: NTIA plus the CERT-In SBOM guideline v2.0 data fields

[default: ntia]

-h, --help
Print help (see a summary with '-h')