SAASMENT

Security skill · Find

Post-quantum crypto inventory review.

Build a cryptographic bill of materials (CBOM-style inventory) of quantum-vulnerable public-key cryptography across application code, TLS configs, certificates and PKI, SSH, JWT/JWS algorithms, KMS/HSM usage, and third-party SaaS vendors, then assess quantum readiness. Use when starting a post-quantum migration, answering crypto-inventory questions, or preparing a PQC roadmap.

Download .zipInstall via MCPFindMIT
  • Code review
  • Misconfiguration
  • Vulnerability management

Facts

Category
Find
License
MIT
Tags
  • Code review
  • Misconfiguration
  • Vulnerability management
Version
1.0.0
Last updated
2026-12-03
Folder
pqc-crypto-inventory-review/
MCP resource
skill://pqc-crypto-inventory-review/SKILL.md
Files
  • SKILL.md
  • LICENSE
  • references/inventory-search-patterns.md
  • references/cbom-inventory-table.md
  • references/vendor-questions.md
Standards

Original Saasment content. Saasment is in early access; this skill does not require joining it.

Install via MCP or as files

Connect your client to https://www.saasment.com/api/mcp (see client setup) and call get_skill:

{
  "name": "get_skill",
  "arguments": {
    "slug": "pqc-crypto-inventory-review"
  }
}

Or download the .zip and unpack it into your agent's skills directory:

Terminal, from your project root (user-level: ~/.cursor/skills)

mkdir -p .cursor/skills
curl -fsSL https://www.saasment.com/ai-security/skills/pqc-crypto-inventory-review/download.zip -o /tmp/pqc-crypto-inventory-review.zip
unzip -o /tmp/pqc-crypto-inventory-review.zip -d .cursor/skills
# result: .cursor/skills/pqc-crypto-inventory-review/SKILL.md

Review SKILL.md before enabling a skill. Skills are instructions your agent will follow.

SKILL.md

---
name: pqc-crypto-inventory-review
description: Build a cryptographic bill of materials (CBOM-style inventory) of quantum-vulnerable public-key cryptography across application code, TLS configs, certificates and PKI, SSH, JWT/JWS algorithms, KMS/HSM usage, and third-party SaaS vendors, then assess quantum readiness. Use when starting a post-quantum migration, answering crypto-inventory questions, or preparing a PQC roadmap.
license: MIT
metadata:
  author: Saasment
  version: "1.0.0"
  category: find
  tags: "code-review, misconfiguration, vulnerability-management"
---

# Post-quantum crypto inventory and quantum-readiness review (find)

License: MIT. Copyright (c) 2026 Saasment. Source: https://www.saasment.com/ai-security/skills/pqc-crypto-inventory-review

A cryptanalytically relevant quantum computer would break widely used public-key algorithms used for key establishment and digital signatures. Symmetric algorithms and modern password hashes are a different problem (key length and work factors), so this skill focuses on public-key use: RSA, finite-field Diffie–Hellman, ECDH/ECDSA, and long-lived Ed25519 signatures. The output is a CBOM-style inventory you can prioritize and hand to migration planning (`pqc-harvest-now-decrypt-later-prioritization`, `pqc-migration-plan`).

## When to use

- Leadership or compliance asks for a cryptographic inventory or quantum-readiness assessment.
- You are starting a PQC migration and need to know where classical public-key crypto lives.
- A customer or regulator questionnaire asks which systems rely on RSA, ECDH, ECDSA, or similar schemes.

## Safe by default

- Inventory only systems, repositories, and vendor relationships you own or are authorized to review.
- Do not copy private keys, certificates with private material, or HSM credentials into tickets, prompts, or the inventory. Record location and key identifier only.
- Prefer read-only searches (`rg`, config review, certificate listing). Do not crack keys, force certificate revocation, or disable production crypto during discovery.
- External TLS probes must stay light and targeted at hosts you are allowed to test. Prefer the companion skill `pqc-tls-hybrid-key-exchange-check` for handshake checks.

## What to treat as quantum-vulnerable (public-key)

Record these when used for confidentiality of key exchange, authentication, or long-term signatures:

- RSA key exchange or signatures (TLS certificates, JWT/JWS `RS*`/`PS*`, code signing, SSH host/user keys).
- Finite-field Diffie–Hellman and MQV.
- Elliptic-curve Diffie–Hellman (ECDH) and ECDSA (including P-256/P-384 curves in TLS and PKI).
- Ed25519 / EdDSA used for long-lived trust (firmware signing, package signing, root or intermediate certificates, long-lived tokens). Short-lived session or protocol uses still belong in the inventory so migration can plan replacements.

