Lune

USENIX Security2025顶会

A Tale of Two Worlds, a Formal Story of WireGuard Hybridization

Pascal Lafourcade, Dhekra Mahmoud, Sylvain Ruhault, Abdul Rahman Taleb

摘要

PQ-WireGuard is a post-quantum variant of WireGuard Virtual Private Network (VPN), where Diffie-Hellman-based key exchange is replaced by post-quantum Key Encapsulation Mechanisms-based key exchange. In this paper, we first conduct a thorough formal analysis of PQ-WireGuard's original design, in which we point out and fix a number of weaknesses. This leads us to an improved construction PQ-WireGuard ⋆ . Secondly, we propose and formally analyze a new protocol, based on both WireGuard and PQ-WireGuard ⋆ , named Hybrid-WireGuard, compliant with current best practices for post-quantum transition about hybridization techniques. For our analysis, we use the Sapic + framework that enables the generation of three state-of-the-art protocol models for the verification tools ProVerif, DeepSec and Tamarin from a single specification, leveraging the strengths of each tool. We formally prove that Hybrid-WireGuard is secure. Eventually, we propose a generic, efficient and usable Rust implementation of our new protocol. Formal security analysis of PQ-WireGuard. We propose a new and more comprehensive model of PQ-WireGuard than the one presented in [51] and a more powerful attacker. We point out a mistake in the latter symbolic proof which has an impact on Unknown-Key-Share (UKS) attacks' analysis and we identify attack scenarios that are missed. Furthermore, PQ-WireGuard inherits the lack of anonymity from WireGuard. In addition, we point out that PQ-WireGuard uses a non-standard definition of the KEM encapsulation procedure, which impacts the protocol's implementation and analysis. We therefore propose a new version of the protocol, based on the common KEM's definition, which we refer to as PQ-WireGuard ⋆ . We formally prove that this version ensures anonymity, resists Unknown-Key-Share attacks and preserves the remaining properties (agreement and secrecy). Hybrid-WireGuard. We propose a new protocol, called Hybrid-WireGuard, constructed by skillfully combining our improved construction PQ-WireGuard ⋆ , and WireGuard. We model this protocol and formally prove that all the security properties are achieved. Moreover, our analysis shows that if an attack scenario against a security property of Hybrid-WireGuard exists, then it is a combination of an attack on PQ-WireGuard ⋆ and an attack on WireGuard. Adaptive analysis. We base our formal analysis on [59] . We point out, however, that the evaluation strategy used in [59] , is not practical to analyze Hybrid-WireGuard because of a far more larger set of required evaluations. We therefore propose an adaptive evaluation strategy which greatly reduces the number of necessary evaluations needed to assess security properties, while preserving soundness. Instantiation and implementation. We instantiate Hybrid-WireGuard with Classic McEliece [18] and ML-KEM [65] algorithms and propose a generic and efficient implementation in Rust. We provide benchmarks for Hybrid-WireGuard and PQ-WireGuard ⋆ compared to WireGuard and PQ-WireGuard, showing the practical usability of our constructions. Paper organization In Section 2, we present related work, for WireGuard and PQ-WireGuard-based constructions and tools, protocol analysis with Sapic + , and hybridization. Then, in Section 3, we detail WireGuard and PQ-WireGuard handshakes. Next, in Section 4, we describe our methodology for the formal verification of WireGuard, PQ-WireGuard, PQ-WireGuard ⋆ and Hybrid-WireGuard, and present the analyzed security properties. Based on this description, we exhibit the results of our symbolic analysis for WireGuard and PQ-WireGuard in Section 5. Our results on PQ-WireGuard lead us to an improved version of the protocol, which we call PQ-WireGuard ⋆ , described and symbolically assessed in the same section. After, we introduce our protocol Hybrid-WireGuard in Section 6. We also exhibit the results of our symbolic analysis of the protocol, showing that its security is ensured as long as at least the security of the classic primitives or the security of the post-quantum primitives is ensured. Finally, we present our implementation and instantiation of cryptographic primitives in Section 7, and we conclude in Section 8. Related Work Constructions and tools based on WireGuard and PQ-WireGuard. In [10], a tweak is proposed to provide WireGuard with post-quantum security. It consists in transmitting the hash of the identity public key instead of the public key itself, hence protecting it from a quantum computer. The goal is to protect against store-now-decrypt-later attacks. However, this tweak relies on the strong assumption that peers' public keys are unknown to the attacker (a similar assumption is made in WireGuard [36]). NordLynx [67], a variant of WireGuard, proposes a post-quantum solution: after the successful handshake, a KEM key exchange is performed using ML-KEM, within the already mounted WireGuard tunnel. This solution provides post-quantum security for the final session keys, mitigating attacks from

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Post-Quantum TLS Without Handshake Signatures 引用了 WireGuard: Next Generation Kernel Network Tunnel
  • Post-Quantum TLS Without Handshake Signatures 引用了 Post-quantum WireGuard
  • Revisiting PQ Wireguard: A Comprehensive Security Analysis with a New Design Using Reinforced KEMs 引用了 Post-Quantum TLS Without Handshake Signatures
  • Revisiting PQ Wireguard: A Comprehensive Security Analysis with a New Design Using Reinforced KEMs 引用了 WireGuard: Next Generation Kernel Network Tunnel
  • Revisiting PQ Wireguard: A Comprehensive Security Analysis with a New Design Using Reinforced KEMs 引用了 Post-quantum WireGuard
  • Post-quantum WireGuard 引用了 WireGuard: Next Generation Kernel Network Tunnel
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper2

  1. Efficient QC-MDPC Cryptosystems with Bounded Decoding Failure RateAlessandro Annechini, Alessandro Barenghi, Gerardo Pelosi, Simone PerrielloCRYPTO 2026
  2. Revisiting PQ Wireguard: A Comprehensive Security Analysis with a New Design Using Reinforced KEMsKeitaro Hashimoto, Shuichi Katsumata, Guilhem Niot, Thom WiggersS&P 2026

