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

P $^2$ IM:通过自动外围接口建模进行可扩展且与硬件无关的固件测试(扩展版本)

P$^2$IM: Scalable and Hardware-independent Firmware Testing via Automatic Peripheral Interface Modeling (extended version)

Bo Feng, Alejandro Mera, Long Lu

摘要:

嵌入式固件的动态测试或模糊测试受到硬件依赖性和可扩展性差的严重限制,部分原因是物联网设备普遍存在漏洞。我们提出了一个软件框架,不断执行给定的固件二进制,同时从现成的模糊输入通道,使硬件独立和可扩展的固件测试。我们的框架,使用一种新的技术,称为P $^2$ IM,抽象不同的外设和处理固件I/O的基础上自动生成的模型。P $^2$ IM不受外围设备设计的影响,对固件实现是通用的,因此可应用于各种嵌入式设备。我们使用70个示例固件和来自真实设备(包括无人机、机器人和PLC)的10个固件评估了我们的框架。它成功执行了79%的示例固件,无需任何手动帮助。我们还对真实固件进行了有限的模糊测试,发现了7个独特的未知错误。

英文摘要:

Dynamic testing or fuzzing of embedded firmware is severely limited by hardware-dependence and poor scalability, partly contributing to the widespread vulnerable IoT devices. We propose a software framework that continuously executes a given firmware binary while channeling inputs from an off-the-shelf fuzzer, enabling hardware-independent and scalable firmware testing. Our framework, using a novel technique called P$^2$IM, abstracts diverse peripherals and handles firmware I/O on the fly based on automatically generated models. P$^2$IM is oblivious to peripheral designs and generic to firmware implementations, and therefore, applicable to a wide range of embedded devices. We evaluated our framework using 70 sample firmware and 10 firmware from real devices, including a drone, a robot, and a PLC. It successfully executed 79% of the sample firmware without any manual assistance. We also performed a limited fuzzing test on the real firmware, which unveiled 7 unique unknown bugs.

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

↑