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

Strands Rocq:安全协议为何在机械化意义上是正确的?

Strands Rocq: Why is a Security Protocol Correct, Mechanically?

Matteo Busi, Riccardo Focardi, Flaminia L. Luccio

AI总结:

本文提出 StrandsRocq,在 Coq/Rocq 中完整机械化串空间框架,并通过多种认证协议与密钥管理 API 分析验证其证明复用、组合推理和缺陷发现能力。

摘要:

Strand spaces(串空间)是用于符号化协议验证的形式化框架,可支持安全性的纸笔证明。尽管这类证明极具洞见,但容易出错,且很难令人确信其正确性。为克服这一问题,我们开发了 StrandsRocq,即在 Coq(不久将更名为 Rocq)中对串空间进行的完整机械化实现。该机械化旨在忠实于最初的纸笔开发,并在工程上被设计为模块化、可扩展。StrandsRocq 融合了新颖的原创证明技术、支持协议组合性的全新 maximal penetrator(最大渗透者)概念,以及一组面向该领域定制的 Coq tactics,从而促进证明自动化与复用,并简化协议分析人员的工作。为展示我们方法的通用性,我们建模并分析了一系列认证协议,其灵感来自 ISO/IEC 9798-2 两遍认证、经典 Needham-Schroeder-Lowe 协议,以及最近提出的针对密钥管理 API 的静态分析。StrandsRocq 中的分析证实了高度的证明复用,并使我们能够提炼出协议安全性的最低要求。通过机械化,我们发现并解决了原始证明中的若干问题,还显著提高了密钥管理 API 静态分析的精度。此外,我们能够利用全新的 maximal penetrator 概念,为两个简单认证协议提供组合式安全性证明。

英文摘要:

Strand spaces are a formal framework for symbolic protocol verification that allows for pen-and-paper proofs of security. While extremely insightful, pen-and-paper proofs are error-prone, and it is hard to gain confidence on their correctness. To overcome this problem, we developed StrandsRocq, a full mechanization of the strand spaces in Coq (soon to be renamed Rocq). The mechanization was designed to be faithful to the original pen-and-paper development, and it was engineered to be modular and extensible. StrandsRocq incorporates new original proof techniques, a novel notion of maximal penetrator that enables protocol compositionality, and a set of Coq tactics tailored to the domain, facilitating proof automation and reuse, and simplifying the work of protocol analysts. To demonstrate the versatility of our approach, we modelled and analyzed a family of authentication protocols, drawing inspiration from ISO/IEC 9798-2 two-pass authentication, the classical Needham-Schroeder-Lowe protocol, as well as a recently-proposed static analysis for a key management API. The analyses in StrandsRocq confirmed the high degree of proof reuse, and enabled us to distill the minimal requirements for protocol security. Through mechanization, we identified and addressed several issues in the original proofs and we were able to significantly improve the precision of the static analysis for the key management API. Moreover, we were able to leverage the novel notion of maximal penetrator to provide a compositional proof of security for two simple authentication protocols.

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

↑