Part 3 ended with the PQCA’s first recommendation: start with an inventory. A CBOM is the standard format for that inventory. This part explains the format and how to read it.
What a CBOM is#
The CycloneDX CBOM page describes it as a detailed representation of “algorithms, keys, certificates, and their relationships to software components”, so that you can find “deprecated algorithms or expired certificates” and plan the move to quantum-safe ones. PQCA’s CBOMkit page puts it in SBOM terms: it extends an SBOM with “algorithms, protocols, certificates, keys, tokens, secrets, and passwords”.
A CBOM is a CycloneDX JSON file ("specVersion": "1.6") whose components have "type": "cryptographic-asset". Each
one has a cryptoProperties.assetType, one of four values in the
1.6 schema:
assetType | What it describes | Example |
|---|---|---|
algorithm | A cryptographic algorithm as used | ECDSA-secp256r1-SHA-384, AES-256-GCM |
certificate | A certificate and its validity, signature and key | An X.509 file in an image |
protocol | A protocol and its versions and cipher suites | TLS 1.2 and 1.3 from an openssl.cnf |
related-crypto-material | Keys, secrets, tokens, salts, signatures… | A private key, a JWT |
Where the data comes from#
No single tool sees everything. The US federal migration memo, OMB M-26-15, names the sources: software composition analysis of SBOMs, “Static/Dynamic Application Security Testing (SAST/DAST) to find cryptographic functions in code”, and “network scanners to detect protocols and cipher suites”, all feeding “a central Cryptographic Bill of Materials”. Mapped to open-source tools:
| Source | What it can see | What it can’t | Open-source tool |
|---|---|---|---|
| Source code (SAST) | Calls to a crypto API, with file and line | Algorithms chosen at runtime or by configuration | CBOMkit’s sonar-cryptography (also packaged as cbomkit-action) |
| Files and images | Certificates, keys, secrets, openssl.cnf, java.security | What the code does with them | cbomkit-theia |
| Dependencies (SCA) | Which crypto libraries and versions ship | Which of their algorithms you call | Any SBOM generator |
| Network (DAST) | Protocols and cipher suites actually negotiated | Anything not exposed on a port; and behind an inspecting proxy it measures the proxy (as I found out) | A TLS scanner |
The source scanner currently covers Java (JCA and BouncyCastle), Python (pyca/cryptography) and Go (the standard
crypto packages, partly golang.org/x/crypto), according to the
CBOMkit README. C# is “not yet meant for active usage”, and C/C++ with OpenSSL is
an open pull request from an
LFX mentorship.
So a Rust service, a Node.js app or anything calling OpenSSL directly produces no source-code findings today.
Reading one, field by field#
To learn the format I wrote a small Python file where I knew the answer in advance. It uses seven algorithms directly (RSA-PSS, SHA-256, ECDSA on P-256, SHA-384, Ed25519, X25519 and AES-256-GCM), plus one trap: an ECDSA P-384 key whose hash the caller passes in as a default argument. Then I scanned it with CBOMkit (how I ran it is in the next post). Here is one component from the result:
{
"type": "cryptographic-asset",
"bom-ref": "843b9719-68b7-483f-b402-c4105e9b12f0",
"name": "ECDSA-secp256r1-SHA-384",
"evidence": {
"occurrences": [
{ "location": "app/crypto_demo.py", "line": 13, "offset": 4, "additionalContext": "sign" }
]
},
"cryptoProperties": {
"assetType": "algorithm",
"algorithmProperties": {
"primitive": "signature",
"curve": "secp256r1",
"cryptoFunctions": ["keygen", "sign"]
},
"oid": "1.2.840.10045.4.3.3"
}
}How I read it, top to bottom:
nameis the tool’s label. Useful for people, but don’t match on it alone: the same algorithm appears asRSA,RSA-2048orSHA256-RSAdepending on the tool and context.evidence.occurrencesis the part I act on:crypto_demo.py, line 13, asigncall. Every fix starts here.primitivedecides the quantum question.signature,pke,kemandkey-agreeare public-key and need a plan;hash,ae,block-cipherandmacdon’t (see part 1).curveorparameterSetIdentifiergives the size:secp256r1,2048,256.cryptoFunctionssays what the code does with it. Treat it as a hint; in the next post the scanner labelled RSA key loading askeygen.oidis the precise identifier, and what policy checks prefer to match on.nistQuantumSecurityLevel(0 to 6) exists in the schema, but none of the CBOMs I generated filled it in, so I don’t rely on it.
The dependencies section at the end links components together. In this file, a private key depends on
ECDSA-secp256r1-SHA-384, which depends on SHA-384. That is how you get from “a key was created on line 13” to
“which algorithm it belongs to”.
A short reader#
Raw CBOM JSON is long; the file above is 15 components and over 400 lines. This prints one line per algorithm and flags the public-key ones:
"""Print a CycloneDX 1.6 CBOM as one line per algorithm, with where it was found."""
import json
import sys
ASYMMETRIC = {"signature", "pke", "kem", "key-agree"}
bom = json.load(open(sys.argv[1], encoding="utf-8"))
for c in bom.get("components", []):
props = c.get("cryptoProperties", {})
if props.get("assetType") != "algorithm":
continue
prim = props.get("algorithmProperties", {}).get("primitive", "?")
flag = "PUBLIC-KEY" if prim in ASYMMETRIC else ""
where = ", ".join(f'{o["location"].split("/")[-1]}:{o.get("line", "?")}'
for o in c.get("evidence", {}).get("occurrences", []))
print(f'{c["name"]:<26} {prim:<10} {flag:<10} {where}')$ python cbom_summary.py cbom.json
MGF1 other crypto_demo.py:10
AES-256-GCM ae crypto_demo.py:17
ECDSA-secp384r1 signature PUBLIC-KEY crypto_demo.py:22
SHA-384 hash crypto_demo.py:13
RSA-PSS signature PUBLIC-KEY crypto_demo.py:10
Ed25519 signature PUBLIC-KEY crypto_demo.py:14
SHA-256 hash crypto_demo.py:10, crypto_demo.py:11
ECDSA-secp256r1-SHA-384 signature PUBLIC-KEY crypto_demo.py:13
x25519 key-agree PUBLIC-KEY crypto_demo.py:15, crypto_demo.py:15
SHA-512 hash crypto_demo.py:14Against what I put in the file: all seven direct uses were found, with the right sizes and lines. The P-384 key on
line 22 was found too, but not the hash that the caller passes in as a default argument. (The SHA-512 on line 14 is
the one inside Ed25519, which is correct.) Five public-key algorithms to plan for; the other five
(hashes, AES-GCM and the MGF1 padding helper) can stay.
What a CBOM doesn’t tell you#
- Whether the code runs. A finding in a test helper or an unused branch looks the same as one in production.
- What a library’s callers choose. A library offers algorithms; the application picks one at runtime. The next post shows how much this hides.
- Whether it’s quantum-safe. That is a policy applied to the CBOM, not a field in it. CBOMkit ships one such policy; the next post shows what it does and doesn’t grade.
- Your secrets, safely. A CBOM from files can list private keys and tokens, and the source scanner wrote absolute
paths from my machine into
location. Treat a CBOM like a log file before sharing it.
Keywords#
| Keyword | Meaning here |
|---|---|
| SBOM | Software Bill of Materials: the list of components (libraries, versions) in a piece of software |
| CBOM | Cryptography Bill of Materials: the list of cryptographic assets in it, and where each is used |
| CycloneDX | An OWASP standard for bills of materials; version 1.6 added the cryptography fields a CBOM uses |
| Cryptographic asset | Anything cryptographic the CBOM lists: an algorithm, certificate, protocol, key, token or secret |
| Primitive | The kind of algorithm: signature, kem, key-agree, pke, hash, ae (authenticated encryption) and so on |
| OID | Object identifier, a dotted number that names an algorithm precisely, such as 1.2.840.10045.4.3.3 for ECDSA with SHA-384 |
bom-ref | A component’s ID inside the file; other entries point at it |
| Evidence / occurrence | Where an asset was found: file, line, and the call that gave it away |
| SAST / SCA / DAST | Static analysis of code, software composition analysis of dependencies, dynamic testing of a running system |
Next in this series: What broke when I scanned a repo
Takeaways#
- A CBOM is a CycloneDX 1.6 file listing cryptographic assets: algorithms, certificates, protocols and key material.
- It takes several sources to fill one: code, files and images, dependencies, and the network.
- Read the
evidence(where),primitive(does quantum matter) anddependencies(which key belongs to which algorithm) first. - Test the scanner on a file where you know the answer before trusting it on a real repository.
- “Quantum-safe or not” is a policy you run on a CBOM, not something the CBOM says.
References#
- CycloneDX CBOM: OWASP CycloneDX; what a CBOM is for
- CycloneDX specification, bom-1.6.schema.json: OWASP CycloneDX;
assetType,primitive,cryptoFunctionsandnistQuantumSecurityLevelvalues - OMB M-26-15: US Office of Management and Budget, June 2026; the sources that should feed a central CBOM
- CBOMkit README: PQCA; components and supported languages and libraries
- cbomkit-theia README: PQCA; what the file and image scanner finds
- CBOMkit project page: PQCA; CBOM as an extension of an SBOM
- LFX Mentorship: extending C/C++ and OpenSSL support to CBOMkit: PQCA, October 2026; C/C++ status
- My own scan of a test file with cbomkit-action v2.3.0 (built from source), 4 December 2026
Related on this site: Learning OSV, part 2, which reads an SBOM-based vulnerability scan the same way.



