Skip to main content
15 min read

Where RSA Still Hides in Your Stack: We Scanned SSH, TLS, DKIM and JWTs

Where RSA Still Hides in Your Stack: We Scanned SSH, TLS, DKIM and JWTs

On December 2, 2026, the Office of the National Cyber Director, the NSA and CISA published a joint statement on recent advances in cryptographic capabilities. It says the latest U.S. frontier AI models have solved previously unsolved problems in mathematics, and that AI companies "have disclosed discoveries that impact the security of some cryptography currently in use". It also says these advances "do not present an immediate and widespread threat" to that cryptography. The same day, Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI and Oracle published a joint statement that backs U.S. government guidance to move to the algorithms in NIST's post-quantum cryptography standards "as soon as possible". Fortune has the background.

Neither statement says which algorithms are affected or how, and Fortune quotes Cloudflare's CEO saying that not all the details can be shared yet. We do not guess at them here. The direction is clear, though, and the next question for most teams is where to start. This post is the where-do-I-start answer.

We wrote a small open-source scanner and ran it on 56 public targets: 20 websites, 9 mail servers, 4 Git hosts, the DKIM selectors of 15 domains and 8 OpenID providers. In this sample, much of the remaining RSA sits in places the site owner does not choose. All 26 keys published by the OpenID providers are RSA. 28 of the 50 DKIM keys we found are RSA-1024. GitLab still advertises a DSA host key.

This post shows how to find the same things in your stack with one binary, and which fixes to make first.

TLDR

  • On December 2, 2026, U.S. agencies and eight large tech companies urged a faster move to post-quantum cryptography. The details behind it are not public, and you do not need them to start: fix key exchange first.
  • RSA in your stack is two separate problems. Key exchange (TLS, SSH) can be recorded today and decrypted later, so it is the urgent part, and the fix is a hybrid post-quantum group such as X25519MLKEM768. Signatures and keys (certificates, host keys, DKIM, JWTs) protect authenticity, not secrecy: breaking them later does not decrypt old sessions. They follow NIST's timeline: deprecated after 2030, disallowed after 2035.
  • Ed25519 and ECDSA are not post-quantum either. Moving from RSA to Ed25519 gives you smaller, faster keys, not quantum safety.
  • 13 of 20 large websites negotiated X25519MLKEM768 with our client. GitHub, Amazon, Stripe, Netflix, Wikipedia, Yahoo and Bing did not. OpenSSL 3.5 gave the same answer for all 20.
  • A Go program gets post-quantum TLS by default only when its go.mod says go 1.24 or later. A new toolchain alone is not enough. We reproduced this.
  • In an April 2026 test by Red Sift, Gmail, Microsoft 365 and Yahoo did not verify Ed25519 DKIM signatures. Amazon SES offers only RSA-1024 and RSA-2048. For DKIM, the useful work today is removing RSA-1024 keys and dead selectors.
  • The scanner is where-rsa-hides: ssh, keys, tls, dkim, jwks and jwt checks, table or JSON output, and a CI mode.

What is public and what is not

The December 2 statements do not name RSA-2048 or any other algorithm. Before them, a widely shared post claimed that a frontier AI lab had broken 2048-bit RSA. We still found no paper or demonstration of that, and the official assessment is that there is no immediate and widespread threat. The closest public results are much smaller. In November 2026 Google DeepMind repeated a 1024-bit RSA computation from earlier research at 3.5 times lower cost, and its paper says: "Our results don't threaten deployed cryptosystems today that are based on 2048-bit and larger RSA." In September 2026 the public factoring record moved past 860 bits (RSA-260, then RSA-896), and both write-ups say this does not change the security of RSA-2048. The advice to move is sound without those details, for two reasons. First, encrypted traffic can be recorded now and decrypted later, when a large enough quantum computer exists. This is called harvest now, decrypt later. Craig Gidney estimated in 2025 that RSA-2048 "could be factored in less than a week" by a quantum computer "with less than a million noisy qubits", and a 2026 paper, with similar hardware assumptions, puts the count below one hundred thousand physical qubits. Second, NIST has set dates: its final IR 8547 (October 2026) says it "will deprecate quantum-vulnerable public-key cryptography after 2030 and disallow its use under NIST standards and guidelines after 2035". You do not need the undisclosed details to start.

