Last September, I wrote an article entitled "My P(gloom) In Non-Zero" in which I introduced the concept of P(gloom) and contrasted it with P(doom). P(gloom) is the subjective probability that AI will create a very serious risk but not a P(doom) or life-threatening risk. As regular readers will know, I generally think P(doom) is nonsense. However, P(gloom) is real. In that earlier article, I discussed the chance that AI would discover how to break cryptographic protocols, threatening the security of important confidential information such as bank accounts. Now, a few months later, the P(gloom) risk has already materialized.
The National Security Agency advised yesterday that the cryptography that protects defense should move expeditiously to post-quantum cryptographic protocols as a result of AI discoveries that had been communicated from the labs. Also yesterday, a consortium of large technological companies issued a joint statement endorsing the NSA guidance and urging private industry to implement the NSA guidelines as soon as possible. Matthew Prince, CEO of Cloudflare, tweeted provocatively last night that
Obviously, Prince’s tweet caused much alarm. What is going on?
The Sky is Not Falling—Yet
Prince’s tweet encouraged a lot of speculation that perhaps one of the labs is sitting on an active exploit, such as an ability to factor a large number that would break RSA, one of the two current cryptographic protocols. Although we don’t know for sure, that interpretation is likely false. The NSA recommendations advised moving to the strongest form of quantum crypto algorithms, MK-SEK-1024 and MK-DSA-87, and, in cases in which migrating to quantum algorithms is infeasible, upgrading the standard RSA to RSA-3072 and the standard elliptic curve cryptography to curve p-384. If RSA and elliptic curves were broken today, the NSA would not have issued this guidance.
Essentially, the NSA recommendations, if implemented, increase the difficulty of a classical (not quantum) computer attack very significantly. Even if there were an algorithm that could break RSA-1024 today, upgrading to RSA-3072 would take about 300 trillion times the same amount of computation. And even if the current elliptic curve p-256 elliptic curve could be broken, upgrading to p-384 would take about 18 quintillion times as much compute to break. Using the NSA-recommended quantum algorithms increases computational difficulty to mind-boggling amounts, far, far above the RSA or elliptic curve increases.
Although the quantum algorithms protect against quantum computers, they also protect against large AI breakthroughs on classical computers. Interesting, the move to quantum algorithms is not to protect against the development of a practical quantum computer but rather to protect against an exploit on an old-fashioned classical computer using an AI-discovered attack.
Given that the NSA knows what the labs know, and they haven’t eliminated RSA or elliptic curves, I think we can safely assume that there is no algorithm at present to break either method. There is no imminent disaster. Reading the tea leaves, what has likely happened is that one of the labs has proved a theoretical result or bound on a class of problems that includes factoring large numbers (which would break RSA) and solving the discrete logarithm problem (which would break elliptic curve cryptography). That result probably shows that current methods to break RSA and elliptic curves can be sped up a lot, but not infinitely, which is why we can protect against it by increasing computational difficulty. But most likely there is no practical algorithm yet to exploit the theoretical result. Nonetheless, if we know a speed up is possible, it would be prudent to immediately protect against an AI model developing a practical algorithm, especially given how rapid AI’s mathematical abilities have been developing.
What Would Reduce My P(gloom)?
My P(gloom) is much higher now. What would reduce it? In the short run, critical industries should expeditiously implement the NSA playbook to upgrade their cryptography. Most companies had a timeline of sometime in the 2030s to migrate to quantum crypto. That timeline must be dramatically accelerated to the next year or so. This level of urgency is required because
AI mathematical abilities are increasing at a shocking rate. About a month ago, prominent mathematician Terry Tao thought the Riemann Hypothesis was so hard, it would be 2050 before AI models solved it. One month later it was solved. The method to speed up factoring of large numbers could be found next month, making current RSA insecure unless its upgraded.
Open weight Chinese models are only about six months behind. We cannot keep crypto secrets for long.
Is Implementing the NSA Playbook Sufficient To Manage the Risk?
Implementing the NSA playbook, especially over a short period, will be extremely difficult and expensive for most organizations. Even if that happens, it will unfortunately only be a stopgap measure. The NSA is aware of this problem, I think, but they know how difficult it is for government and enterprises to upgrade crypto and they don’t want the perfect to be the enemy of the good. Increasing computational difficulty of crypto algorithms is very important in the AI age, but it’s not enough in the long run.
My P(gloom) would go down even more if companies and governments implemented the stopgap measures, while at the same time planning and preparing strategically for the next phase. In that next phase, they should develop hybrid cryptography and fast crypto replacement protocols.
The idea behind hybrid cryptography is not to put all your eggs in one basket. For example, a digital signature could be secured by both an elliptic curve and a quantum algorithm. If one method is broken by AI, the signature is still not broken.
To be able to upgrade to hybrid crypto later, the most important strategic decision should be to implement the NSA playbook crypto recommendations in a way that allows them to be quickly swapped out in the future. Later on, then, a method could be swapped for hybrid crypto or could be swapped for a completely different method if an AI suddenly discovers an exploit. Crypto will have to be much more nimble in the age of AI.
The Risk Management Tradeoff
It’s very easy of course to say that the NSA playbook should be implemented urgently. But there is a risk management tradeoff to speed. Speed of upgrade must be balanced against correctness of the new code. AI models also have superhuman hacking abilities and can potentially break a crypto protocol not by using a mathematical breakthrough but rather by exploiting a bug in the new code. That’s a very real risk too. Companies will have to decide for themselves how to optimize that tradeoff, but they shouldn’t ignore it.
We Should Also Keep the Incentives in Mind When Evaluating These Frightening Announcements
Prince’s tweet likely points to a real problem, but its vagueness invited speculation and fear-mongering. We have to remember that Prince and Cloudflare are long-standing quantum crypto evangelists that want to see an immediate transition of conventional to quantum cryptography. Similarly, the tech companies that endorsed the NSA guidance are also looking at a bonanza of highly paid work to upgrade the U.S. government and the world. That doesn’t mean there isn’t a real problem. But it does mean that we should not be surprised if future crypto announcements are a little more hysterical than would be justified by the evidence.
We Need More Openness From the Labs and Government
Vitalik Buterin commented that he’d like to see labs and the government openly discussing and analyzing AI model discoveries rather than shrouding them in rumors, vagueness, and secrecy. I think he’s absolutely correct. The security of modern cryptography depends crucially on not hiding anything. Cryptography has always failed in the past when it has been based on hiding secrets or information. The government and labs should reveal what they know when they know it, so that the whole world can work on the problem. We should not entrust the problem to just a small group of the anointed. Keeping AI crypto secrets does not make us any safer. I hope I won’t have to keep reading the tea leaves in future announcements. If I don’t have to, my P(gloom) will go down.


