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

Ember-IO:基于无模型内存映射IO的有效固件模糊

Ember-IO: Effective Firmware Fuzzing with Model-Free Memory Mapped IO

Guy Farrelly, Michael Chesser, Damith C. Ranasinghe

摘要:

嵌入式系统的指数增长推动了开发模糊器的研究,以自动化固件测试,发现软件错误和安全漏洞。但是,在这种情况下,采用模糊技术提出了一个独特的挑战性的命题,一个关键的问题是需要处理的不同和大量的外围通信的自动化测试框架。最近的模糊方法:i)通过在仿真器中执行代码来采用重新托管方法,因为在资源有限的嵌入式系统上进行模糊化是缓慢且不可扩展的;以及ii)集成硬件行为的模型以克服由外围设备创建的待探索的大规模输入空间所面临的挑战,并生成有效地帮助模糊器取得进展的输入。我们的努力阐述了独特的固件程序执行行为,以解决由此产生的输入空间搜索问题。我们提出的技术提高了模糊器的能力,以产生可能的进展执行值,并避免在功能上等同于其他测试用例的变异输入消耗的时间。我们证明这些方法在克服输入空间搜索问题方面是高效且有效的。我们基于仿真的实现Ember-IO与现有的最先进的模糊框架相比,在21个固件二进制文件中,所覆盖的块提高了255%。此外,Ember-IO在现实世界的固件中发现了6个新的bug,以前没有被最先进的模糊框架识别出来。重要的是,Ember-IO与最先进的模糊器Fuzzware集成,在所有固件二进制文件中展示了类似或改进的覆盖范围,同时重现了Ember-IO发现的6个新错误中的3个。

英文摘要:

Exponential growth in embedded systems is driving the research imperative to develop fuzzers to automate firmware testing to uncover software bugs and security vulnerabilities. But, employing fuzzing techniques in this context present a uniquely challenging proposition; a key problem is the need to deal with the diverse and large number of peripheral communications in an automated testing framework. Recent fuzzing approaches: i) employ re-hosting methods by executing code in an emulator because fuzzing on resource limited embedded systems is slow and unscalable; and ii) integrate models of hardware behaviour to overcome the challenges faced by the massive input-space to be explored created by peripheral devices and to generate inputs that are effective in aiding a fuzzer to make progress. Our efforts expounds upon program execution behaviours unique to firmware to address the resulting input-space search problem. The techniques we propose improve the fuzzer's ability to generate values likely to progress execution and avoids time consumed on mutating inputs that are functionally equivalent to other test cases. We demonstrate the methods are highly efficient and effective at overcoming the input-space search problem. Our emulation-based implementation, Ember-IO, when compared to the existing state-of-the-art fuzzing framework across 21 firmware binaries, demonstrates up to 255% improvement in blocks covered. Further Ember-IO discovered 6 new bugs in the real-world firmware, previously not identified by state-of-the-art fuzzing frameworks. Importantly, Ember-IO integrated with the state-of-the-art fuzzer, Fuzzware, demonstrates similar or improved coverage across all firmware binaries whilst reproducing 3 of the 6 new bugs discovered by Ember-IO.

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

↑