# PQ Shift plan

Generated 2026-12-03 by pqshift 1.0.0 from findings.json. Horizon 2030-01-01 (a policy date, not a prediction).

Findings: 10 critical | 43 high | 50 medium | 7 low | 22 info

A finding means "uses an algorithm the guidance says to migrate", not "exploitable today" (critical items are the exception: they are weak with ordinary computers). A clean scan is not an audit.

Score = base (critical 100, high 70, medium 40, low 15) + exposure (recorded-now-read-later +20, trust anchor +15, blocker +5) + data lifetime (key exchange only: <1y -10, 1-5y 0, 5-10y +10, >10y +20, unknown +10) + reach (internet +10, isolated -10) + context (test/example/docs -30, vendored -20).

## Wave 0: weak with ordinary computers (fix now, unrelated to quantum)

| # | Finding ids | System | What | Change | Owner | Proof | Status |
|---|---|---|---|---|---|---|---|
| 1 | F-48d36c1872, F-3307a92bd1 | unassigned | Broken pre-standard post-quantum scheme (SIKE/SIDH/Rainbow) (OBS-PQ-BROKEN) score 100: pq/sike_demo.c:5; pq/sike_demo.c:11 | ML-KEM (FIPS 203) / ML-DSA (FIPS 204). See migrate/code.md. |  | re-scan + tests | PLANNED |
| 2 | F-6a024483cd, F-a3d8bde3b1, F-c4b5df2e8e | unassigned | Diffie-Hellman group under 2048 bits (WEAK-DH-SMALL) score 100: certs/dh1024.params:1; deploy/ssh/sshd_config:8; scripts/make-certs.sh:10 | Remove it; use the hybrid group (X25519MLKEM768) with X25519 as fallback. See migrate/tls.md. |  | re-scan + probe | PLANNED |
| 3 | F-242867640a, F-c9361ac02d | unassigned | RSA key under 2048 bits (WEAK-RSA-SMALL) score 100: certs/old.crt:1; services/api/app/crypto_utils.py:22 | Generate a new key on the migration path; RSA 3072+ only as a stopgap. See migrate/certs.md. |  | re-scan | PLANNED |
| 4 | F-b4e95177f1, F-a0ba90d60f | unassigned | SHA-1 / MD5 signature or DSA (WEAK-SIG-SHA1) score 100: certs/old.crt:1; deploy/ssh/sshd_config:9 | SHA-256+ signatures; Ed25519 or ECDSA now, ML-DSA when the stack has it. See migrate/certs.md. |  | re-scan + probe | PLANNED |
| 5 | F-131fec2b4d | unassigned | SSLv3, TLS 1.0 or TLS 1.1 enabled (WEAK-TLS-OLD) score 100: deploy/apache/ssl.conf:10 | TLS 1.2 minimum, TLS 1.3 preferred. See migrate/tls.md. |  | re-scan + probe | PLANNED |

## Wave 1: key exchange and encryption that is internet-facing or guards long-lived data

