Your CloudFront is post-quantum. Your ALB probably isn't.
When the NSA published its "Immediate Actions: Push Toward Post-Quantum" advisory on December 1, the first step it lists is inventory: know where your TLS terminates and what it negotiates. So I spent a day doing exactly
When the NSA published its "Immediate Actions: Push Toward Post-Quantum" advisory on December 1, the first step it lists is inventory: know where your TLS terminates and what it negotiates. So I spent a day doing exactly that across our production and test AWS accounts.
I expected a messy answer. What I got was a clean split: some of our traffic was already post-quantum without anyone touching a setting, and some of it had no chance of ever being post-quantum until we changed a policy name. The split had nothing to do with how old or important the service was. It was entirely about which AWS service terminates the TLS connection.
TL;DR
| Where TLS terminates | Post-quantum by default? | What to do |
|---|---|---|
| CloudFront (viewer side) | ✅ Yes, since Sept 2025 | Nothing |
| API Gateway, edge-optimized | ✅ Yes (it's CloudFront in front) | Nothing |
| API Gateway, regional custom domain | ❌ No | Opt in to a _PQ_ security policy |
| ALB / NLB HTTPS or TLS listener | ❌ No (unless created in the console recently) | Switch to an ELBSecurityPolicy-TLS13-*-PQ-2025-09 policy |
| Your certificates (ACM) | ❌ Still RSA / ECDSA | Nothing you can do yet. That's OK, and I'll explain why |
In our accounts, every ALB and NLB HTTPS listener and all 21 regional API Gateway custom domains failed a post-quantum handshake. Everything behind CloudFront passed.
First, a 60-second refresher: why key exchange is the part that matters now
A TLS handshake does two different cryptographic jobs:
- Key exchange (ECDHE today) agrees on the session key that encrypts your traffic.
- Signatures (your certificate's RSA or ECDSA key) prove the server is who it claims to be.
The threat people worry about is "harvest now, decrypt later": someone records your encrypted traffic today and decrypts it once a large enough quantum computer exists. That attack only needs to break the key exchange. Breaking a signature years from now doesn't help an attacker impersonate your server today.
So the urgent fix is hybrid key exchange: X25519MLKEM768, which combines classic X25519 with the NIST-standardized ML-KEM. If either half holds, the session key is safe. Post-quantum certificates are a separate, slower migration (more on that at the end).
How to test an endpoint in one line
You need OpenSSL 3.5 or newer on the client. This tripped me up immediately: my Ubuntu box has OpenSSL 3.0, which doesn't even know the group name:
error:0A080106:SSL routines:gid_cb:passed invalid argument:...:group 'X25519MLKEM768' cannot be set
Easiest fix: borrow a container. Alpine 3.23 ships OpenSSL 3.5.
docker run --rm alpine:3.23 sh -c '
apk add -q openssl >/dev/null
echo | openssl s_client -connect "$0:443" -servername "$0" -groups X25519MLKEM768 2>&1 \
| grep -E "Negotiated TLS1.3 group|alert"
' your-endpoint.example.com
Passing -groups X25519MLKEM768 offers only the hybrid group, so the server can't quietly fall back to classic X25519. Two possible results:
# Post-quantum: you're good
Negotiated TLS1.3 group: X25519MLKEM768
# Not post-quantum
ssl/tls alert handshake failure ... SSL alert number 40
Negotiated TLS1.3 group: <NULL>
For a whole inventory I wrote a ~100-line Go program (Go 1.24+ supports tls.X25519MLKEM768 natively) that reads hostnames from stdin and, for each one, prints the TLS version, the group negotiated with default preferences, whether a PQ-only offer succeeds, and the leaf certificate's key type. The core of it is just this:
cfg := &tls.Config{
ServerName: sni,
CurvePreferences: []tls.CurveID{tls.X25519MLKEM768}, // offer ONLY the hybrid group
}
conn, err := tls.DialWithDialer(dialer, "tcp", addr, cfg)
pq := err == nil && conn.ConnectionState().CurveID == tls.X25519MLKEM768
Feed it every hostname from Route 53, your CloudFront distributions, and your API Gateway custom domains, and you have your inventory.
Why CloudFront "just works"
CloudFront turned on hybrid post-quantum key exchange for viewer connections in September 2025, across all existing security policies, with no configuration. It supports X25519MLKEM768 and SecP256r1MLKEM768 over TLS 1.3.
Edge-optimized API Gateway endpoints are fronted by CloudFront, so they inherit this for free. Ours negotiated X25519MLKEM768 without anyone ever having thought about it.
One caveat: that's the viewer side only. The connection from CloudFront to your origin (often an ALB) is a separate TLS session, and AWS's PQ readiness page still lists origin-side support as "coming soon."
Why your ALB almost certainly isn't
Post-quantum key exchange requires TLS 1.3, and it requires one of the newer ELB security policies. AWS added them in late 2025:
ELBSecurityPolicy-TLS13-1-3-PQ-2025-09ELBSecurityPolicy-TLS13-1-2-PQ-2025-09ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09ELBSecurityPolicy-TLS13-1-0-PQ-2025-09- …plus
-FIPS-variants and, as of mid-2026, CNSA 2.0 policies for the strictest environments.
Here's the gotcha that explains why so few people are on them:
The console defaults to
ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09. The API, CLI, CloudFormation and CDK default toELBSecurityPolicy-2016-08.
If you build infrastructure as code (and you should), and you never set ssl_policy explicitly, you got a 2016 policy that doesn't offer TLS 1.3 at all, let alone ML-KEM.
We had a second twist: our Terraform for the production listeners didn't set ssl_policy at all. The live values had been changed by hand in the console years ago, so the code wasn't actually managing them. If yours looks like that, fix the drift first so the change goes through review like everything else.
Find every listener's policy
for region in us-east-1 us-west-2 eu-west-1; do
for lb in $(aws elbv2 describe-load-balancers --region "$region" \
--query 'LoadBalancers[].LoadBalancerArn' --output text); do
aws elbv2 describe-listeners --region "$region" --load-balancer-arn "$lb" \
--query 'Listeners[?Protocol==`HTTPS` || Protocol==`TLS`].[LoadBalancerArn,Port,SslPolicy]' \
--output text
done
done
Anything that doesn't end in -PQ-2025-09 (or a CNSA2 policy) is not post-quantum.
Before you flip the policy: check who's actually connecting
Changing a TLS policy is the kind of change that's trivial in Terraform and painful at 2 a.m. when some customer's ancient integration stops connecting. So before choosing a new policy, I looked at what clients actually negotiate today.
If your ALB access logs go to CloudWatch Logs, this is one Logs Insights query:
stats count(*) as requests by ssl_protocol, ssl_cipher
| sort requests desc
Over 14 days and roughly 10 million requests on our busiest production ALB, the answer was boring in the best way:
- 99.15% TLS 1.2, every single one using
ECDHE-RSA-AES128-GCM-SHA256 - 0.85% plain HTTP on port 80 (redirects)
- Zero TLS 1.3, because the old policy never offered it
- Zero TLS 1.0 / 1.1
On an older internal ALB still on ELBSecurityPolicy-2016-08, I found exactly four TLS 1.0/1.1 requests in two weeks. All four hit the load balancer's raw IP or AWS DNS name with no hostname, ancient or missing user agents, and got 401/400 responses. Those were internet scanners, not customers.
That gave me a safe mapping that keeps every cipher clients actually use:
| Current policy | Move to |
|---|---|
ELBSecurityPolicy-2016-08 |
ELBSecurityPolicy-TLS13-1-0-PQ-2025-09 (same legacy reach, adds TLS 1.3 + PQ) |
ELBSecurityPolicy-FS-1-2-Res-2020-10 |
ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09 |
I diffed the cipher lists with aws elbv2 describe-ssl-policies --names <old> <new> to confirm nothing in use gets dropped. Once you know your traffic, tightening from 1-0 to 1-2 can be a separate, boring change later.
The Terraform change itself is one line:
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.main.arn
# ...
}
Clients that don't speak ML-KEM keep negotiating classic X25519 or P-256 over TLS 1.3, or TLS 1.2 where the policy allows it. Hybrid key exchange is additive. Nobody gets locked out because their client is older.
Regional API Gateway: opt in
Regional and private REST APIs with custom domains got post-quantum security policies in November 2025, such as SecurityPolicy_TLS13_1_2_PQ_2025_09, plus PFS and FIPS variants. They're opt-in, and the default for a new custom domain is still TLS_1_0. All 21 of our regional custom domains were on the old policies.
If your custom domains are defined in a Serverless Framework or SAM template inside each application repo (ours were), this becomes a change in many repos instead of one, so plan for that.
Don't forget the client side
Hybrid key exchange only happens if both ends support it. The good news is that the AWS service endpoints themselves (KMS, Secrets Manager, S3, ACM and others) already accept ML-KEM from clients that offer it. Whether your code offers it depends on the TLS library (AWS keeps a per-SDK table):
-
Go 1.24+: on by default in
crypto/tls. -
Python / boto3: uses the host's OpenSSL, so you need OpenSSL 3.5. Amazon Linux 2023 and Debian 13 (trixie) ship 3.5. Debian 12 (bookworm) ships 3.0, and so do a lot of
python:*-bookwormimages. - Node.js: Node uses its bundled OpenSSL, not the OS one. Recent Node 22 and 24 releases bundle 3.5. Node 20 bundles 3.0.
- Java: hybrid key exchange arrived in JDK 27 (JEP 527). Older LTS releases don't have it.
If your containers are still on bookworm-based images, your service-to-AWS traffic isn't post-quantum even though AWS is ready. A base image bump fixes that.
What about certificates?
This is where you can relax a bit, because there is no action available yet:
- ACM can issue RSA 2048, ECDSA P-256 and P-384 public certificates. No ML-DSA.
- No publicly trusted ML-DSA certificates exist yet. The browser ecosystem is heading toward Merkle Tree Certificates, which Let's Encrypt plans to offer in production in 2027.
- For private PKI you can start now: AWS Private CA issues ML-DSA certificates, and KMS supports ML-DSA signing keys.
Remember the refresher at the top: signatures protect against live impersonation, which needs a working quantum computer at the moment of the attack. Key exchange protects your recorded traffic from being decrypted later. Fix key exchange first.
My checklist
- Inventory. Probe every public hostname with a PQ-only offer. It takes minutes and gives you a real answer instead of a guess.
- Leave CloudFront and edge-optimized APIs alone. They're done.
-
Check ALB/NLB listeners. Read your access logs, pick the
-PQ-2025-09policy that keeps the ciphers you see, and setssl_policyexplicitly in code. - Opt regional API Gateway custom domains into a
_PQ_policy. - Bump client runtimes and base images to OpenSSL 3.5, Go 1.24+, or a current Node/JDK.
- Track certificates, but don't block on them.
The surprising part of this exercise wasn't the cryptography. It was that a security property of our edge depended almost entirely on a default value nobody had looked at since 2016. If you only do one thing after reading this, run that describe-listeners loop and look at the last column.
Have you rolled out the PQ policies on your load balancers? I'd love to hear whether any clients broke, so please tell me in the comments.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.