← Back to section · Post-Quantum Migration
Cryptographic Inventory in Practice: Building a CBOM from Zero
Migration starts with knowing what you have, not swapping algorithms: CBOM field design, the five-channel discovery method, tooling choices and a prioritization workflow you can execute.
Migration projects fail in a predictable way: not by choosing the wrong algorithm, but by discovering — halfway through — thirty unknown systems still using RSA. The inventory is migration’s first mile and the one step that cannot be skipped. Its deliverable is the CBOM: a Cryptography Bill of Materials.
What a CBOM records
The CBOM reuses the SBOM ecosystem, standardized in CycloneDX (whose cryptography extension defines cryptoProperties). Each asset entry should carry at least:
| Field | Example |
|---|---|
| Asset type | algorithm / protocol / certificate / key / library |
| Algorithm and parameters | RSA-2048, ECDH P-256, TLS 1.2 |
| Location | system, service, repository, file path |
| Purpose | key exchange / signature / encryption at rest / in transit |
| Data shelf life | how many years this data must stay confidential |
| Certificate expiry | mandatory for certificate assets |
| Owner | the team empowered to change it |
An inventory without the data shelf life column is incomplete — it directly drives prioritization (see the Mosca inequality in our migration roadmap article).
The five discovery channels
- Code and dependency scanning — search repositories for crypto API calls (
Cipher.getInstance,crypto.createSign, OpenSSL invocations) and walk dependency trees for crypto libraries (Bouncy Castle, OpenSSL, libsodium versions). Tools like CBOMkit and scanner plugins can draft CycloneDX output automatically; - Certificates and key stores — export CA issuance records, TLS endpoint certificates, code-signing certificates, SSH host keys and HSM key listings. Certificates are the easiest assets to inventory because they are structured by design;
- Network observation — measure the actually-negotiated TLS versions and cipher suites at gateways and load balancers. What configuration supports differs from what traffic uses; observation corrects the record;
- Configuration and infrastructure — VPNs, database and backup encryption, disk encryption, message-queue TLS. This “invisible cryptography” is the class most often missed;
- Vendors and SaaS — send key suppliers two questions: what is your PQC roadmap, and how is our data encrypted with you? File the answers; they are compliance evidence in themselves.
From inventory to priorities
Do not work the list top to bottom — score it. Three dimensions suffice: data shelf life (≥10 years moves first), exposure (internet-reachable moves first), change cost (a library upgrade moves before a protocol redesign). The first quadrant is always the same: external TLS (hybrid key exchange first — see our Tutorials) and long-lived signatures (firmware, root certificates).
One final discipline: a CBOM is a living document. Wire it into CI and certificate automation — new certificates register themselves, new dependencies get scanned on arrival. A one-off spreadsheet inventory is a historical artifact within a quarter. The endpoint is not a table; it is the first durable, trustworthy answer your organization has to “where does our cryptography live” — and migration, audit and compliance all draw from that answer.
Draw the boundary first: scoping the inventory
Before any scanning starts, write a scope statement — otherwise every team applies its own definition and the merged inventory inevitably has holes. The scope needs three layers. The first is the organizational boundary: headquarters, subsidiaries, systems developed by contractors but operated in-house, and systems hosted with cloud providers — state explicitly which are in. Systems outside the boundary are registered separately as “pending vendor inquiry” and handled through the fifth discovery channel. The second layer is the environment boundary: production is obviously in; disaster-recovery environments often share the same certificates and keys as production and must not be missed; test environments that have touched copies of real data belong in scope too, while purely synthetic-data environments can be handled at a lower priority. The third layer is the object boundary: the inventory covers not just algorithm names but also keys, certificates, protocol configurations, cryptographic libraries and modules (including hardware such as HSMs and TPMs), and mechanisms like signatures and timestamps that are easily mistaken for “features” rather than cryptography. Write down the exclusions and their reasons as well; in an audit they matter as much as the inventory itself. The National Cybersecurity Center of Excellence (NCCoE) at the U.S. National Institute of Standards and Technology (NIST), in its SP 1800-38 practice guide series on migration to post-quantum cryptography, likewise places discovery and inventory at the start of migration preparation.
Taking the fields one level deeper
Once the basic fields are in place, four additional kinds of field decide how useful the inventory will be later. First, evidence and confidence: for each entry, record which discovery channel produced it, whether it was found automatically by a tool or confirmed by a human, and when it was last verified. Entries corroborated by several channels carry high confidence; entries that appear in only one channel and cannot be rechecked should be flagged as unverified — not silently deleted, and not silently trusted either. Second, relationships: which private key belongs to a certificate and where that key is stored, which algorithms a given protocol configuration actually negotiates, which services call a given cryptographic library. CycloneDX supports expressing relationships between components through its dependency model; recording them means that when you assess one algorithm’s impact, you can draw the blast radius immediately instead of re-surveying the whole estate. Third, key lifecycle information: where a key was generated, whether it lives in a software file or a hardware module, its rotation period, and who custodies it. In practice, migrations stall first not on algorithms but on keys nobody can locate or say whether they can be replaced. Fourth, a migration status marker: how the current algorithm stands under the quantum threat, whether a concrete target replacement is known, and whether the hosting system supports a smooth switch-over. At inventory time you only mark, you do not decide — but with this column in place, later ranking and roadmapping need no return trip to collect data.
Update and governance: who owns the list
A CBOM starts going stale the day it is delivered, so the governance arrangements must ship together with the inventory itself. Split responsibility into two layers: a security or architecture team owns the format specification, the tooling and the quality of the merged result, while each system’s owner is accountable for the accuracy of that system’s entries. Refresh on two rhythms: certificate issuance and dependency changes are registered by automated pipelines as the events happen; on top of that, run a full review on a fixed cycle to catch what automation missed — six to twelve months is a common cycle. Major changes — a new system going live, a merger integration, a major-version upgrade of a core library — should trigger a dedicated review rather than wait for the cycle. The most effective quality check is cross-comparison: if code scanning says a service has no legacy algorithms while network observation shows it still negotiating legacy suites, that contradiction is itself a signal: at least one channel’s data cannot be trusted. Finally, keep the CBOM files under version control, retaining a timestamp and the tool version for each generation, so every record can be traced back to its source.
A checklist of common pitfalls
Close with four common traps, checked one by one against your own inventory. Scanning only source code: firmware, commercial software, network devices and pre-built binaries do not live in code repositories, so a repository-only inventory systematically misses this entire class — and these are precisely the assets that are slowest to change. Recording algorithm names without parameters: writing “RSA” without the key size, or “AES” without the mode of operation, is barely an inventory at all — parameters are what determine strength and migration difficulty, and a single algorithm name can hide very different risk levels. Treating the inventory as a one-off project: three months later the list no longer matches reality, and the next time it is needed the only option is to start over. The right approach is to cover high-value and high-exposure systems first, expand coverage round by round, and build the update machinery alongside. Dropping entries that have no owner: an asset with no identifiable owner should not be discarded for “incomplete information”: register it honestly as an orphaned asset and put it at the top of the pile, because unclaimed systems tend to run unmaintained legacy cryptography and concentrate the highest risk in the entire inventory.
Sources and further reading
- OWASP CycloneDX, Cryptography Bill of Materials (CBOM) specification and capability model. https://cyclonedx.org/capabilities/cbom/
- IBM, cbomkit (open-source CBOM generation tooling). https://github.com/IBM/cbomkit
- On this site: “Post-Quantum Migration Roadmap: Inventory, Pilot, Switch”
Tags: CBOMinventorycrypto-agilityCycloneDX