Prerequisites

  • Go 1.26 or later to build the scanner, or a release binary
  • Network access to the hosts you scan (SSH port, 443, 587 or 25 for mail)
  • Optional: OpenSSL 3.5 or later, to cross-check TLS results with openssl s_client -groups X25519MLKEM768
  • Optional: the selectors your mail provider gave you, because some providers use random selector names

Two problems with different deadlines

A connection does two jobs with public-key cryptography. It agrees on a session key (key exchange), and it proves who the server is (signatures, certificates, host keys). A quantum computer that runs Shor's algorithm breaks RSA, finite-field Diffie-Hellman and elliptic curves (ECDH, ECDSA, Ed25519), so it hits both jobs. The deadlines are different:

Key exchange Signatures and keys
Where TLS handshake, SSH key exchange, JWE key transport Certificates, SSH host and user keys, DKIM, JWT signatures
Attack Record traffic today, decrypt it once a quantum computer exists Forge a signature at the time of the attack
Can it be harvested? Yes No. A broken signing key does not decrypt recorded sessions. It lets an attacker forge new signatures, and it weakens long-lived signed artifacts such as firmware and archives
Fix available today Hybrid key exchange: X25519MLKEM768 (TLS), mlkem768x25519-sha256 or sntrup761x25519-sha512 (SSH) ML-DSA (FIPS 204) exists, but the certificates, DKIM keys and ID tokens we scanned all still use RSA or elliptic curves
Deadline Now, for anything that must stay secret for years NIST: deprecated after 2030, disallowed after 2035. Plan long-lived signatures now

The ML-KEM hybrids combine X25519 (or a NIST curve) with ML-KEM, which NIST standardized as FIPS 203 in August 2024. OpenSSH's older default, sntrup761x25519-sha512, combines X25519 with Streamlined NTRU Prime. In both, the shared secret stays safe as long as either part holds. The TLS chapter of our cryptography guide shows how the hybrid handshake works.

The two problems are independent on real servers. In our scan, PayPal and X served an RSA certificate with post-quantum key exchange, and GitHub served an ECDSA certificate without it. A certificate check does not tell you anything about the key exchange.

The scanner

where-rsa-hides is one Go binary with six checks:

Command What it reports
ssh host Banner, size of each RSA, ECDSA and Ed25519 host key, whether ssh-rsa (SHA-1) or ssh-dss is advertised, hybrid post-quantum key exchange
keys [dir] Your private keys (type from the public part, never decrypted), .pub files and each authorized_keys line
tls host[:port] TLS version, negotiated group, key type and size of each certificate in the served chain. --starttls smtp for mail
dkim domain Key type and size of each selector it finds, from a list of common selectors or --selectors
jwks url kty, alg and RSA size of each key, from a JWKS or an OpenID configuration URL
jwt - The JWS alg or JWE alg/enc of tokens read from stdin or a file. Only the header is decoded
go install github.com/The-DevOps-Daily/where-rsa-hides@latest
where-rsa-hides tls github.com cloudflare.com

The TLS check uses Go's crypto/tls, which offers X25519MLKEM768 first. If the server picks a classical group, the scanner connects again and offers only post-quantum groups. A TLS alert on that second try means the server does not accept them from this client. A reset or timeout proves nothing, so the scanner reports it as an error instead of a result. The SSH check reads the server's first key exchange message, which lists every algorithm the server accepts, and then does one short handshake per host key type to read the actual keys. It stops before authentication.

Here is the real output for two websites, from results/post-snippets-2026-11-29.txt in the repo:

