Skip to content
Back to skills

Sbom Spdx Cyclonedx Knowledge Patch

ASecurity

SBOM / SPDX / CycloneDX

  • 25 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 5, 2026
developmentpythongonodeexpress

Works with

  • cli

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill sbom-spdx-cyclonedx-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sbom Spdx Cyclonedx Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sbom Spdx Cyclonedx Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-sbom-spdx-cyclonedx-knowledge-patch-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-sbom-spdx-cyclonedx-knowledge-patch-nevaberry-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sbom-spdx-cyclonedx-knowledge-patch
description: SBOM / SPDX / CycloneDX
version: null
license: MIT
metadata:
  author: Nevaberry
---


# SBOM: SPDX and CycloneDX

Use this skill when creating, converting, validating, or querying SPDX and
CycloneDX inventories. It covers document identity, component and dependency
models, licensing, VEX, cryptography, specialized profiles, and CLI automation.
Load the reference matching the task for detailed constraints and examples.

## Reference index

| Reference | Topics |
| --- | --- |
| [Document identity and serialization](references/document-identity-and-serialization.md) | Formats, ordering, revision identity, imports, creators, annotations, citations |
| [Components, dependencies, and provenance](references/components-dependencies-and-provenance.md) | Collections, packages, files, hashes, external references, dependency direction, completeness, builds |
| [Licensing, VEX, and cryptography](references/licensing-vex-and-cryptography.md) | License evidence and expressions, vulnerability assessments, cryptographic assets, policy reports |
| [Profiles, standards, and specialized data](references/profiles-standards-and-specialized-data.md) | SPDX Lite, compliance evidence, declarations, services, AI, datasets, patents, sharing rules |
| [Schema validation and automation](references/schema-validation-and-automation.md) | Schema limits, extensions, SHACL, schema registries, validation, patching, queries, conformance tools |

## Deprecations and compatibility changes

### CycloneDX creator and evidence fields

In CycloneDX 1.6, use `metadata.manufacturer` for the BOM-producing organization
and `metadata.component.manufacturer` for the subject component's creator,
replacing deprecated `metadata.manufacture`. Use contact arrays in `authors`
instead of the component's legacy `author` string. The preferred `tools` object
accepts `components` and `services` in BOM metadata and vulnerability records.

Emit `evidence.identity` as an array in 1.6, even for one field; accept the
deprecated single-object form on input. Each identity requires `field`, and
each method requires `technique` and numeric `confidence` from 0 to 1.

### SPDX dependencies and reviews

For SPDX 2.3 JSON, replace deprecated `files[].fileDependencies` with
`relationships` entries containing `spdxElementId`, `relationshipType`, and
`relatedSpdxElement`; the schema still accepts the old array. For
`BUILD_DEPENDENCY_OF`, `DEV_DEPENDENCY_OF`, and `RUNTIME_DEPENDENCY_OF`, put the
dependency in `spdxElementId`.

Record new reviews as `REVIEW` annotations and preserve the original `Created`
timestamp when adding review information. The deprecated SPDX 1.2 reviewer
entry requires its own review date.

### CycloneDX cryptography migrations

For CycloneDX 1.7, `ellipticCurve` supersedes deprecated `curve`;
`ellipticCurve` and `algorithmFamily` resolve accepted identifiers from
`cryptography-defs.schema.json`.

Use `relatedCryptographicAssets` entries with free-form `type` and local `ref`
in certificate, related-material, and protocol properties. This replaces
certificate `signatureAlgorithmRef` and `subjectPublicKeyRef`, related
material's `algorithmRef`, and protocol `cryptoRefArray`.

Use object arrays for IKEv2 `encr`, `prf`, `integ`, `ke`, and `auth`; their string
reference arrays are deprecated. Use `certificateFileExtension` in place of
deprecated `certificateExtension`. Detailed lifecycle and transform fields are
in the licensing, VEX, and cryptography reference.

### CycloneDX license array differences

In CycloneDX 1.6, `licenses` contains either `license` wrappers or one
`expression` item. Each license payload requires exactly one of `id` or `name`.
Use `acknowledgement` of `declared` or `concluded` on the payload or expression,
and put observed licenses in component `evidence.licenses`.

CycloneDX 1.7 allows mixed wrappers and multiple expressions. An expression can
have its own `bom-ref`, commercial `licensing` data, and `properties`;
`expressionDetails[]` requires `licenseIdentifier` and can attach text or a URL.

## Document identity and graph construction

For SPDX 2.3, assign a fresh absolute `DocumentNamespace` URI to each document
revision. An `ExternalDocumentRef` identifies a target namespace and checksum
through a locally unique `DocumentRef-` identifier.

For CycloneDX, a supplied `serialNumber` uses lowercase `urn:uuid:`. The integer
BOM `version` defaults to 1 and increments by one for revisions of the same BOM.
A BOM-Link uses `urn:cdx:<uuid>/<bom-version>`, optionally followed by `#<bom-ref>`
for an element. Keep local `bom-ref` values unique throughout the BOM and clear
of the reserved `urn:cdx:` prefix.

For SPDX 3.0.1 JSON-LD, use the exact context
`https://spdx.org/rdf/3.0.1/spdx-context.jsonld`. Elements require `spdxId` and
`creationInfo`. An inline `CreationInfo` requires `created`, a nonempty `createdBy` agent
array, and `specVersion`; `createdUsing` points to tools. Use `SoftwareAgent`
for software in `createdBy` and `Tool` for software in `createdUsing`.

Use arrays for properties allowing multiple values, even for one value. A
collection with `element` entries needs at least one `rootElement`; exclude
`SpdxDocument` instances from both arrays. Each serialization can define at
most one `SpdxDocument`.

