AIM: Automatic Interrupt Modeling for Dynamic Firmware Analysis
- 5 December 2023
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Dependable and Secure Computing
- Vol. 21 (4) , 3866-3882
Abstract
The security of microcontrollers, which drive modern IoT and embedded devices, continues to raise major concerns. Within a microcontroller (MCU), the firmware is a monolithic piece of software that contains the whole software stack, whereas a variety of peripherals represent the hardware. As MCU firmware contains vulnerabilities, it is ideal to test firmware with off-the-shelf software testing techniques, such as dynamic symbolic execution and fuzzing. Nevertheless, no emulator can emulate the diverse MCU peripherals or execute/test the firmware. Specifically, the interrupt interface, among all I/O interfaces used by MCU peripherals, is extremely challenging to emulate. In this paper, we present AIM —a generic, scalable, and hardware-independent dynamic firmware analysis framework that supports unemulated MCU peripherals by a novel interrupt modeling mechanism. AIM effectively and efficiently covers interrupt-dependent code in firmware by a novel, firmware-guided, Just-in-Time Interrupt Firing technique. We implemented our framework in angr and performed dynamic symbolic execution for eight real-world MCU firmware. According to testing results, our framework covered up to 11.2 times more interrupt-dependent code than state-of-the-art approaches while accomplishing several challenging goals not feasible previously. Finally, a comparison with a state-of-the-art firmware fuzzer demonstrates dynamic symbolic execution and fuzzing together can achieve better firmware testing coverage.Keywords
All Related Versions
Funding Information
- National Natural Science Foundation of China (124009-N72402)
- Northeastern University
This publication has 14 references indexed in Scilit:
- μAFL2022
- SoK: Enabling Security Analyses of Embedded Systems via Rehosting2021
- Conware: Automated Modeling of Hardware Peripherals2021
- FirmAE: Towards Large-Scale Emulation of IoT Firmware for Dynamic Analysis2020
- Device-agnostic Firmware Execution is Possible: A Concolic Execution Approach for Peripheral Emulation2020
- Evaluating Fuzz Testing2018
- FirmUSB2017
- SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis2016
- Firmalice - Automatic Detection of Authentication Bypass Vulnerabilities in Binary Firmware2015
- Avatar: A Framework to Support Dynamic Security Analysis of Embedded Systems’ Firmwares2014