它引用的 Paper11

  1. WireGuard: Next Generation Kernel Network TunnelJason A. DonenfeldNDSS 2017 · 259 次引用
  2. Post-Quantum TLS Without Handshake SignaturesPeter Schwabe, Douglas Stebila, Thom WiggersCCS 2020 · 162 次引用
  3. DEEPSEC: Deciding Equivalence Properties in Security Protocols Theory and PracticeVincent Cheval, Steve Kremer, Itsaka RakotonirinaS&P 2018 · 77 次引用
  4. Post-quantum WireGuardAndreas Hülsing, Kai-Chun Ning, Peter Schwabe, Florian Weber 等S&P 2021 · 73 次引用
  5. Formal verification of the PQXDH Post-Quantum key agreement protocol for end-to-end secure messagingKarthikeyan Bhargavan, Charlie Jacomme, Franziskus Kiefer, Rolfe SchmidtUSENIX Security 2024 · 27 次引用

相关 Paper

  1. A Unified Symbolic Analysis of WireGuardPascal Lafourcade, Dhekra Mahmoud, Sylvain RuhaultNDSS 2024
  2. OwlC: Compiling Security Protocols to Verified, Secure, High-Performance LibrariesPratap Singh, Joshua Gancher, Bryan ParnoUSENIX Security 2025
  3. Shadowfax: Hybrid Security and Deniability for AKEMsPhillip Gajland, Vincent Hwang, Jonas JanneckUSENIX Security 2026
  4. Hybrid Obfuscated Key Exchange and KEMsFelix Günther, Michael Rosenberg, Douglas Stebila, Shannon VeitchCRYPTO 2025 · 7 次引用
  5. Obfuscated Key ExchangeFelix Günther, Douglas Stebila, Shannon VeitchCCS 2024 · 1 次引用
黄昏的海面,两侧是细线勾勒的悬崖