Do not flag AES, ChaCha20-Poly1305, HMAC, SHA-2/SHA-3, or Argon2/bcrypt/scrypt/PBKDF2 as quantum-broken under this skill. Note key sizes if a separate quantum-safe sizing review is requested later.

## Procedure

1. **Scope the estate.** List applications, services, TLS terminators, PKI, SSH fleets, token issuers, KMS/HSM partitions, CI signing, and SaaS vendors that terminate TLS or hold keys on your behalf. Assign an owner per area.
2. **Search application code** with the language and library patterns in `references/inventory-search-patterns.md`. For each hit, record algorithm, purpose (encrypt, sign, key exchange, transport), library, and data lifetime.
3. **Review TLS and edge configs.** Search for cipher suite lists, curve/group preferences, minimum TLS version, and certificate paths on reverse proxies, load balancers, CDNs, and app servers. Note whether hybrid PQ groups such as `X25519MLKEM768` appear (verify with `pqc-tls-hybrid-key-exchange-check`).
4. **Inventory certificates and PKI.** List issuing CAs, intermediates, leaf key types and sizes, validity periods, and automated renewal. Flag RSA and ECDSA leaves used on public endpoints and for code or document signing.
5. **Inventory SSH.** Collect host key algorithms and user CA or authorized-key algorithms (`ssh-keygen -l`, `sshd -T` where authorized). Record RSA, ECDSA, and Ed25519 keys and their roles.
6. **Inventory JWT/JWS and API auth.** Search for algorithm allowlists (`RS256`, `ES256`, `EdDSA`, `PS256`) and identity-provider signing settings. Note token lifetime and whether refresh tokens or offline tokens outlive a migration window.
7. **Inventory KMS/HSM and secrets platforms.** List key types (RSA, ECC), wrapping algorithms, and whether the provider documents ML-KEM / ML-DSA support or a PQC roadmap. Record key IDs, not key material.
8. **Ask third-party SaaS vendors.** Use the question themes in `references/vendor-questions.md` and CISA's Post-Quantum Questions to Ask Your Vendors. For renewals and deep vendor reviews, continue with `pqc-vendor-questionnaire` instead of duplicating that packet here. Capture roadmap dates, hybrid TLS support, and who owns migration in the contract.
9. **Fill the CBOM-style table** in `references/cbom-inventory-table.md`. One row per distinct crypto use (not per file hit). Mark quantum-vulnerable public-key rows clearly. When you need CycloneDX JSON, continue with `pqc-cbom-draft`.
10. **Summarize readiness.** Count systems with no owner, no vendor answer, long-lived secrets under classical public-key protection, and TLS endpoints without hybrid PQ key exchange. Pass the table to prioritization and migration skills.

## Verification

- Re-run the search patterns and confirm every high-severity row still maps to a real file, config, certificate, or vendor answer.
- Spot-check three TLS hosts and three signing uses against the table.
- Confirm no private key material was pasted into the inventory artifact.
- Confirm each row has an owner and a next action (investigate, accept with date, or migrate).

## Reporting

Deliver the CBOM-style table plus a short readiness summary: scope covered, gaps (unreviewed systems), count of quantum-vulnerable public-key uses by class (TLS, PKI, SSH, tokens, KMS, vendor), and links to follow-on skills for prioritization and migration.

## References

- NIST FIPS 203 (ML-KEM): https://csrc.nist.gov/pubs/fips/203/final
- NIST FIPS 204 (ML-DSA): https://csrc.nist.gov/pubs/fips/204/final
- NIST FIPS 205 (SLH-DSA): https://csrc.nist.gov/pubs/fips/205/final
- NIST IR 8547, Transition to Post-Quantum Cryptography Standards: https://csrc.nist.gov/pubs/ir/8547/final
- CISA Post-Quantum Cryptography Initiative: https://www.cisa.gov/topics/risk-management/quantum
- CISA / NSA / NIST Quantum-Readiness factsheet: https://www.cisa.gov/resources-tools/resources/quantum-readiness-migration-post-quantum-cryptography
- CISA Post-Quantum Questions to Ask Your Vendors: https://www.cisa.gov/resources-tools/resources/post-quantum-questions-ask-your-vendors
- Related articles: https://www.saasment.com/post-quantum-cryptography — https://www.saasment.com/post-quantum-cryptography/readiness-checklist — https://www.saasment.com/post-quantum-cryptography/migration
- Companion skills: `pqc-cbom-draft`, `pqc-vendor-questionnaire`, `pqc-tls-hybrid-key-exchange-check`, `pqc-ssh-kex-review`, `pqc-harvest-now-decrypt-later-prioritization`, `pqc-migration-plan`, `crypto-misuse-review`, `web-server-tls-headers-review`.

