Cerise: Program Verification on a Capability Machine in the Presence of Untrusted Code

Author:

Georges Aïna Linn1,Guéneau Armaël2,Van Strydonck Thomas3,Timany Amin4,Trieu Alix5,Devriese Dominique6,Birkedal Lars4

Affiliation:

1. MPI-SWS, Germany

2. Université Paris-Saclay, CNRS, ENS Paris-Saclay, Inria, Laboratoire Méthodes Formelles, France

3. imec-Distrinet, KU Leuven, Belgium

4. Aarhus University, Denmark

5. ANSSI, France

6. imec-Distrinet, KU Leuven, Belgium

Abstract

A capability machine is a type of CPU allowing fine-grained privilege separation using capabilities , machine words that represent certain kinds of authority. We present a mathematical model and accompanying proof methods that can be used for formal verification of functional correctness of programs running on a capability machine, even when they invoke and are invoked by unknown (and possibly malicious) code. We use a program logic called Cerise for reasoning about known code, and an associated logical relation, for reasoning about unknown code. The logical relation formally captures the capability safety guarantees provided by the capability machine. The Cerise program logic, logical relation, and all the examples considered in the paper have been mechanized using the Iris program logic framework in the Coq proof assistant. The methodology we present underlies recent work of the authors on formal reasoning about capability machines [15, 33, 37], but was left somewhat implicit in those publications. In this paper we present a pedagogical introduction to the methodology, in a simpler setting (no exotic capabilities), and starting from minimal examples. We work our way up to new results about a heap-based calling convention and implementations of sophisticated object-capability patterns of the kind previously studied for high-level languages with object-capabilities, demonstrating that the methodology scales to such reasoning.

Publisher

Association for Computing Machinery (ACM)

Subject

Artificial Intelligence,Hardware and Architecture,Information Systems,Control and Systems Engineering,Software

Reference43 articles.

1. A fully abstract game semantics for general references

2. Andrew  W. Appel . 1992. Compiling with Continuations . Cambridge University Press . Andrew W. Appel. 1992. Compiling with Continuations. Cambridge University Press.

3. Alasdair Armstrong , Thomas Bauereiss , Brian Campbell , Alastair Reid , Kathryn  E. Gray , Robert  M. Norton , Prashanth Mundkur , Mark Wassell , Jon French , Christopher Pulte , Shaked Flur , Ian Stark , Neel Krishnaswami , and Peter Sewell . 2019 . ISA Semantics for ARMv8-a, RISC-v, and CHERI-MIPS . Proceedings of the ACM on Programming Languages 3, POPL (Jan. 2019), 71:1–71:31. https://doi.org/10.1145/3290384 10.1145/3290384 Alasdair Armstrong, Thomas Bauereiss, Brian Campbell, Alastair Reid, Kathryn E. Gray, Robert M. Norton, Prashanth Mundkur, Mark Wassell, Jon French, Christopher Pulte, Shaked Flur, Ian Stark, Neel Krishnaswami, and Peter Sewell. 2019. ISA Semantics for ARMv8-a, RISC-v, and CHERI-MIPS. Proceedings of the ACM on Programming Languages 3, POPL (Jan. 2019), 71:1–71:31. https://doi.org/10.1145/3290384

4. Thomas Bauereiss , Brian Campbell , Thomas Sewell , Alasdair Armstrong , Lawrence Esswood , Ian Stark , Graeme Barnes , Robert N. M. Watson , and Peter Sewell . 2022 . Verified Security for the Morello Capability-enhanced Prototype Arm Architecture. In Programming Languages and Systems - 31st European Symposium on Programming , ESOP 2022, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2022, Munich, Germany, April 2-7, 2022, Proceedings(Lecture Notes in Computer Science, Vol.  13240) , Ilya Sergey (Ed.). Springer, 174–203. https://doi.org/10.1007/978-3-030-99336-8_7 10.1007/978-3-030-99336-8_7 Thomas Bauereiss, Brian Campbell, Thomas Sewell, Alasdair Armstrong, Lawrence Esswood, Ian Stark, Graeme Barnes, Robert N. M. Watson, and Peter Sewell. 2022. Verified Security for the Morello Capability-enhanced Prototype Arm Architecture. In Programming Languages and Systems - 31st European Symposium on Programming, ESOP 2022, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2022, Munich, Germany, April 2-7, 2022, Proceedings(Lecture Notes in Computer Science, Vol.  13240), Ilya Sergey (Ed.). Springer, 174–203. https://doi.org/10.1007/978-3-030-99336-8_7

5. Lars Birkedal and Aleš Bizjak . 2022. Lecture Notes on Iris: Higher-Order Concurrent Separation Logic. https://iris-project.org/tutorial-pdfs/iris-lecture-notes.pdf. [Online ; accessed 26- May - 2023 ]. Lars Birkedal and Aleš Bizjak. 2022. Lecture Notes on Iris: Higher-Order Concurrent Separation Logic. https://iris-project.org/tutorial-pdfs/iris-lecture-notes.pdf. [Online; accessed 26-May-2023].

Cited by 2 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Bialgebraic Reasoning on Higher-order Program Equivalence;Proceedings of the 39th Annual ACM/IEEE Symposium on Logic in Computer Science;2024-07-08

2. Logical Predicates in Higher-Order Mathematical Operational Semantics;Lecture Notes in Computer Science;2024

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3