Skip to main content
QUICK REVIEW

[Paper Review] TheHuzz: Instruction Fuzzing of Processors Using Golden-Reference Models for Finding Software-Exploitable Vulnerabilities

Aakash Tyagi, Addison Crump|arXiv (Cornell University)|Jan 24, 2022
Adversarial Robustness in Machine LearningComputer Science37 citations
TL;DR

TheHuzz is a hardware fuzzer that uses a golden-reference model to generate instruction sequences, uncovering software-exploitable hardware vulnerabilities and outperforming prior fuzzers and random regression approaches.

ABSTRACT

The increasing complexity of modern processors poses many challenges to existing hardware verification tools and methodologies for detecting security-critical bugs. Recent attacks on processors have shown the fatal consequences of uncovering and exploiting hardware vulnerabilities. Fuzzing has emerged as a promising technique for detecting software vulnerabilities. Recently, a few hardware fuzzing techniques have been proposed. However, they suffer from several limitations, including non-applicability to commonly used Hardware Description Languages (HDLs) like Verilog and VHDL, the need for significant human intervention, and inability to capture many intrinsic hardware behaviors, such as signal transitions and floating wires. In this paper, we present the design and implementation of a novel hardware fuzzer, TheHuzz, that overcomes the aforementioned limitations and significantly improves the state of the art. We analyze the intrinsic behaviors of hardware designs in HDLs and then measure the coverage metrics that model such behaviors. TheHuzz generates assembly-level instructions to increase the desired coverage values, thereby finding many hardware bugs that are exploitable from software. We evaluate TheHuzz on four popular open-source processors and achieve 1.98x and 3.33x the speed compared to the industry-standard random regression approach and the state-of-the-art hardware fuzzer, DiffuzRTL, respectively. Using TheHuzz, we detected 11 bugs in these processors, including 8 new vulnerabilities, and we demonstrate exploits using the detected bugs. We also show that TheHuzz overcomes the limitations of formal verification tools from the semiconductor industry by comparing its findings to those discovered by the Cadence JasperGold tool.

Motivation & Objective

  • Motivate the need for scalable, automatic hardware vulnerability detection beyond traditional formal verification and runtime checks.
  • Develop a hardware fuzzer that (i) supports Verilog/VHDL HDLs, (ii) integrates with standard IC design flows, and (iii) detects software-exploitable hardware vulnerabilities without prior design knowledge.
  • Characterize hardware intrinsic behaviors and derive coverage metrics that capture signal transitions, floating wires, FSMs, and other RTL features to guide fuzzing.
  • Demonstrate the effectiveness of TheHuzz on real open-source processors and compare with existing hardware fuzzers and formal verification tools.

Proposed method

  • Propose TheHuzz architecture with seed generation, stimulus generation, a mutation engine, and a bug-detection module using a golden reference model for comparison.
  • Define hardware-specific coverage metrics that capture combinational/sequential logic, signal transitions, floating wires, and FSM states.
  • Generate ISA-level seed inputs (configuration instructions and test instructions) and mutate instructions at the binary level to explore out-of-spec inputs.
  • Use an optimization-based approach to select instruction-mutation pairs that maximize coverage while minimizing the set of tested pairs.
  • Detect bugs by matching RTL simulation traces against a Golden Reference Model and flag mismatches for analysis.

Experimental results

Research questions

  • RQ1How can a hardware fuzzer effectively capture intrinsic RTL behaviors to discover security-relevant bugs?
  • RQ2Can a fuzzing approach that operates directly on RTL with hardware-aware coverage outperform software-based or existing hardware fuzzers in finding software-exploitable vulnerabilities?
  • RQ3What is the impact of optimizing instruction-mutation pairs on coverage and bug-finding efficiency across real processor designs?

Key findings

  • TheHuzz achieves 1.98× speedup over the industry-standard random regression approach and 3.33× over DiffuzRTL.
  • Evaluated on four processors (or1200, mor1kx, Ariane, and Rocket Core), TheHuzz found 11 bugs, including 8 new vulnerabilities.
  • The bugs detected include software-exploitable issues demonstrated with exploits from unprivileged software.
  • Compared to Cadence JasperGold, TheHuzz overcomes state explosion, resource intensity, and reliance on expert knowledge.
  • The authors plan to open-source TheHuzz to foster further research in hardware fuzzing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.