Processor Hardware Security Vulnerabilities and their Detection by Unique Program Execution Checking

Mohammad Rahmani Fadiheh, Dominik Stoffel, Clark W. Barrett, Subhasish Mitra, Wolfgang Kunz

Introduction

The security landscape for hardware was fundamentally altered by the discovery of Spectre and Meltdown. These vulnerabilities exploit microarchitectural side effects, such as changes in cache state, resulting from speculative or out-of-order execution. Consequently, a common assumption emerged: simpler, in-order processors—prevalent in IoT devices, embedded systems, and autonomous platforms—were inherently immune to such timing-based covert channels.

This research challenges that assumption by introducing the Orc attack, a novel covert channel targeting in-order pipelines. Furthermore, the authors present Unique Program Execution Checking (UPEC), a formal and automated verification method designed to identify these hardware vulnerabilities at the Register-Transfer Level (RTL) before silicon fabrication.

The Orc Attack: Vulnerabilities in Simple Pipelines

The Orc attack demonstrates that even without out-of-order execution, complex microarchitectural optimizations can leak sensitive information. Specifically, it exploits Read-After-Write (RAW) hazards within the cache interface.

In this scenario, an attacker "guesses" a cache line associated with secret data and initiates a write operation. A subsequent unauthorized read of that secret data, even if eventually blocked by hardware protection mechanisms, may cause a pipeline stall if the initial guess was correct. The resulting timing difference—the presence or absence of a stall—effectively leaks the secret bit. This highlights how subtle design choices intended for performance can inadvertently create side channels.

Vulnerable vs. Secure microarchitectural designs for handling memory protection and cache misses.

Unique Program Execution Checking (UPEC)

To move beyond manual, ad-hoc security auditing, the authors developed UPEC, a systematic formal verification technique. UPEC utilizes a "Miter Model" to detect information leakage.

The Miter Model

UPEC instantiates two identical copies of the System-on-Chip (SoC1 and SoC2). Both instances start in the same architectural state, but the "secret" memory locations are initialized with different values. A constraint ensures that all other memory and initial states remain identical across both instances.

Detection Mechanism

UPEC monitors the architectural state variables (registers visible to the programmer) of both SoCs every clock cycle.

  • L-alerts (Leakage alerts): Triggered if any program-visible state diverges between the two instances, indicating a definitive information leak.
  • P-alerts (Propagation alerts): Triggered when internal, non-visible microarchitectural states diverge. These serve as early warnings, showing that secret data has begun to propagate through the hardware, potentially leading to an observable leak later.

Key Results and Evaluation

The effectiveness of UPEC was evaluated using the open-source RISC-V RocketChip SoC generator.

  • Vulnerability Discovery: UPEC successfully identified Meltdown-style vulnerabilities and the new Orc attack on modified versions of the RocketChip.
  • Real-World Impact: In the standard, unmodified RocketChip, UPEC uncovered a functional non-compliance bug in the Physical Memory Protection (PMP) unit, a critical security component.
  • Efficiency: Formal proofs were completed within minutes to hours. Analyzing UPEC alerts proved significantly faster than traditional manual auditing, reducing the effort from months to mere hours or days.

Conclusion

The Orc attack proves that simplicity does not guarantee security; in-order processors remain vulnerable to microarchitectural side channels. UPEC provides a powerful, exhaustive alternative to manual security testing by detecting any instance where secret data influences program execution. While challenges remain in scaling formal methods to massive server-class CPUs, UPEC represents a significant step toward provably secure hardware design at the RTL stage.

Summary updated

BibTeX
@inproceedings{fadiheh2018processor,
  author = {Mohammad Rahmani Fadiheh and Dominik Stoffel and Clark W. Barrett and Subhasish Mitra and Wolfgang Kunz},
  title = {{Processor Hardware Security Vulnerabilities and their Detection by Unique Program Execution Checking}},
  booktitle = {DATE},
  year = {2018},
  doi = {10.23919/date.2019.8715004},
}
Figure