# Post-Quantum Cryptography Readiness Report: paramiko/paramiko

Generated 2026-12-01 02:59 UTC by [Shorline](https://github.com/Forrest-Jones/shorline) v0.1.0.
- **commit:** 0e9ccb91e0f9a68f2587233d523ad7fe46e730fe
- **repository:** https://github.com/paramiko/paramiko

## Executive summary

| Metric | Value |
|---|---|
| Findings needing action | **54** of 59 |
| Critical / High / Medium / Low | 0 / 7 / 13 / 34 |
| Quantum readiness (crypto findings already PQC or hybrid) | **8%** |
| Source files / key & cert files / dependencies scanned | 70 / 26 / 19 |
| Quantum-vulnerable certificates valid past 2030 | 0 |

**Risk model (Mosca's inequality).** Data protected today by quantum-vulnerable key establishment is at risk when *shelf life (X) + migration time (Y) > time to a cryptanalytically relevant quantum computer (Z)*. This report assumes X = 10 years, Y = 5 years, CRQC in 2035 (Z = 8.0 years). These are planning assumptions, not predictions; set them in `.shorline.yml`.

## Regulatory timeline

| Date | Source | Requirement |
|---|---|---|
| 2022-05-04 | NSM-10 | US goal: mitigate as much quantum risk as feasible by 2035; annual inventories of quantum-vulnerable systems. |
| 2022-11-18 | OMB M-23-02 | Agencies submit a prioritized cryptographic inventory to ONCD and CISA every year through 2035. |
| 2024-08-13 | FIPS 203 / 204 / 205 | ML-KEM, ML-DSA and SLH-DSA published as final standards; NIST: "can and should be put into use now". |
| 2026-06-22 | EO 14412 | Federal HVAs/high-impact systems: PQC key establishment by 2030-12-31, PQC signatures by 2031-12-31; CISA/NIST to define minimum CBOM elements. |
| 2026-06 | OMB M-26-15 | Risk-prioritized migration, objective 2030-12-31; automated, continuously updated inventory feeding a CBOM; TLS 1.3 by 2030-01-02. |
| 2026-10-27 | NIST IR 8547 (final) | Quantum-vulnerable RSA, ECDSA, EdDSA, (EC)DH, MQV: deprecated after 2030, disallowed after 2035. |
| 2027-01-01 | CNSA 2.0 / CNSSP 15 | National Security Systems: CNSA 2.0 required in all new acquisitions. |
| 2030-12-31 | CNSA 2.0 / CNSSP 15 | NSS equipment that cannot support CNSA 2.0 phased out; NIST deprecation of quantum-vulnerable algorithms begins after 2030. |
| 2031-12-31 | CNSA 2.0 / CNSSP 15 | CNSA 2.0 algorithms (ML-KEM-1024, ML-DSA-87, AES-256, SHA-384/512) mandated for NSS. |
| 2035 | NSM-10 / NIST IR 8547 | Quantum-vulnerable public-key algorithms disallowed under NIST standards; federal migration target. |

## Cryptographic inventory by algorithm

| Algorithm | Status | Occurrences | Max risk | Found in | Migrate to | Standards |
|---|---|---:|---:|---|---|---|
| RSA | quantum-vulnerable | 23 | 76 (high) | code, key | ML-KEM-768 (FIPS 203) for encryption/key transport; ML-DSA-65 (FIPS 204) or SLH-DSA (FIPS 205) for signatures | [FIPS-203](https://csrc.nist.gov/pubs/fips/203/final), [FIPS-204](https://csrc.nist.gov/pubs/fips/204/final), [IR-8547](https://csrc.nist.gov/pubs/ir/8547/final), [NSM-10](https://www.govinfo.gov/content/pkg/DCPD-202200355/pdf/DCPD-202200355.pdf), [OMB-M-23-02](https://www.whitehouse.gov/wp-content/uploads/2022/11/M-23-02-M-Memo-on-Migrating-to-Post-Quantum-Cryptography.pdf), [OMB-M-26-15](https://www.whitehouse.gov/wp-content/uploads/2026/06/m-26-15-execution-of-the-migration-to-post-quantum-cryptography.pdf), [EO-14412](https://www.whitehouse.gov/wp-content/uploads/2026/06/eo-14412.pdf), [CNSA-2.0](https://media.defense.gov/2022/Sep/07/2003071836/-1/-1/0/CSI_CNSA_2.0_FAQ_.PDF) |
| X25519 | quantum-vulnerable | 5 | 76 (high) | code | Hybrid X25519MLKEM768 (keeps X25519, adds ML-KEM-768) | [FIPS-203](https://csrc.nist.gov/pubs/fips/203/final), [IR-8547](https://csrc.nist.gov/pubs/ir/8547/final), [NSM-10](https://www.govinfo.gov/content/pkg/DCPD-202200355/pdf/DCPD-202200355.pdf), [OMB-M-23-02](https://www.whitehouse.gov/wp-content/uploads/2022/11/M-23-02-M-Memo-on-Migrating-to-Post-Quantum-Cryptography.pdf), [OMB-M-26-15](https://www.whitehouse.gov/wp-content/uploads/2026/06/m-26-15-execution-of-the-migration-to-post-quantum-cryptography.pdf), [EO-14412](https://www.whitehouse.gov/wp-content/uploads/2026/06/eo-14412.pdf), [CNSA-2.0](https://media.defense.gov/2022/Sep/07/2003071836/-1/-1/0/CSI_CNSA_2.0_FAQ_.PDF) |
| ECDH | quantum-vulnerable | 2 | 76 (high) | code | Hybrid X25519MLKEM768 now, ML-KEM-768/1024 (FIPS 203) | [FIPS-203](https://csrc.nist.gov/pubs/fips/203/final), [IR-8547](https://csrc.nist.gov/pubs/ir/8547/final), [NSM-10](https://www.govinfo.gov/content/pkg/DCPD-202200355/pdf/DCPD-202200355.pdf), [OMB-M-23-02](https://www.whitehouse.gov/wp-content/uploads/2022/11/M-23-02-M-Memo-on-Migrating-to-Post-Quantum-Cryptography.pdf), [OMB-M-26-15](https://www.whitehouse.gov/wp-content/uploads/2026/06/m-26-15-execution-of-the-migration-to-post-quantum-cryptography.pdf), [EO-14412](https://www.whitehouse.gov/wp-content/uploads/2026/06/eo-14412.pdf), [CNSA-2.0](https://media.defense.gov/2022/Sep/07/2003071836/-1/-1/0/CSI_CNSA_2.0_FAQ_.PDF) |
| Embedded private key | quantum-vulnerable | 5 | 51 (medium) | code | Move key to a KMS/HSM; regenerate with ML-DSA/ML-KEM where supported | [IR-8547](https://csrc.nist.gov/pubs/ir/8547/final), [NSM-10](https://www.govinfo.gov/content/pkg/DCPD-202200355/pdf/DCPD-202200355.pdf), [OMB-M-23-02](https://www.whitehouse.gov/wp-content/uploads/2022/11/M-23-02-M-Memo-on-Migrating-to-Post-Quantum-Cryptography.pdf), [OMB-M-26-15](https://www.whitehouse.gov/wp-content/uploads/2026/06/m-26-15-execution-of-the-migration-to-post-quantum-cryptography.pdf), [EO-14412](https://www.whitehouse.gov/wp-content/uploads/2026/06/eo-14412.pdf), [CNSA-2.0](https://media.defense.gov/2022/Sep/07/2003071836/-1/-1/0/CSI_CNSA_2.0_FAQ_.PDF) |
| ECDSA | quantum-vulnerable | 11 | 45 (medium) | code, key | ML-DSA-65 (FIPS 204); ML-DSA-87 for CNSA 2.0 | [FIPS-204](https://csrc.nist.gov/pubs/fips/204/final), [FIPS-205](https://csrc.nist.gov/pubs/fips/205/final), [IR-8547](https://csrc.nist.gov/pubs/ir/8547/final), [NSM-10](https://www.govinfo.gov/content/pkg/DCPD-202200355/pdf/DCPD-202200355.pdf), [OMB-M-23-02](https://www.whitehouse.gov/wp-content/uploads/2022/11/M-23-02-M-Memo-on-Migrating-to-Post-Quantum-Cryptography.pdf), [OMB-M-26-15](https://www.whitehouse.gov/wp-content/uploads/2026/06/m-26-15-execution-of-the-migration-to-post-quantum-cryptography.pdf), [EO-14412](https://www.whitehouse.gov/wp-content/uploads/2026/06/eo-14412.pdf), [CNSA-2.0](https://media.defense.gov/2022/Sep/07/2003071836/-1/-1/0/CSI_CNSA_2.0_FAQ_.PDF) |
| EdDSA | quantum-vulnerable | 9 | 27 (low) | code, key | ML-DSA-65 (FIPS 204) | [FIPS-204](https://csrc.nist.gov/pubs/fips/204/final), [IR-8547](https://csrc.nist.gov/pubs/ir/8547/final), [NSM-10](https://www.govinfo.gov/content/pkg/DCPD-202200355/pdf/DCPD-202200355.pdf), [OMB-M-23-02](https://www.whitehouse.gov/wp-content/uploads/2022/11/M-23-02-M-Memo-on-Migrating-to-Post-Quantum-Cryptography.pdf), [OMB-M-26-15](https://www.whitehouse.gov/wp-content/uploads/2026/06/m-26-15-execution-of-the-migration-to-post-quantum-cryptography.pdf), [EO-14412](https://www.whitehouse.gov/wp-content/uploads/2026/06/eo-14412.pdf), [CNSA-2.0](https://media.defense.gov/2022/Sep/07/2003071836/-1/-1/0/CSI_CNSA_2.0_FAQ_.PDF) |
| ML-KEM | quantum-resistant | 3 | 0 (info) | code |  | [FIPS-203](https://csrc.nist.gov/pubs/fips/203/final) |

## Top priority findings

| # | Risk | Algorithm | Location | Finding | Why |
|---:|---|---|---|---|---|
| 1 | 76 high | X25519-255 | `paramiko/kex_curve25519.py:30` | X25519 key agreement (pyca/cryptography) | Mosca: shelf life 10y + migration 5y > 8.1y to CRQC (2035). Traffic/data recorded today stays exposed ~6.9y (harvest-now-decrypt-later). |
| 2 | 76 high | X25519-255 | `paramiko/kex_curve25519.py:45` | X25519 key agreement (pyca/cryptography) | Mosca: shelf life 10y + migration 5y > 8.1y to CRQC (2035). Traffic/data recorded today stays exposed ~6.9y (harvest-now-decrypt-later). |
| 3 | 76 high | ECDH | `paramiko/kex_ecdh_nist.py:71` | ECDH key agreement (pyca/cryptography) | Mosca: shelf life 10y + migration 5y > 8.1y to CRQC (2035). Traffic/data recorded today stays exposed ~6.9y (harvest-now-decrypt-later). |
| 4 | 76 high | ECDH | `paramiko/kex_ecdh_nist.py:117` | ECDH key agreement (pyca/cryptography) | Mosca: shelf life 10y + migration 5y > 8.1y to CRQC (2035). Traffic/data recorded today stays exposed ~6.9y (harvest-now-decrypt-later). |
| 5 | 76 high | RSA | `paramiko/rsakey.py:188` | RSA key generation (pyca/cryptography) | Mosca: shelf life 10y + migration 5y > 8.1y to CRQC (2035). Traffic/data recorded today stays exposed ~6.9y (harvest-now-decrypt-later). |
| 6 | 64 high | RSA | `paramiko/rsakey.py:143` | RSA padding (encryption or signature) (pyca/cryptography) | Mosca: shelf life 10y + migration 5y > 8.1y to CRQC (2035). Traffic/data recorded today stays exposed ~6.9y (harvest-now-decrypt-later). |
| 7 | 64 high | RSA | `paramiko/rsakey.py:171` | RSA padding (encryption or signature) (pyca/cryptography) | Mosca: shelf life 10y + migration 5y > 8.1y to CRQC (2035). Traffic/data recorded today stays exposed ~6.9y (harvest-now-decrypt-later). |
| 8 | 54 medium | RSA-1024 | `tests/_support/rsa-lonely.key:1` | RSA private key (PKCS#1) | Mosca: shelf life 10y + migration 5y > 8.1y to CRQC (2035). Traffic/data recorded today stays exposed ~6.9y (harvest-now-decrypt-later). Key size is below 112-bit classical strength (already disallowed by SP 800-131A). (test code) |
| 9 | 54 medium | RSA-1024 | `tests/_support/rsa.key:1` | RSA private key (PKCS#1) | Mosca: shelf life 10y + migration 5y > 8.1y to CRQC (2035). Traffic/data recorded today stays exposed ~6.9y (harvest-now-decrypt-later). Key size is below 112-bit classical strength (already disallowed by SP 800-131A). (test code) |
| 10 | 51 medium | Embedded private key | `tests/test_pkey.py:70` | Private key embedded in source | Private key committed to source: compromised now, and quantum-vulnerable. (test code) |
| 11 | 51 medium | Embedded private key | `tests/test_pkey.py:88` | Private key embedded in source | Private key committed to source: compromised now, and quantum-vulnerable. (test code) |
| 12 | 51 medium | Embedded private key | `tests/test_pkey.py:96` | Private key embedded in source | Private key committed to source: compromised now, and quantum-vulnerable. (test code) |
| 13 | 51 medium | Embedded private key | `tests/test_pkey.py:105` | Private key embedded in source | Private key committed to source: compromised now, and quantum-vulnerable. (test code) |
| 14 | 51 medium | Embedded private key | `tests/test_pkey.py:126` | Private key embedded in source | Private key committed to source: compromised now, and quantum-vulnerable. (test code) |
| 15 | 45 medium | ECDSA | `paramiko/ecdsakey.py:224` | ECDSA signature (pyca/cryptography) | Signatures are not exposed retroactively; replace before NIST deprecation (after 2030) and CRQC (2035). |
| 16 | 45 medium | ECDSA | `paramiko/ecdsakey.py:242` | ECDSA signature (pyca/cryptography) | Signatures are not exposed retroactively; replace before NIST deprecation (after 2030) and CRQC (2035). |
| 17 | 45 medium | X25519-255 | `tests/test_kex.py:142` | X25519 key agreement (pyca/cryptography) | Mosca: shelf life 10y + migration 5y > 8.1y to CRQC (2035). Traffic/data recorded today stays exposed ~6.9y (harvest-now-decrypt-later). (test code) |
| 18 | 45 medium | RSA-2048 | `tests/test_rsa_openssh_nopad.key:1` | OpenSSH private key | Mosca: shelf life 10y + migration 5y > 8.1y to CRQC (2035). Traffic/data recorded today stays exposed ~6.9y (harvest-now-decrypt-later). (test code) |
| 19 | 45 medium | RSA | `tests/test_rsa_password.key:1` | RSA private key (encrypted/legacy) | Mosca: shelf life 10y + migration 5y > 8.1y to CRQC (2035). Traffic/data recorded today stays exposed ~6.9y (harvest-now-decrypt-later). (test code) |
| 20 | 36 low | RSA-1024 | `tests/test_rsa.key.pub:1` | SSH public key | Signatures are not exposed retroactively; replace before NIST deprecation (after 2030) and CRQC (2035). Key size is below 112-bit classical strength (already disallowed by SP 800-131A). (test code) |
| 21 | 27 low | ECDSA-P-256 | `tests/_support/ecdsa-256.key:1` | EC private key (SEC1) | Signatures are not exposed retroactively; replace before NIST deprecation (after 2030) and CRQC (2035). (test code) |
| 22 | 27 low | ECDSA | `tests/_support/ecdsa-256.key-cert.pub:1` | SSH public key | Signatures are not exposed retroactively; replace before NIST deprecation (after 2030) and CRQC (2035). (test code) |
| 23 | 27 low | EdDSA-Ed25519 | `tests/_support/ed25519.key:1` | OpenSSH private key | Signatures are not exposed retroactively; replace before NIST deprecation (after 2030) and CRQC (2035). (test code) |
| 24 | 27 low | EdDSA | `tests/_support/ed25519.key-cert.pub:1` | SSH public key | Signatures are not exposed retroactively; replace before NIST deprecation (after 2030) and CRQC (2035). (test code) |
| 25 | 27 low | EdDSA-Ed448 | `tests/_support/ed448.key:1` | Private key (PKCS#8) | Signatures are not exposed retroactively; replace before NIST deprecation (after 2030) and CRQC (2035). (test code) |

## Cryptographic dependencies

| Package | Version | Ecosystem | PQC status | Manifest | Note |
|---|---|---|---|---|---|
| cryptography | 3.3 | pypi | cryptography 3.3 predates PQC support; upgrade to >= 48.0.0 | `pyproject.toml:13` | ML-KEM and ML-DSA APIs (47.0.0 for AWS-LC/BoringSSL builds; 48.0.0 adds OpenSSL 3.5+, i.e. standard wheels). |

## Already quantum-safe

- ML-KEM (quantum-resistant) at `paramiko/kex_mlkem.py:75`
- X25519-255 (hybrid-pqc) at `paramiko/kex_mlkem.py:76`
- X25519-255 (hybrid-pqc) at `paramiko/kex_mlkem.py:84`
- ML-KEM (quantum-resistant) at `paramiko/kex_mlkem.py:88`
- ML-KEM (quantum-resistant) at `paramiko/kex_mlkem.py:135`

## Standards cited

- **NSA CNSA 2.0 (advisory 2022, FAQ v2.2 Oct 2026; CNSSP 15)** (2026-10): National Security Systems: CNSA 2.0 in all new acquisitions from 2027-01-01; non-capable equipment phased out by 2030-12-31; CNSA 2.0 mandated by 2031-12-31. Requires ML-KEM-1024, ML-DSA-87, AES-256, SHA-384/512, LMS/XMSS. <https://media.defense.gov/2022/Sep/07/2003071836/-1/-1/0/CSI_CNSA_2.0_FAQ_.PDF>
- **Executive Order 14412: Securing the Nation Against Advanced Cryptographic Attacks** (2026-06-22): HVAs and high-impact systems must use PQC for key establishment by 2030-12-31 and for signatures by 2031-12-31; CISA/NIST to define minimum CBOM elements. <https://www.whitehouse.gov/wp-content/uploads/2026/06/eo-14412.pdf>
- **FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard (ML-KEM)** (2024-08-13): Approved post-quantum key establishment. NIST recommends ML-KEM-768 as the default parameter set (IR 8547). <https://csrc.nist.gov/pubs/fips/203/final>
- **FIPS 204: Module-Lattice-Based Digital Signature Standard (ML-DSA)** (2024-08-13): Primary post-quantum digital signature. <https://csrc.nist.gov/pubs/fips/204/final>
- **FIPS 205: Stateless Hash-Based Digital Signature Standard (SLH-DSA)** (2024-08-13): Conservative hash-based post-quantum signature (larger, slower; good for firmware/roots of trust). <https://csrc.nist.gov/pubs/fips/205/final>
- **NIST IR 8547: Transition to Post-Quantum Cryptography Standards (final)** (2026-10-27): Quantum-vulnerable RSA, ECDSA, EdDSA, (EC)DH and MQV are deprecated after 2030 and disallowed under NIST standards after 2035. <https://csrc.nist.gov/pubs/ir/8547/final>
- **National Security Memorandum 10** (2022-05-04): Sets 2035 as the goal for mitigating quantum risk; requires agencies to inventory quantum-vulnerable cryptographic systems annually. <https://www.govinfo.gov/content/pkg/DCPD-202200355/pdf/DCPD-202200355.pdf>
- **OMB M-23-02: Migrating to Post-Quantum Cryptography** (2022-11-18): Annual prioritized inventory of CRQC-vulnerable cryptographic systems (algorithm, key length, service, vendor, data lifetime) to ONCD and CISA through 2035. <https://www.whitehouse.gov/wp-content/uploads/2022/11/M-23-02-M-Memo-on-Migrating-to-Post-Quantum-Cryptography.pdf>
- **OMB M-26-15: Execution of the Migration to Post-Quantum Cryptography** (2026-06): Risk-prioritized migration, objective 2030-12-31; recommends automated, continuously updated inventory (SCA/SBOM, SAST, network scanning) feeding a CBOM; TLS 1.3 by 2030-01-02. <https://www.whitehouse.gov/wp-content/uploads/2026/06/m-26-15-execution-of-the-migration-to-post-quantum-cryptography.pdf>
- **NIST SP 800-131A: Transitioning the Use of Cryptographic Algorithms and Key Lengths** (): Defines acceptable/deprecated/disallowed; SHA-1 signatures, 3DES, and keys below 112-bit strength are disallowed. <https://csrc.nist.gov/pubs/sp/800/131/a/r2/final>

## Method and limitations

Shorline uses pattern-based static analysis of crypto API calls, parses certificate/key files, reads dependency manifests, and performs standard client handshakes against endpoints you list. It does not follow data flow, so key sizes and algorithms chosen at runtime may show as "unknown", and wrapper libraries may hide calls. Findings marked *test* or low confidence are down-weighted, not removed. Treat this report as the automated first pass of an inventory, to be reviewed by an engineer.
