Cosmosby
Post-quantum readiness

Engineering Guide · Updated Dec 2026

Post-Quantum Cryptography, Explained for Engineering Teams

Every TLS handshake, SSH session, OIDC token, container signature, and certificate chain in modern software relies on classical public-key cryptography (RSA, Diffie-Hellman, and elliptic curves). Post-quantum cryptography (PQC) replaces those algorithms with new standards built to resist both classical and quantum computers. With Cosmos, teams build an AI software factory to discover, plan, implement, and verify that transition across their stack.

1. What Breaks, What Stays Safe, and Why Teams Are Acting Now

A cryptographically relevant quantum computer running Shor's algorithm solves integer factorization and discrete logarithms in polynomial time. That affects one half of modern cryptography and leaves the other half intact:

  • Confidentiality and key exchange (exposed today): Classical key agreement (ECDHE, X25519, Diffie-Hellman) and asymmetric key wrapping (RSA-OAEP, ECIES) protect secrets in transit and data-encryption keys at rest. Adversaries can record encrypted traffic or backups today and decrypt them later once capability matures (Harvest Now, Decrypt Later). NIST standardized ML-KEM (FIPS 203) and IETF X25519MLKEM768 (RFC 10024) so teams can upgrade key exchange immediately.
  • Authentication and digital signatures (future forgery risk): RSA, ECDSA, and Ed25519 verify TLS certificates, JWTs, container images, and firmware updates. Signatures cannot be broken retroactively from passive recordings, yet verifiers and trust roots stay deployed for years. NIST standardized ML-DSA (FIPS 204), SLH-DSA (FIPS 205), and stateful LMS/XMSS (SP 800-208) for signature migration.
  • Symmetric encryption and hashing (remain sound): Per NIST IR 8547, approved symmetric primitives with at least 128-bit classical strength (AES-128, AES-256, SHA-256, SHA-384, HMAC/HS256) are not broken by Shor's algorithm. Data-at-rest work focuses on how keys are wrapped and exchanged, not on replacing AES.

2. December 2026 Guidance and Classical Key Lengths

On December 2, 2026, the NSA published Immediate Actions to Push Toward Post-Quantum (CSA PP-26-4956), reinforced by UK NCSC guidance urging organizations to execute cryptographic discovery, enable hybrid TLS 1.3, prepare PQ-capable CAs and firmware roots, and remove non-PQC defaults ahead of the 2028, 2030/2031, and 2035 milestones.

A common point of confusion is classical key length. Sub-2048-bit RSA, Diffie-Hellman groups below 3,072 bits, DSA, and SHA-1 are already weak today, and NSA CSA PP-26-4956 flags RSA keys under 3,072 bits, curves other than P-384/P-521, and EdDSA during triage. Where PQC cannot be turned on immediately, CNSA 1.0 parameters (RSA-3072+, P-384) serve as temporary classical stopgaps. Against Shor's algorithm, however, RSA-4096 and P-384 sit in the same complexity class as RSA-2048 and P-256. Increasing classical key size buys classical margin; it never replaces migrating to ML-KEM-768 (NIST IR 8547 default) or ML-KEM-1024 / ML-DSA-87 where CNSA 2.0 applies.

3. Why Payload Sizes and Public WebPKI Force a Phased Rollout

Standard Ethernet MTU is 1,500 bytes. A classical X25519 key share is 32 bytes (2% of one MTU). An RFC 10024 X25519MLKEM768 client key share is 1,216 bytes (81% of one MTU), splitting a TLS 1.3 ClientHello across roughly two TCP packets, which modern stacks handle cleanly. By contrast, a single ML-DSA-65 signature is 3,309 bytes (plus a 1,952-byte public key), pushing full X.509 certificate chains past 10 KB. Note also that RFC 10024 obsoletes pre-standard X25519Kyber768Draft00 code points; endpoints still on draft Kyber must move to final ML-KEM hybrid groups.

Because of those chain sizes, public website certificates depend on CA/Browser Forum ballots and browser root programs; the right move for public WebPKI today is short-lived automated ACME renewal. Inside your own infrastructure, however, private mTLS CAs, SSH, OIDC/JWT signers, container signing, and firmware verifiers do not wait on public browsers. Teams should inventory those trust stores now and roll out post-quantum verification support before switching active signers.

4. How Cosmos and Harness CI/CD Automate the Migration

Flipping hybrid TLS on a CDN edge takes minutes, yet leaves origin connections, classical fallbacks, SSH bastions, library defaults, and signing keys untouched. Traditional regex scanners produce thousands of noisy hits across test files and safe symmetric code without fixing anything. With Cosmos, you build an AI software factory connected to Harness CI/CD:

  1. Instant external check & evidence-gated CBOM: Probe public domains on this site in seconds, then run the open-source pqc-migration-skill in Mode: assessment-only inside Cosmos (or Auggie, Claude Code, and Cursor) to trace real call sites and export an external CycloneDX 1.6 cbom.json.
  2. Clean, reviewable migration pull requests: In Mode: standard, Cosmos agents open minimal, reviewable pull requests on non-default branches to enable hybrid groups, upgrade crypto libraries, sequence verifier-first trust updates, and remove non-PQC defaults, while keeping audit artifacts outside your repositories.
  3. Human approval gates: Agents never auto-merge, rotate production keys, or mutate shared infrastructure without explicit owner approval.
  4. CI/CD verification & regression guardrails: Harness CI/STO blocks later pull requests that reintroduce classical-only curves or weak wrappers, and Harness CD verifies that deployed revisions actually negotiate hybrid PQC in runtime traffic before marking findings migrated.