$ where-rsa-hides tls github.com cloudflare.com
CHECK        TARGET          ITEM                                                         ALGORITHM       BITS  SEVERITY  NOTE
tls-version  github.com      protocol                                                     TLS1.3                OK
tls-kex      github.com      key exchange                                                 X25519                MEDIUM    no hybrid PQ key exchange from this client: recorded traffic is exposed to harvest-now-decrypt-later
tls-cert     github.com      leaf github.com                                              ECDSA P-256     256   INFO      not post-quantum either; signed with ECDSA-SHA256
tls-cert     github.com      intermediate Sectigo Public Server Authentication CA DV E36  ECDSA P-256     256   INFO      not post-quantum either; signed with ECDSA-SHA384
tls-cert     github.com      intermediate Sectigo Public Server Authentication Root E46   ECDSA P-384     384   INFO      not post-quantum either; signed with ECDSA-SHA384
tls-version  cloudflare.com  protocol                                                     TLS1.3                OK
tls-kex      cloudflare.com  key exchange                                                 X25519MLKEM768        OK        hybrid post-quantum key exchange negotiated
tls-cert     cloudflare.com  leaf cloudflare.com                                          ECDSA P-256     256   INFO      not post-quantum either; signed with ECDSA-SHA256
tls-cert     cloudflare.com  intermediate WE1                                             ECDSA P-256     256   INFO      not post-quantum either; signed with ECDSA-SHA384
tls-cert     cloudflare.com  intermediate GTS Root R4                                     ECDSA P-384     384   INFO      not post-quantum either; signed with SHA256-RSA

10 rows: medium=1 info=6 ok=3

Severity follows the two problems. high means weak today (RSA keys under 2048 bits, DSA, TLS before 1.2, alg: none, DKIM under 1024 bits). medium means no hybrid key exchange in practice (including a server that only picks it when nothing else is offered), TLS 1.2 only, advertised ssh-rsa SHA-1 signatures, RSA-1024 DKIM or JWE with RSA or ECDH key transport. low is RSA that is fine today but on NIST's 2030 list. Ed25519, ECDSA and a CA's RSA intermediates are info: not post-quantum either, or not yours to change. Certificate signature algorithms and chain verification problems are shown in the notes but not scored.

In CI, --ci exits 1 when a finding is at or above --fail-on (default medium) and 3 when a check could not run, so an unreachable host, an unreadable file or a malformed record never passes as clean:

where-rsa-hides tls --ci --fail-on medium api.example.com
where-rsa-hides tls --ci --starttls smtp smtp.example.com:587

The test suite starts small SSH and TLS servers that must fail the checks (an RSA-1024 host key, a classical-only key exchange, a TLS 1.2 server) and servers that must pass, and it checks the CI exit code for both. A scanner that cannot fail would be no use in CI.

What we found on public targets

We scanned on November 29, 2026, from one network in Europe. Large sites sit behind CDNs, so another region can give a different answer. All raw JSON is in results/public-2026-11-29/.

Websites. 13 of 20 negotiated X25519MLKEM768: Google, YouTube, Facebook, Instagram, Microsoft, Apple, Cloudflare, LinkedIn, X, Reddit, OpenAI, PayPal and Salesforce. GitHub, Amazon, Stripe, Netflix, Wikipedia and Yahoo used X25519, and Bing used P-521. When we offered only post-quantum groups, the first six answered with a TLS handshake-failure alert, so they do not accept them from our client. Bing closed the connection instead, which leaves its support undetermined; it did not pick post-quantum either way. To rule out a bug in our client, we repeated every website with OpenSSL 3.5.7 and -groups X25519MLKEM768. It gave the same post-quantum or not answer for all 20. Browsers already push most traffic this way: Cloudflare's Radar showed about 72% of human HTTPS requests to Cloudflare using post-quantum key agreement in the week to November 29, 2026, and Chrome has offered hybrid key exchange by default on desktop since Chrome 124, with ML-KEM since Chrome 131.

Mail. Gmail, SendGrid and Mailgun negotiated it on port 587. Microsoft 365 and Amazon SES (us-east-1) used a classical group, and Postmark negotiated TLS 1.2 with P-256. On port 25, Gmail and Yahoo negotiated it and Outlook did not. 5 of the 6 submission servers use an RSA-2048 certificate.

