/bom-signing
Signs and verifies CycloneDX BOMs using cdxgen's native JSON Signature Format (JSF) implementation via cdx-sign and cdx-verify, supporting granular component, service, and annotation signatures, parallel multi-signatures, and sequential signature chains. Use when asked to sign
Claude Code
$ npx -y skills add cdxgen/cdxgen --skill bom-signing --agent claude-code
Codex
$ npx skills add cdxgen/cdxgen --skill bom-signing -a codex -y
Cursor
$ npx skills add cdxgen/cdxgen --skill bom-signing -a cursor -y
Gemini CLI
$ npx skills add cdxgen/cdxgen --skill bom-signing -a gemini-cli -y
GitHub Copilot
$ npx skills add cdxgen/cdxgen --skill bom-signing -a github-copilot -y
OpenCode
$ npx skills add cdxgen/cdxgen --skill bom-signing -a opencode -y
Windsurf
$ npx skills add cdxgen/cdxgen --skill bom-signing -a windsurf -y
SKILL.md
bom-signing.SKILL.mdname: bom-signing
description: Signs and verifies CycloneDX BOMs using cdxgen's native JSON Signature Format (JSF) implementation via cdx-sign and cdx-verify, supporting granular component, service, and annotation signatures, parallel multi-signatures, and sequential signature chains. Use when asked to sign an SBOM, verify a BOM signature, establish BOM authenticity or non-repudiation, build an approval trail across pipeline stages, or generate signing keys.
disable-model-invocation: true
Sign and verify BOMs
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](../../reference/safety.md) first.
Key handling boundary
**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.
Sign
# 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`.
Choosing a signature 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.
Verify
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 hol
Read more
name: bom-signing description: Signs and verifies CycloneDX BOMs using cdxgen's native JSON Signature Format (JSF) implementation via cdx-sign and cdx-verify, supporting granular component, service, and annotation signatures, parallel multi-signatures, and sequential signature chains. Use when asked to sign an SBOM, verify a BOM signature, establish BOM authenticity or non-repudiation, build an approval trail across pipeline stages, or generate signing keys. disable-model-invocation: true
Sign and verify BOMs
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](../../reference/safety.md) first.
Key handling boundary
**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.
Sign
# 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`.
Choosing a signature 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.
Verify
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 hol
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.
Other skills on cdxgen.
More skills from other plugins.
api-security
Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…
abusing-dpapi-for-cred…
Extract and decrypt Windows DPAPI-protected secrets (Credential Manager, browser logins/cookies, Wi-Fi credentials, KeePass keys)…
clean-user-facing-text
Clean and finalize authorized natural-language text intended for readers by auditing suspicious invisible Unicode and rewriting…
Questions about bom-signing.
- Which coding agents can use bom-signing?
- bom-signing installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

