/cdxgen:bom-signingfrom cdxgen
Signs and verifies CycloneDX BOMs using cdxgen's JSON Signature Format (JSF) via cdx-sign and cdx-verify. Supports granular component/service/annotation signatures, parallel multi-signatures, and sequential signature chains for SBOM authenticity and approval trails.
Ships in cdxgen. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
cdxgen ships a native JSON Signature Format (JSF) implementation that goes
beyond a single document-level signature. It supports granular signatures over
individual components, services, and annotations; parallel multi-signatures via
signers; and sequential signature chains via chain.
Read reference/safety.md first.
Never generate, read, paste, or transcribe private key material yourself, and never enter a passphrase on the user's behalf. Run the signing commands with paths the user provides, and if a key does not exist yet, give the user the command to create it and let them run it.
For a throwaway demo or test BOM, cdxgen can generate a keypair and sign in one step:
cdxgen -o /absolute/path/to/bom.json --generate-key-and-sign /absolute/path/to/project
This is appropriate for testing signing workflows. It is not appropriate for release signing, where the key should come from the user's key management.
# Replace or create the root signature in place
cdx-sign -i /absolute/path/to/bom.json -k /absolute/path/to/builder_private.pem
# Write a signed copy to a new file, with an explicit algorithm
cdx-sign -i /absolute/path/to/bom.json -o /absolute/path/to/bom.signed.json \
-k /absolute/path/to/builder_private.pem -a RS512
| Flag | Purpose |
|---|---|
-i, --input | BOM to sign |
-o, --output | Signed copy; omit to sign in place |
-k, --private-key | Private key, PEM format |
-a, --algorithm | JSF algorithm; default RS512. Also ES256, Ed25519 |
-m, --mode | replace (default), signers, chain |
--key-id | Key identifier recorded in the signature |
--sign-components | Sign individual components |
--sign-services | Sign individual services |
--sign-annotations | Sign annotations |
--verify-existing-with | Earlier signer's public key, checked before appending |
--allow-unverified-history | Append even when existing entries do not verify |
--no-embed-public-key | Leave the signer's public key out of the root signature |
--attach | Attach the signed BOM to an OCI image reference |
Defaults can come from SBOM_SIGN_ALGORITHM and SBOM_SIGN_MODE.
| Mode | Semantics | Use for |
|---|---|---|
replace | Replaces or creates the root signature | Build-time signing by the producer |
signers | Appends a parallel signature without replacing existing ones | Independent approvals from different teams |
chain | Appends to a sequential signature history | An ordered approval trail through pipeline stages |
Append a security review signature without destroying the builder's:
cdx-sign -i /absolute/path/to/bom.json -k /absolute/path/to/auditor_private.pem \
--mode signers --no-sign-components --no-sign-services --no-sign-annotations \
--verify-existing-with /absolute/path/to/builder_public.pem
cdx-sign refuses to append a signers entry unless at least one existing entry
verifies with a --verify-existing-with key, and a chain entry unless every
existing entry does.
Note the --no- prefixes: the reviewer signs the document, not every component,
which keeps the second signature cheap and its scope clear.
Build a chained history:
cdx-sign -i /absolute/path/to/bom.json -k /absolute/path/to/approver_private.pem --mode chain \
--verify-existing-with /absolute/path/to/builder_public.pem
Use signers when approvals are independent and order does not matter. Use
chain when the order is itself the evidence.
cdx-verify -i /absolute/path/to/bom.json --public-key /absolute/path/to/public.pem
cdx-verify -i /absolute/path/to/bom.json --public-key /absolute/path/to/public.pem --deep
cdx-verify -i /absolute/path/to/bom.json --public-key /absolute/path/to/builder.pem \
--public-key /absolute/path/to/auditor.pem --require-all
--public-key is required and repeatable; cdx-verify never reads a key from the
working directory. A BOM without a root signature fails unless
--allow-nested-only is passed and every component, service, and annotation is
signed. For signers and chain signatures, one verified entry is enough by
default and the others are listed as warnings. --require-all requires every entry
to verify and every given key to verify an entry of the root signature, so a removed
co-signature or truncated chain fails; pass one --public-key per expected signer.
BOM bytes that are not UTF-8, repeat a member name, or hold a number an IEEE 754
double cannot represent exactly are refused.
--deep verifies granular component, service, and annotation signatures rather
than only the document signature. Use it whenever the BOM was signed with
--sign-components or --sign-services — a passing shallow check on such a BOM
does not establish that the component signatures are intact.
--platform targets platform-specific verification behaviour.
cdx-validate folds signature verification into full validation (JSON input
only):
cdx-validate -i /absolute/path/to/bom.json \
--public-key /absolute/path/to/public.pem --require-signature
Giving a key turns on --require-signature, which makes an unsigned or
unverifiable BOM a validation failure (exit 4) rather than a silent pass. Pass
--no-require-signature only to report the result. See bom-convert-validate.
Be precise about what a result does and does not establish:
--deep.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
14 skills in this plugin
/ai-bomGenerates AI-BOM, MCP inventory, AI skill inventory, and AI authorship provenance documents with cdxgen, cataloging models, inference services, Hugging Face purls, MCP servers and their tools/prompts/resources, agent instruction files, and cdx:ai:codegen provenance signals, then audits them with AI-focused rule packs. Use when asked to inventory AI or ML usage, catalog MCP servers, audit agent instruction or skill files, assess AI supply-chain risk, or detect AI-generated code authorship./bom-auditRuns supply-chain risk analysis on CycloneDX BOMs with cdx-audit predictive auditing and cdxgen --bom-audit embedded rules, covering npm and PyPI package compromise posture, CI permission risk, dependency source integrity, license policy violations, and SARIF or JSON reporting for code scanning. Use when asked to audit an SBOM, assess supply-chain or dependency risk, check for compromised or malicious packages, triage which dependencies to review first, or produce SARIF from a BOM./bom-convert-validateConverts CycloneDX BOMs to SPDX 3.0.1 JSON-LD or between CycloneDX spec versions with cdx-convert, and validates BOMs against JSON schema, deep consistency checks, and OWASP SCVS and EU Cyber Resilience Act compliance benchmarks with cdx-validate, emitting SARIF for code scanning. Use when asked to convert an SBOM to SPDX, downgrade or upgrade a BOM spec version, validate or lint a BOM, check SCVS or CRA compliance, or score SBOM quality./bom-evidenceEnriches an existing CycloneDX BOM with occurrence, callstack, reachability, data-flow, and crypto-flow evidence using cdxgen evinse, including Go analysis via Golem and Rust analysis via Rusi, and produces SaaSBOM service and endpoint inventory. Use when asked which dependencies are actually used or reachable, for callstack or usage evidence, a SaaSBOM, API endpoint inventory, data-flow or taint analysis, or to distinguish real from declared dependency usage, or what Golem found in a Go project, including requests to show Golem's raw values./bom-exploreExplores and triages a CycloneDX BOM interactively with the cdxi REPL, using built-in commands for dependency trees, licenses, services, cryptographic assets, audit findings, evidence occurrences and callstacks, unpackaged container binaries, HBOM and OBOM categories, and Golem or Cargo hotspots. Use when asked to inspect, query, summarize, or triage an existing BOM, find what is inside an SBOM, or answer ad hoc questions about BOM contents without writing scripts./bom-slimmerReviews a codebase's direct dependencies and designs lightweight, low-risk, zero-dependency custom replacements using cdxgen SBOM evidence, occurrence/callstack usage data, and license and supply-chain risk evaluation. Use when asked to shrink node_modules, reduce dependency bloat or copyleft exposure, find small or utility packages that could be replaced with built-in code, or replace utility packages with native or built-in implementations. Load it before suggesting any command for that analysis, even when the user only wants to see the commands.npx claudepluginhub cdxgen/cdxgen --plugin cdxgenOther plugins' skills for the same job