arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2110.05043cs.PL
收藏

强大的移动安全性

Robust Safety for Move

Marco Patrignani, Sam Blackshear

摘要:

即使与任意不受信任的代码交互也能保持关键安全属性的程序被称为享受\emph{robust safety}。证明一个用主流语言编写的程序是鲁棒安全的通常是具有挑战性的,因为它需要静态验证工具,即使在存在动态分派和共享可变性等语言特性的情况下也能精确工作。新兴的\move程序设计语言旨在支持安全智能合约编程服务中的强封装和静态验证。然而,语言的设计还没有使用像鲁棒安全这样的理论框架进行分析。在本文中,我们为\move语言定义了鲁棒安全性,并为希望实施它的静态工具引入了一个通用框架。我们的框架由两个抽象组件组成:一个程序验证器,可以证明一个不变量在封闭世界设置中保持不变(例如,移动证明器),以及一个新颖的\emph{encapsulator},它检查验证器的结果是否推广到开放世界设置。我们正式的逃逸分析作为一个实例化的repetator,并证明它达到了所需的安全属性。最后,我们实现了我们的证明器作为一个扩展的移动证明器,并使用组合来分析一个代表性的基准测试集的真实世界的\move程序。该工具链对我们分析的\move模块中的99\%的$>$进行了认证,验证了自动实施强大的安全属性(如鲁棒安全性)对于\move是实用的。

英文摘要:

A program that maintains key safety properties even when interacting with arbitrary untrusted code is said to enjoy \emph{robust safety}. Proving that a program written in a mainstream language is robustly safe is typically challenging because it requires static verification tools that work precisely even in the presence of language features like dynamic dispatch and shared mutability. The emerging \move programming language was designed to support strong encapsulation and static verification in the service of secure smart contract programming. However, the language design has not been analyzed using a theoretical framework like robust safety. In this paper, we define robust safety for the \move language and introduce a generic framework for static tools that wish to enforce it. Our framework consists of two abstract components: a program verifier that can prove an invariant holds in a closed-world setting (e.g., the Move Prover), and a novel \emph{encapsulator} that checks if the verifier's result generalizes to an open-world setting. We formalise an escape analysis as an instantiation of the encapsulator and prove that it attains the required security properties. Finally, we implement our encapsulator as an extension to the Move Prover and use the combination to analyze a representative benchmark set of real-world \move programs. This toolchain certifies $>$99\% of the \move modules we analyze, validating that automatic enforcement of strong security properties like robust safety is practical for \move.

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

↑