Git over SSH. GitHub, GitLab and Bitbucket all offer mlkem768x25519-sha256. Azure DevOps (ssh.dev.azure.com) offered no post-quantum key exchange, and RSA-2048 is its only host key. GitLab still advertises a DSA host key, which OpenSSH 10.0 removed. The scanner reports DSA from the advertised list without fetching the key, so we confirmed it with OpenSSH 9.2's own client: ssh -o HostKeyAlgorithms=ssh-dss [email protected] received an ssh-dss host key (results/public-2026-11-29/crosscheck-gitlab-dsa-openssh.txt).

$ where-rsa-hides ssh gitlab.com
CHECK        TARGET      ITEM                                                         ALGORITHM              BITS  SEVERITY  NOTE
ssh-version  gitlab.com  banner                                                       GitLab-SSHD                  INFO
ssh-kex      gitlab.com  key exchange                                                 mlkem768x25519-sha256        OK        hybrid post-quantum key exchange offered
ssh-hostkey  gitlab.com  signature                                                    ssh-rsa                      MEDIUM    server advertises RSA/SHA-1 host key signatures
ssh-hostkey  gitlab.com  host key                                                     ssh-dss                1024  HIGH      server advertises a DSA host key (not probed): removed from OpenSSH 10.0
ssh-hostkey  gitlab.com  host key SHA256:eUXGGm1YGsMAS7vkcx6JOJdOGHPem5gQp4taiCfCLB8  ssh-ed25519            256   INFO      Ed25519: smaller and faster than RSA, but not post-quantum either
ssh-hostkey  gitlab.com  host key SHA256:HbW3g8zUjNSksFbqTiUWPWg2Bq1x8xdGUrliXFzSnUw  ecdsa-sha2-nistp256    256   INFO      elliptic curve: not post-quantum either
ssh-hostkey  gitlab.com  host key SHA256:ROQFvPThGrW4RuWLoL9tq9I9zJ42fK4XywyRtbOz/EQ  ssh-rsa                2048  LOW       RSA host key: fine today, on NIST IR 8547's deprecate-2030 / disallow-2035 list

7 rows: high=1 medium=1 low=1 info=3 ok=1

GitHub also still advertises ssh-rsa (RSA with SHA-1) signatures. It removes them on January 13, 2027; our post on GitHub's ssh-rsa removal covers which clients break.

DKIM. We checked 43 common selectors at 15 large domains and found 50 key records at 12 of them, plus 3 revoked selectors. None was Ed25519.

Many of the RSA-1024 keys sit on selectors from third-party senders (k1, mandrill, cm, google), which the domain owner may no longer use. Apple's selector1 and selector2 are both RSA-1024.

OpenID providers. We read the JWKS of Google, Microsoft, Apple, GitHub Actions, GitLab, Slack, Salesforce and Facebook. All 26 published keys are RSA (22 of 2048 bits, 4 of 4096). The repo's CI also requests its own GitHub Actions OIDC token and pipes it into where-rsa-hides jwt -: the header says RS256. If you verify ID tokens from these providers, your code depends on their RSA keys, and you cannot change that.

The Go go.mod trap

Go has enabled X25519MLKEM768 by default since 1.24, so you would expect any Go service built with a current toolchain to negotiate it. It does not if its go.mod declares an older Go version. Go's GODEBUG documentation says: "When compiling a work module or workspace that declares an older Go version, the Go toolchain amends its defaults to match that older Go version as closely as possible." The Go 1.24 release notes say X25519MLKEM768 "is enabled by default when Config.CurvePreferences is nil" and that tlsmlkem=0 reverts it. A module that declares Go 1.23 gets tlsmlkem=0. Go 1.24 also removed the older Kyber draft, so such a module has no post-quantum key exchange at all.

We reproduced it with the same TLS server code and the same Go 1.27.4 toolchain, changing only the go line (demo/gomod-go-line/run.sh in the repo):

The fix is one of these:

// go.mod: declare Go 1.24 or later
go 1.24

// or, to keep the old go line, add this above package main
//go:debug tlsmlkem=1

Explicit CurvePreferences or a GODEBUG setting override the default in either direction, so after the change, rebuild, deploy and scan the running service again. This applies to Go clients too. A Go service with an old go line does not offer ML-KEM when it calls other APIs, even if those APIs support it. Search your repositories for it:

