Formal verification enters cloud production

AWS ships formally verified hypervisor for EC2 with 320k lines of Isabelle proofs VeTSS RI
TL;DW
  • AWS Nitro Isolation Engine is the first formally verified hypervisor entering production, shipping with Graviton 5; uses 320,000 lines of Isabelle proof for functional correctness and security theorems.
  • Split Nitro hypervisor into minimal TCB (tens of thousands of lines) managing only VM isolation via page tables, and deprivileged hypervisor handling policy/scheduling; enables verification of the critical isolation component.
  • Restricted Rust fragment to support formal verification: no unbounded recursion, naturally bounded loops only, restricted pattern matching and locking; ~40% of isolation engine code auto-generated from TOML machine-readable specifications.
  • Proved confidentiality and integrity using non-inference (preservation of indistinguishability): if two machine states are indistinguishable, they remain so after any hypercall—preventing information flow between guest VMs.
  • Conformance testing validates formal model against real Nitro isolation engine implementation using Isabelle code generation, finding bugs earlier than traditional testing would reveal.
  • Implemented "secret freedom" principle: minimize guest data mapped into isolation engine's address space to prevent speculative execution side-channel leaks of secrets the engine never learns.
  • Total correctness proofs guarantee memory safety, termination, and transactionality: error cases return specified error codes with zero system state changes; success cases produce documented expected effects.
  • AWS plans to release isolation engine source code and formal proof to customers; external audit of proof assumptions underway; tooling (Lean integration) being open-sourced to enable proof inspection.

The Nitro Isolation Engine extracts a minimal separation kernel from the Nitro hypervisor, implements it in restricted Rust, and proves confidentiality and integrity via Isabelle/HOL separation logic. Already in production on Graviton 5, making it the first formally verified hypervisor deployed at cloud scale.