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

通过静态二进制级移植实现固件再托管

Firmware Re-hosting Through Static Binary-level Porting

Mingfeng Xin, Hui Wen, Liting Deng, Hong Li, Qiang Li, Limin Sun

摘要:

工业物联网(IIoT)的快速发展使嵌入式系统成为安全分析师和恶意攻击者的主要目标。由于嵌入式设备硬件的非标准化和软件的多样性,对安全分析人员准确分析固件二进制文件提出了独特的挑战。硬件组件的多样性以及固件和硬件之间的紧密耦合使得难以执行动态分析,动态分析必须具有在虚拟化环境中执行固件代码的能力。然而,仿真大量的硬件外设使得分析人员不得不频繁地修改仿真器以在不同的虚拟化环境中执行各种固件代码,这极大地限制了安全分析的能力。在这项工作中,我们探讨了与实时操作系统(RTOS)相关的固件重新托管的问题。具体来说,开发人员创建一个板级支持包(BSP)并开发设备驱动程序,使RTOS在他们的平台上运行。通过提供BSP例程和设备驱动程序的高级替换,我们可以对要从原始硬件环境迁移到虚拟化环境中的固件进行最小的修改。我们表明,一种方法能够提供的能力,通过修补固件在自动化的方式,而无需修改现有的仿真器的规模执行固件。我们的方法,称为静态二进制级移植,首先确定目标固件中的BSP和设备驱动程序,然后修补固件与预先构建的BSP例程和驱动程序,可以适应现有的模拟器。最后,我们证明了所提出的方法的实用性在多个硬件平台和固件样本的安全分析。结果表明,该方法是足够灵活的模拟固件的脆弱性评估和漏洞开发。

英文摘要:

The rapid growth of the Industrial Internet of Things (IIoT) has brought embedded systems into focus as major targets for both security analysts and malicious adversaries. Due to the non-standard hardware and diverse software, embedded devices present unique challenges to security analysts for the accurate analysis of firmware binaries. The diversity in hardware components and tight coupling between firmware and hardware makes it hard to perform dynamic analysis, which must have the ability to execute firmware code in virtualized environments. However, emulating the large expanse of hardware peripherals makes analysts have to frequently modify the emulator for executing various firmware code in different virtualized environments, greatly limiting the ability of security analysis. In this work, we explore the problem of firmware re-hosting related to the real-time operating system (RTOS). Specifically, developers create a Board Support Package (BSP) and develop device drivers to make that RTOS run on their platform. By providing high-level replacements for BSP routines and device drivers, we can make the minimal modification of the firmware that is to be migrated from its original hardware environment into a virtualized one. We show that an approach capable of offering the ability to execute firmware at scale through patching firmware in an automated manner without modifying the existing emulators. Our approach, called static binary-level porting, first identifies the BSP and device drivers in target firmware, then patches the firmware with pre-built BSP routines and drivers that can be adapted to the existing emulators. Finally, we demonstrate the practicality of the proposed method on multiple hardware platforms and firmware samples for security analysis. The result shows that the approach is flexible enough to emulate firmware for vulnerability assessment and exploits development.

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

↑