| # | Finding ids | System | What | Change | Owner | Proof | Status |
|---|---|---|---|---|---|---|---|
| 6 | F-b976e9e1c8 | unassigned | Finite-field Diffie-Hellman in code (KEX-CODE-DH) score 100: services/billing/src/Crypto.java:30 | TLS 1.3 hybrid, or the library's ML-KEM hybrid KEM. See migrate/code.md. |  | re-scan + tests | PLANNED |
| 7 | F-94527cc8e5, F-27bb6c92d5, F-85a27fb25b, F-076fe8ed3f, F-4522f77c7d, F-1ec931e165 +7 | unassigned | Elliptic-curve / X25519 key agreement in code (KEX-CODE-ECDH) score 100: mobile/Keys.swift:6; mobile/Keys.swift:7; native/tunnel.c:29; services/api/app/crypto_utils.py:9 +9 more | TLS 1.3 hybrid between your own services; otherwise the library's ML-KEM hybrid KEM. No home-made combiner. See migrate/code.md. |  | re-scan + tests | PLANNED |
| 8 | F-853026508c, F-687ffc7c14 | unassigned | SSH key exchange pinned without a post-quantum method (KEX-SSH-PINNED) score 100: deploy/ssh/ssh_config:6; deploy/ssh/sshd_config:8 | Remove the line (OpenSSH 9.0+) or list mlkem768x25519-sha256,sntrup761x25519-sha512 first. See migrate/ssh.md. |  | re-scan + probe | PLANNED |
| 9 | F-c8ec059713, F-7f9dddea0d, F-98b387a7e7 | unassigned | TLS 1.3 disabled or capped at TLS 1.2 (KEX-TLS-NO13) score 100: deploy/haproxy/haproxy.cfg:5; deploy/nginx/nginx.conf:25; services/gateway/main.go:21 | Enable TLS 1.3 (post-quantum groups exist only in TLS 1.3); keep 1.2 as fallback. See migrate/tls.md. |  | re-scan + probe | PLANNED |
| 10 | F-c87e06a2a3, F-4a0e33d4f5, F-84f7ec5c0c, F-c7e53992d2, F-e40c47d8d8, F-d2cd1d63aa | unassigned | TLS key-exchange groups pinned to classic curves (KEX-TLS-PINNED) score 100: deploy/apache/ssl.conf:11; deploy/haproxy/haproxy.cfg:4; deploy/k8s/ingress-config.yaml:8; deploy/nginx/nginx.conf:26 +2 more | Put X25519MLKEM768 first, keep X25519 and P-256 behind it; or delete the pin on a runtime whose default includes the hybrid. See migrate/tls.md. |  | re-scan + probe | PLANNED |
| 11 | F-8cd61b6abc | unassigned | Cipher list allows RSA key transport (KEX-TLS-STATIC-RSA) score 100: deploy/nginx/nginx.conf:27 | Remove static-RSA suites; ECDHE suites only (static RSA also lacks forward secrecy). See migrate/tls.md. |  | re-scan + probe | PLANNED |
| 12 | F-7abea36603 | unassigned | IKE/IPsec proposals with classic key exchange only (KEX-VPN-IKE) score 100: deploy/vpn/swanctl.conf:6 | RFC 9370 additional key exchange with ML-KEM, or RFC 8784 post-quantum preshared key. See migrate/vpn.md. |  | re-scan + probe | PLANNED |
| 13 | F-9adad0e9e9 | unassigned | OpenVPN without tls-crypt or a post-quantum TLS group (KEX-VPN-OVPN) score 100: deploy/vpn/office.ovpn:4 | tls-crypt-v2; a post-quantum tls-groups entry where the build supports it. See migrate/vpn.md. |  | re-scan + probe | PLANNED |
| 14 | F-53c823ac69 | unassigned | WireGuard peer without a PresharedKey (KEX-VPN-WG-NOPSK) score 100: deploy/vpn/wg0.conf:7 | Per-peer PresharedKey (wg genpsk), distributed out of band. See migrate/vpn.md. |  | re-scan + probe | PLANNED |
| 15 | F-9866a25b96 | unassigned | Elliptic-curve public-key encryption (ECIES, sealed box, JWE ECDH-ES) (PKE-CODE-EC) score 100: services/web/src/auth.ts:28 | Library hybrid KEM + AEAD; re-wrap stored data keys. See migrate/code.md. |  | re-scan + tests | PLANNED |
| 16 | F-c72949dff2, F-778cb26e28, F-92c0d11b7f, F-8818468645, F-24db0014ce, F-2caa41d1b0 +3 | unassigned | RSA encryption or key wrapping (PKE-CODE-RSA) score 100: legacy/export.rb:14; legacy/pay.php:19; native/tunnel.c:34; services/api/app/crypto_utils.py:28 +5 more | Library hybrid KEM + AEAD (HPKE with an ML-KEM hybrid where available); re-wrap stored data keys. See migrate/code.md. |  | re-scan + tests | PLANNED |
| 17 | F-24b51d02e2 | unassigned | Script encrypts to a classic public key (PKE-TOOL) score 100: scripts/release.sh:16 | Tool version with post-quantum recipients where it exists; else record as open. See migrate/code.md. |  | re-scan + tests | PLANNED |

