Chapter 2
Inventory Your Cryptographic Estate
In this chapter
- 2.1 What Is a Cryptographic Bill of Materials (CBOM)?
- 2.2 Automated Discovery Tools
- 2.3 Scanning Network Traffic for Vulnerable Key Exchanges
- 2.4 Cataloging Certificates, Keys, and Trust Stores
- 2.5 Vendor and Third-Party CBOM Assessment
- 2.6 Lab Exercise: Build Your CBOM
- Chapter 2 Summary
- What’s Next
- References
Find Everything Before You Fix Anything
You cannot migrate what you cannot find. That sentence is obvious in the abstract and consistently underestimated in practice. Most organizations that begin a cryptographic migration program discover that their actual cryptographic surface area is two to three times larger than their initial estimate — because cryptography hides inside libraries, inside vendor products, inside operating system components, inside firmware, and inside SaaS dependencies that no one thought to include in the initial inventory.
This chapter is about finding everything. It covers what a Cryptographic Bill of Materials is and why EO-14412 now requires one, how to use automated discovery tools to scan your environment, how to capture what automated tools miss, and how to evaluate the third-party products and vendors you cannot directly modify. The Lab Exercise at the end walks you through building your first CBOM from scratch.
| What You Will Learn What a CBOM is and what EO-14412 requires. How to scan your network traffic for vulnerable key exchanges. Which automated discovery tools are available and when to use each. How to catalog certificates, keys, and trust stores. How to assess vendor and third-party cryptographic readiness. How to build your first CBOM in the lab exercise. |
|---|
2.1 What Is a Cryptographic Bill of Materials (CBOM)?
A Software Bill of Materials (SBOM) tells you what software libraries a product contains. A Cryptographic Bill of Materials extends that concept specifically to cryptographic components: it tells you which cryptographic algorithms those libraries implement, what key sizes and parameter sets they use, which protocol versions they support, and whether those algorithms are quantum-vulnerable.
Think of a CBOM as a complete, machine-readable inventory of your cryptographic attack surface. For each system in scope it captures:
- Algorithm: RSA-2048, ECDH P-256, AES-128-GCM, ML-KEM-768, etc.
- Protocol: TLS 1.2, TLS 1.3, IKEv2, SSH-2, S/MIME, etc.
- Key size and parameter set: 2048-bit RSA, P-384, ML-DSA-87, etc.
- Implementation: Which library provides the algorithm — OpenSSL 3.5, BoringSSL, NSS, a vendor HSM, a COTS product.
- Location: System hostname, application name, network segment, cloud account.
- Quantum vulnerability: Is this algorithm broken by Shor's or Grover's algorithm?
- Migration status: Not started / In progress / Migrated / Vendor dependent.
2.1a EO-14412 and the CBOM Mandate
EO-14412, signed June 2026, directs CISA and NIST to publish guidance on a Cryptographic Bill of Materials within 270 days of signing — guidance that will define the minimum elements required to inventory cryptographic assets automatically. For federal agencies and federal contractors, CBOM is not a best practice. It is a forthcoming regulatory requirement.
The practical implication: organizations that build their CBOM capability now, using the framework in this chapter, will have a substantial head start when CISA and NIST publish the formal requirements. Organizations that wait will be building from scratch under a compliance deadline. The elements covered in this chapter align with the draft CBOM framework that CISA published for comment in Q1 2026 and are the minimum you should capture regardless of what the final guidance requires.
| Engineer's Note The M-23-02 inventory requirement has been in force since November 2022. If your agency has not yet completed its initial cryptographic inventory, you are already behind on a four-year-old requirement. The CBOM framework in this chapter is how you get current quickly. |
|---|
2.2 Automated Discovery Tools
No manual inventory process can keep pace with a complex IT environment. Automated discovery is the starting point — not a replacement for the manual steps in Sections 2.3 and 2.4, but the foundation that makes those steps tractable. The following tools cover the primary discovery scenarios.
Network Traffic Scanning
nmap with ssl-enum-ciphers script. The fastest way to identify TLS cipher suites and protocol versions on live network services. Requires network access to target hosts.
nmap --script ssl-enum-ciphers -p 443,8443,636,993,995 <target_range>
Output identifies TLS version, supported cipher suites, and key exchange methods for each scanned endpoint. Look for:
- RSA key exchange (not forward-secret, quantum-vulnerable)
- ECDH/ECDHE with classical curves (P-256, P-384, X25519) — quantum-vulnerable key exchange
- TLS 1.0 or 1.1 — deprecated and should be disabled regardless of PQC migration
- Absence of X25519MLKEM768 in supported groups — indicates no hybrid PQC support
testssl.sh. More detailed TLS analysis than nmap, including certificate chain inspection, OCSP stapling, and protocol version negotiation testing.
./testssl.sh --cipher-per-proto --quiet https://target.example.gov
sslyze. Python-based TLS scanner with JSON output suitable for pipeline integration and CBOM ingestion.
sslyze --json_out=results.json --regular target.example.gov:443
Application and Library Scanning
Cryptography Scanner (cscanner) — IBM Research. Scans compiled binaries, source code, and container images to identify cryptographic algorithm usage. Outputs a CBOM-compatible JSON format aligned with the CycloneDX CBOM schema.
cscanner scan --path /opt/myapp --output cbom.json --format cyclonedx
OQS Demos / OpenSSL FIPS provider. Useful for verifying that a given build of OpenSSL has PQC support compiled in and that the expected algorithms are available.
openssl list -kem-algorithms | grep -i mlkem
openssl list -signature-algorithms | grep -i mldsa
Syft + Grype. Syft generates SBOMs for container images and filesystems; Grype scans for known vulnerabilities. Used together, they identify software components that contain cryptographic libraries so you know where to focus deeper CBOM analysis.
syft packages docker:myapp:latest -o cyclonedx-json > sbom.json
grype sbom:sbom.json
Cloud and SaaS Environment Scanning
AWS Security Hub / Amazon Inspector. Inspector now includes TLS configuration findings that identify endpoints still using TLS 1.0/1.1, weak cipher suites, and RSA key exchange. For GovCloud environments, Security Hub aggregates these findings across accounts.
AWS Config rules. Custom Config rules can evaluate whether load balancers, CloudFront distributions, and API gateways are configured for TLS 1.3 and PQC-capable cipher policies. A sample rule:
aws configservice put-config-rule --config-rule '{
"ConfigRuleName": "tls-pqc-ready",
"Source": { "Owner": "CUSTOM_LAMBDA", "SourceIdentifier": "arn:aws:lambda:..." },
"Scope": { "ComplianceResourceTypes": ["AWS::ElasticLoadBalancingV2::LoadBalancer"] }
}'
Azure Policy / Defender for Cloud. Azure Policy can enforce minimum TLS version on App Services, API Management, and storage accounts. Defender for Cloud provides a unified view of TLS configuration findings across Azure Government subscriptions.
| Tool | Primary Use | Output Format | Cost |
|---|---|---|---|
| nmap ssl-enum-ciphers | TLS cipher/protocol scanning | Text / XML | Free |
| testssl.sh | Detailed TLS analysis | Text / JSON / HTML | Free |
| sslyze | TLS scanning with JSON output | JSON | Free |
| cscanner (IBM) | Binary/source CBOM extraction | CycloneDX JSON | Free (open source) |
| Syft + Grype | SBOM generation + vuln scanning | CycloneDX / SPDX JSON | Free |
| Quantum Xchange Phio TX | Network PQC readiness assessment | Dashboard / reports | Commercial |
| Cryptosense Analyzer | Cryptographic API usage analysis | Report / findings | Commercial |
| AWS Inspector | Cloud TLS / config findings | Security Hub findings | AWS service pricing |
| Azure Defender for Cloud | Azure TLS / config findings | Dashboard / alerts | Azure service pricing |
2.3 Scanning Network Traffic for Vulnerable Key Exchanges
Automated port scanners identify what a server is willing to negotiate. Passive traffic analysis identifies what it actually negotiates in production. Both are necessary. A server configured to support TLS 1.3 with hybrid PQC may still be negotiating TLS 1.2 with RSA key exchange for legacy clients — a fact invisible to an active scanner but visible in a packet capture.
Passive Capture with Wireshark / tshark
Capture a representative sample of production TLS traffic (15–30 minutes during peak load) and analyze the ClientHello messages to see what cipher suites and key exchange groups your clients are actually offering:
tshark -i eth0 -Y 'tls.handshake.type == 1' \
-T fields -e ip.src -e tls.handshake.ciphersuite \
-e tls.handshake.extensions.supported_groups \
> client_hello_analysis.txt
From the output, identify:
- What percentage of ClientHellos include X25519MLKEM768 (group ID 0x11EC) in supported_groups? This is your hybrid PQC adoption rate.
- What percentage include only classical groups (0x001D = X25519, 0x0017 = P-256)? These are clients that will not negotiate hybrid PQC even with a PQC-capable server.
- What cipher suites are actually selected in ServerHellos? This is your real-world negotiated security level.
Identifying RSA Key Exchange in Production
RSA key exchange (as opposed to RSA authentication) is identifiable in TLS 1.2 traffic by the absence of a ServerKeyExchange message in the handshake. In TLS 1.3, RSA key exchange is not available — but many environments still run TLS 1.2 for legacy compatibility:
tshark -i eth0 -Y 'tls.record.content_type == 22' \
-T fields -e ip.dst -e tls.handshake.type \
| grep -v 'ServerKeyExchange' | sort | uniq -c | sort -rn
| What to Look For TLS 1.2 connections using RSA key exchange (no ServerKeyExchange, cipher suite starting with TLS_RSA_) are your highest-priority migration targets. Every one of these connections is trivially decryptable by a future quantum adversary who has captured the traffic today. |
|---|
2.4 Cataloging Certificates, Keys, and Trust Stores
Certificates are the most visible cryptographic artifact in most environments and often the most complex to migrate. A complete certificate inventory captures not just what certificates exist, but what signed them, when they expire, what algorithms they use, and what systems depend on them.
Certificate Inventory with OpenSSL
For individual certificates, extract algorithm and key size information:
openssl x509 -in cert.pem -noout -text | grep -E 'Public Key|Signature Algorithm|Not After'
For bulk scanning of a network range:
for host in $(cat hostlist.txt); do
echo "=== $host ==="
echo | openssl s_client -connect $host:443 2>/dev/null \
| openssl x509 -noout -text \
| grep -E 'Subject:|Issuer:|Public Key Algorithm:|Not After'
done
Enterprise Certificate Discovery
Venafi Trust Protection Platform and DigiCert CertCentral both offer certificate discovery and inventory features that scan enterprise networks and cloud environments for issued certificates, including algorithm type, key size, expiry, and issuing CA. For organizations with thousands of certificates, these platforms are the practical tool for initial discovery.
Microsoft Certificate Services / ADCS logs can be queried directly for all issued certificates in a Windows PKI environment:
certutil -view -out 'RequestID,CommonName,NotAfter,PublicKeyAlgorithm' CSV
Key Store and Trust Store Inventory
Beyond TLS certificates, catalog:
- Java KeyStores (JKS / PKCS12): keytool -list -v -keystore keystore.jks lists all entries with algorithm and key size.
- Windows Certificate Store: Get-ChildItem -Path Cert:\ -Recurse | Select-Object Subject, Thumbprint, NotAfter, SignatureAlgorithm in PowerShell.
- Linux trust anchors: cat /etc/ssl/certs/*.pem | openssl x509 -noout -subject -issuer -dates 2>/dev/null provides a bulk view of system trust store contents.
- HSM key inventory: Use the HSM vendor's management interface (pkcs11-tool, Thales KeySecure console, AWS CloudHSM CLI) to enumerate stored keys and their algorithm types.
| Common Inventory Gaps The three most frequently missed certificate locations: (1) SSH host keys and authorized_keys files, which use RSA or ECDSA and are quantum-vulnerable. (2) Code-signing certificates embedded in CI/CD pipelines and build systems. (3) IoT device certificates provisioned at manufacture and not tracked in enterprise certificate management systems. |
|---|
2.5 Vendor and Third-Party CBOM Assessment
The hardest part of any cryptographic inventory is not your own systems — it is the systems you buy. For most organizations, the majority of their cryptographic attack surface is in COTS products, SaaS platforms, network equipment, and embedded firmware that they did not write and cannot directly modify. Waiting for vendors to migrate on their own timeline is not a strategy; engaging them systematically is.
The Vendor Assessment Framework
For each significant vendor product or service in your environment, request the following:
- Current cryptographic algorithm inventory for the product (their CBOM or equivalent).
- FIPS 140-3 validation certificate number for cryptographic modules used in the product.
- PQC migration roadmap: which algorithms will be supported, at which parameter levels, and by when.
- CNSA 2.0 compliance plan and target date (for NSS-scope products).
- Notification process for cryptographic algorithm changes in future product releases.
Not every vendor will be able to answer all five questions today. The quality of their response is itself useful data: a vendor with a detailed PQC roadmap and clear FIPS validation documentation is lower risk than a vendor who cannot articulate their cryptographic dependencies. Use the vendor response to assign a migration risk rating.
| Vendor Response Quality | Risk Rating | Action |
|---|---|---|
| CBOM available, FIPS 203/204/205 roadmap with dates, CNSA 2.0 plan | Low | Track roadmap; include in migration schedule |
| Partial roadmap, FIPS validation in progress, no CNSA 2.0 plan | Medium | Escalate; require quarterly updates; evaluate alternatives |
| No roadmap, unable to provide cryptographic inventory | High | Treat as blocker; begin evaluating replacement products |
| Product EOL before migration deadline with no PQC-capable successor | Critical | Immediate replacement planning required |
Sample Vendor PQC Readiness Questions
The following questions can be sent directly to vendor security teams or included in RFI/RFP documentation:
- Does your product use cryptographic algorithms for key exchange, encryption, or digital signatures? If yes, please provide a list of algorithms, key sizes, and the libraries that implement them.
- Has your product undergone FIPS 140-3 validation? If yes, provide the certificate number. If in progress, provide the expected validation date.
- Does your product support ML-KEM (FIPS 203) for key encapsulation? At which parameter level (ML-KEM-512 / 768 / 1024)?
- Does your product support ML-DSA (FIPS 204) for digital signatures? At which parameter level?
- Is your product on the CISA Product Categories list for PQC-capable technologies?
- What is your target date for CNSA 2.0 compliance (if applicable to your customer base)?
- How will you notify customers of cryptographic algorithm changes in future releases?
Supply Chain Prioritization
Not every vendor relationship requires the same level of scrutiny. Prioritize your vendor assessment effort using this framework:
| Vendor Category | Assessment Priority | Why |
|---|---|---|
| Network security appliances (firewalls, VPNs, IDS/IPS) | Critical | Inline cryptographic devices; CNSA 2.0 acquisition gate applies Jan 2027 |
| PKI and certificate management platforms | Critical | Failure to migrate blocks all downstream certificate issuance |
| HSM vendors | Critical | PQC key storage requires HSM firmware support; long lead times |
| Operating system vendors | High | OS crypto libraries underlie all application cryptography |
| Cloud service providers | High | TLS termination, KMS, and managed services all contain crypto |
| Identity providers and IAM platforms | High | Authentication tokens and signing certificates are quantum-vulnerable |
| SaaS business applications | Medium | Typically lower sensitivity; assess based on data classification |
| Endpoint security vendors | Medium | Agent update signatures are quantum-vulnerable firmware signing targets |
2.6 Lab Exercise: Build Your CBOM
| Lab Prerequisites Docker installed and running. OpenSSL 3.5 or the oqs-provider for OpenSSL 3.x (see Appendix C for setup). nmap installed. Python 3.10+ with sslyze: pip install sslyze Network access to at least one TLS-enabled target (can use a local test server). A spreadsheet application or the CBOM template from Appendix B. |
|---|
Step 1: Set Up a Test TLS Server
Start a local TLS test server using OpenSSL so you have a known target to scan:
# Generate a self-signed certificate for testing
openssl req -x509 -newkey rsa:2048 -keyout test-key.pem \
-out test-cert.pem -days 365 -nodes \
-subj '/CN=test.local'
# Start a TLS server on port 4433
openssl s_server -cert test-cert.pem -key test-key.pem \
-port 4433 -www
Step 2: Scan with nmap
nmap --script ssl-enum-ciphers -p 4433 localhost
Record in your CBOM: the TLS version negotiated, the cipher suites offered, the key exchange group, and the server certificate algorithm and key size.
Step 3: Scan with sslyze
python -m sslyze --regular localhost:4433 --json_out=cbom_scan.json
Open cbom_scan.json and locate the cipher_suites and key_exchange sections. Note any classical-only key exchange groups. This is your quantum-vulnerability finding for this endpoint.
Step 4: Extract Certificate Details
echo | openssl s_client -connect localhost:4433 2>/dev/null \
| openssl x509 -noout -text \
| grep -E 'Public Key Algorithm|RSA Public-Key|Not After|Subject:'
Record: algorithm (RSA-2048 in this case — quantum-vulnerable), expiry date, and subject. This is a CBOM entry for this certificate.
Step 5: Start a PQC-Capable Server and Compare
Now start a server using OpenSSL 3.5 with hybrid PQC enabled (requires OpenSSL 3.5 installed):
openssl s_server -cert test-cert.pem -key test-key.pem \
-port 4434 -www -groups X25519MLKEM768:P-256
Re-run the nmap and sslyze scans against port 4434. Compare the supported groups output — you should now see X25519MLKEM768 (group 0x11EC) in the supported groups list. This is what a PQC-capable TLS endpoint looks like in your inventory.
Step 6: Populate Your CBOM Template
Using your scan results, populate one row in your CBOM for each finding:
| Field | Port 4433 (Classical) | Port 4434 (PQC Hybrid) |
|---|---|---|
| System | test.local:4433 | test.local:4434 |
| Protocol | TLS 1.3 | TLS 1.3 |
| Key Exchange Algorithm | X25519 (classical only) | X25519MLKEM768 (hybrid PQC) |
| Authentication Algorithm | RSA-2048 | RSA-2048 |
| Quantum Vulnerable? | Yes — key exchange | No — key exchange quantum-safe |
| Certificate Algorithm | RSA-2048 | RSA-2048 |
| Cert Quantum Vulnerable? | Yes | Yes (cert not yet migrated) |
| Migration Status | Not started | Key exchange migrated; cert pending |
| Next Action | Upgrade to OpenSSL 3.5 | Migrate cert to ML-DSA |
| Lab Takeaway Notice that even the PQC-capable server on port 4434 still has a quantum-vulnerable RSA-2048 certificate. This is the certificate chain gap described in Chapter 6 (WP6): hybrid key exchange migrates the session key security, but full quantum safety requires migrating the certificate algorithms as well. Your CBOM should capture both dimensions for every endpoint. |
|---|
Chapter 2 Summary
Before moving to Chapter 3, you should be able to answer these questions:
- Do I have a CBOM template in place and at least one system documented in it?
- Have I run at least one automated network scan (nmap or sslyze) against my environment?
- Have I identified at least one TLS endpoint still using classical-only key exchange?
- Have I identified my certificate inventory gaps — SSH host keys, code-signing certs, HSM keys?
- Have I sent PQC readiness questionnaires to my highest-priority vendors?
- Do I understand the difference between key exchange quantum vulnerability and certificate quantum vulnerability?
| Your CBOM Is Never Done A CBOM is a living document, not a one-time project. New systems are deployed, vendors push updates, and certificates expire and are renewed. Build CBOM update triggers into your change management process: any new system deployment, any software update to a cryptographic library, and any certificate renewal should trigger a CBOM review for the affected system. EO-14412 will eventually require automated CBOM tooling — treat this chapter as the manual baseline you are building toward automating. |
|---|
What’s Next
Chapter 3 takes your CBOM and turns it into a prioritized migration roadmap. Not everything migrates at once — risk-based prioritization determines which systems go first, which are quick wins, and which require long lead times. Chapter 3 also covers Zero Trust architecture intersection: how to sequence your PQC migration workstream if you are simultaneously running a ZTA program.
References
[1] Trump, D. (2026, June). Executive Order EO-14412: Securing the Nation Against Advanced Cryptographic Attacks. [Requires CISA/NIST CBOM guidance within 270 days of signing.]
[2] CISA. (2024, September). Strategy for Migrating to Automated Post-Quantum Cryptography Discovery and Inventory Tools. Available at: cisa.gov
[3] OASIS / CycloneDX. (2023). CycloneDX CBOM Standard v1.5. Available at: cyclonedx.org/capabilities/cbom. [The primary CBOM schema standard; aligns with draft CISA CBOM guidance.]
[4] IBM Research. Cryptography Scanner (cscanner). Available at: github.com/IBM/cbomkit. [Open-source CBOM extraction tool with CycloneDX output.]
[5] Open Quantum Safe Project. liboqs and oqs-provider. Available at: openquantumsafe.org. [Required for OpenSSL 3.x PQC capability; see Appendix C for installation.]
[6] Syft / Anchore. (2026). Syft SBOM Generator. Available at: github.com/anchore/syft.
[7] testssl.sh. Available at: testssl.sh. [Comprehensive TLS scanning tool; supports JSON output for CBOM ingestion.]
[8] NIST. (2023). Guidelines for the Selection, Configuration, and Use of Transport Layer Security (TLS) Implementations (SP 800-52 Rev. 2). [Reference for TLS configuration compliance assessment.]
[9] IANA. TLS Supported Groups Registry. Group 0x11EC: X25519MLKEM768. Available at: iana.org/assignments/tls-parameters