← All advisories

QSC-ALG-0001 · CWE-327

RSA used for encryption or key transport (harvest-now-decrypt-later exposure)

Severity: CriticalReadiness: Fix availableQuantum threat: Shor

Summary

RSA encryption (RSA-OAEP, PKCS#1 v1.5) and RSA key transport (TLS 1.2 TLS_RSA_* suites, CMS/PKCS#7, PGP, wrapped data keys) will be broken by a cryptographically relevant quantum computer.

Why it matters

Anything encrypted under RSA today can be recorded now and decrypted later. Data that must stay confidential beyond about 2030 (customer records, loan files, health and government data) is already exposed.

How to fix

Replace RSA key transport with ML-KEM-768 (FIPS 203), or with hybrid X25519MLKEM768 inside TLS 1.3, and protect bulk data with AES-256.

  1. Inventory what each RSA key protects and how long that data must stay secret; migrate long-lived data first.
  2. For transport, prefer TLS 1.3 with hybrid X25519MLKEM768 (see QSC-PROTO-0101) instead of application-level RSA.
  3. For application encryption, use ML-KEM to establish a shared secret, derive an AES-256-GCM key with HKDF, and encrypt the data (KEM-DEM).
  4. Re-encrypt stored data or rewrap stored data keys once the new scheme is live, then retire the RSA keys.

Code samples

Illustrative: confirm against your runtime’s documentation before shipping.

C#
// .NET 10+: System.Security.Cryptography.MLKem
if (MLKem.IsSupported) {
    using MLKem receiver = MLKem.GenerateKey(MLKemAlgorithm.MLKem768);
    byte[] ek = receiver.ExportEncapsulationKey();
    using MLKem sender = MLKem.ImportEncapsulationKey(MLKemAlgorithm.MLKem768, ek);
    sender.Encapsulate(out byte[] ciphertext, out byte[] sharedSecret);
    byte[] same = receiver.Decapsulate(ciphertext);
}

Until the provider is ready

Interim mitigations while platform support catches up.

  • Move transport to TLS 1.3 with hybrid post-quantum key exchange now; it removes most harvest-now exposure without touching application code.
  • Where a provider has no ML-KEM (for example AWS KMS or Azure Key Vault at review), use symmetric AES-256 envelope keys inside the KMS instead of RSA-wrapped data keys.
  • Shorten data retention and re-encrypt archives on a schedule so less data sits under RSA.

References