# go.mod files that declare a Go version below 1.24
grep -rE '^go 1\.(1[0-9]|2[0-3])(\.|$)' --include=go.mod .

Mail is a good place to start. SMTP AUTH passwords are often API keys that stay valid for years. A recorded session with a classical key exchange holds those keys and the full message bodies.

DKIM: why Ed25519 is not the fix yet

RFC 8463 added Ed25519 to DKIM in 2018. It says "verifiers MUST implement the Ed25519-SHA256 algorithm" and that signers "can add multiple signatures that use old and new signing algorithms". In practice, large receivers ignore it. Red Sift tested 19 mailbox providers in April 2026: Gmail returned dkim=neutral (no key), Microsoft 365 a "signature syntax error" and Yahoo dkim=perm_fail for an Ed25519 signature. An Ed25519-only domain would fail DKIM at the biggest providers.

Many senders also cannot choose. Amazon SES Easy DKIM uses RSA-2048 by default and lets you select 1024. The API accepts only RSA_1024_BIT and RSA_2048_BIT, and BYODKIM accepts RSA keys of 1024 to 2048 bits. SES does not support Ed25519. Ed25519 is also not post-quantum, so adding it does not help with the quantum question.

What to do with DKIM today:

  1. Find every selector on your domains. Ask each sending service for its selector names, because random ones cannot be guessed.
  2. Rotate RSA-1024 keys to RSA-2048. On SES, set NextSigningKeyLength to RSA_2048_BIT.
  3. Delete selectors of services you no longer use. A dead selector still lets that provider sign mail as you.
  4. If your own MTA can sign twice, add an Ed25519 signature next to RSA. It costs little, and receivers that do not understand it ignore it.
where-rsa-hides dkim example.com
where-rsa-hides dkim --selectors abc123,def456 example.com   # random selectors from your provider

To practice the DNS side, the email authentication lab and the SPF, DKIM and DMARC exercise walk through publishing and breaking these records.

JWTs and JWKS: check what you issue, accept what you verify

For tokens you verify from an identity provider, the provider picks the algorithm, and in our scan all of them picked RSA. Keep verifying them, and pin the algorithm list in your verifier instead of trusting the token header.

For tokens you issue yourself, you have more choices. RFC 7518 defines HS256 (HMAC), RS256 and PS256 (RSA) and ES256 (ECDSA). RFC 8037 added EdDSA, and RFC 9864 (October 2025) deprecated the generic EdDSA name in favor of Ed25519 and Ed448. RFC 9964 (May 2026) registered ML-DSA for JOSE, with the key type AKP. Before you depend on it, check that your JWT library supports it.

Token type Quantum exposure What to do
HS256 between your own services Not affected by Shor Use a 256-bit random secret, rotate it
RS256 / ES256 / Ed25519 that you issue Forgery later, not harvest now Fine today. Plan for ML-DSA before 2030
ID tokens from Google, Microsoft, Apple, GitHub Actions OIDC Same Nothing you can change; pin alg
JWE with RSA-OAEP or ECDH-ES Harvest now, decrypt later Keep long-term secrets out of the payload. Where both sides can share a key, use dir. Short expiry limits replay, not later decryption
alg: none Broken today Reject it

Webhook signatures are usually symmetric. Stripe and GitHub sign webhooks with HMAC-SHA256, which Shor's algorithm does not break, so there is no RSA to move off there.

where-rsa-hides jwks https://accounts.google.com/.well-known/openid-configuration
pbpaste | where-rsa-hides jwt -      # read tokens from stdin, never from argv

The jwt check reads only from stdin or a file, so the token is never a command-line argument of the scanner. Do not type it into an echo either. If your services disagree about time, the post on clock skew and JWT failures covers the other way tokens break.

What to change first

Ordered by effort, with the risk each fix removes:

