This week, the National Security Agency released a statement advising “immediate transition to post-quantum cryptography”. Renowned cryptography engineer Filippo Valsorda has heroically tried to explain it in simple terms. Cloudflare’s CEO got in on the action. Every commentator out there is talking about how AI is breaking cryptography, crashing the Bitcoin market, and just generally freaking out. Muddying the waters are other things that Anthropic is up to; earlier in the week, the hastily-assembled Cryptography Incident Review Group released their “Initial Assessment of Anthropic’s Findings on Lattice Cryptography”, which included sentences like “A family of structured lattices called module lattices forms the basis of several NIST PQC standards”.
Meanwhile major publications like the New York Times are writing about this, podcasters are joking about it being a “setting on your iPhone” and policymakers and tech giants alike are caught off guard and attempting to navigate public confusion and panic.
What Is Going On!?!?
Here’s the one thing that I want you to internalize right away: if you’re wondering, “do I need to worry about this?” then you do not need to worry about this.
The problems being raised by these recent advances ought to be of little to no concern to the general public, and of relatively little concern even to most information technology professionals.
The rest of this post will be my best effort to explain, as briefly as I can, why that is the case.
I am not a cryptographer, and I am somewhat famously bad at math. I am not qualified to evaluate, in cryptographic terms, the significance of these findings; and, in any case, half of them seem to still be secret.
However, I am an on-again, off-again informational security professional and I know how cryptography interfaces with the rest of the technology we use.
Cryptography is a black box to me, but I know how to connect that box to the rest of the world, and I know how the people that make the box work amongst themselves.
What should I do!?!?
To avoid burying the key recommendations behind lots of explanation, let me give you the most actionable points first, assuming you are a regular person with a phone and a laptop:
Right now, you do not need to do anything. However, the discoveries in question suggest that if research continues at this pace throughout the upcoming year, you may be called upon to quickly update something at some point within that year, maybe as soon as 100 days.
Thus, if you want to soothe your anxiety by doing something today, the thing to do is to prepare so that the update in question is not a big deal if and when it does need to occur.
Update your operating system, update your applications, but most importantly, enable automatic updates for everything that supports it, so that this can stop taking up head-space for you. It really should not be your responsibility, and enabling automatic updates will place the responsibility onto the vendors of your network-connected technology, where it belongs.
If some urgent action is required later, it’s probably going to be “upgrade your web browser and your operating system to [this version]” where [this version] is some version that has probably already been released for a week or two at the point that the announcement happens. If you’ve already enabled automatic updates, by the time such an announcement is issued, you’ll already be up to date and you won’t need to think about it.
You can check out the footnotes for more specific recommendations for programmers1 and system administrators2 if you have one of those roles, but before we get bogged down in the specifics, let’s just give a high-level overview of what Cryptography even is to make sure we’re all on the same page. (Cryptographers and cryptographic engineers, please stop reading here; the oversimplifications that follow are going to be very annoying to you.)
The Briefest Possible Explanation of how Cryptography Affects You
I’ve explained what I think you should do, and hopefully those steps were simple enough. But many people have already probably tried to give you various bits of conflicting advice, and maybe you’re still anxious. So now I will explain, using some simple arithmetic, what is happening that is provoking all these stories and what impacts it might have.
You may have already heard that your information is “protected by cryptography”. But this is an incomplete sentence. Protected from whom? Against what? As you might imagine for a field so large and complex, there are several different answers to this question but I am going to focus on the biggest one that affects the general public.
When you send information over the Internet, you want to limit the number of people who can read it. In particular, if you transmit something like your bank password to your bank, you want your bank to be able to read it, and nobody else. However, given the way the Internet works, all information is sent to a bunch of intermediary computers (“routers”) that get it from you to its destination.
If this information were transmitted “cleartext”, then anyone with access to any of those routers, any of the networks that those routers are attached to, or indeed any of the WiFi radio signals or or physical wires transmitting the data between you and your bank, could read all of your data. That adds up to a lot of unwelcome potential onlookers.
Thus, to keep your password secret, the interaction must work like this: your computer encrypts the information into “ciphertext”. In the radio signals and on the wires, the only thing that an observer could see cleartext is that the information is headed towards your bank, but the information itself appears to be a bunch of random 1s and 0s. It has to be literally indecipherable. When it gets to the bank, it must then be decrypted so that the bank can check it. Any information the bank sends back to you (your balance, account numbers, etc) must be similarly obfuscated.
Thus, a cryptographic module is a black box that is mind-bendingly mathematically complex on the inside. But, the outside of the box is relatively simple: you put in a secret key and some cleartext, the box does some math on them, and you get ciphertext out; later, the bank puts in a secret key and some ciphertext and you get the cleartext.3
However, anyone with access to those wires and radio signals I mentioned previously can still capture the ciphertext. The idea is that this is supposed to be useless to them because they don’t have the secret key required to turn it back into cleartext. (More on this later.)
However, a secret key is just a series of bits — zeros and ones. Any sequence of 1s and 0s can be represented by an integer, and so, anyone in possession of the ciphertext could simply try every secret key, one at a time, by counting. Secret keys have a certain number of bits; 128 is a popular number. There are only 340282366920938463463374607431768211456 different possible 128-bit keys, so, if you had a fast enough computer, you could just count from zero to 340282366920938463463374607431768211456, trying each and seeing if you got something that looked like cleartext back out. Cleartext does have easily-identifiable patterns, after all; the wrong secret key will get you binary gibberish but the right one will get you things that look like English words.
Let’s say I captured all the data from your web browser talking to your bank for one banking session. If attempting to decrypt your data took 1 second per key, then I would be looking at your bank password, at the latest, 10790283070806014188970529154990 years from now.
If I had a trillion computers, all doing this in parallel, then our worst case4 would still take 10790283070806014188 years.
This is what actually what is protecting your data: the time it takes to do the math. The usual benchmark for a “good” cryptosystem is one where the earth will be consumed by the sun’s expansion into a red giant (in about 5000000000 years) before the key can be cracked by brute force.
When we speak of cryptographic researchers finding a “weaknesses”, what we are talking about is a mathematical shortcut, which lets them reduce that time by (for example) knowing in advance some portion of the key, so there are keys that they can skip over.
The usefulness of the black box that does its complex math problem rests on the assumption that the attacker in possession of our ciphertext actually needs to try every key. However, what if the ciphertext itself contains a clue about what they key is? Consider a shortcut that lets us read a block of encrypted traffic, do some arithmetic, and get the first 5 bits of the key out.
Cryptographers refer to this property as bits of security. A properly-functioning algorithm with a 128-bit key has 128 bits of security. But one with this weakness has dropped 5 bits, so we now only have 123 bits of security. That is worse. The quality of our cipher has degraded. Some cryptographers might even casually say that it is “broken”, because it no longer lives up to its 128-bits-of-security claim.
Still, this “broken” cipher is hardly a risk in the real world. It’s still got 10633823966279326983230456482242756608 keys you need to check. That’s still an unfathomably long time. It’s still 337196345962687943 years of worst-case guess time even in our trillion-computer scenario. Nothing for you to worry about.
However, when a cryptographic algorithm’s strength starts getting reduced in this way, cryptographers start to worry. The fact that it has a previously-unknown weakness where the ciphertext is slowly leaking information about the secret key is dangerous. It implies that if some of the bits of security have been lost, there might be more tricks in there which could cause even more bits to be lost.
If the mathematicians keep pushing, it is possible that they will figure out that you can actually get rid of 100 bits of security, not just 5. If that kind of jump happens, now we are talking about 268435456 keys. At one per second, that’s crackable in about 8 years. 8 years doesn’t look like the heat death of the universe any more, that is a period in which your same bank account could quite plausibly be active. With our trillion-computer scenario, we could do it in nearly real time.
This is why totally impractical, absolutely unrealistic attacks are still of concern to cryptographers. That little reduction in safety carries the implication that the assumptions that underpin all of the safety the algorithm provides might be slowly coming undone. Maybe one day, with years more work, things might actually start getting serious. Time to start moving on and using stronger tools.
This is also why they should not be of any concern to you, if you don’t already know exactly why you should be concerned.
When a cryptographic algorithm gets attacked like this, it’s time for the relevant mathematicians to start thinking about a new mathematical black box, based on different rules. It’s time for the relevant engineers to start changing systems to use that new math.
The design of modern cryptographic software explicitly allows for this process. Modern protocols already support different major cryptographic algorithms. They all have inscrutable names. There are so-called “asymmetric” algorithms like “RSA”, “ECC”, or “ML-DSA”. There are “symmetric” ones like “AES-GCM”, “ChaCha20Poly1305”, and “hashes” like “sha256” and “BLAKE2b”. And then there are “cipher suites” which combine these together in various arrangements, with charismatic and memorable names such as “X25519MLKEM768” or “sntrup761x25519-sha512”.
Even if you are a software engineer, you probably do not want to learn these names. Some expert cryptographers and highly specialized security engineers will get together, discuss the best current options based on recent developments, and make any necessary changes legible to everyone else in the form of a software update. Adopting these updates promptly is the only action that everyone else can reasonably take, which is why my recommendations above are all about getting ready to update more quickly, and none of them were about doing esoteric manual security configuration.
It is not, in fact, a setting on your iPhone.
So why is all this happening now?
AI labs, OpenAI and Anthropic particularly, are presently dedicating enormous, unprecedented amounts of resources to abstract mathematical problems, some of which are highly relevant to cryptography, and can present attacks on certain algorithms. They have been having some apparent successes.
I say “apparent” because there is some debate about whether the results they are achieving are due to unprecedented capabilities of AI as a technology, or simply the fact that nobody’s ever spent this much money, this quickly, on information security research before. There are also no public results with real practical impact yet, and it is unclear what the NSA has seen which provoked them to make this statement.
However, these results do appear, at least for now, to be both convincing and significant (if somewhat frustrating) to relevant experts. And, as the frontier labs pointed out in their own statement, if these results are possible to achieve with LLMs, lots of other people have access to advanced LLMs too, thanks in large part to the labs themselves and it is at least plausible that less public labs may be privately attempting to extend these results into practical attacks.
What does this have to do with Quantum?
In this context, the only thing you need to understand about quantum computers is that they are an extremely expensive, barely-real type of computer that can, in theory, do the types of math that are used in cryptography much faster.
We have known that quantum computers are theoretically possible, and might one day be a very big problem for cryptography one day, since 1994. The effort to migrate to so-called “post-quantum” cryptography, has been ongoing for quite some time.
Therefore, the “better” algorithms that software vendors are now trying to adopt more quickly, are all referred to as “post-quantum”, because they were designed at a time when the big threat was quantum computers.
This is also why the NSA is talking about “accelerating” the transition to post-quantum cryptography, rather than “starting” it. The transition is already well underway, and has been for years. There are already good post-quantum algorithms, they are already in use, but lots of outdated systems, apps, and devices are still in place that just haven’t been updated to take advantage of them yet.
What the NSA is saying is that you might not have decades to finish this transition, as previously thought. Quantum computers have been a theoretical threat for over 30 years, and they are still nowhere close to being a real threat today, but maybe if there are some big advances in quantum computing and some big advances in the underpinning mathematics, the really scary game-over scenario might happen sooner than we thought, in, say, 7 years rather than 50.
It’s as if we were in 1992, preparing to update all our software for the Y2K problem, and then some Time Researchers discovered that although we’re pretty sure it’s 1992, it might actually be 1997 already, so we should probably get a move on. The problem is relatively well-understood, the solutions are already developed and known, and they have already been rolling out for years, but we might need to roll them out a bit faster than anticipated.5
There is some concern that a real-life quantum computer may be a practical attack vector within a decade, and when that happens, we may have to worry about so-called “Harvest Now, Decrypt Later” or HNDL attacks, where spies may capture enormous databases full of Internet ciphertext that would currently be useless to them.
However, this is not specifically a quantum phenomenon. HNDL attacks are also of some concern if mathematical breakthroughs allow a classical (i.e.: regular, not quantum) computer to break existing cryptography, and a promising direction for research towards a classical attack might just as well provoke spy agencies to start hoovering up enormous amounts of data today in the hopes that they might be able to do some spying on it in the future6.
It’s a scary time in information security and there’s a lot going on, but there is no point in getting spooked by scary-sounding technical terminology. There are significant developments happening right now — none of this even touches on the “hacking” that the frontier labs have recently claimed to do, that’s a totally different subfield of information security — but in both cases, there’s no threat to worry about beyond needing to keep your systems up to date.
And you already needed to do that.
Acknowledgments
Thank you to my patrons who are supporting my writing on this blog. If you like what you’ve read here and you’d like to read more of it, or you’d like to support my various open-source endeavors, you can support my work as a sponsor!
-
Prioritize updating your dependencies and make sure that you have something like Dependabot set up to make that process automatic. Focus more on increasing the velocity of your release automation and improving your integration tests, in case you need to make a release or a deployment in a hurry, than any particular ciphersuite selection or cryptographic software configuration.
If you want to make some change to your developer workflow, and you’re still using SSH keys to access Git or GitHub, maybe switch all your remotes to HTTPS wherever possible. In the past, SSH key rotation fire drills have been considerably more labor-intensive and manual than the usual constant invisible key rotation happening with HTTPS. WebTrust certificate bundle updates come along with software updates for lots of other parts of the system and don’t require specific manual intervention for every host.
In fact, ideally, you want to avoid any ciphersuite selection. If you need to manually select a ciphersuite right now to check some box for compliance, make sure to put “remove manual ciphersuite selection” to your backlog immediately, so that you can re-delegate this type of decision-making to your server software or certbot or whatever.
The reason to avoid manually encoding ciphersuite configuration in your software or your systems, and leaving it up to the update agility of the libraries you’re using, is that the algorithm that you’re picking as “good” today might be one of the ones you need to move away from tomorrow.
To put a fine point on it: the NSA’s announcement has something to do with accelerating the move to PQC ciphersuites, even if we’re not exactly sure what discovery they’re gesturing at. But Anthropic’s earlier announcement, although it is very much not a practical attack, is about weaknesses in PQC ciphersuites.
Right now, the NSA thing seems to be by far the more pressing one. They are specifically prescribing action, Google is actively banning the classical P-256 curve. The publicly-known lattice result is in no way practical, and thus, PQC suites are generally the more correct option at the moment. But this could change at some later point, as further research is done.
If you’ve got other software to write, you don’t want to become an expert in this stuff, watching for developments day-by-day. Find a trustworthy library to delegate this to, and delegate it to them. ↩
-
Start making an inventory of your key and credential material. Document your rotation strategies for all of it. Practice doing some rotations, ideally with lower-impact systems first.
Learn, and write down, where all your SSL certificates and SSH keys are. The NSA’s guidance is to update specific key types right now. For SSL, certbot will be updated to do the right thing, and you can probably let certificate renewal take care of it for you. For SSH, unfortunately, this is inherently a manual process, and you will need to know about specific key types.
Right now, you can do this for HTTPS and this for SSH. For any SSH client that can’t switch to at least a p384 key, just generate a 4096-bit RSA key for now, and be prepared to switch to ML-DSA later when it becomes available. Again, the important thing is to inventory your keys persistently so that you can rotate them with less hassle as news arrives in the future, not to panic about getting them all rotated to the One Final Good Algorithm right now. ↩
-
Technically speaking what I am describing here is just symmetric private-key cryptography. This cannot really stand on its own; you may have noticed, for example, that I have not described the way that you and your bank agree on a secret key to begin with. There is math for that part too, but explaining it would increase the scope of this post too much; suffice it to say that it works similarly. There in fact are a bunch of other tools involved in the construction of a functioning internet cryptosystem, including public-key digital signatures, certificates, trust chains, and hash algorithms. However, they are all governed by the basic principles I’m outlining here about computational complexity; they all ultimately require (or are used to construct) a similar kind of black box. ↩
-
For simplicity’s sake I’m talking about “worst case” times here where we guess every single key and it always happens to be the last one. Most real keys would lie somewhere in the middle of the distribution so on average you’d only end up having to guess half of these, but as the rest of the back-of-the-envelope math here shows, in real life you would never try this anyway. ↩
-
Except in this metaphor the Time Researchers work for the NSA and everybody feels like this is a super serious national security secret, so they won’t actually tell anyone what year it is, just that it is “a somewhat later year than previously understood”. ↩
-
This is a needle drop. To properly experience this blog post you actually need to play the song. ↩