[Paper Review] Prevention of Microarchitectural Covert Channels on an Open-Source 64-bit RISC-V Core
This paper proposes a new RISC-V fence instruction, fence.t, which enables the operating system to flush all microarchitectural state—including both cache valid bits and secondary state like replacement policy—on context switches. Evaluated on an open-source 64-bit RISC-V core, fence.t successfully eliminates five known microarchitectural covert channels with only 320 cycles of overhead and negligible hardware cost, proving that hardware-assisted time protection is both feasible and essential for strong system security.
Covert channels enable information leakage across security boundaries of the operating system. Microarchitectural covert channels exploit changes in execution timing resulting from competing access to limited hardware resources. We use the recent experimental support for time protection, aimed at preventing covert channels, in the seL4 microkernel and evaluate the efficacy of the mechanisms against five known channels on Ariane, an open-source 64-bit application-class RISC-V core. We confirm that without hardware support, these defences are expensive and incomplete. We show that the addition of a single-instruction extension to the RISC-V ISA, that flushes microarchitectural state, can enable the OS to close all five evaluated covert channels with low increase in context switch costs and negligible hardware overhead. We conclude that such a mechanism is essential for security.
Motivation & Objective
- To evaluate the existence and capacity of microarchitectural covert channels on an open-source 64-bit RISC-V core.
- To assess the effectiveness of software-only defenses against such channels, particularly in the absence of hardware support.
- To demonstrate that resetting only first-order microarchitectural state (e.g., valid bits) is insufficient to prevent covert leakage.
- To design and evaluate a new hardware instruction, fence.t, that enables complete flushing of exploitable microarchitectural state.
- To show that such a mechanism is both practical and essential for principled prevention of timing channels in modern operating systems.
Proposed method
- The authors implemented a new RISC-V instruction, fence.t, which allows the OS to selectively flush microarchitectural state across multiple components, including caches, TLBs, branch predictors, and prefetchers.
- The fence.t instruction is designed to flush not only the primary state (e.g., valid bits in cache lines) but also secondary state such as cache replacement policy state machines.
- The mechanism was integrated into the Ariane RISC-V core, an in-order, 64-bit, application-class processor, and evaluated using a custom covert channel measurement framework.
- The authors measured the latency and hardware cost of fence.t, particularly focusing on cache flush operations, and compared them to existing software-only approaches.
- They evaluated the instruction’s efficacy against five known microarchitectural covert channels, including cache-based, TLB-based, and branch predictor-based timing channels.
- Hardware resource utilization was measured on an FPGA to assess area and power overhead, confirming minimal impact.
Experimental results
Research questions
- RQ1Can known microarchitectural covert channels be successfully exploited on an open-source 64-bit RISC-V core?
- RQ2Is software-only mitigation of microarchitectural timing channels both effective and efficient on modern RISC-V processors?
- RQ3Does resetting only first-order microarchitectural state (e.g., valid bits) suffice to prevent covert channel leakage, or can secondary state be exploited?
- RQ4Can a new hardware instruction, fence.t, provide a complete and low-overhead solution to flush all exploitable microarchitectural state?
- RQ5What are the performance and hardware cost implications of integrating such a mechanism into a real RISC-V core?
Key findings
- Five established microarchitectural covert channels—cache, TLB, branch predictor, and prefetcher-based—were successfully demonstrated on the unmodified Ariane RISC-V core, with capacities comparable to those on Intel and Arm processors.
- Software-only mitigation strategies were found to be prohibitively expensive and ineffective, especially when only first-order state (e.g., valid bits) was reset.
- Secondary microarchitectural state, such as the state machine controlling cache-line replacement policies, could still be exploited as a covert channel, proving that partial flushing is insufficient.
- The proposed fence.t instruction successfully eliminated all five covert channels, reducing leakage to below measurement accuracy.
- The fence.t instruction incurred only a 320-cycle overhead on the Ariane core, which is negligible at typical partition-switch rates of 1 kHz or lower.
- Hardware resource utilization on FPGA showed less than 1% increase in LUT usage, indicating minimal area and power overhead.
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.