AI, Quantum and the Race to Secure Crypto

Crypto markets fell sharply following an announcement on 2 December from the US National Security Agency (NSA) calling for the urgent adoption of post-quantum cryptography. The warning, prompted by privately disclosed discoveries by leading AI companies, was backed in a rare joint statement by Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI and Oracle. 

Behind the sell-off lie growing concerns that extend well beyond crypto, namely that rapid advances in artificial intelligence could soon undermine much of the cryptography on which the internet itself depends. US cybersecurity agencies have stressed that the discoveries do not present an immediate, widespread threat. The sense of urgency surrounding the warnings, coupled with the lack of detail, has nevertheless fuelled speculation about everything from breakthroughs in quantum computing to new and efficient ways of breaking cryptography using existing classical computing.

While there’s no public evidence that the cryptography securing Bitcoin or Ethereum has been broken, the events of the past week have lent fresh urgency to the work already underway to secure these networks from emergent threats. 

Bugs Found In Public

Blockchains and crypto projects are already fighting fire with fire, using AI to find and patch bugs and vulnerabilities before attackers discover them. Earlier this year, a researcher using AI discovered a bug in Zcash that would have allowed attackers to mint unlimited amounts of counterfeit ZEC within its Orchard shielded pool. Later, the Zcash team worked directly with Anthropic’s Mythos model to further audit their code.

Vinod Vaikuntanathan, an MIT cryptographer and a member of the newly-formed Cryptography Incident Review Group (CIRG), wrote on 29 November that some of the speculation about AI labs breaking cryptography was exaggerated and some of it wrong. Even so, he advised at-risk groups to use AI models to patch vulnerabilities before adversaries find them. “Have Plan B and Plan C ready before Plan A breaks,” he wrote.

Bitcoin developers are also using AI to identify vulnerabilities. On 20 November Bitcoin Core, the software behind most Bitcoin nodes, disclosed a bug that let one computer on the network stall another for more than a dozen seconds per message. The advisory rates it medium severity. It says the bug was discovered by using an AI model and was reported on 8 July. A human researcher reported it independently four weeks later, and a fix was merged two days after that.  

Beyond Software Bugs

While that vulnerability concerned Bitcoin’s software rather than its underlying cryptography, quantum computing would present a much greater challenge. 

Bitcoin relies on elliptic-curve cryptography, which is used to derive public keys from private keys and to sign transactions. A private key is simply a random 256-bit number. The curve, known as secp256k1, turns it into a public key. 

Imagine hitting a cue ball on a snooker table so it ricochets off the cushions a set number of times. Anyone told that number can replay the shot, but someone who sees only where the ball started and stopped cannot easily work out how many bounces it took. Cryptographers use this analogy to explain elliptic curves. In Bitcoin, the number of bounces represents the private key and the ball’s resting place the public key. The possible count is a 78-digit number.

The concern is that a sufficiently powerful quantum computer running Shor’s algorithm could, in theory, do what a normal computer cannot: look at where the ball came to rest and work out how many bounces it took. That would let an attacker derive a private key from its public key, sign transactions and steal funds. 

Coins whose public keys are already visible on the blockchain, including certain early Bitcoin addresses, reused addresses and Taproot outputs, would be particularly exposed. Top researchers, according to at least one recent survey, however, say that it is extremely unlikely such a machine will be built this decade, with some doubting it will be created within 20 years.

Adam Back, chief executive of Blockstream, has pointed to hash-based signatures as an alternative to elliptic-curve cryptography, including  SHRINCS, a signature scheme proposed by Blockstream researchers. 

Even some forms of post-quantum cryptography are coming under scrutiny. On 30 November, CIRG released its first statement assessing an AI-assisted breakthrough by Anthropic against structured lattices, the mathematical foundation for several post-quantum standards. The researchers stressed that the attack remains far beyond practical reach and recommended continuing the transition to post-quantum cryptography while developing a wider range of alternatives. 

The Race to Upgrade 

For the Ethereum Foundation, the task is to make their blockchain resistant to both quantum and advanced AI tools. Its internal deadline for Ethereum’s base layer to become quantum-resistant remains 2029, with hash-based signatures replacing elliptic-curve ones, although Ethereum researcher Justin Drake has proposed bringing the target forward to December 2028. 

Ethereum Foundation researchers have recommended Keccak-256 for the upgrade to hash-based cryptography. These hash functions rely on one-way mathematical change that anyone can verify after the fact, but nobody can fake or reverse. “They are attractive for post-quantum use, but defenders must manage limited signing state … and protect against signature reuse or rollback,” according to the Non-Human Identity Management Group.

The transition will require changes across wallets, validators and other infrastructure, however, and the Foundation considers it a more difficult undertaking than Ethereum’s transition to proof-of-stake in 2022. 

Banks and traditional financial institutions face the same problem. In January the G7 Cyber Expert Group, which advises finance ministers and central bank governors, published a roadmap for moving the financial sector to quantum-resistant cryptography. 

The roadmap suggests the most critical systems be addressed in 2030 to 2032 and cites 2035 as a common overall target. However rules about transparency and disclosures may hamper efforts. “Overcoming barriers related to limited transparency, including obtaining detailed vendor roadmaps for specific cloud and cryptographic services, can be essential to enable effective planning and prioritization,” it says.

While bank customers have little visibility into their bank’s code, its list of past bugs or its migration plans, holders of bitcoin, ETH or other cryptocurrencies can follow the security debates and improvements in the works. This openness makes testing visible and the repairs verifiable. If that pattern holds, crypto blockchains may outpace traditional systems in responding to emerging security threats and become the most thoroughly tested places to hold value online.

While the latest warnings may have brought forward the timetable for upgrading the world’s cryptography, cryptocurrency developers are not starting from scratch. Research into quantum-resistant signatures is already well underway and the same advances in AI that are causing concern are giving those same developers more powerful tools with which to test and secure their networks. 

Crypto’s open-source development model could once again prove to be one of its greatest strengths, as the world confronts a new generation of threats online. 

Trading Starts Here

Master your financial future.
Use the best tools to succeed