Formalizing, Verifying and Applying ISA Security Guarantees as Universal Contracts
Sander Huyghebaert, Steven Keuchel, Coen De Roover, Dominique Devriese
Abstract
Progress has recently been made on specifying instruction set architectures (ISAs) in executable formalisms rather than through prose. However, to date, those formal specifications are limited to the functional aspects of the ISA and do not cover its security guarantees. We present a novel, general method for formally specifying an ISA's security guarantees to (1) balance the needs of ISA implementations (hardware) and clients (software), ( 2 ) can be semiautomatically verified to hold for the ISA operational semantics, producing a high-assurance mechanically-verifiable proof, and (3) support informal and formal reasoning about security-critical software in the presence of adversarial code. Our method leverages universal contracts: software contracts that express bounds on the authority of arbitrary untrusted code. Universal contracts can be kept agnostic of software abstractions, and strike the right balance between requiring sufficient detail for reasoning about software and preserving implementation freedom of ISA designers and CPU implementers. We semi-automatically verify universal contracts against Sail implementations of ISA semantics using our Katamaran tool; a semi-automatic separation logic verifier for Sail which produces machine-checked proofs for successfully verified contracts. We demonstrate the generality of our method by applying it to two ISAs that offer very different security primitives: (1) MinimalCaps: a custom-built capability machine ISA and (2) a (somewhat simplified) version of RISC-V with PMP. We verify a femtokernel using the security guarantee we have formalized for RISC-V with PMP.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- ArchSem: Reusable Rigorous Semantics of Relaxed Architectures cites Islaris: verification of machine code against authoritative ISA semantics
- Islaris: verification of machine code against authoritative ISA semantics cites RefinedC: automating the foundational verification of C code with refined ownership types
- SECOMP: Formally Secure Compilation of Compartmentalized C Programs cites Rigorous engineering for hardware security: Formal modelling and proof in the CHERI design and implementation process
- SECOMP: Formally Secure Compilation of Compartmentalized C Programs cites Efficient and provable local capability revocation using uninitialized capabilities
- Cerisier: A Program Logic for Attestation in a Capability Machine cites Rigorous engineering for hardware security: Formal modelling and proof in the CHERI design and implementation process
- Cerisier: A Program Logic for Attestation in a Capability Machine cites Efficient and provable local capability revocation using uninitialized capabilities
- Cerisier: A Program Logic for Attestation in a Capability Machine cites Morello-Cerise: A Proof of Strong Encapsulation for the Arm Morello Capability Hardware Architecture
- Efficient and provable local capability revocation using uninitialized capabilities cites Rigorous engineering for hardware security: Formal modelling and proof in the CHERI design and implementation process
- Endangered by the Language But Saved by the Compiler: Robust Safety via Semantic Back-Translation cites SECOMP: Formally Secure Compilation of Compartmentalized C Programs
- Endangered by the Language But Saved by the Compiler: Robust Safety via Semantic Back-Translation cites Efficient and provable local capability revocation using uninitialized capabilities
- Endangered by the Language But Saved by the Compiler: Robust Safety via Semantic Back-Translation cites Morello-Cerise: A Proof of Strong Encapsulation for the Arm Morello Capability Hardware Architecture
- Morello-Cerise: A Proof of Strong Encapsulation for the Arm Morello Capability Hardware Architecture cites Islaris: verification of machine code against authoritative ISA semantics
- Morello-Cerise: A Proof of Strong Encapsulation for the Arm Morello Capability Hardware Architecture cites Efficient and provable local capability revocation using uninitialized capabilities
Cited by top-tier papers5
- Morello-Cerise: A Proof of Strong Encapsulation for the Arm Morello Capability Hardware ArchitectureAngus Hammond, Ricardo Almeida, Thomas Bauereiss, Brian Campbell et al.PLDI 2025 · 2 citations
- ArchSem: Reusable Rigorous Semantics of Relaxed ArchitecturesThibaut Pérami, Thomas Bauereiss, Brian Campbell, Zongyuan Liu et al.POPL 2026 · 1 citation
- SECOMP: Formally Secure Compilation of Compartmentalized C ProgramsJérémy Thibault, Roberto Blanco, Dongjae Lee, Sven Argo et al.CCS 2024 · 1 citation
- Cerisier: A Program Logic for Attestation in a Capability MachineJune Rousseau, Denis Carnier, Thomas Van Strydonck, Steven Keuchel et al.PLDI 2026
- Endangered by the Language But Saved by the Compiler: Robust Safety via Semantic Back-TranslationNiklas Mück, Aïna Linn Georges, Derek Dreyer, Deepak Garg et al.POPL 2026
Builds on6
- Keystone: an open framework for architecting trusted execution environmentsDayeol Lee, David Kohlbrenner, Shweta Shinde, Krste Asanovic et al.EuroSys 2020 · 381 citations
- RefinedC: automating the foundational verification of C code with refined ownership typesMichael Sammler, Rodolphe Lepigre, Robbert Krebbers, Kayvan Memarian et al.PLDI 2021 · 83 citations
- Rigorous engineering for hardware security: Formal modelling and proof in the CHERI design and implementation processKyndylan Nienhuis, Alexandre Joannou, Thomas Bauereiss, Anthony C. J. Fox et al.S&P 2020 · 43 citations
- Efficient and provable local capability revocation using uninitialized capabilitiesAïna Linn Georges, Armaël Guéneau, Thomas Van Strydonck, Amin Timany et al.POPL 2021 · 30 citations
- Islaris: verification of machine code against authoritative ISA semanticsMichael Sammler, Angus Hammond, Rodolphe Lepigre, Brian Campbell et al.PLDI 2022 · 28 citations
Related papers
- Specification and Verification of Side-channel Security for Open-source Processors via Leakage ContractsZilong Wang, Gideon Mohr, Klaus von Gleissenthall, Jan Reineke et al.CCS 2023 · 20 citations
- TickTock: Verified Isolation in a Production Embedded OSVivien Rindisbacher, Evan Johnson, Nico Lehmann, Tyler Potyondy et al.SOSP 2025
- VMSL: A Separation Logic for Mechanised Robust Safety of Virtual Machines Communicating above FF-AZongyuan Liu, Sergei Stepanenko, Jean Pichon-Pharabod, Amin Timany et al.PLDI 2023 · 7 citations
- Hardware-Software Contracts for Secure SpeculationMarco Guarnieri, Boris Köpf, Jan Reineke, Pepe VilaS&P 2021 · 111 citations
- Save what must be saved: Secure context switching with SailorNeelu S. Kalani, Thomas Bourgeat, Guerney D. H. Hunt, Wojciech OzgaUSENIX Security 2025
