Encryption Mayhem and 256-bit ECC
The safety of our current and future encryption algorithms has been called into question this week, stemming from two main stories:
- Anthropic released a big nothingburger of a research paper, showing the most popular post-quantum encryption algorithms could have a flaw, assuming you turned all of the atoms from 10200 universes combined into qubits in a quantum computer.
- The NSA announced a recommendation for government agencies to "immediately transition" to post-quantum cryptography, which many tech companies were quick to echo.
The problem is that these two things are unrelated, but I fear many online and in the media are assuming or even proclaiming the NSA's announcement stems from this Anthropic research, and/or that this news is completely overblown.
In my opinion, the NSA's announcement is not an overreaction. If anything, I think that the impacts of recent discoveries in the cryptography space are being downplayed, and more people who run services online need to be paying attention.
I've seen too many people today take the position that the NSA's announcement amounts to simply saying that everyone needs to move towards post-quantum cryptography (PQC).
Maybe it needs to be a little faster than we thought, but everyone in tech knew this had to happen for years now, so nothing really new, right?
It's not right, because what we know doesn't only indicate everyone needs to move towards PQC, but it also indicates everyone needs to move away from 256-bit Elliptic-Curve Cryptography (ECC) as soon as possible.
That's because as of the time I'm writing this, everything is pointing towards the fact that 256-bit ECC has been cracked.
This is huge news, because P-256 and Curve25519 (two different 256-bit curves) power one of the most, if not the most, commonly used encryption algorithms in modern tech.
Your SSH key, did you use ed25519 or is it stored in ~/.ssh/id_ed25519.pub? You're impacted.
Your webservers, do you use Let's Encrypt? You're likely impacted.
Earlier this week there was speculation from known tech grifters like Elon Musk about RSA-2048 possibly being cracked. CEO of Cloudflare Matthew Prince was "vagueposting" about this announcement the night of the 2nd, cryptically posting about the urgent need to move to "post-AI" cryptography without providing any details.
Certainly a lot of shenanigans have been going on with this announcement by CEOs and companies desperate to boost their stock values, apparently to great success seeing as Cloudflare is up 22% this week. And that makes it difficult to tell whether any of this is worth taking seriously. When asked whether his post was related to the speculations that RSA-2048 was cracked, Prince simply replied "there are things worse than that."
This was of course decried by Twitter users as a massive overreaction the next day when more details emerged, but the thing is... he's kind of right.
For years, Curve25519 has been the popular replacement to RSA, because it is highly performant and has much smaller keys. That saves on bandwidth and makes things faster, that's what we want. Among non-legacy systems it's certainly being used far more than RSA-2048 is. That's a problem.
The Evidence
But is it cracked? Everyone seems to be so withholding, it's a bit hard to tell.
Well, first of all, Bruce Schneier literally made this claim:
I just heard from a reliable source that ECC P-256 was broken. (Remember that cryptographers have a different definition of “broken” than normal people do.) I don’t know the details (and they matter), but other things are safe (for now). So that matches the collective hunches of the cryptographers.
I bring this up first because he makes an important point (of course, he's Bruce Schneier): Calling crypto "broken" doesn't mean it's hackable right now.
However, it does mean you need to start moving off of it, and it likely means it will be hackable sooner than you'd like.
Major tech companies are either making similar claims or at the very least implying 256-bit ECC is no longer secure. Mozilla said they'd be prioritizing moving to stronger crypto and called P-256 a "weaker cryptosystem." Cloudflare didn't mention ECC at all, but announced their timeline to be quantum-safe moved up to just next year. They aren't explicitly saying P-256 is cracked, but paying attention to their actions instead of their words is more revealing.
However, I think most telling is the latest post from Google Security:
As of March 15, 2027, Chrome intends to stop trusting Certification Authority (CA) keys using ECDSA P-256 (secp256r1). [...] We strongly encourage website operators to migrate their own server's keys away from ECDSA P-256, and to adopt hybrid ML-KEM key agreement (X25519MLKEM768) to ensure your website's traffic is secure from emerging attacks.
Now, this doesn't mean certificate authorities have three months to upgrade their systems.
No, it means that any certificate authorities that are issuing certificates with 90 day expirations then have only 10 days to upgrade before their customers are impacted.
This is crazy. As the highly reputable cryptographer Filippo Valsorda points out, "this is as fast as anything can move without breaking millions of websites."
What to do?
Google is correct, migrating TLS certificates away from ECDSA P-256 is the first move, as well as ensuring your webservers are configured to support post-quantum key agreement.
Your ed25519 SSH keys need to be rotated too, ideally to a post-quantum mldsa44-ed25519 algorithm, but if you can't do that for some reason then RSA-4096.
I run Triplebit, a nonprofit that does cool stuff like operate privacy-focused public benefit infrastructure such as Tor relays, and provide discounted and free hosting/compute to other nonprofit groups aligned with our mission. On our site I published more details about our response, as well as three guides for a few major public-facing platforms I'm reconfiguring:
- Caddy: Adding Better PQC, Disabling 256-bit ECC, and Using P-384 Let's Encrypt Certificates
- Discourse: Enabling Safer PQC Ciphers and Switching to P-384 Certificates
- Mastodon: Enabling Safer PQC Ciphers and Switching to P-384 Certificates (the contents of this post are generally also applicable to any nginx server)
I spent a good amount of time writing the four posts linked above, which I hope will have more useful details than this post if you have any further questions.
It's really time to just be quantum safe, folks. Post-quantum crypto is being pushed so hard because it also forces you to use strong classical cryptography, which is a good thing.
However, if you can't go post-quantum it's also critical to make sure your classical encryption schemes are secure. Right now, that's RSA-4096 and P-384 ECC.
If you found this post valuable or you like my work, consider making a tax-deductible donation to Triplebit. Our mission is to defend our First and Fourth Amendment rights in the United States by operating privacy-focused public benefit infrastructure, educating people on digital and financial privacy, promoting free, uncensored internet access for journalists and activists in the United States and globally, and contributing to scientific research in digital privacy fields.
Y'know, tax season is coming up, so you only have until the end of this month to get those donations in for a deduction this year. Did you know you can claim a deduction for your charitable donations without itemizing now? Make of that information what you will 😉