## Wave 2: remaining key exchange and encryption, trust anchors

| # | Finding ids | System | What | Change | Owner | Proof | Status |
|---|---|---|---|---|---|---|---|
| 18 | F-ed59b576fe | unassigned | Classic CA certificate valid past the horizon (CRT-CA-HORIZON) score 85: certs/ca.crt:1 | Plan a re-root; do not issue new long-lived classic CAs. See migrate/certs.md. |  | re-scan | PLANNED |
| 19 | F-5bd14e5b4d, F-76116b0339 | unassigned | Release, package or firmware signing with a classic key (SIG-CODESIGN) score 85: scripts/release.sh:10; scripts/release.sh:13 | Plan ML-DSA or SLH-DSA (LMS/XMSS for firmware) with the signing vendor; keep the algorithm in config. See migrate/certs.md. |  | re-scan + tests | PLANNED |
| 20 | F-e4e53f2861 | unassigned | Cloud load-balancer TLS policy without post-quantum key exchange (KEX-LB-POLICY) score 70: deploy/terraform/main.tf:29 | The provider's post-quantum TLS policy; confirm with probe. See migrate/tls.md. |  | re-scan + probe | PLANNED |
| 21 | F-a344284496, F-1f6ab1b5a4 | unassigned | Classic finite-field DHE in use (KEX-TLS-DHE) score 70: deploy/nginx/nginx.conf:28; deploy/vpn/office.ovpn:14 | Hybrid group first; drop DHE. See migrate/tls.md. |  | re-scan + probe | PLANNED |

## Wave 3: signatures, tokens, certificates

| # | Finding ids | System | What | Change | Owner | Proof | Status |
|---|---|---|---|---|---|---|---|
| 22 | F-3fc2985403, F-34a0369d3d, F-ef1f98b13a, F-b572a86477, F-1b7cd2cffd, F-caeb34d018 | unassigned | Runtime or library too old for ML-KEM hybrids (DEP-RUNTIME-OLD) score 45: services/api/requirements.txt:4; services/billing/pom.xml:12; services/billing/pom.xml:17; services/gateway/go.mod:3 +2 more | Upgrade to the version listed in support.json. See migrate/code.md. |  | re-scan + tests | PLANNED |
| 23 | F-0f4f8821c2 | unassigned | sshd without KexAlgorithms (depends on the OpenSSH version) (KEX-SSH-DEFAULT) score 45: deploy/ssh/sshd_config.default:1 | OpenSSH 9.0+ (sntrup761 default) or 10.0+ (ML-KEM default). See migrate/ssh.md. |  | re-scan + probe | PLANNED |
| 24 | F-581ae02a09 | unassigned | TLS server with no group setting (depends on the TLS library) (KEX-TLS-DEFAULT) score 45: deploy/nginx/site-default.conf:11 | Probe it; upgrade the TLS library if the probe shows no hybrid. See migrate/tls.md. |  | re-scan + probe | PLANNED |
| 25 | F-acb2683699, F-2af2cc4225 | unassigned | Certificate or CSR with a classic key or signature (CRT-CLASSIC) score 40: certs/archive.crt:1; certs/server.csr:1 | Short lifetimes and automated reissue now; ML-DSA when your CA offers it. See migrate/certs.md. |  | re-scan | PLANNED |
| 26 | F-ff3d3ff646, F-666033ef4b, F-a465012bc1, F-d33b2cdd06, F-f5fe4f87a1, F-0fe30608c2 +1 | unassigned | Classic key file (KEY-FILE) score 40: certs/legacy.key:1; certs/server.key:1; keys/authorized_keys:2; keys/authorized_keys:3 +3 more | Depends on use: see the KEX-* or SIG-* rule that applies. See migrate/certs.md. |  | re-scan | PLANNED |
| 27 | F-8ea246d3fa, F-c936541781, F-a7d01593dc, F-e7a14a80fb, F-34c4ef5c4a, F-f7981aa5b8 +15 | unassigned | Classic key generation (KEY-GEN) score 40: ci/pipeline.yml:17; deploy/docker/Dockerfile:9; deploy/docker/Dockerfile:10; deploy/k8s/certificate.yaml:14 +17 more | Depends on use: see the KEX-* or SIG-* rule that applies. See migrate/code.md. |  | re-scan + tests | PLANNED |
| 28 | F-1139b9ac43, F-028c53fc16, F-619688a5ff | unassigned | Pre-standard Kyber / Dilithium / draft hybrid (OBS-PQ-DRAFT) score 40: pq/old_kyber.py:2; pq/old_kyber.py:4; pq/old_kyber.py:5 | X25519MLKEM768, ML-KEM (FIPS 203), ML-DSA (FIPS 204). See migrate/code.md. |  | re-scan + tests | PLANNED |
| 29 | F-cb856abc47, F-a686facc76, F-8bdb7973a8 | unassigned | ECDSA / EdDSA signatures in code (SIG-CODE-EC) score 40: services/billing/src/Crypto.java:43; services/edge/src/main.rs:2; services/gateway/main.go:36 | Algorithm from config; ML-DSA where both ends are yours and the library supports it. See migrate/code.md. |  | re-scan + tests | PLANNED |
| 30 | F-a4aa0ffa84, F-3e96c922fc | unassigned | RSA signatures in code (SIG-CODE-RSA) score 40: services/api/app/crypto_utils.py:33; services/reports/Signer.cs:12 | Algorithm from config; ML-DSA where both ends are yours and the library supports it. See migrate/code.md. |  | re-scan + tests | PLANNED |
| 31 | F-10b81968f7, F-6ff47c754a, F-f2e7ff13e4 | unassigned | JWT/JOSE signed with RSA or elliptic curves (SIG-JWT) score 40: services/api/app/crypto_utils.py:12; services/gateway/main.go:41; services/web/src/auth.ts:7 | Allow-list algorithms from config, short token life; move when the issuer supports ML-DSA. See migrate/tokens.md. |  | re-scan + tests | PLANNED |

