[Paper Review] Specification and Verification of Side-channel Security for Open-source Processors via Leakage Contracts
This paper presents LeaVe, the first tool for verifying register-transfer-level (RTL) processor designs against ISA-level leakage contracts, enabling formal side-channel security proofs for open-source RISC-V processors. By decoupling functional correctness from security verification and using inductive reasoning on relational abstractions, LeaVe scales to realistic designs and provides the first formal proofs of contract satisfaction for RTL implementations.
Leakage contracts have recently been proposed as a new security abstraction at the Instruction Set Architecture (ISA) level. Such contracts aim to faithfully capture the information processors may leak through side effects of their microarchitectural implementations. However, so far, we lack a verification methodology to check that a processor actually satisfies a given leakage contract. In this paper, we address this problem by developing LeaVe, the first tool for verifying register-transfer-level (RTL) processor designs against ISA-level leakage contracts. To this end, we introduce a decoupling theorem that separates security and functional correctness concerns when verifying contract satisfaction. LeaVe leverages this decoupling to make verification of contract satisfaction practical. To scale to realistic processor designs LeaVe further employs inductive reasoning on relational abstractions. Using LeaVe, we precisely characterize the side-channel security guarantees provided by three open-source RISC-V processors, thereby obtaining the first contract satisfaction proofs for RTL processor designs.
Motivation & Objective
- To address the lack of methodology for verifying that RTL processor designs satisfy ISA-level leakage contracts.
- To bridge the abstraction gap between sequential instruction-level contracts and cycle-level RTL implementations.
- To decouple functional correctness from security verification, enabling scalable side-channel analysis.
- To develop a scalable verification algorithm based on inductive reasoning over relational abstractions.
- To formally prove contract satisfaction for three open-source RISC-V processors.
Proposed method
- Adapt the leakage contract framework from (contracts2021) to RTL processor designs, modeling both contracts and attacker models as monitoring circuits.
- Define leakage monitors (LM) that generate instruction-level leakage traces based on processor state and control flow.
- Model attacker observations (ATK) as monitors exposing observable microarchitectural side channels, such as timing via the ready signal.
- Formalize contract satisfaction as a refinement check: ATK[IMPL] ⊒ LM[ISA], ensuring the implementation leaks no more than the contract specifies.
- Introduce a decoupling theorem that separates functional correctness from security verification, enabling independent reasoning.
- Employ inductive reasoning on relational abstractions to scale verification to large RTL state spaces without explicit enumeration.
Experimental results
Research questions
- RQ1Can leakage contracts at the ISA level be formally verified against RTL processor implementations?
- RQ2How can functional correctness and side-channel security be decoupled in the verification process?
- RQ3What techniques enable scalable verification of side-channel security in complex RTL designs?
- RQ4Can the proposed method produce formal proofs of contract satisfaction for real-world open-source RISC-V processors?
- RQ5How do relational abstractions and inductive reasoning improve scalability in RTL-side-channel verification?
Key findings
- LeaVe successfully verifies three open-source RISC-V processors (RI5CY, VexRiscv, and BOOM) against ISA-level leakage contracts.
- The tool provides the first formal proofs of contract satisfaction for RTL processor designs, establishing side-channel security guarantees.
- The decoupling theorem enables independent reasoning about functional correctness and security, improving verification modularity and scalability.
- Inductive reasoning on relational abstractions allows verification to scale to realistic processor designs with large state spaces.
- The approach successfully models and verifies microarchitectural side channels, such as timing and control-flow leaks, at the instruction level.
- The framework supports both functional and security analysis within a single uniform model, enabling precise characterization of leakage behavior.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.