Post-quantum technical deep-dive: auditing for exposure, by stack
Laurie Ibbs and Sean Leach
For engineers: which algorithms are in question, how to build a cryptographic inventory, and what to check and change on AWS, Supabase and other common stacks.
This is the engineers' companion to Security agencies say move to post-quantum: practical steps your SaaS business can take now. It is for engineers doing the audit, with a closing section on the policy background for anyone who wants it. It assumes the working reading set out in the next section. 256-bit elliptic curves (P-256, X25519, Ed25519) are treated as suspect. RSA and P-384 are interim. ML-KEM and ML-DSA are the destination. Version and default statements were true in our testing on 3 December 2026. Re-check them before you rely on them.
The working reading: which algorithms are in question
The government statements name no algorithms. The most-cited public reading is Filippo Valsorda's What to Make of the NSA Advisory. It is an expert interpretation, not an official finding.
-
By exclusion. The advisory's inventory step asks organisations to flag "elliptic curves other than P-384 or P-521 for ECDH or ECDSA, EdDSA", along with finite-field DSA, deprecated DH groups and pairing-based cryptography. That leaves out the 256-bit curves most of the internet runs on.
-
His conclusion. 256-bit elliptic curves (P-256, X25519, Ed25519) are "likely broken or significantly weaker than we thought". The pairing-based mention points the same way: curves such as BLS12-381 have prime-order subgroups of about 255 bits.
-
RSA is not called out. RSA and P-384 "might be fine as an interim solution"; the advisory's own guidance for roots is RSA-3072 or P-384, with RSA-2048 only for legacy.
-
The destination is unchanged. ML-KEM and ML-DSA appear sound; CNSA 2.0 specifies ML-KEM-1024 and ML-DSA-87 at the 256-bit level. Anthropic's 30 November lattice papers "lower our long-term confidence in structured lattices", the maths both rely on (as reported by VentureBeat). Reviewers call the result theoretical, and the Cloud Security Alliance concludes "ML-KEM and ML-DSA remain safe to deploy".
-
The likely attack class is classical, not quantum. He infers this because the statements mention no progress towards a cryptographically relevant quantum computer.
Two separate stories in one week. Coverage often blurs them:
-
The government statements (2 December). These are about AI-disclosed discoveries affecting cryptography in use today. No algorithms are named. The leading reading is 256-bit elliptic curves, possibly through a classical attack rather than a quantum one.
-
Anthropic's lattice papers (Monday, 30 November). These give a theoretical, asymptotic result against the structured lattices behind the new algorithms, ML-KEM and ML-DSA. Reviewers (the CIRG panel, Scott Aaronson, the Cloud Security Alliance) agree it isn't a practical attack at standard parameters.
Some reporting ran the two together, which made it look as though the new algorithms were the ones in trouble. On current evidence they aren't. The lattice result is a reason to prefer hybrids and build crypto agility (below), not to delay migration.
His headline actions:
-
Move TLS key exchange to X25519MLKEM768 (RFC 10024 hybrids).
-
Move private PKI to ML-DSA, or to RSA-3072 / P-384 where that isn't possible yet.
-
Prepare to rotate WebPKI certificates and update your TLS and ACME stack.
-
Update OpenSSH to 10.6 and rotate to ssh-mldsa44-ed25519 keys.
His ordering is key exchange first, because that weakness is retroactive, then authentication. The rating key and checklist below follow the same order.
Prefer hybrids, not pure post-quantum. Where you can choose, use hybrid groups rather than pure ML-KEM: X25519MLKEM768, or SecP384r1MLKEM1024 for more margin. AWS's PQ ALB policy offers both. When signatures move, prefer hybrid or composite certificates while confidence in the lattice maths settles. With a hybrid, an attacker has to break both halves, so a weakness in either the classical or the post-quantum part isn't enough on its own.
How the hybrid approach works
"Hybrid" means running two key agreements in one TLS handshake and combining them, so the session stays safe if either one holds. The mechanism is defined in RFC 10024 (August 2026), which also covers SecP256r1MLKEM768 and SecP384r1MLKEM1024. The sizes below come from it.
-
The client offers. In its ClientHello, the browser or library lists the groups it supports and sends a key share for its preferred one. A current browser sends an X25519MLKEM768 share: an X25519 public key plus an ML-KEM-768 encapsulation key, about 1.2 KB together. It usually sends a classical X25519 share as well.
-
The server chooses. If the server's policy allows the hybrid group, it picks it. If not, it picks a classical group such as X25519. This is the "side by side" part: supporting the hybrid never stops a client that lacks it.
-
Both halves run. With the hybrid, the server replies with its own X25519 public key and an ML-KEM ciphertext, about 1.1 KB. Each side now holds two shared secrets: one from X25519 and one from ML-KEM.
-
The secrets are combined. The two secrets are joined and fed into TLS 1.3's key derivation. The session keys depend on both, so an attacker has to break X25519 and ML-KEM to read the traffic.
The cost is small: roughly 2 KB more per handshake and negligible CPU. The main historical snag was older middleboxes mishandling a ClientHello that spans more than one packet. Current browsers have shipped through that. Google described it when Chrome rolled out the pre-standard version: Advancing Our Amazing Bet on Asymmetric Cryptography (May 2024).
Signatures and certificates. Hybrid signatures are less mature. Composite certificates carry a classical signature and an ML-DSA signature together and are now standardised in RFC 10073 (November 2026), but browser and public CA support isn't there yet. For private PKI and internal tokens, plan for them, but don't block other work waiting.
SSH. OpenSSH 10 made mlkem768x25519-sha256, a hybrid key exchange, its default, and GitHub accepts it. Hybrid keys such as ssh-mldsa44-ed25519 are the next step for authentication. Sources: the OpenSSH 10.0 release notes (April 2025), Valsorda's post for the key type, and our own connection test against GitHub.
Rating key
Rate key exchange and authentication separately for every item. A key-exchange weakness is retroactive (recorded traffic can be decrypted later). An authentication weakness only enables live impersonation.
- PQ. Meaning: Hybrid post-quantum key exchange negotiated with capable peers. Examples: X25519MLKEM768 (RFC 10024 hybrids).
- A: ECC-256. Meaning: Exposed under the current reading. Examples: P-256 / secp256r1, X25519, Ed25519, ES256, secp256k1, ECDSAP256SHA256 (DNSSEC).
- B: interim. Meaning: Not the suspected target; quantum-vulnerable long term. Examples: RSA-2048, RSA-3072+, P-384, P-521.
- C: unaffected. Meaning: Symmetric or hash-based. Examples: AES-GCM, ChaCha20-Poly1305, HMAC-SHA-256, SHA-2, bcrypt, scrypt, argon2, PBKDF2.
Building the inventory
Record each use with: location (system, component), purpose (key exchange / signature / certificate / token / at rest / integrity), algorithm and parameters, who controls it (your config / library default / vendor), where it is set (file:line or console path), whether it was verified live (and when), and its rating. Write "none found" explicitly for vectors that don't apply. Absence is a finding.
The nine vectors:
-
Inbound TLS: load balancer / CDN / API gateway / ingress security policy; certificate key algorithm.
-
Outbound TLS: the TLS library in every base image and runtime: OpenSSL version, Node, Go, JDK, Python's linked OpenSSL. Include HTTP client libraries that ship their own TLS.
-
Internal transport: database
sslmode/ certificate verification, cache TLS and AUTH, queues, service-to-service, mTLS. -
Identity and tokens: JWT
algper issuer, IdP realm/pool signing keys and sizes, verifier allow-lists, load balancer–issued identity headers, WebAuthnpubKeyCredParams(COSE -7 = ES256, -8 = EdDSA, -257 = RS256), SAML signing. -
Application crypto:
generateKeyPair,createECDH,crypto.subtle.deriveKey/sign,KeyPairGenerator, libsodium/tweetnacl/@noble, JOSE/JWEECDH-ES, age, PGP. -
Key management: KMS key specs and usage, signing keys held in secret stores (check their type and size).
-
CI/CD and supply chain: OIDC federation, deploy keys, GitHub App keys, image/artifact signing (cosign defaults to ECDSA P-256), commit signing.
-
Remote access: SSH host and user keys, bastions, VPNs (WireGuard/Tailscale = Curve25519), IKE DH groups.
-
Vendors: every item above whose algorithm someone else chooses.
Verify live
Run these from a machine with OpenSSL 3.5 or later:
# Inbound: does the endpoint accept hybrid key exchange? (offer ONLY the hybrid)
openssl s_client -connect app.example.com:443 -servername app.example.com \
-groups X25519MLKEM768 -brief </dev/null 2>&1 | grep -E 'group|Protocol|Signature'
# Success: "Negotiated TLS1.3 group: X25519MLKEM768". Failure: handshake error.
# Leaf certificate key type and size
openssl s_client -connect app.example.com:443 -servername app.example.com </dev/null 2>/dev/null \
| openssl x509 -noout -text | grep -E 'Public-Key|ASN1 OID|Issuer'
# Oldest protocol still accepted (should fail on a modern policy)
openssl s_client -connect app.example.com:443 -tls1 -cipher 'DEFAULT:@SECLEVEL=0' </dev/null
# Outbound: what TLS library does the image actually ship?
docker run --rm --entrypoint node your-image@sha256:... -p process.versions.openssl
docker run --rm --entrypoint python3 your-image@sha256:... -c 'import ssl;print(ssl.OPENSSL_VERSION)'
# JVM: which named groups will JSSE offer?
# (no X25519MLKEM768 in the list = no hybrid)
jshell -q <<< 'System.out.println(String.join(",", javax.net.ssl.SSLContext.getDefault().getDefaultSSLParameters().getNamedGroups()))'
# SSH: does the server accept post-quantum key exchange? (OpenSSH 10.x client)
ssh -o KexAlgorithms=mlkem768x25519-sha256 -o BatchMode=yes -T [email protected]
# "Permission denied (publickey)" means the KEX succeeded; "no matching key exchange" means it didn't.
AWS in depth
On AWS, most of the inbound fix is one policy name per listener. Most of the outbound fix is which runtime your images and Lambdas run. The traps are ALB-issued identity headers, Route 53 DNSSEC, and changes that are merged but never applied.
Edge and certificates
- ALB / NLB TLS listeners. What to check:
ssl_policy.ELBSecurityPolicy-TLS13-1-2-Res-2021-06and older offer no hybrid; we confirmed live that it rejects a hybrid-only ClientHello. An unset policy can fall back to a legacy default that still allows TLS 1.0. Rating today: A key exchange. Action: SetELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09(confirmed live to negotiate X25519MLKEM768). Check the PQ variants offered for NLB in your region. - AWS Load Balancer Controller (EKS). What to check:
alb.ingress.kubernetes.io/ssl-policyper Ingress, orsslPolicyin IngressClassParams. Without either, the controller's default applies. Rating today: A. Action: Pin the PQ policy in IngressClassParams so member Ingresses can't weaken it. - API Gateway custom domains. What to check:
security_policyon the domain name. The defaultexecute-apiendpoint is separate and isn't covered. Rating today: A. Action: Use the PQ enhanced policy (e.g.SecurityPolicy_TLS13_1_2_PFS_PQ_2025_09, which needs a recent provider). Setdisable_execute_api_endpoint = true. - CloudFront. What to check: Viewer
minimum_protocol_versionand post-quantum support for viewers. Verify in current AWS docs, then test with the handshake command. Rating today: A unless verified PQ. Action: Same process: confirm, then pin. - ACM certificates. What to check:
key_algorithm. ACM-issued options areRSA_2048(default),EC_prime256v1andEC_secp384r1. Rating today: B (RSA-2048) or A (P-256). Action: PreferEC_secp384r1, which matches the advisory's P-384 guidance. AvoidEC_prime256v1. Keep an RSA certificate alongside it on the listener only if you serve very old clients. - Route 53 DNSSEC. What to check: KSKs must use a KMS key with spec
ECC_NIST_P256(algorithm 13). Rating today: A, no alternative today. Action: Note it as a vendor dependency. Ask AWS for a roadmap.
Compute runtimes (outbound TLS)
node:22-alpine,node:24-alpine,public.ecr.aws/lambda/nodejs:22. What we found (3 Dec 2026): Node 22.23.5 / 24.23.0 with bundled OpenSSL 3.5.9. An explicit X25519MLKEM768 handshake succeeded. Rating: PQ, if rebuilt recently.- Lambda managed runtimes
nodejs22.x/nodejs24.x. What we found (3 Dec 2026): Expected to match the container images. Confirm withprocess.versions.opensslin a test invocation. Rating: PQ (verify). - Java 21 (Corretto/Temurin, Lambda
java21). What we found (3 Dec 2026): JSSE default groups arex25519, secp256r1, secp384r1, …, with no ML-KEM. Hybrid TLS arrived in JDK 27 (JEP 527). Rating: A. - Python images on Debian bookworm / Ubuntu 24.04. What we found (3 Dec 2026): OpenSSL 3.0, with no ML-KEM. Debian trixie and Ubuntu 26.04 ship OpenSSL 3.5. Rating: A → PQ on rebuild.
- Lambda Python runtimes. What we found (3 Dec 2026): Check
ssl.OPENSSL_VERSIONin a test invocation. Rating: verify.
A server only negotiates the hybrid if the client offers it. AWS has announced hybrid post-quantum TLS on some service endpoints (KMS, ACM and Secrets Manager among them), but a JDK 21 or OpenSSL 3.0 client will still connect classically.
Identity and tokens
- ALB
authenticate-oidc→x-amzn-oidc-data. Algorithm: ES256 (P-256), signed by the ALB; not configurable. Rating: A. Action: Don't use it as the identity. Verify the IdP's access token (x-amzn-oidc-accesstoken) against the IdP's JWKS withalgorithms: ["RS256"]. On any listener rule without an authenticate action, treat everyx-amzn-oidc-*header as client-controlled. Restrict target security groups to the ALB. - ALB
jwt-validation. Algorithm: RS256 with RSA-2048 keys only, at the time of writing. Rating: B, capped. Action: Keys you validate at the ALB can't go above 2048 yet. Record it as a vendor constraint. - Cognito user pool tokens. Algorithm: RS256, AWS-managed keys. Rating: B. Action: Pin
RS256in verifiers. - Keycloak (self-hosted on ECS/EKS). Algorithm: Default
rsa-generatedprovider, 2048-bit, RS256. Rating: B. Action: Add anrsa-generatedprovider withkeySize4096 (higher priority), publish it, then retire the 2048 key. Note that Keycloak on JDK 21 is A for its own outbound TLS. - WebAuthn (Keycloak or app). Algorithm: ES256 commonly first. Rating: A (auth only). Action: Order RS256 (-257) first; keep ES256 for authenticators that need it.
- IAM Identity Center SAML, GitHub OIDC → IAM. Algorithm: RSA (AWS/GitHub-managed). Rating: B. Action: Vendor; no action.
- SES DKIM. Algorithm: Easy DKIM RSA. Rating: B. Action: Use
RSA_2048_BIT, never 1024.
Data and keys
- RDS / Aurora PostgreSQL. What to check:
rds.force_ssl = 1; clientsslmode. Rating: A transport; often no server authentication. Action: Usesslmode=verify-fullwith the RDS CA bundle (Nodepg: neverrejectUnauthorized: false). Ask AWS about hybrid groups server-side. - ElastiCache (Redis/Valkey). What to check:
transit_encryption_enabled, AUTH or RBAC. Rating: A, or plaintext. Action: Enable both; userediss://. - KMS. What to check:
customer_master_key_spec/key_spec. Rating:SYMMETRIC_DEFAULTC ·RSA_*B ·ECC_NIST_P384/521B ·ECC_NIST_P256,ECC_SECG_P256K1A. Action: List any asymmetric keys. Check ML-DSA key spec availability in your region for new signing keys. - S3 / DynamoDB / SigV4 presigned URLs. What to check: HMAC-SHA-256. Rating: C. Action: None.
- CloudFront signed URLs / cookies. What to check: Public key type in key groups. Rating: B (RSA-2048), A if P-256. Action: Prefer RSA.
- Secrets Manager, SSM Parameter Store. What to check: AES (KMS). Rating: C. Action: Check the contents: signing keys stored there need their own rating.
Access and CI/CD
- SSM Session Manager. Rating: Rides AWS endpoint TLS (client-dependent). Action: Prefer it to SSH bastions.
- EC2 key pairs. Rating:
ed25519A ·rsaB. Action: Rotate to RSA-4096 until PQ SSH is supported end to end. - Site-to-Site VPN. Rating: IKE DH group 19 = P-256 (A); 20/21 = P-384/P-521 (B). Action: Restrict
tunnelN_phase1/phase2_dh_group_numbersto 20/21. - Client VPN, Tailscale/WireGuard. Rating: Curve25519 (A, vendor). Action: Ensure traffic inside the tunnel is TLS with PQ-capable groups.
- GitHub Actions → IAM OIDC. Rating: RS256 (B). Action: None. Note: in our tests github.com HTTPS didn't negotiate the hybrid; its SSH endpoint did.
- Deploy keys (Argo CD, Flux). Rating: Ed25519 A. Action: RSA-4096, or a GitHub App (RS256).
Terraform examples
# Hybrid PQ key exchange + P-384 certificate on an ALB
resource "aws_acm_certificate" "app" {
domain_name = "app.example.com"
validation_method = "DNS"
key_algorithm = "EC_secp384r1" # default is RSA_2048; avoid EC_prime256v1
}
resource "aws_lb_listener" "https" {
load_balancer_arn = aws_lb.main.arn
port = 443
protocol = "HTTPS"
ssl_policy = "ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09"
certificate_arn = aws_acm_certificate_validation.app.certificate_arn
# default_action ...
}
# Postgres: force TLS server-side (clients must still use sslmode=verify-full)
resource "aws_db_parameter_group" "pg" {
family = "postgres16"
parameter {
name = "rds.force_ssl"
value = "1"
apply_method = "pending-reboot"
}
}
# Cache: encryption in transit + auth
resource "aws_elasticache_replication_group" "cache" {
# ...
transit_encryption_enabled = true
auth_token = var.cache_auth_token
}
# Site-to-Site VPN: no P-256 DH group
resource "aws_vpn_connection" "office" {
# ...
tunnel1_phase1_dh_group_numbers = [20, 21]
tunnel1_phase2_dh_group_numbers = [20, 21]
}
# EKS: pin the policy for every Ingress of a class (AWS Load Balancer Controller)
apiVersion: elbv2.k8s.aws/v1beta1
kind: IngressClassParams
metadata:
name: alb-public
spec:
scheme: internet-facing
sslPolicy: ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09
Apply, then prove it. A common failure mode: the PQ listener policy is merged and live in staging but never reaches production, because the promotion pipeline doesn't apply the layer that owns the load balancer. Add the handshake probe to your post-deploy checks for every environment.
Supabase in depth
On Supabase, the public API is already post-quantum. The two things you control are which key signs your users' logins and how your servers connect to the database. Results below are from our live tests on 3 December 2026. Supabase defaults can change, so re-check with the commands at the end of this section.
What Supabase handles, and where it stands
- API gateway (
<ref>.supabase.co: Auth, REST, Realtime) and Storage (<ref>.storage.supabase.co). What we measured: Negotiates X25519MLKEM768; ECDSA P-256 certificate. Rating: PQ key exchange; A certificate. Who fixes it: Supabase (nothing to do). - Supavisor connection pooler (
aws-*-<region>.pooler.supabase.com:5432). What we measured: Refuses the hybrid; X25519 only, RSA certificate (tested in eu-central-1). Rating: A key exchange. Who fixes it: Supabase. Ask for a timeline. - Auth token signing (asymmetric "JWT signing keys"). What we measured: Supabase offers ES256 (P-256, its recommendation), RS256 (RSA-2048) and legacy HS256; Ed25519 is "coming soon" and there is no post-quantum option. Projects we checked publish an ES256 (P-256) key in their JWKS. Rating: A authentication. Who fixes it: You. Switch to RS256.
- Legacy JWT secret (old
anon/service_rolekeys). What we measured: HS256 shared secret. Rating: C, but a second signing path worth retiring. Who fixes it: You. - Storage signed URLs. What we measured: Uses a separate key from Auth signing, per Supabase's docs; the algorithm isn't published. Rating: verify by decoding one. Who fixes it: Supabase.
- Edge Functions (Deno) outbound TLS. What we measured: Not tested. Rating: verify. Who fixes it: Supabase.
What to do, in order
-
Move login signing from ES256 to RS256. This is the main exposure. One forged token is a valid login as any user, and Supabase's own services (PostgREST, Realtime, Storage) trust it too. RS256 is RSA-based (B): not the suspected target, and in line with the advisory's interim guidance. There is no ML-DSA option yet. The change is staged and logs nobody out:
- In staging, under the project's JWT signing keys, create a standby key and choose RSA. Supabase's RSA option is RS256 with a 2048-bit key. Supabase itself recommends P-256 for speed; we suggest RSA because of the current uncertainty about P-256. The page is Settings → JWT signing keys. Wait at least 20 minutes before rotating, because keys are cached, and expect each key change to be throttled for about five minutes.
- Update every verifier you own to accept both algorithms. That means your backend, any Edge Functions, and any service that checks Supabase tokens itself. Deploy.
- Rotate so the RSA key signs new tokens. The old key stays in the JWKS for verification.
- Wait longer than the access-token lifetime (one hour by default), then revoke the ES256 key and narrow every verifier to
RS256. - Repeat in production.
-
Verify the database certificate everywhere. Use
sslmode=verify-fullwith Supabase's CA certificate, notsslmode=require.requireencrypts but never checks who answered. Migration scripts, seed scripts, BI tools and one-off jobs are whererequireusually hides. -
Restrict who can reach the database. Use Supabase's network restrictions to allow only your servers' outbound IPs. Private connectivity, such as AWS PrivateLink, is available on higher plans. It reduces who could record the traffic, but the link is still not post-quantum until the pooler supports it.
-
Encrypt the most sensitive fields before they reach the database. Because the pooler link is classical, application-level AES-256-GCM on high-value fields (phone numbers, tokens, identity data) means recorded traffic reveals nothing useful even if the key exchange is later broken.
-
Verify tokens on the server; don't just read them. In supabase-js,
getSession()reads the cookie without verifying it. UsegetClaims(), which verifies against the JWKS, orgetUser(), which asks Auth. Always pass an explicit algorithm allow-list when verifying yourself. -
Retire the legacy JWT secret once nothing uses HS256: move to the newer publishable and secret API keys, so there is one signing path to manage.
-
If you enable passkeys or WebAuthn MFA, expect ES256 (COSE -7). Treat it as a second factor alongside other methods, not the only one. TOTP MFA uses HMAC and is unaffected.
Code and checks
// Verifying Supabase tokens yourself (jose): explicit allow-list, rotation-ready
import { createRemoteJWKSet, jwtVerify } from 'jose';
const jwks = createRemoteJWKSet(new URL(`${SUPABASE_URL}/auth/v1/.well-known/jwks.json`));
export const verify = (token: string) =>
jwtVerify(token, jwks, {
algorithms: ['ES256', 'RS256'], // during rotation; narrow to ['RS256'] after revoking ES256
issuer: `${SUPABASE_URL}/auth/v1`,
audience: 'authenticated',
requiredClaims: ['exp', 'sub'],
});
// Database connections (postgres.js): verify the server, everywhere, including scripts
import postgres from 'postgres';
const sql = postgres(process.env.DATABASE_URL!, {
ssl: { ca: process.env.DATABASE_SSL_CERT, rejectUnauthorized: true }, // never ssl: 'require'
});
# Which algorithm signs your logins?
curl -s https://<ref>.supabase.co/auth/v1/.well-known/jwks.json | jq '.keys[] | {kid, alg, kty, crv}'
# What does a real token say? (header only)
echo "$ACCESS_TOKEN" | cut -d. -f1 | tr '_-' '/+' | base64 -d 2>/dev/null; echo # expect "alg":"RS256" after the switch
# Does the API accept hybrid key exchange? (OpenSSL 3.5+)
openssl s_client -connect <ref>.supabase.co:443 -groups X25519MLKEM768 -brief </dev/null
# Does the pooler? (Postgres STARTTLS)
openssl s_client -connect aws-0-<region>.pooler.supabase.com:5432 -starttls postgres \
-groups X25519MLKEM768 -brief </dev/null
Questions to put to Supabase: When will Supavisor and direct database connections offer hybrid key exchange? When will ML-DSA signing keys be available? Which algorithm signs Storage URLs? Will RSA keys larger than 2048 bits be offered?
Who will a policy change affect?
Adding hybrid groups never breaks a client: a client that doesn't offer ML-KEM negotiates X25519 or P-256 exactly as before. What can break clients is the rest of the policy. Measured live on three ALBs, ELBSecurityPolicy-TLS13-1-2-Res-2021-06 and …-Res-PQ-2025-09 accept the same TLS 1.2 suites: ECDHE-RSA-AES128/256-GCM only. ELBSecurityPolicy-TLS13-1-2-2021-06 additionally accepts ECDHE-RSA-AES128-SHA256 and AES256-SHA384 (CBC). So moving from Res-2021-06 changes nothing for existing clients, while moving from the non-Res policy drops those CBC suites.
Client compatibility (approximate, from public documentation; confirm against your own logs)
For each client: whether it uses hybrid post-quantum key exchange with the PQ policy, and whether it works with the AEAD-only TLS 1.2 suites of the Res policies.
- Chrome / Edge. Hybrid PQ: 131 and later (124–130 send a pre-standard Kyber group and fall back cleanly).
Respolicies: Yes, any version from roughly 2014. - Firefox. Hybrid PQ: Recent versions (about 132 and later).
Respolicies: Yes, 27 and later. - Safari (macOS / iOS). Hybrid PQ: 26 and later.
Respolicies: Yes, 9 and later; no for iOS / Safari 8 and earlier (no AES-GCM). - Internet Explorer 11 on Windows 7 / 8.1, and Schannel-based apps on those OSes (old .NET Framework, PowerShell 5). Hybrid PQ: No.
Respolicies: Likely not with an RSA certificate: historically no ECDHE-RSA-AES-GCM. - Java. Hybrid PQ: JDK 27 and later.
Respolicies: Java 8 and later yes; Java 7 no. - OpenSSL-based clients (curl, Python, Ruby, PHP). Hybrid PQ: OpenSSL 3.5 and later.
Respolicies: OpenSSL 1.0.1 and later. - Node.js. Hybrid PQ: Builds with OpenSSL 3.5 (current 22.x and 24.x).
Respolicies: Yes. - Go. Hybrid PQ: 1.24 and later.
Respolicies: Yes. - Windows XP / Vista, Android 4.3 and earlier, IE 10 and earlier. Hybrid PQ: No.
Respolicies: Already excluded by any TLS 1.2-minimum policy.
Browsers are rarely the issue on business SaaS. The clients to worry about are machines: Schannel-based integrations on old Windows Server, Java 7 middleware, embedded devices and appliance firmware.
Measuring on AWS before you switch
-
Don't read too much into
ClientTLSNegotiationErrorCount. A public ALB commonly records hundreds to thousands of failed handshakes a day, often rising and falling with weekly request volume. That is mostly internet scanning. A policy change may show no visible step in this metric at all, and the metric can't tell a blocked customer from a scanner. -
Enable access logs (
access_logs.s3.enabled). Each request recordsssl_protocol,ssl_cipher,user_agentandclient_ip, so you can see who uses the suites you're about to drop. Successful requests only. -
Enable connection logs (
connection_logs.s3.enabled) to see connection-level TLS detail, including handshakes that never became requests. Check the fields available in your region. -
Collect at least one full business cycle (a week or two, plus month-end batch jobs) before deciding.
-
Canary with DNS, not the listener. The policy is per listener, so you can't canary a percentage on one ALB. Use a second listener or ALB with the new policy, behind a weighted Route 53 record.
-
Give a time-boxed legacy path if a key integration can't move. Put it on a separate hostname, on a separate listener or ALB with the old policy. Restrict it by IP or mTLS, and set a removal date.
-- AWS's standard ALB access-log table in Athena
-- 1. Who uses what, browsers vs machines
SELECT ssl_protocol,
ssl_cipher,
CASE WHEN user_agent LIKE 'Mozilla/%' THEN 'browser' ELSE 'machine' END AS client_type,
count(*) AS requests,
approx_distinct(client_ip) AS clients
FROM alb_access_logs
WHERE ssl_protocol <> '-'
GROUP BY 1, 2, 3
ORDER BY requests DESC;
-- 2. Exactly who would be cut off by moving to a Res policy
SELECT user_agent, client_ip, ssl_cipher, count(*) AS requests
FROM alb_access_logs
WHERE ssl_cipher IN ('ECDHE-RSA-AES128-SHA256', 'ECDHE-RSA-AES256-SHA384',
'ECDHE-RSA-AES128-SHA', 'ECDHE-RSA-AES256-SHA')
OR ssl_protocol IN ('TLSv1', 'TLSv1.1')
GROUP BY 1, 2, 3
ORDER BY requests DESC;
# Is logging on? (read-only)
aws elbv2 describe-load-balancer-attributes --load-balancer-arn "$ALB" \
--query "Attributes[?starts_with(Key,'access_logs')||starts_with(Key,'connection_logs')]"
# Baseline the handshake-failure noise before and after a staging switch
aws cloudwatch get-metric-statistics --namespace AWS/ApplicationELB \
--metric-name ClientTLSNegotiationErrorCount \
--dimensions Name=LoadBalancer,Value=app/my-alb/0123456789abcdef \
--start-time "$(date -u -v-21d +%FT00:00:00Z)" --end-time "$(date -u +%FT%TZ)" \
--period 86400 --statistics Sum
ALB access logs don't record the key-exchange group, so you can't measure hybrid adoption from them. You don't need to: hybrid is additive. Use the handshake probe to confirm the server side, and treat client-side adoption as something browsers handle for you.
Other stacks, briefly
- Node / TypeScript. Key exchange (outbound): PQ with an OpenSSL 3.5 build (current Node 22 and 24 images);
ecdhCurve: 'auto'offers X25519MLKEM768. Watch for: Old images built on OpenSSL 3.0;joseverifiers without analgorithmsallow-list;rejectUnauthorized: falseon DB clients. Action: Pin images by digest and rebuild. Always passalgorithmstojwtVerify. - JVM / Kotlin / Java. Key exchange (outbound): A on JDK 21 (JSSE has no hybrid groups); hybrid from JDK 27 (JEP 527). Watch for: HTTP clients with their own TLS. Ktor's
CIOengine supports nothing above TLS 1.2 (we confirmed this inktor-network-tls3.6.1), so it can never negotiate ML-KEM. Self-hosted Keycloak inherits the JDK's TLS. Action: Move CIO clients toktor-client-javaor OkHttp now. Plan the JDK move. Consider a provider that supports the hybrid (e.g. one backed by BoringSSL or AWS-LC) after testing. - Python. Key exchange (outbound): Follows the linked OpenSSL: 3.0 (bookworm, Ubuntu 24.04) = A; 3.5 (trixie, Ubuntu 26.04) = PQ. Watch for:
apt install python3inside a JVM image inherits that image's OS;sslmode=requireskips certificate checks. Action: Rebuild on trixie or 26.04. Useverify-full. - Go. Key exchange (outbound): PQ by default from Go 1.24 (X25519MLKEM768 in
crypto/tls). Watch for: Old binaries and sidecars, such as an untagged Cloud SQL proxy, andgolang.org/x/crypto/sshversions for SSH key exchange. Action: Pin versions; rebuild. - Cloudflare. Key exchange (outbound): Edge negotiates the hybrid by default; we confirmed it live on Workers and Access. Watch for:
workers.devand edge certificates were ECDSA P-256 (A, auth only), and you can't change them onworkers.dev. Action: Use a custom domain to control certificates; Access JWTs were RS256 with 2048-bit keys (B). - Google Cloud. Key exchange (outbound): External Application Load Balancer with no SSL policy negotiated the hybrid live. Watch for: The no-policy default still accepted TLS 1.0 with CBC ciphers in our test; Google-managed certificates were RSA-2048. Action: Attach a
google_compute_ssl_policy(MODERN or RESTRICTED,min_tls_version = "TLS_1_2"). Note that Memorystore defaults to no transit encryption.
Keeping it current
Keep the inventory as Markdown, or as a CycloneDX CBOM, in the repository that owns the infrastructure. Then make CI and a scheduled job enforce it.
1. Fail builds that ship old TLS
Run this after the image build, before push:
#!/usr/bin/env bash
set -euo pipefail
IMG="$1" # e.g. app@sha256:...
V=$(docker run --rm --entrypoint node "$IMG" -p 'process.versions.openssl' 2>/dev/null \
|| docker run --rm --entrypoint python3 "$IMG" -c 'import ssl;print(ssl.OPENSSL_VERSION.split()[1])')
printf '%s\n3.5.0\n' "$V" | sort -V -C -r || { echo "OpenSSL $V < 3.5 in $IMG"; exit 1; }
2. Lint infrastructure for weak policies and keys
A simple grep gate catches most regressions; use OPA/conftest if you already run it.
#!/usr/bin/env bash
# Fail on non-PQ ALB policies and P-256 ACM certificates or KMS keys
if git grep -nE 'ELBSecurityPolicy-(2016|TLS13-1-2-(Res-)?2021)|EC_prime256v1|ECC_NIST_P256|ECC_SECG_P256K1' -- '*.tf' '*.yaml'; then
echo "Non-PQ TLS policy or P-256 key found"; exit 1
fi
# Fail on base images not pinned by digest (adjust for multi-stage aliases such as FROM build AS ...)
if git grep -nE '^FROM [^@ ]+( AS .*)?$' -- '**/Dockerfile*' | grep -vE 'FROM (base|build|deps)\b'; then
echo "Unpinned base image"; exit 1
fi
# Report, without failing, new ECC-256 signing in code for review
git grep -nE "ES256|EdDSA|Ed25519|createECDH|namedCurve: *'P-256'" -- '*.ts' '*.js' '*.kt' '*.py' || true
3. Probe production on a schedule
Run a scheduled CI job that alerts on regression:
on:
schedule: [{ cron: "0 6 * * 1" }] # weekly
jobs:
pq-probe:
runs-on: ubuntu-latest
container: debian:trixie-slim # OpenSSL 3.5
steps:
- run: apt-get update -qq && apt-get install -y -qq openssl
- run: |
fail=0
for h in app.example.com api.example.com auth.example.com; do
if openssl s_client -connect $h:443 -servername $h -groups X25519MLKEM768 -brief </dev/null 2>&1 \
| grep -q 'X25519MLKEM768'; then echo "PQ $h"; else echo "NO-PQ $h"; fail=1; fi
done
exit $fail
4. Catch drift between code and production
Compare the deployed state with the repo for the settings in your inventory:
aws elbv2 describe-listeners --load-balancer-arn "$ALB" \
--query 'Listeners[?Protocol==`HTTPS`].SslPolicy' --output text
aws acm describe-certificate --certificate-arn "$CERT" \
--query 'Certificate.KeyAlgorithm' --output text
Also make sure your deploy pipeline applies every infrastructure layer to every environment. Partial promotion paths are how a merged fix stays out of production.
5. Keep the vendor register in the same file
Track each vendor, what they control, their PQ status, and the date you asked. Review monthly.
Background: why are the agencies making such a big deal of this?
Because governments and national infrastructure have far more to lose than a typical software business, and because this may be the first of several discoveries.
The stakes are highest for national infrastructure. Three things make the problem much harder there than for a SaaS product.
-
Secrets that must last decades. Diplomatic, defence and intelligence material has to stay confidential for decades. A SaaS login session is worthless within hours. "Harvest now, decrypt later" hurts most where data stays valuable longest.
-
Equipment that can't easily be updated. Energy grids, water systems, telecoms networks, transport and satellites rely on hardware with encryption built into its firmware. Much of it stays in service for 10 to 20 years. A SaaS platform can change a setting this afternoon; a substation can't.
-
Everyone depends on them. The joint statement singles out technology, communications, financial services, energy and healthcare: the sectors everything else runs on.
For now, the action rests on suspected weaknesses, and more may follow. No official has named an affected algorithm. Today's advice comes from reading between the lines. The joint statement says frontier AI "has demonstrated the capability to solve some of the most complex and previously unsolved problems in the field of mathematics". Encryption rests on exactly such problems. Researchers are already probing the maths behind the new post-quantum algorithms too, although Valsorda calls the latest result "completely theoretical". The engineering answer is crypto agility: algorithm choices in configuration, several keys published at once, and certificate rotation automated. Then the next change is routine.
A notable shift in political tone. Just over a year ago, on 20 November 2025, the US Federal Communications Commission rescinded a January 2025 ruling. That ruling had read US wiretap law (CALEA) as requiring telecoms carriers to secure their networks, after the "Salt Typhoon" intrusions into US telecoms companies. The FCC called the ruling unlawful and ineffective, and favoured "an agile and collaborative approach to cybersecurity" built on voluntary industry commitments.
Twelve months later, the agencies are urging industry to "expeditiously upgrade" its digital infrastructure. The turn began earlier than December, with Executive Order 14412 on post-quantum readiness in June 2026. Still, it is fair to ask what has changed. The statements don't say, but three readings stand out:
-
A different kind of risk. The FCC decision was about mandatory security practices for telecoms carriers. This is about the mathematics that every system depends on.
-
The same preferred tools. Even now, the joint statement leans on partnership and engagement with industry rather than new regulation. That is consistent with the approach the FCC chose.
-
A change in the threat. If AI has changed how quickly weaknesses in widely used encryption can be found, the cost of waiting has changed with it.
Whatever the reason, a change of tone this sharp is itself a signal worth taking seriously.
If you'd like a hand auditing your estate, see our security service or get in touch.
Sources
-
Joint Statement on Recent Advances in Cryptographic and Cybersecurity Capabilities: ONCD, NSA and CISA, 2 December 2026
-
NSA advises immediate transition to post-quantum cryptography: NSA press release, 2 December 2026, with the advisory Immediate Actions to Push Toward Post-Quantum
-
NCSC advises urgent action on migration to post-quantum cryptography: NCSC, 2 December 2026. Highest-priority actions by 1 January 2031; see also Timelines for migration to post-quantum cryptography and Post-quantum updates to our TLS guidance (the NCSC's recommended TLS profiles)
-
Protecting the Nation's Communications Systems From Cybersecurity Threats, Order on Reconsideration (FCC 25-81): FCC, adopted 20 November 2025, Federal Register 15 December 2025
-
What to Make of the NSA Advisory: Filippo Valsorda, 2 December 2026
-
JWT signing keys and JSON Web Tokens: Supabase documentation, read 3 December 2026
-
RFC 10024: Post-Quantum Traditional (PQ/T) Hybrid Key Agreement Mechanisms for TLS 1.3: IETF, August 2026
-
RFC 10073: Composite ML-DSA for Use in X.509 Public Key Infrastructure: IETF, November 2026
-
OpenSSH 10.0 release notes: April 2025
-
Advancing Our Amazing Bet on Asymmetric Cryptography: Google Chromium blog, May 2024
-
Joint statement on transition to post-quantum cryptography: Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI and Oracle, 2 December 2026
-
NSA cites AI discoveries in encryption warning: VentureBeat, 2 December 2026
-
Eroding Lattice Confidence: The Case for Crypto-Agility: Cloud Security Alliance, 2 December 2026
-
JEP 527: Post-Quantum Hybrid Key Exchange for TLS 1.3: OpenJDK
-
Post-quantum TLS for Cloud Load Balancing: Google Cloud
-
Version, default and live-handshake results: our own tests, 1–3 December 2026