Validate both documents in their declared versions. Confirm their comparable scope, match assets using stable identifiers, and compare material properties and dependency links. Treat a missing record as unobserved when the newer collection cannot establish the corresponding scope.
Establish comparable collection scope
Record the system or repository revision, target services, environments, collection method, observation time, and exclusions from each document. Compare coverage independently of document validity. A repository export and a public TLS export can both be valid and describe different properties.
If the latest collection was partial, identify which services were observed successfully. Report changes only within supported scope. Keep the older evidence for a missing target with its observation time and record why the later state is unknown.
Match records before comparing fields
Resolve bom-ref and dependency entries separately in each document. A bom-ref is unique within its BOM. Use it across versions only when the producer provides a stable mapping, or match using identifiers whose meaning you can verify.
A SHA-256 fingerprint can identify an exact certificate. For rotations, also match the service and certificate role, then compare the fingerprints in that role. Preserve hostname, protocol, port and observation scope for each endpoint. An endpoint offering multiple leaf certificates needs comparisons for the relevant client profiles.
Compare dependency edges after reconciling the nodes at both ends. A reordered component array or new evidence identifier may leave the asset and its relationships intact. Preserve the original exports and the rules used to interpret them.
Classify the differences
| Observation | How to record it |
|---|---|
| Managed edge presents a new leaf fingerprint under comparable observation. | Record a leaf rotation for the edge and verify the fingerprint against the change record. |
| The exporter assigned different local references to the same verified assets and relationships. | Record a reference change. Keep the previous and current document identifiers for traceability. |
| A monitored service is absent after a failed collection. | Mark the service unobserved. Retain its previous inventory record and schedule a comparable check. |
| A service dependency changes from one confirmed cryptographic library to another. | Record the dependency replacement and attach the source or runtime evidence with its scope. |
Keep a reviewable change receipt
For each material change, retain the old and new asset or relationship, its source evidence, timestamps, scope, and the rule that matched it. Include records that require manual reconciliation. Route unexpected changes to the service owner.
To practice, resolve the service-to-certificate dependency in the synthetic export. Imagine a later observation with a different fingerprint at the same endpoint. Confirm that the later scan actually observed the endpoint before recording the rotation.
Frequently asked questions
Can I use a plain JSON diff to compare CBOMs?
Use a JSON diff to inspect file-level edits. Normalize known ordering differences and compare matched assets and dependencies to decide whether a cryptographic change occurred.
Does a missing asset mean it was removed?
Verify that the newer collection covered the same system and property successfully. If the later state cannot be established, mark the asset unobserved and keep its prior evidence.
Can I compare exports from different CycloneDX versions?
Yes, for fields with validated equivalent meanings. Keep version-specific or unsupported properties visible as comparison gaps.