arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.08762cs.PL
收藏

Leapfrog:协议解析器的认证等效性

Leapfrog: Certified Equivalence for Protocol Parsers

Ryan Doenges, Tobias Kappé, John Sarracino, Nate Foster, Greg Morrisett

摘要:

我们提出了Leapfrog,一个基于Coq的框架,用于验证网络协议解析器的等价性。我们的方法是基于一个自动机模型的P4解析器,和一个算法,象征性地计算一个紧凑的表示的互模拟,使用“飞跃。“证明由经过认证的编译链提供动力,从一阶蕴涵到低级位向量验证条件,这些条件使用现成的SMT求解器进行释放。因此,Leapfrog中的解析器等价性证明是全自动的,并且是按按钮的。我们机械地证明了支撑我们方法的核心元理论,包括关键转换和几个优化。我们在一系列实际案例研究中评估Leapfrog,所有这些案例都需要最小的配置,并且无需手动证明。我们最大的案例研究使用Leapfrog为第三方编译器执行从自动机到硬件管道的翻译验证。总的来说,Leapfrog代表着向所有关键网络基础设施的解析器都经过验证的世界迈出了一步。它还为后续工作提出了方向,例如验证涉及安全性的关系属性。

英文摘要:

We present Leapfrog, a Coq-based framework for verifying equivalence of network protocol parsers. Our approach is based on an automata model of P4 parsers, and an algorithm for symbolically computing a compact representation of a bisimulation, using "leaps." Proofs are powered by a certified compilation chain from first-order entailments to low-level bitvector verification conditions, which are discharged using off-the-shelf SMT solvers. As a result, parser equivalence proofs in Leapfrog are fully automatic and push-button. We mechanically prove the core metatheory that underpins our approach, including the key transformations and several optimizations. We evaluate Leapfrog on a range of practical case studies, all of which require minimal configuration and no manual proof. Our largest case study uses Leapfrog to perform translation validation for a third-party compiler from automata to hardware pipelines. Overall, Leapfrog represents a step towards a world where all parsers for critical network infrastructure are verified. It also suggests directions for follow-on efforts, such as verifying relational properties involving security.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