[論文レビュー] TheHuzz: Instruction Fuzzing of Processors Using Golden-Reference Models for Finding Software-Exploitable Vulnerabilities
tldr:TheHuzzは、黄金参照モデルを用いて命令列を生成するハードウェアファザーです。ソフトウェアで悪用可能なハードウェアの脆弱性を明らかにし、従来のファuzzerやランダム回帰アプローチを上回ります。
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.
研究の動機と目的
- 従来の形式検証および実行時チェックを超えた、スケーラブルで自動的なハードウェア脆弱性検出の必要性を動機づける。
- (i)Verilog/VHDL HDLsをサポートし、(ii)標準のIC設計フローと統合し、(iii)事前の設計知識なしでソフトウェアで悪用可能なハードウェアの脆弱性を検出するハードウェアファザーを開発する。
- ハードウェアの固有の挙動を特徴づけ、信号遷移、浮遊ワイヤ、FSM、その他のRTL機能を捉えるカバレッジ指標を導出し、ファジングを導く。
- 実際のオープンソースプロセッサ上でTheHuzzの有効性を実証し、既存のハードウェアファザーや形式検証ツールと比較する。
提案手法
- 比較用の黄金参照モデルを用いたシード生成、刺激生成、変異エンジン、バグ検出モジュールを含むTheHuzzアーキテクチャを提案する。
- 組合せ/時系列論理、信号遷移、浮動ワイヤ、FSM状態を捉えるハードウェア特有のカバレッジ指標を定義する。
- ISAレベルのシード入力(設定命令とテスト命令)を生成し、二進レベルで命令を変異させて、規格外の入力を探索する。
- カバレッジを最大化しつつ、テスト対象ペアの集合を最小化するよう、命令変異ペアを選択する最適化ベースのアプローチを用いる。
- RTLシミュレーショントレースをGolden Reference Modelと照合してバグを検出し、分析のために不一致をフラグする。
実験結果
リサーチクエスチョン
- RQ1ハードウェアファザーは、RTLの本質的挙動を効果的に捉えてセキュリティ関連のバグを発見するにはどうすればよいか?
- RQ2RTL上で直接動作し、ハードウェア対応のカバレッジを用いるファジング手法は、ソフトウェアベースのものや既存のハードウェアファザーよりもソフトウェアで悪用可能な脆弱性を見つける点で上回ることができるか?
- RQ3実在のプロセッサ設計におけるカバレッジとバグ検出効率に対する、命令変異ペアの最適化の影響は何か?
主な発見
- TheHuzzは、業界標準のランダム回帰アプローチより1.98×の高速化、DiffuzRTLより3.33×の高速化を達成する。
- 4つのプロセッサ(or1200、mor1kx、Ariane、Rocket Core)で評価され、TheHuzzは11個のバグを発見し、そのうち8件は新規脆弱性だった。
- 検出されたバグには、特権のないソフトウェアのエクスプロイトで実証されたソフトウェアで悪用可能な問題が含まれる。
- Cadence JasperGoldと比較して、TheHuzzは状態爆発、リソース集約、専門知識への依存を克服する。
- 著者らはハードウェアファジングのさらなる研究を促進するためにTheHuzzをオープンソース化する予定です。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。