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

Icicle:为灰盒固件模糊测试重新设计的模拟器

Icicle: A Re-Designed Emulator for Grey-Box Firmware Fuzzing

Michael Chesser, Surya Nepal, Damith C. Ranasinghe

AI总结:

本研究提出Icicle,一个专为模糊测试设计的多架构模拟框架,支持架构无关插桩,以低开销实现高效灰盒固件模糊测试,并在多种ISA及MSP430上发现新错误。

摘要:

基于模拟的模糊测试器能够测试没有源代码的二进制文件,并便于测试嵌入式应用,在这些应用中,在目标硬件架构上自动执行既困难又缓慢。为了提取反馈并引导输入变异以生成有效测试用例而添加的插桩技术是现代模糊测试器的核心。然而,现代基于模拟的模糊测试器是通过重新利用通用模拟器而演进的;因此,开发和集成模糊测试技术(如插桩方法)是困难的,并且通常以特定于指令集架构(ISA)的临时方式添加。这限制了最先进的模糊测试技术仅适用于少数ISA,如x86/x86-64或ARM/AArch64;这对于多样ISA的固件模糊测试来说是一个重大问题。本研究介绍了我们重新思考用于模糊测试的模拟工作的努力。我们设计并实现了一个特定于模糊测试的、多架构模拟框架——Icicle。我们展示了以架构无关的方式添加一次插桩的能力,且执行开销低。我们将Icicle用作最先进的ARM固件模糊测试器——Fuzzware——的模拟器,并复现了结果。重要的是,我们证明了Icicle中新插桩的可用性使得发现新错误成为可能。我们通过发现LAVA-M基准测试错误,证明了Icicle的保真度和架构无关插桩的有效性,这需要已知且特定的插桩技术操作能力,跨越多种指令集架构(x86-64、ARM/AArch64、RISC-V、MIPS)。此外,为了展示Icicle在基于模拟的模糊测试器中当前不支持的架构中发现错误的有效性,我们使用真实的MSP430固件二进制文件进行了模糊测试活动,并发现了7个新错误。

英文摘要:

Emulation-based fuzzers enable testing binaries without source code, and facilitate testing embedded applications where automated execution on the target hardware architecture is difficult and slow. The instrumentation techniques added to extract feedback and guide input mutations towards generating effective test cases is at the core of modern fuzzers. But, modern emulation-based fuzzers have evolved by re-purposing general-purpose emulators; consequently, developing and integrating fuzzing techniques, such as instrumentation methods, are difficult and often added in an ad-hoc manner, specific to an instruction set architecture (ISA). This limits state-of-the-art fuzzing techniques to few ISAs such as x86/x86-64 or ARM/AArch64; a significant problem for firmware fuzzing of diverse ISAs. This study presents our efforts to re-think emulation for fuzzing. We design and implement a fuzzing-specific, multi-architecture emulation framework -- Icicle. We demonstrate the capability to add instrumentation once, in an architecture agnostic manner, with low execution overhead. We employ Icicle as the emulator for a state-of-the-art ARM firmware fuzzer -- Fuzzware -- and replicate results. Significantly, we demonstrate the availability of new instrumentation in Icicle enabled the discovery of new bugs. We demonstrate the fidelity of Icicle and efficacy of architecture agnostic instrumentation by discovering LAVA-M benchmark bugs, requiring a known and specific operational capability of instrumentation techniques, across a diverse set of instruction set architectures (x86-64, ARM/AArch64, RISC-V, MIPS). Further, to demonstrate the effectiveness of Icicle to discover bugs in a currently unsupported architecture in emulation-based fuzzers, we perform a fuzzing campaign with real-world MSP430 firmware binaries and discovered 7 new bugs.

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

↑