Fix Effort Removes How to check
Bump go lines to 1.24+ in Go services that terminate or open TLS Minutes Harvest-now-decrypt-later on that service where-rsa-hides tls host:port shows X25519MLKEM768
Delete DKIM selectors of services you no longer use Minutes RSA-1024 keys and stale signing paths where-rsa-hides dkim domain
Rotate RSA-1024 DKIM keys to RSA-2048 Minutes per provider Keys below NIST's 112-bit floor Same
Delete unused DSA host key files, remove ssh-dss Minutes Keys that OpenSSH 10.0 no longer supports where-rsa-hides ssh host
Upgrade TLS libraries: OpenSSL 3.5+, Go 1.24+, current Node.js or Java Hours to days Harvest-now-decrypt-later on what that library serves or calls, where the peer supports it too --ci in your pipeline
Reissue certificates as ECDSA (certbot --key-type ecdsa; the default since certbot 2.0) Hours Large RSA keys, slower handshakes. Not a quantum fix tls-cert rows
Replace RSA SSH user keys with Ed25519 when you next rotate Days, because of deploy keys Old PEM keys and RSA-2048 user keys. Not a quantum fix where-rsa-hides keys on each host
Upgrade servers to OpenSSH 10.x With the next OS release Adds mlkem768x25519 next to sntrup761 ssh-kex row
Plan ML-DSA certificates, keys and tokens Years, waiting on CAs and providers The signature side of NIST's 2030/2035 dates Re-scan yearly

If you only do one thing, do the first row. Key exchange fixes protect data you send from now on, and for Go it is a one-line change. For SSH, OpenSSH 10.1 and later warn when a session uses a non-post-quantum key exchange, controlled by the new WarnWeakCrypto option, so old servers become visible on their own. Our OpenSSH 10.6 post covers the other changes in recent releases.

What about secrets you already sent? A session protected only by a classical key exchange is exposed to a future quantum computer, so long-lived secrets sent over such sessions (API keys used as SMTP passwords, for example) should expire on a schedule anyway. Sessions without forward secrecy, such as TLS 1.2 with RSA key transport, are worse: whoever gets the private key of that certificate can decrypt every session recorded with it, no quantum computer needed. Rotate secrets that went over those first. An RSA certificate alone does not mean RSA key transport; the cipher suite decides. Every endpoint in our scans used an ephemeral key exchange: TLS 1.3, or TLS 1.2 with ECDHE in Postmark's case. That protects against a later leak of the server's key, not against a quantum attack on the recorded exchange.

What we could not conclude

  • One vantage point. CDN results can change by region and over time. A site that negotiated X25519 for us may use ML-KEM from somewhere else.
  • The client side is not scanned. The scanner tests what servers accept. Your own outbound connections (service to API, CI to registry) depend on your clients, and an old Go go line or an old OpenSSL affects those too.
  • A published DKIM selector is not proof it signs mail. We counted keys in DNS, not signatures on messages. Some of the RSA-1024 selectors above are probably unused.
  • Selector guessing misses random names. Our 43-name list cannot find Amazon SES Easy DKIM selectors or any other random ones.
  • The CDN hop is a separate connection. A site behind a CDN can negotiate X25519MLKEM768 at the edge while the hop from the CDN to the origin still uses a classical group. Scan the origin directly too.
  • No details on the December 2 disclosures. We do not know which cryptography they affect, and no public evidence shows that RSA-2048 is broken. Nothing in this post depends on it: the fixes above are the ones NIST had already scheduled.

Summary

RSA is still everywhere, but most of what we found is in signatures and keys. Those follow NIST's 2030 to 2035 timeline and depend on CAs and providers offering ML-DSA, though anything signed to last for years needs a plan sooner. The urgent part is key exchange, because it can be recorded today. Check that every TLS and SSH endpoint you run negotiates a hybrid group, and look for anything that pins the old defaults. Often the gap is not a missing upgrade but a setting that keeps the old defaults, such as an old go line in a go.mod file.

Run where-rsa-hides once against your hosts, put the --ci check in a pipeline so a regression fails the build, and fix the key exchange first.

Run the commands from this article in the browser. Nothing to install.

Published: 2026-12-03|Last updated: 2026-12-03T10:00:00Z

Tags

SecurityPost-QuantumTLSSSHDKIMJWTGo

Found an issue?

Also worth your time on this topic