arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.06281cs.CR
收藏

ES-Fuzz: 面向固件模糊测试的 MMIO 数据块自适应建模

ES-Fuzz: Adaptive Modeling of MMIO Data Chunks for Firmware Fuzzing

University of Michigan(密歇根大学)

Wei-Lun Huang, Kang G. Shin

AI总结:

提出 ES-Fuzz,通过自适应建模 MMIO 数据块克服固件模糊测试中的覆盖瓶颈,在 Fuzzware 上实现最高 68% 的覆盖率提升并发现额外漏洞。

摘要:

模糊测试已广泛应用于在完全重托管环境中测试嵌入式系统固件,该环境没有真实外设、原生系统支持,也无法访问源代码和规格说明。一些模糊器基于固件二进制模拟缺失外设的 MMIO 行为以提升代码覆盖率。它们用固定模型模拟固件中每个单独的 MMIO 读取。我们发现当多个 MMIO 读取共同获取一个数据块时,这种方法效果不佳,严重阻碍了覆盖率的增长。我们提出 ES-Fuzz 通过自适应建模 MMIO 数据块来克服这一覆盖瓶颈。ES-Fuzz 与给定模糊器并行运行,并在模糊器覆盖率停滞时启动新的一轮。在每一轮中,它分析一个高覆盖率的测试用例以推断新的 MMIO 数据块模型,从而解锁额外的执行路径。我们在 Fuzzware 上实现了 ES-Fuzz,并在 24 个流行的固件二进制文件上进行了评估。ES-Fuzz 将 Fuzzware 的覆盖率提升了最高 68%(在 11 个固件中),并在其中 5 个固件中触发了额外的漏洞,且未降低其余固件的覆盖率。其模型描述了多种 MMIO 数据块以及固件在不同上下文中对每个数据块的使用方式。

英文摘要:

Fuzzing has been widely used for testing embedded-system firmware in a fully rehosted environment without real peripherals, native system supports, or access to the source code and specifications. Some fuzzers emulate the MMIO behavior of missing peripherals based on the firmware binaries to boost code coverage. They emulate each individual MMIO read in the firmware with a fixed model. We find this ineffective when multiple MMIO reads collectively retrieve a data chunk, which greatly impedes the coverage growth. We propose ES-Fuzz to overcome this coverage bottleneck by adaptively modeling MMIO data chunks. ES-Fuzz runs alongside a given fuzzer and starts a new run when the fuzzer's coverage stagnates. In each run, it analyzes a high-coverage test case to infer new MMIO data-chunk models that unlock additional execution paths. We have implemented ES-Fuzz on Fuzzware and evaluated it on 24 popular firmware binaries. ES-Fuzz boosts Fuzzware's coverage by up to 68% in 11 -- and triggers additional bugs in 5 -- of them without degrading the coverage in the remainder. Its models describe a wide range of MMIO data chunks and the firmware's use of each across various contexts.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