Stephanie Anne Timmer

Chapter 2

Inventory Your Cryptographic Estate

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:

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:

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.

ToolPrimary UseOutput FormatCost
nmap ssl-enum-ciphersTLS cipher/protocol scanningText / XMLFree
testssl.shDetailed TLS analysisText / JSON / HTMLFree
sslyzeTLS scanning with JSON outputJSONFree
cscanner (IBM)Binary/source CBOM extractionCycloneDX JSONFree (open source)
Syft + GrypeSBOM generation + vuln scanningCycloneDX / SPDX JSONFree
Quantum Xchange Phio TXNetwork PQC readiness assessmentDashboard / reportsCommercial
Cryptosense AnalyzerCryptographic API usage analysisReport / findingsCommercial
AWS InspectorCloud TLS / config findingsSecurity Hub findingsAWS service pricing
Azure Defender for CloudAzure TLS / config findingsDashboard / alertsAzure 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:

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:

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:

  1. Current cryptographic algorithm inventory for the product (their CBOM or equivalent).
  2. FIPS 140-3 validation certificate number for cryptographic modules used in the product.
  3. PQC migration roadmap: which algorithms will be supported, at which parameter levels, and by when.
  4. CNSA 2.0 compliance plan and target date (for NSS-scope products).
  5. 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 QualityRisk RatingAction
CBOM available, FIPS 203/204/205 roadmap with dates, CNSA 2.0 planLowTrack roadmap; include in migration schedule
Partial roadmap, FIPS validation in progress, no CNSA 2.0 planMediumEscalate; require quarterly updates; evaluate alternatives
No roadmap, unable to provide cryptographic inventoryHighTreat as blocker; begin evaluating replacement products
Product EOL before migration deadline with no PQC-capable successorCriticalImmediate 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:

Supply Chain Prioritization

Not every vendor relationship requires the same level of scrutiny. Prioritize your vendor assessment effort using this framework:

Vendor CategoryAssessment PriorityWhy
Network security appliances (firewalls, VPNs, IDS/IPS)CriticalInline cryptographic devices; CNSA 2.0 acquisition gate applies Jan 2027
PKI and certificate management platformsCriticalFailure to migrate blocks all downstream certificate issuance
HSM vendorsCriticalPQC key storage requires HSM firmware support; long lead times
Operating system vendorsHighOS crypto libraries underlie all application cryptography
Cloud service providersHighTLS termination, KMS, and managed services all contain crypto
Identity providers and IAM platformsHighAuthentication tokens and signing certificates are quantum-vulnerable
SaaS business applicationsMediumTypically lower sensitivity; assess based on data classification
Endpoint security vendorsMediumAgent 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:

FieldPort 4433 (Classical)Port 4434 (PQC Hybrid)
Systemtest.local:4433test.local:4434
ProtocolTLS 1.3TLS 1.3
Key Exchange AlgorithmX25519 (classical only)X25519MLKEM768 (hybrid PQC)
Authentication AlgorithmRSA-2048RSA-2048
Quantum Vulnerable?Yes — key exchangeNo — key exchange quantum-safe
Certificate AlgorithmRSA-2048RSA-2048
Cert Quantum Vulnerable?YesYes (cert not yet migrated)
Migration StatusNot startedKey exchange migrated; cert pending
Next ActionUpgrade to OpenSSL 3.5Migrate 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:

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