Lune

USENIX Security2025Top-tier venue

Vest: Verified, Secure, High-Performance Parsing and Serialization for Rust

Yi Cai, Pratap Singh, Zhengyao Lin, Jay Bosamiya, Joshua Gancher, Milijana Surbatovich, Bryan Parno

Abstract

Many software vulnerabilities lurk in parsers and serializers, due to their need to be both high-performance and conformant with complex binary formats. To categorically eliminate these vulnerabilities, prior efforts have sought to deliver provable guarantees for parsing and serialization. Unfortunately, security, performance, and usability issues with these efforts mean that unverified parsers and serializers remain the status quo. Hence, we present Vest, the first framework for highperformance, formally verified binary parsers and serializers that combines expressivity and ease of use with state-of-theart correctness and security guarantees, including-for the first time-resistance to basic digital side-channel attacks. Most developers interact with Vest by defining their binary format in an expressive, RFC-like DSL. Vest then generates and automatically verifies high-performance parser and serializer implementations in Rust. This process relies on an extensible library of verified parser/serializer combinators we have developed, and that expert developers can use directly. We evaluate Vest via three case studies: the Bitcoin block format, TLS 1.3 handshake messages, and the WebAssembly binary format. We show that Vest has executable performance on-par (or better) than hand-written, unverified parsers and serializers, and has orders of magnitude better verification performance relative to comparable prior work.

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.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Formal verification of a constant-time preserving C compiler cites HACL: A Verified Modern Cryptographic Library
  • Towards Practical, End-to-End Formally Verified X.509 Certificate Validators with Verdict cites Verus: Verifying Rust Programs using Linear Ghost Types
  • Towards Practical, End-to-End Formally Verified X.509 Certificate Validators with Verdict cites Tranco: A Research-Oriented Top Sites Ranking Hardened Against Manipulation
  • Towards Practical, End-to-End Formally Verified X.509 Certificate Validators with Verdict cites EverParse: Verified Secure Zero-Copy Parsers for Authenticated Message Formats
  • VerusBelt: A Semantic Foundation for Verus's Proof-Oriented Extensions to the Rust Type System cites Verus: Verifying Rust Programs using Linear Ghost Types
  • VerusBelt: A Semantic Foundation for Verus's Proof-Oriented Extensions to the Rust Type System cites Towards Practical, End-to-End Formally Verified X.509 Certificate Validators with Verdict
  • VerusBelt: A Semantic Foundation for Verus's Proof-Oriented Extensions to the Rust Type System cites OwlC: Compiling Security Protocols to Verified, Secure, High-Performance Libraries
  • OwlC: Compiling Security Protocols to Verified, Secure, High-Performance Libraries cites Formal verification of a constant-time preserving C compiler
  • OwlC: Compiling Security Protocols to Verified, Secure, High-Performance Libraries cites Verus: Verifying Rust Programs using Linear Ghost Types
  • OwlC: Compiling Security Protocols to Verified, Secure, High-Performance Libraries cites HACL: A Verified Modern Cryptographic Library
  • OwlC: Compiling Security Protocols to Verified, Secure, High-Performance Libraries cites EverParse: Verified Secure Zero-Copy Parsers for Authenticated Message Formats
  • VUPER: Verified ASN.1 UPER Parser cites Verus: Verifying Rust Programs using Linear Ghost Types
  • VUPER: Verified ASN.1 UPER Parser cites Towards Practical, End-to-End Formally Verified X.509 Certificate Validators with Verdict
  • VUPER: Verified ASN.1 UPER Parser cites EverParse: Verified Secure Zero-Copy Parsers for Authenticated Message Formats
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Towards Practical, End-to-End Formally Verified X.509 Certificate Validators with VerdictZhengyao Lin, Michael McLoughlin, Pratap Singh, Rory Brennan-Jones et al.USENIX Security 2025
  2. VerusBelt: A Semantic Foundation for Verus's Proof-Oriented Extensions to the Rust Type SystemTravis Hance, Laila Elbeheiry, Yusuke Matsushita, Derek DreyerPLDI 2026
  3. OwlC: Compiling Security Protocols to Verified, Secure, High-Performance LibrariesPratap Singh, Joshua Gancher, Bryan ParnoUSENIX Security 2025
  4. VUPER: Verified ASN.1 UPER ParserXiaotian Zhou, Kai Tu, Ali Ranjbar, Yilu Dong et al.CCS 2026

Builds on12

  1. Tranco: A Research-Oriented Top Sites Ranking Hardened Against ManipulationVictor Le Pochat, Tom van Goethem, Samaneh Tajalizadehkhoob, Maciej Korczynski et al.NDSS 2019 · 826 citations
  2. HACL*: A Verified Modern Cryptographic LibraryJean Karim Zinzindohoué, Karthikeyan Bhargavan, Jonathan Protzenko, Benjamin BeurdoucheCCS 2017 · 258 citations
  3. Verus: Verifying Rust Programs using Linear Ghost TypesAndrea Lattuada, Travis Hance, Chanhee Cho, Matthias Brun et al.OOPSLA 2023 · 86 citations
  4. Formal verification of a constant-time preserving C compilerGilles Barthe, Sandrine Blazy, Benjamin Grégoire, Rémi Hutin et al.POPL 2020 · 77 citations
  5. EverParse: Verified Secure Zero-Copy Parsers for Authenticated Message FormatsTahina Ramananandro, Antoine Delignat-Lavaud, Cédric Fournet, Nikhil Swamy et al.USENIX Security 2019 · 70 citations

Related papers

  1. Formal Security and Functional Verification of Cryptographic Protocol Implementations in RustKarthikeyan Bhargavan, Lasse Letager Hansen, Franziskus Kiefer, Jonas Schneider-Bensch et al.CCS 2025 · 1 citation
  2. Secure Parsing and Serializing with Separation Logic Applied to CBOR, CDDL, and COSETahina Ramananandro, Gabriel Ebner, Guido Martínez, Nikhil SwamyCCS 2025
  3. Hardening attack surfaces with formally proven binary format parsersNikhil Swamy, Tahina Ramananandro, Aseem Rastogi, Irina Spiridonova et al.PLDI 2022 · 18 citations
  4. The Last Mile: High-Assurance and High-Speed Cryptographic ImplementationsJosé Bacelar Almeida, Manuel Barbosa, Gilles Barthe, Benjamin Grégoire et al.S&P 2020 · 67 citations
  5. Can LLMs Reason Like Automated Theorem Provers for Rust Verification? VCoT-Bench: Evaluating via Verification Chain of ThoughtZichen Xie, Wenxi WangICML 2026
Dusk over the sea between two cliffs drawn in fine vertical lines