## Components, dependencies, and completeness

For a metadata-only SPDX 2.3 package, set `FilesAnalyzed: false` and omit
`PackageVerificationCode` and `PackageLicenseInfoFromFiles`. Omitted
`FilesAnalyzed` defaults to `true`. If the SPDX document ships inside the
package, exclude it from the verification code, record its excluded path,
and leave the optional `PackageChecksum` unset for that package.

Use SPDX 2.3 `DEPENDENCY_MANIFEST_OF` from the manifest to the package whose
dependencies it lists. Use one manifest to define a given dependency graph.
On a relationship's right side, `NONE` asserts no other targets of that type;
`NOASSERTION` leaves the question open. Omitted or partial lists do not specify
completeness.

SPDX 3.0.1 relationships need their own ID and creation info, one `from`, and a
nonempty `to` array. Use `NoneElement` as the singleton target for zero targets,
or `NoAssertionElement` to leave target existence unspecified. Optional
`completeness` takes `complete`, `incomplete`, or `noAssertion`.

For CycloneDX, include an empty `dependsOn` array for known leaf nodes; omitted
nodes have unknown dependencies. `dependencies[].provides` records implemented
specifications or components independently of whether they are used.
Composition coverage applies to listed references and stops at nested
constituents or transitive dependencies.

In CycloneDX 1.7, set `isExternal: true` for a runtime component supplied by the
deployment environment. It defaults to `false`, is independent of `scope`,
and must be false for `metadata.component`. An external component can use a
concrete `version` or a Package URL `vers:` string in `versionRange`; check
range syntax separately. Type `platform` covers execution environments.

## Validation and conformance

The CycloneDX JSON Schema is the reference implementation of ECMA-424. Use the
schema for the CycloneDX version supported by the reader or writer.

The SPDX 2.3 Draft-07 schema leaves `documentNamespace` optional and accepts
open objects in `files[].artifactOfs`. Separately check namespace presence,
identifier syntax and uniqueness, reference resolution, timestamps, license
expressions, and file membership when `filesAnalyzed` is false.

The SPDX 3.0.1 schema uses Draft 2020-12 and accepts empty graphs, duplicate IDs,
and unresolved references. Separately check document/profile requirements,
ID uniqueness, targets, URI validity, and calendar validity. Use UTC timestamps
with whole seconds and literal `Z`. Check intended versions separately from
the schema's SemVer checks.

```sh
check-jsonschema --schemafile https://spdx.org/schema/3.0.1/spdx-json-schema.json inventory.jsonld
```

For semantic validation, pass the Turtle model to pySHACL as both shapes and
ontology. Manually verify external SPDX IDs that pySHACL flags, because it
treats references described by `SpdxDocument.import` as unresolved.

```sh
pyshacl \
  --shacl https://spdx.org/rdf/3.0.1/spdx-model.ttl \
  --ont-graph https://spdx.org/rdf/3.0.1/spdx-model.ttl \
  inventory.jsonld
```

### CLI validation and minimum-element checks

`sbom-utility` embeds schemas and their dependencies for offline validation.
It returns 0 for success, 1 for an application error, and 2 for a validation
error. `-q` suppresses stdout logging; JSON validation errors default to a
maximum of ten, adjustable through `--error-limit`.

```sh
sbom-utility validate -i - -q --format json --error-limit 25 --error-value=false < bom.json
```

Install `ntia-conformance-checker` with Python 3.10 or newer. `sbomcheck`
defaults to `--sbom-spec spdx2` and `--comply ntia`, and checks one SBOM per
SPDX 3 document. Select `--comply bsi` for BSI TR-03183-2 v2.1.0 content checks.

```sh
sbomcheck --sbom-spec spdx3 --comply fsct3-min --output json --output-file report.json sbom.json
```

## Editing and inspecting BOMs

Both `trim` and `patch` accept `--normalize` to sort BOM arrays; use
`trim --keys="" --normalize` for sorting alone. Experimental `patch` supports
RFC 6902 `add`, `replace`, `remove`, and `test`, and a failed `test` stops it.
To replay a delta, rewrite `move` as removal then addition, and `copy` as an
addition containing the copied value.

Experimental `diff` compares `-i` with revised `-r` input and emits JSON Patch
with `--format json`. Normalize both BOMs first to reduce array-order differences
and inspect moved-object deltas because move detection can misidentify them.

`query --from` takes a dot-delimited JSON path, `--select` projects fields, and
`--where` filters array entries by field regex. Results keep their object or
array shape, with JSON `null` for an empty result.

## Licensing, VEX, and specialized profiles

SPDX 3.0.1 links license expression elements through `hasDeclaredLicense` and
`hasConcludedLicense`. SimpleLicensing and ExpandedLicensing express the same
information in different forms. SPDX Lite requires exactly one declared and
one concluded license relationship per package, with the package as `from`.

CycloneDX `affects[].versions` status defaults to `affected`; contextual impact
belongs in the separate `analysis` object. Supply a justification for
`not_affected`. SPDX VEX status subclasses also require the inherited
`relationshipType`; check that it agrees with the status class semantically.

For CycloneDX compliance declarations, verify that reference strings resolve
to the intended local `bom-ref`; the schema accepts empty objects for several
declaration records. Use the profiles reference for evidence, counter-evidence,
mitigation references, signatures, standards, model cards, datasets, and patents.

Files in this skill

  • SKILL.md9.3 KB
  • coverage.json1.2 KB
  • references/components-dependencies-and-provenance.md10.6 KB
  • references/document-identity-and-serialization.md7.4 KB
  • references/licensing-vex-and-cryptography.md8.1 KB
  • references/profiles-standards-and-specialized-data.md9.5 KB
  • references/schema-validation-and-automation.md10.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.