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.
翻译:由于非标准硬件和多种软件,嵌入装置对安全分析员提出了独特的挑战,以便准确分析固态软件。硬件组件的多样性以及硬硬件和硬件之间的紧密连接使得很难进行动态分析,而这种分析必须具备在虚拟环境中执行固态代码的能力。然而,模拟硬件外围功能的庞大范围使得分析师不得不经常修改用于在不同虚拟化环境中执行各种固态软件代码的模拟器,这极大地限制了安全分析的能力。在这项工作中,我们探索了与实时操作系统(RTOS)有关的固态软件重新接收问题。具体地说,开发者创建了董事会支持软件包(BSP),并开发了设备驱动器,以便在虚拟化的环境中运行全方位。通过为BSP的常规操作器和装置驱动器提供高水平的替换,我们就能对在不同的常规环境中执行各种固态软件的模拟器件进行最起码的修改,从而将其从原来的硬件环境转换成一个虚拟的硬体,从而极大地限制了安全分析能力。我们用一种有能力的方法来修正公司,通过一个固定式的系统来显示我们现有的硬体的硬质软件,我们现有的硬体评估。