The NSA's New Advisory on Encryption Algorithms
The NSA has issued a scary-sounding warning about the need to convert to newer cryptoalgorithms: “NSA advises National Security Systems (NSS) owners, operators, and vendors to immediately accelerate the transition to post-quantum cryptography (PQC).” And all of this is on top of the much-rumored result about cryptography from Anthropic. But what does that mean, and what is the actual risk? We don’t know, but there are a few tea leaves to read.
The Anthropic result, though academically extremely interesting, is of little immediate practical relevance unless you happen to have access to a quantum computer noticeably larger than the size of the universe. The possible importance is that it shows that one class of so-called post-quantum algorithm, based on what are known as structured lattices, is not as strong as those based on unstructured lattices. (No, I’m not going to explain what those terms mean…)
The NSA warning, though, is more interesting and does have practical importance. First, though, a bit of history. The first fully practical public key algorithm, known as RSA after its inventors, was developed in 1978. It was the only public key algorithm available in 1994, the dawn of the commercial Internet. And it seemed to be very secure, because it’s (probably) based on the difficulty of factoring large numbers, a problem that has now been studied for about 350 years. (No, that is not a typo.)
Time marches on, and a newer algorithm, known as elliptic curve cryptography (EC), was developed. EC is more efficient, has smaller key sizes, and might even have been more secure. In 2005, the NSA urged folks to convert from RSA to EC. But a decade later, the NSA started worrying about quantum computers. They said, “[f]or those partners and vendors that have not yet made the transition to Suite B algorithms, we recommend not making a significant expenditure to do so at this point but instead to prepare for the upcoming quantum resistant algorithm transition.” In other words, they put the brakes on EC transition Of course, in 2015 there were no standardized, carefully examined algorithms, so the National Institute of Standards and Technology (NIST) started a multi-year, open process to develop such standards. These were finally released in 2024.
Enter artificial intelligence (AI). The so-called frontier models have been astonishingly good at solving difficult mathematical problems. Apparently, the companies behind these models have been talking quietly to the NSA about some of their results attacking the mathematical basis behind some cryptography; the NSA has now gotten concerned about the security of some previously-recommended algorithms.
The best deep-parse of the current recommendations I’ve seen is by Filippo Valsorda. In essence, it says “many current elliptic curves are not as secure as had been thought; use these other curves or RSA with a modules of at least 3072 bits.” (That last number is not new.)
So what does this mean? My first take-away is that some elliptic curves are no longer considered strong enough. This suggests to me that some AI system has created an algorithm that is about good enough to threaten these curves. (But see below…) Other elliptic curves are still OK. This is not inherently surprising; we’ve known for a very long time that key length matters for cryptographic security. Somewhat more surprising: RSA is still acceptable. This suggests that the AI systems have not made any progress on factoring. (Alternatively, maybe they’ve proved that it’s an inherently hard problem. That would be a wonderful result, though of course it doesn’t do anything about the threat to RSA if and when big-enough quantum computers are built. Predictions vary widely on when or even if that will happen.)
The big question, though, is to whom does this all matter? The first phrase of the NSA post gives their answer: “NSA advises National Security Systems (NSS) owners, operators, and vendors”. Their threat model is probably not your threat model! They worry about so-called “harvest now, decrypt later” attacks, where some adversary records conversations today and decrypts them in a few decades. There are secrets that the NSA wants to keep for 75 years and more. Most of us, of course, aren’t in that category. I don’t really worry if, in 75 years, someone will be able to ready my Amazon purchase history. (I won’t be around 75 years hence, either, but that’s a separate issue…)
But… As Bruce Schneier is fond of noting, attacks only get better; they don’t get worse. It’s therefore worth converting to so-called post-quantum algorithms as soon as you can. 3072-bit or 4096-bit RSA is probably safe until we have enough big-enough quantum computers, but though no one knows when that will happen, it can’t be ruled out. And conversion to PQC algorithms is involved, if only because key sizes are large, and if you have things like HSMs (hardware security modules) or rely on certificates issued by some vendor that doesn’t support PQC yet, you can’t switch instantly. That said, you should be planning a transition soon, even if you don’t work for Spook Central.
This is not an emergency. Even if the new AI resuls were published tomorrow, it is exceedingly unlikely that your systems will be hacked the day after. But it is a warning that conversion needs to be on your radar, and the more sensitive your assets are, and especially if they’re of interest to major governments, you should move sooner rather than later.
