2019 · 22 citations · 15 references
ComputingComputer EngineeringComputer ScienceAuthenticationCompilersCryptographyAuthenticated EncryptionDeductive VerificationIntermediate RepresentationProtocol VerificationSecurity Protocol VerificationCryptographic AuthenticationFormal Verification Of Cryptographic ProtocolsFormal Verification Of Security PropertiesMessage AuthenticationParser CombinatorsParser GeneratorsSecure ParsingTrusted Computing Bases
We present EverParse, a framework for generating parsers and serializers from tag-length-value binary message format descriptions. The resulting code is verified to be safe (no overflow, no use after free), correct (parsing is the inverse of serialization) and non-malleable (each message has a unique binary representation). These guarantees underpin the security of cryptographic message authentication, and they enable testing to focus on interoperability and performance issues. EverParse consists of two parts: LowParse, a library of parser combinators and their formal properties written in F*; and QuackyDucky, a compiler from a domain-specific language of RFC message formats down to low-level F* code that calls LowParse. While LowParse is fully verified, we do not formalize the semantics of the input language and keep QuackyDucky outside our trusted computing base. Instead, it also outputs a formal message specification, and F* automatically verifies our implementation against this specification. EverParse yields efficient zero-copy implementations, usable both in F* and in C. We evaluate it in practice by fully implementing the message formats of the Transport Layer Security standard and its extensions (TLS 1.0–1.3, 293 datatypes) and by integrating them into miTLS, an F* implementation of TLS. We illustrate its generality by implementing the Bitcoin block and transaction formats, and the ASN.1 DER payload of PKCS#1 RSA signatures. We integrate them into C applications and measure their runtime performance, showing significant improvements over prior handwritten libraries. EverParse is open-source and publicly available on GitHub. You can view Antoine Delignat-Lavaud’s presentation at USENIX Security 2019.
15
Nicholas Nethercote, Julian Seward · 2007 · 2.3K citations
Zakir Durumeric, Frank Li, James Kasten et al. · 2014 · 657 citations · Full text
AddressSanitizer: a fast address sanity checker
Konstantin Serebryany, Derek Bruening, Alexander Potapenko et al. · USENIX Annual Technical Conference · 2012 · 642 citations
Patrice Godefroid, Michael Y. Levin, Dávid Molnár · Communications of the ACM · 2012 · 562 citations
Dependent types and multi-monadic effects in F*
Nikhil Swamy, Cătălin Hriţcu, Chantal Keller et al. · 2016 · 292 citations · Full text