Helper files

LICENSE
MIT License

Copyright (c) 2026 Saasment

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
references/inventory-search-patterns.md
# Search patterns for quantum-vulnerable public-key crypto

License: MIT. Copyright (c) 2026 Saasment.

Search leads only. Read each hit to learn purpose and data lifetime before adding a CBOM row.

## Cross-language

```bash
# Algorithm names and TLS group strings
rg -n -i 'rsa|ecdsa|ecdh|ed25519|ed448|x25519|x448|diffie.?hellman|\bdh\b|ml-?kem|ml-?dsa|slh-?dsa|x25519mlkem768|secp256r1mlkem768' \
  --glob '!*.lock' --glob '!node_modules' --glob '!vendor' --glob '!dist'

# JWT / JWS algorithm identifiers
rg -n -i '["'"'"']?(RS|PS|ES|EdDSA)(256|384|512)?["'"'"']?|algorithms?\s*[:=]' \
  --glob '*.{js,ts,py,go,java,kt,rb,php,cs,json,yml,yaml}'

# PEM / key file hints (location only; do not open private keys into chat)
rg -n 'BEGIN (RSA |EC |OPENSSH |)PRIVATE KEY|BEGIN CERTIFICATE' --glob '!node_modules'
```

## JavaScript / TypeScript (Node, WebCrypto)

```bash
rg -n -i 'generateKeyPair|createSign|createVerify|subtle\.(generateKey|sign|verify|deriveBits)|RSASSA|RSA-PSS|ECDSA|ECDH|Ed25519|X25519|crypto\.createDiffieHellman' \
  --glob '*.{js,ts,mjs,cjs}'
rg -n -i 'algorithm:\s*["'"'"'](RS|PS|ES|EdDSA)' --glob '*.{js,ts}'
```

## Python

```bash
rg -n -i 'from cryptography|Crypto\.(PublicKey|Signature|Protocol)|rsa\.|ec\.|ed25519|x25519|PKCS1|PSS|ECDSA|ECDH|jwt\.(encode|decode)|algorithms=' \
  --glob '*.py'
```

## Java / JVM

```bash
rg -n -i 'KeyPairGenerator|Signature\.getInstance|KeyAgreement|RSA/|ECB/PKCS1|SHA256withRSA|SHA256withECDSA|Ed25519|X25519|Jwts\.|Algorithm\.(RSA|ES|PS|EdDSA)' \
  --glob '*.{java,kt}'
```

## Go

```bash
rg -n -i 'crypto/(rsa|ecdsa|ed25519|ecdh|x509)|rsa\.GenerateKey|ecdsa\.|ed25519\.|x25519\.|jwt\.(SigningMethod|RegisteredClaims)' \
  --glob '*.go'
```

## TLS and edge configuration

```bash
rg -n -i 'ssl_certificate|ssl_protocols|ssl_ciphers|ssl_ecdh_curve|ssl_conf_command|Curves|Groups|X25519MLKEM768|MinProtocol|MaxProtocol' \
  --glob '*.{conf,cnf,yml,yaml,tf,json,toml}'
```

## SSH

```bash
# On hosts you are authorized to inspect
ssh-keygen -l -f /etc/ssh/ssh_host_*.pub 2>/dev/null
sshd -T 2>/dev/null | rg -i 'hostkeyalgorithms|pubkeyacceptedalgorithms|kexalgorithms'
rg -n -i 'ssh-(rsa|ed25519)|ecdsa-sha2|sk-ssh-ed25519|HostKeyAlgorithms|PubkeyAcceptedAlgorithms' \
  --glob '*ssh*' --glob '*.conf'
```

## KMS / cloud key references (identifiers only)

```bash
rg -n -i 'KeySpec|CustomerMasterKeySpec|key_algorithm|algorithm.*RSA|ECC_NIST|aws/kms|cloudkms|KeyVault' \
  --glob '*.{tf,yml,yaml,json,py,ts,go,java}'
```
references/cbom-inventory-table.md
# CBOM-style inventory table

License: MIT. Copyright (c) 2026 Saasment.

Copy into a spreadsheet. One row per distinct cryptographic use.

