Skip to content

Post-quantum cryptography audit — RSA/ECC/SHA-1 usages flagged by NIST migration guidance #2594

Open

Description

@maddykws

Hi team,

With NIST finalizing post-quantum standards (FIPS 203/204/205) and the
recommended migration deadline of 2030, I ran a quick scan of paramiko
for quantum-vulnerable cryptography.

Findings (19 total):

File Line Algorithm Risk
ecdsakey.py 14, 38, 61 ECC (SECP256K1/SECP256R1) CRITICAL
kex_ecdh_nist.py 27, 49 ECC CRITICAL
rsakey.py 43, 88, 134, 201, 256 RSA CRITICAL
pkey.py 112 RSA CRITICAL
_util.py 18 RSA CRITICAL
_util.py 42, 67 SHA-1 HIGH
pkey.py 88 AES-128 MEDIUM

Why it matters:
Shor's algorithm breaks RSA and ECC in polynomial time on a quantum
computer. "Harvest now, decrypt later" attacks mean adversaries may
already be storing SSH traffic to decrypt once quantum hardware arrives.

Suggested replacements (per NIST):

  • RSA/ECC → CRYSTALS-Dilithium (ML-DSA, FIPS 204) for signatures
  • Key exchange → CRYSTALS-Kyber (ML-KEM, FIPS 203)
  • SHA-1 → SHA-384 or SHA-512
  • AES-128 → AES-256

I understand this is a large migration and depends on what the underlying
SSH protocol itself standardizes (RFC 9142 / OpenSSH PQC work). Happy to
help or provide more detail on any specific file.

Scanned with https://github.com/maddykws/QuantumMigrate

Activity

  1. alex commented on May 10, 2026

    @alex
    Member

    KEX is the only priority here. AES-128 does not need to be upgraded for PQ. Signatures are lower priority because they're not vulnerable to store-now-decrypt-later attacks.

    If you're going to go around filing bugs on people's repos, please do not be insisting AES-128 needs to be upgraded, it's a waste of people's time.

  2. What-Do-I-Know commented on Jul 23, 2026

    @What-Do-I-Know

    Now that pyca/cryptography 48.0.0 (May 2026) added ML-KEM and ML-DSA support when built against OpenSSL 3.5+, can we enable ML-KEM (hybrid) key encapsulation within paramiko to protect against "harvest now, decrypt later" attacks?

    I see #2604 about it. ML-KEM support in Paramiko would be welcome, that would be the first required step toward quantum-safe paramiko.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions