A Generic Methodology for the Modular Verification of Security Protocol Implementations
Linard Arquint, Malte Schwerhoff, Vaibhav Mehta, Peter Müller
Abstract
Security protocols are essential building blocks of modern IT systems. Subtle flaws in their design or implementation may compromise the security of entire systems. It is, thus, important to prove the absence of such flaws through formal verification. Much existing work focuses on the verification of protocol models, which is not sufficient to show that their implementations are actually secure. Verification techniques for protocol implementations (e.g., via code generation or model extraction) typically impose severe restrictions on the used programming language and code design, which may lead to sub-optimal implementations. In this paper, we present a methodology for the modular verification of strong security properties directly on the level of the protocol implementations. Our methodology leverages state-of-the-art verification logics and tools to support a wide range of implementations and programming languages. We demonstrate its effectiveness by verifying memory safety and security of Go implementations of the Needham-Schroeder-Lowe, Diffie-Hellman key exchange, and WireGuard protocols, including forward secrecy and injective agreement for WireGuard. We also show that our methodology is agnostic to a particular language or program verifier with a prototype implementation for C.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- The Secrets Must Not Flow: Scaling Security Verification to Large Codebases cites EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider
- The Secrets Must Not Flow: Scaling Security Verification to Large Codebases cites SoK: Computer-Aided Cryptography
- The Secrets Must Not Flow: Scaling Security Verification to Large Codebases cites OwlC: Compiling Security Protocols to Verified, Secure, High-Performance Libraries
- Cryptis: Cryptographic Reasoning in Separation Logic cites A probabilistic separation logic
- Cryptis: Cryptographic Reasoning in Separation Logic cites SoK: Computer-Aided Cryptography
- EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider cites WireGuard: Next Generation Kernel Network Tunnel
- SoK: Computer-Aided Cryptography cites EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider
- SoK: Computer-Aided Cryptography cites Formally Verified Cryptographic Web Applications in WebAssembly
- Protocols to Code: Formal Verification of a Secure Next-Generation Internet Router cites Verification Algorithms for Automated Separation Logic Verifiers
- Protocols to Code: Formal Verification of a Secure Next-Generation Internet Router cites EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider
- OwlC: Compiling Security Protocols to Verified, Secure, High-Performance Libraries cites EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider
- OwlC: Compiling Security Protocols to Verified, Secure, High-Performance Libraries cites WireGuard: Next Generation Kernel Network Tunnel
- OwlC: Compiling Security Protocols to Verified, Secure, High-Performance Libraries cites SoK: Computer-Aided Cryptography
Cited by top-tier papers5
- Verification Algorithms for Automated Separation Logic VerifiersMarco Eilers, Malte Schwerhoff, Peter MüllerCAV 2024 · 5 citations
- The Secrets Must Not Flow: Scaling Security Verification to Large CodebasesLinard Arquint, Samarth Kishor, Jason R. Koenig, Joey Dodds et al.S&P 2026 · 1 citation
- Cryptis: Cryptographic Reasoning in Separation LogicArthur Azevedo de Amorim, Amal Ahmed, Marco GaboardiPOPL 2026 · 1 citation
- Protocols to Code: Formal Verification of a Secure Next-Generation Internet RouterJoão C. Pereira, Tobias Klenze, Sofia Giampietro, Markus Limbeck et al.CCS 2025 · 1 citation
- OwlC: Compiling Security Protocols to Verified, Secure, High-Performance LibrariesPratap Singh, Joshua Gancher, Bryan ParnoUSENIX Security 2025
Builds on11
- WireGuard: Next Generation Kernel Network TunnelJason A. DonenfeldNDSS 2017 · 259 citations
- SoK: Computer-Aided CryptographyManuel Barbosa, Gilles Barthe, Karthik Bhargavan, Bruno Blanchet et al.S&P 2021 · 169 citations
- EverCrypt: A Fast, Verified, Cross-Platform Cryptographic ProviderJonathan Protzenko, Bryan Parno, Aymeric Fromherz, Chris Hawblitzel et al.S&P 2020 · 114 citations
- Formally Verified Cryptographic Web Applications in WebAssemblyJonathan Protzenko, Benjamin Beurdouche, Denis Merigoux, Karthikeyan BhargavanS&P 2019 · 36 citations
- A probabilistic separation logicGilles Barthe, Justin Hsu, Kevin LiaoPOPL 2020 · 35 citations
Related papers
- Sound Verification of Security Protocols: From Design to Interoperable ImplementationsLinard Arquint, Felix A. Wolf, Joseph Lallemand, Ralf Sasse et al.S&P 2023
- Noise*: A Library of Verified High-Performance Secure Channel Protocol ImplementationsSon Ho, Jonathan Protzenko, Abhishek Bichhawat, Karthikeyan BhargavanS&P 2022 · 22 citations
- Owl: Compositional Verification of Security Protocols via an Information-Flow Type SystemJoshua Gancher, Sydney Gibson, Pratap Singh, Samvid Dharanikota et al.S&P 2023
- A Tale of Two Worlds, a Formal Story of WireGuard HybridizationPascal Lafourcade, Dhekra Mahmoud, Sylvain Ruhault, Abdul Rahman TalebUSENIX Security 2025
- CryptoBap: A Binary Analysis Platform for Cryptographic ProtocolsFaezeh Nasrabadi, Robert Künnemann, Hamed NematiCCS 2023 · 3 citations
