For years, the cybersecurity industry has been preparing for a future in which quantum computers could undermine the mathematics protecting our digital lives. What if artificial intelligence gets there first? That possibility is becoming increasingly difficult to ignore, and now even WireGuard, one of the most respected modern VPN protocols, is preparing for a different cryptographic future.
WireGuard creator Jason A. Donenfeld revealed in a December 2 mailing list message that he has begun investigating a second version of the open-source VPN protocol. The development comes amid growing concerns that advanced AI models could discover mathematical weaknesses in cryptographic algorithms previously considered secure.
“Moving forward, I’ve already begun investigating updating the protocol for a WireGuard v2,” says Donenfeld.
Importantly, there is no public evidence that WireGuard has been broken by artificial intelligence. There is also no finalized specification or release date for WireGuard v2. Still, the fact that Donenfeld is publicly discussing the next generation of the protocol should get the attention of anyone who relies on encrypted communications.
Artificial intelligence changes the equation
The National Security Agency recently called for an accelerated transition to post-quantum cryptography following disclosures from frontier AI companies regarding discoveries affecting existing cryptographic systems.
A separate joint statement from the NSA, CISA, and the Office of the National Cyber Director said the discoveries do not currently pose an immediate and widespread threat. Unfortunately, the government has not publicly identified the specific algorithms affected by those disclosures.
There is an important difference between the threats posed by quantum computing and artificial intelligence. A sufficiently powerful quantum computer could use known algorithms to attack certain mathematical problems underpinning modern cryptography. AI, on the other hand, could potentially discover entirely different mathematical shortcuts that run on conventional computing hardware.
That creates an uncomfortable situation for the cybersecurity industry. An algorithm designed to resist quantum computers is not necessarily resistant to a mathematical breakthrough discovered by artificial intelligence.
Post-quantum cryptography is not synonymous with AI-proof cryptography. That is something both security vendors and consumers should remember as companies increasingly market their products as being ready for a post-quantum world.
WireGuard already has another line of defense
The current WireGuard protocol uses Curve25519 for establishing shared secrets and ChaCha20-Poly1305 for authenticated encryption. Breaking the mathematics behind the former could potentially undermine the confidentiality of VPN traffic without directly breaking the latter.
Fortunately, WireGuard has an optional 256-bit pre-shared key feature that provides an additional layer of symmetric cryptography. Donenfeld recommends considering this option, particularly when the key can be securely exchanged offline.
In simplified terms, even if an attacker figured out how to defeat the elliptic-curve mathematics used during the handshake, the additional secret could still prevent that attacker from deriving the keys needed to decrypt VPN traffic.
Of course, securely distributing those keys is easier said than done. Two people operating their own WireGuard servers might have little difficulty exchanging a secret offline, but a commercial VPN provider with millions of customers cannot reasonably do the same thing in person.
There are other options, however. Donenfeld suggests performing post-quantum key exchanges through an established WireGuard tunnel and using the resulting secret as the pre-shared key for subsequent communications.
This is not merely a theoretical solution. Mullvad already offers quantum-resistant WireGuard tunnels, while the open-source Rosenpass project provides complementary post-quantum key exchange capabilities.
A permanently configured pre-shared key is not a complete solution, either. If that secret is subsequently stolen and the underlying elliptic-curve cryptography becomes breakable, previously recorded communications could become vulnerable. Secure key storage, rotation, and authenticated key exchanges remain important.
WireGuard v2 faces a difficult engineering challenge
One of the things that made WireGuard so appealing in the first place was its simplicity. Rather than supporting a sprawling collection of cryptographic algorithms and configuration options, it takes an opinionated approach to security.
This reduces complexity and removes opportunities for administrators to accidentally select weaker cryptographic options. The trade-off is that replacing a fundamental cryptographic component becomes a protocol-level engineering problem.
Donenfeld acknowledges that moving away from elliptic-curve cryptography while preserving the desirable characteristics of WireGuard will be challenging. Post-quantum algorithms can introduce larger cryptographic keys and messages, different computational requirements, and additional implementation complexity.
That could be particularly relevant for embedded devices, inexpensive routers, and other networking hardware with limited resources. Larger handshake messages can also complicate communication across networks where packet sizes are constrained.
It is worth remembering that the performance of a VPN is not measured solely by how quickly it transfers files. Establishing connections, rotating keys, handling packet loss, and reconnecting when a smartphone switches between Wi-Fi and cellular networks are all important parts of the experience.
WireGuard v2 will need to address these issues if it is to preserve the characteristics that made its predecessor popular. Simply adding a post-quantum algorithm and calling it a day would not necessarily accomplish that.
The real problem could be getting everyone to upgrade
Even if Donenfeld and other developers produce an excellent successor to WireGuard, the challenge will extend far beyond writing the software.
WireGuard has been integrated into the Linux kernel since version 5.6 and is available across numerous operating systems, networking appliances, commercial VPN services, and consumer routers. Some of those devices will receive software updates quickly. Others may never receive them at all.
What happens when a router supports WireGuard v1 but a VPN provider begins transitioning to v2? Will providers maintain both protocols indefinitely? How will administrators prevent an attacker from exploiting legacy compatibility or insecure fallback behavior?
These are not confirmed problems with WireGuard v2, which does not yet have a published design. They are questions that the industry will need to address as cryptographic upgrades become increasingly urgent.
Hardware manufacturers, in particular, should be paying attention. A router purchased today might remain in someone’s home for the next decade. Its ability to receive future cryptographic upgrades could prove more important than the theoretical wireless speeds advertised on its packaging.
Should WireGuard users be worried?
There is no reason to abandon WireGuard based on Donenfeld’s announcement. Users operating their own infrastructure should investigate the existing pre-shared key functionality, while customers of commercial VPN services should ask their providers what additional cryptographic protections are available.
It is also worth remembering that a VPN protects only part of the journey your data takes across the internet. Strengthening a VPN tunnel does not automatically protect the websites you visit, the servers storing your information, or the software running on your devices.
My biggest takeaway from this announcement is that the cybersecurity industry can no longer afford to treat cryptographic modernization as a project with some distant completion date. Artificial intelligence could accelerate mathematical discoveries in ways that make existing migration schedules obsolete.
For decades, we have largely assumed that certain mathematical problems would remain impractical to solve with available computing resources. AI introduces the possibility that the problem might not require more computing power at all. It might simply require better mathematics.
WireGuard v2 is an early indication of how open-source developers are responding to that uncertainty. The question is whether the rest of the technology industry can adapt just as quickly.
Support independent tech journalism
NERDS.xyz is independently owned and operated. If you enjoy my coverage of Linux, AI, hardware, cybersecurity, and tech culture, consider supporting the site on Ko-fi.
Support NERDS.xyz