| ID | Asset / system | Location (repo path, host, vendor) | Crypto use | Algorithm / parameters | Protocol or format | Key / cert ID (no secret material) | Data or trust lifetime | Quantum-vulnerable PKC? | Owner | Evidence date | Next action |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| CBOM-001 | api-edge | `deploy/nginx.conf` + `api.example.com` | TLS key exchange | X25519 (classical) | TLS 1.3 | leaf cert serial … | session | yes (classical KE) | platform | 2026-12-03 | check hybrid PQ |
| CBOM-002 | auth-service | `src/tokens/sign.ts` | JWT signing | RS256 | JWS | KMS key alias `auth-jwt` | refresh 30d | yes | identity | 2026-12-03 | plan ML-DSA or hybrid |

## Column notes

- **Crypto use:** key establishment, digital signature, certificate, SSH host key, code signing, vendor-managed TLS, and so on.
- **Data or trust lifetime:** how long confidentiality or signature trust must hold (session, days, years, firmware lifetime).
- **Quantum-vulnerable PKC?** yes for RSA, finite-field DH, ECDH/ECDSA, and long-term Ed25519/EdDSA trust roots; no for AES-GCM, ChaCha20-Poly1305, HMAC, SHA-2/3 used alone.
- **Next action:** investigate, vendor question, migrate, or accept with review date.

## Roll-up counts (fill after inventory)

| Class | Rows | Quantum-vulnerable | Missing owner | Missing vendor answer |
| --- | --- | --- | --- | --- |
| Application code | | | | |
| TLS / edge | | | | |
| Certificates / PKI | | | | |
| SSH | | | | |
| JWT / JWS | | | | |
| KMS / HSM | | | | |
| Third-party SaaS | | | | |
references/vendor-questions.md
# Third-party SaaS and product vendor questions

License: MIT. Copyright (c) 2026 Saasment.

Use during discovery and initial vendor outreach. Prefer written answers. Align with CISA's Post-Quantum Questions to Ask Your Vendors: https://www.cisa.gov/resources-tools/resources/post-quantum-questions-ask-your-vendors

For an extended procurement or renewal packet (evidence scoring, edge-vs-origin TLS, contract hooks), use companion skill `pqc-vendor-questionnaire` instead of duplicating that questionnaire here.

## Questions to ask

1. Which public-key algorithms and parameter sets does this product use today for TLS key exchange, authentication, signing, and customer-managed keys?
2. Do you maintain a cryptographic inventory or CBOM for the product, and can you share the portions that affect our tenant?
3. What is your documented roadmap to NIST FIPS 203 (ML-KEM), FIPS 204 (ML-DSA), and FIPS 205 (SLH-DSA), including target dates for hybrid TLS key exchange and for signatures?
4. For HTTPS endpoints we use, do you already negotiate hybrid groups such as `X25519MLKEM768`? How can we verify (for example OpenSSL 3.5+ `s_client`)?
5. Which components cannot be updated in place (appliances, IoT, long-lived roots of trust), and what is the replacement path and lead time?
6. Will new contracts and renewals include PQC migration milestones, testing windows, and notice before classical algorithms are removed?
7. Where do you rely on sub-processors or cloud regions for cryptography, and how do their PQC timelines affect us?
8. Who is the named contact for PQC migration questions for our account?

## How to record answers

Add one CBOM row per vendor product. Store the answer date, document link or ticket id, and whether the answer is sufficient to plan migration. If the vendor cannot answer, mark **Next action** as escalate before the next renewal.

Related

Related guides

Companion skills

Related library entries

Questions

How do I install the Post-quantum crypto inventory review skill?

Download https://www.saasment.com/ai-security/skills/pqc-crypto-inventory-review/download.zip and unzip it into your agent's skills directory (for example .cursor/skills, .claude/skills, .agents/skills, or .github/skills) so that pqc-crypto-inventory-review/SKILL.md exists. Or connect to https://www.saasment.com/api/mcp and call the get_skill tool with the slug pqc-crypto-inventory-review.

What license is the Post-quantum crypto inventory review skill under?

It is original Saasment content under the MIT license, stated in the SKILL.md frontmatter and in the LICENSE file in the skill folder.

Is it safe to run this skill?

A skill is a set of instructions your agent follows, so read SKILL.md first. It tells the agent to test only systems you own or are authorized to test, to use test environments and synthetic data, and to avoid destructive probes. Downloading it does not run any code on your machine.

Next step.

Saasment is an early-access AI security platform that tests a risk and closes it. Connections, live tests, and automated fixes are not available yet.

← Saasment Security MCP · all skills

See the demo.

Open the demo workspace with sample data. No login. Register from the banner when you want early access. No security team. No call.

See the demo