This research, a collaboration from IBM Research, outlines a path toward a "holy grail" in systems security: a security monitor for confidential computing that is mathematically proven to be secure. By combining a processor-independent architecture, the memory-safety guarantees of the Rust programming language, and the Coq proof assistant, the authors aim to bridge the gap between commercial confidential computing and the rigorous certification required for critical infrastructure.
The Verification Gap in Confidential Computing
Confidential computing—often associated with terms like "enclaves" or "Trusted Execution Environments" (TEEs)—is designed to protect data in use by isolating it from the rest of the system, including the operating system and hypervisor. While technologies like Intel TDX or AMD SEV exist, they currently lack formal verification.
In high-assurance fields like aviation, nuclear power, or critical infrastructure, "it seems secure" is insufficient. These industries require a formal proof—a mathematical guarantee—that the security properties of the system hold true under all conditions. The "Security Monitor" (SM) is the most critical piece of software in this stack; it manages the boundaries between the untrusted world and the confidential workload. If the monitor contains a bug, the entire security model collapses.
A Multi-Layered Methodology
The authors propose a modular approach to verification that avoids getting bogged down in the specific quirks of every different CPU. The workflow spans from high-level natural language specifications to machine-checkable proofs.
- Canonical Architecture: They define a generic, processor-independent model for a VM-based confidential computing system. They identify eight "Hardware Axioms" (A.HW.1–8)—essential features like privilege separation and memory isolation—that the underlying hardware must provide.
- The Rust Advantage: The monitor is implemented in Rust. This is a strategic choice: Rust’s ownership and borrowing system naturally prevents many memory safety bugs. The authors use "tokens" in Rust to represent physical memory pages, making it easier to prove that no two virtual machines can ever "own" the same piece of memory simultaneously.
- Formal Modeling (Coq): The system is modeled as a Finite State Machine (FSM). They use the Coq proof assistant to mathematically prove that the software implementation matches the high-level security model.
- RefinedRust: To bridge the gap between code and math, they utilize tools like RefinedRust to automatically translate Rust code into a formalized representation that Coq can understand.
Key Insights and Results
Rather than trying to verify the entire CPU, the researchers treat the hardware as a set of trusted assumptions (axioms). This allows them to focus on proving the correctness of the software monitor. One of the most elegant ideas in the paper is using Rust’s type system to enforce security invariants. By creating a Page<Allocated> type that cannot be duplicated, the compiler itself helps prove that memory isolation is maintained.
The authors successfully defined the invariants required for a "Secure Boot" of the monitor, ensuring it starts in a known, clean state. They also provided a detailed example of a "Memory Tracker" module, demonstrating how to prove that this module prevents two different Confidential Virtual Machines (CVMs) from accessing the same physical memory region. To support the community, they have released a functional, open-source security monitor for RISC-V (ACE-RISCV) that implements these concepts.
Limitations and Future Directions
While this work represents a significant step forward, several challenges remain. The current proof assumes the hardware implementation perfectly follows the axioms; hardware-level bugs like Spectre or Meltdown could still compromise the system. Furthermore, the end-to-end proof of the entire monitor is still a work in progress, and some advanced hardware features (like direct interrupt delegation) are currently excluded to manage verification complexity.
Future work will focus on extending the model to support more complex hypercalls and verifying the architecture-specific components required for full Linux support on RISC-V.
Summary updated