WireGuard will have a second version: its creator responds to AI discoveries that threaten current encryption
Jason A. Donenfeld, creator of WireGuard, has started working on a WireGuard v2. He announced this a couple of days ago in an email to the project’s development list, in which he explains that they are aware of the recent mathematical advances achieved thanks to AI. You are also aware that they could really pose a danger to any data encrypted with current cryptography.
Until that new version arrives, it is recommended to use the pre-shared key which the protocol already supports, a 256-bit key that both ends of the connection know in advance.
Obviously, all this is not because Donenfeld is an alarmist. In reality, it has been the NSA that has asked the owners, operators and providers of US national security systems to accelerate immediately the move to post-quantum cryptography, designed to resist attacks by quantum computers.
The agency explains that several AI companies, exactly the ones you can see in the tweet above, have communicated to the Government recent discoveries that affect some cryptographic systems in use. It even warns that there are adversaries who already store encrypted information to decrypt it when they have the means to do so.
Their recommendations include inventorying cryptographic dependencies, prioritizing resilient firmware signatures because they are difficult to change once the device is in use, and requiring the CNSA 2.0 algorithm suite on purchases.
What is WireGuard and why is it so important?
To understand what the notice from the NSA and those 8 North American companies has to do with WireGuard, it is important to know exactly what it is. In short, it is an open source VPN protocol that has been part of the Linux core since version 5.6, published in 2020. Its code is around 4,000 lines, far from the hundreds of thousands of alternatives such as OpenVPN or IPsec, making it easy to check for errors.
That simplicity and performance have made it the basis for many commercial VPN services and private business networks. To open each connection, the two ends agree on the keys using cryptography. elliptic curve. That’s just the kind of asymmetric cryptography that’s now in question. The data is then encrypted using ChaCha20, a symmetric algorithm.
Donenfeld acknowledges that moving to post-quantum cryptography will not be easy
It is worth reading the entire email that Donenfeld sent, because is one of the first responses from an authorized voice to this situation. It explains what users and companies that depend on the protocol can do now, without waiting for an update, and how it plans to prepare the new version.
He also points out that current post-quantum alternatives don’t fit WireGuard’s design as well such as elliptic curve cryptography. Here we leave you the full message:
Hello everyone:
If you’ve been following what’s happening on the internet lately, you’ve probably noticed the recent buzz about mathematical advances made through AI that could affect cryptographic security. I wanted to write to let you know that the WireGuard project is aware and is actively charting the way forward.
To start, it seems as good a time as any to remember that WireGuard has a 256-bit pre-shared key option. If you can use it and are concerned about the implications of the various advances that are taking place, you may want to do so. If you can actually share a key in advance over a secure, offline medium, the security of the WireGuard protocol comes down to breaking that 256-bit ChaCha20 key, which is not going to happen, rather than relying on any asymmetric primitives. If you can’t pre-share a key that way, you can run multiple post-quantum key exchanges (which I assume now implicitly come to mean “primitives that AI hasn’t yet broken”), or several of them in combination, through an already established WireGuard tunnel, and then put the result into the pre-shared key slot. I think some VPN providers are already doing this. As things stand now, both are good solutions.
Looking ahead, I have already started looking into how to update the protocol for a WireGuard v2. This is not an invitation to “let’s all design it in a mailing list thread” or anything like that. It is, rather, to inform you that there are things going on. As you know, WireGuard is designed around “versioned cryptography.” It seems that as things break and we need to deploy new primitives and new ideas, being able to push the version when needed is a good thing. When things break (well, hopefully before they break), we will release new software, just like any other software issue that gets fixed.
Still, I have to be honest: it’s certainly difficult (though I hope not impossible) to come up with something really elegant that preserves all the properties we know and love about WireGuard using the current crop of post-quantum cryptographic primitives. Elliptic curve cryptography was in a sweet spot ergonomically, and we’re going to have to leave it behind. But that’s how things are. Cryptanalysis advances, and WireGuard will too.
Jason
