[Paper Review] HyPFuzz: Formal-Assisted Processor Fuzzing
HyPFuzz combines formal verification with hardware fuzzing to explore hard-to-reach processor design spaces, achieving faster coverage and discovering new vulnerabilities.
Recent research has shown that hardware fuzzers can effectively detect security vulnerabilities in modern processors. However, existing hardware fuzzers do not fuzz well the hard-to-reach design spaces. Consequently, these fuzzers cannot effectively fuzz security-critical control- and data-flow logic in the processors, hence missing security vulnerabilities. To tackle this challenge, we present HyPFuzz, a hybrid fuzzer that leverages formal verification tools to help fuzz the hard-to-reach part of the processors. To increase the effectiveness of HyPFuzz, we perform optimizations in time and space. First, we develop a scheduling strategy to prevent under- or over-utilization of the capabilities of formal tools and fuzzers. Second, we develop heuristic strategies to select points in the design space for the formal tool to target. We evaluate HyPFuzz on five widely-used open-source processors. HyPFuzz detected all the vulnerabilities detected by the most recent processor fuzzer and found three new vulnerabilities that were missed by previous extensive fuzzing and formal verification. This led to two new common vulnerabilities and exposures (CVE) entries. HyPFuzz also achieves 11.68$ imes$ faster coverage than the most recent processor fuzzer.
Motivation & Objective
- Motivate the need for faster, more complete hardware vulnerability discovery in large processors.
- Propose a hybrid fuzzing framework that integrates formal verification with hardware fuzzing.
- Develop scheduling, point-selection, and integration mechanisms to maximize coverage and efficiency.
- Demonstrate HyPFuzz on real open-source processors and compare coverage speed and vulnerability findings with baselines.
Proposed method
- Develop a dynamic scheduler that switches between fuzzing and formal verification based on coverage-rate comparisons.
- Create a point-selection strategy to target uncovered design points that maximize subsequent fuzzing coverage.
- Generate cover properties from coverage points and convert formal tool outputs into executable seeds for the fuzzer.
- Convert Boolean assignments from formal tools into valid test-case binaries for fuzzing seeds.
- Implement a property generator and a test-case converter to enable seamless integration between formal tools and fuzzers.
- Evaluate HyPFuzz on five open-source processors (Rocket Core, CVA6, BOOM, mor1kx, OR1200) and benchmark against TheHuzz and random regression.
Experimental results
Research questions
- RQ1How can formal verification guidance be effectively scheduled with fuzzing to maximize hardware design coverage?
- RQ2Which strategies for selecting coverage points yield the fastest progression of coverage when combining formal tools with fuzzers?
- RQ3Can a seamless conversion between formal tool outputs and fuzzing seeds be achieved for large processor designs?
- RQ4What is the impact of HyPFuzz on detecting vulnerabilities missed by prior fuzzers/formal methods?
- RQ5How does HyPFuzz scale across multiple widely-used processor cores and ISAs (RISC-V and OpenRISC)?
Key findings
- HyPFuzz achieves 11.68× faster coverage than the latest processor fuzzer (TheHuzz).
- HyPFuzz detects all vulnerabilities found by TheHuzz and discovers three new vulnerabilities, leading to two CVEs (CVE-2022-33021, CVE-2022-33023).
- HyPFuzz is 3.06× faster in run-time and 3.05× faster in instruction coverage compared to TheHuzz.
- HyPFuzz is 239.93× faster than random regression in coverage.
- On CVA6, HyPFuzz reaches 94.78% branch coverage in 72 hours (vs 94.51% in 8 days by JasperGold in a separate evaluation).
- HyPFuzz achieves 11.68× faster coverage while requiring less time than formal tools alone, by leveraging hybrid execution.
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.