## Wave 4: hygiene and items waiting on a fact

| # | Finding ids | System | What | Change | Owner | Proof | Status |
|---|---|---|---|---|---|---|---|
| 32 | F-3d77046138 | unassigned | Container base image that may ship OpenSSL older than 3.5 (DEP-BASE-IMAGE) score 20: deploy/docker/Dockerfile:1 | Run `openssl version` inside the image; move the base tag. See migrate/tls.md. |  | re-scan + tests | PLANNED |
| 33 | F-ad742dc732, F-e0378a8fa6 | unassigned | Certificate or CSR with a classic key or signature (CRT-CLASSIC) score 15: certs/old.crt:1; certs/server.crt:1 | Short lifetimes and automated reissue now; ML-DSA when your CA offers it. See migrate/certs.md. |  | re-scan | PLANNED |
| 34 | F-09cb4f605f, F-a7ef18b21f | unassigned | Classic SSH host/user key algorithms (SIG-SSH-ALGS) score 15: deploy/ssh/sshd_config:6; deploy/ssh/sshd_config:10 | Nothing to switch to in stable OpenSSH yet: inventory, keep Ed25519, watch. See migrate/ssh.md. |  | re-scan + probe | PLANNED |

## Not checked

- certs/backup.p12: password-protected key store; list it with keytool -list or openssl pkcs12 -info
- keys/encrypted.key: ENCRYPTED PRIVATE KEY: passphrase-protected or PGP block; check its type with your key tool
- third-party folders: node_modules (1): skipped by default; add --include-vendored to scan the libraries you ship
- symmetric ciphers and hash functions: out of scope: post-quantum migration concerns public-key cryptography

Status words: PROVEN | CHANGED, NOT PROVEN HERE | PLANNED | BLOCKED: <what> | VENDOR: <who, asked on date> | ACCEPTED: <owner, until date> | NOT APPLICABLE: <reason>.
