FirmAE: Towards Large-Scale Emulation of IoT Firmware for Dynamic Analysis
Authors:
Open Access
- 7 December 2020
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 733-745
Abstract
One approach to assess the security of embedded IoT devices is applying dynamic analysis such as fuzz testing to their firmware in scale. To this end, existing approaches aim to provide an emulation environment that mimics the behavior of real hardware/peripherals. Nonetheless, in practice, such approaches can emulate only a small fraction of firmware images. For example, Firmadyne, a state-of-the-art tool, can only run 183 (16.28%) of 1,124 wireless router/IP-camera images that we collected from the top eight manufacturers. Such a low emulation success rate is caused by discrepancy in the real and emulated firmware execution environment. In this study, we analyzed the emulation failure cases in a large-scale dataset to figure out the causes of the low emulation rate. We found that widespread failure cases often avoided by simple heuristics despite having different root causes, significantly increasing the emulation success rate. Based on these findings, we propose a technique, arbitrated emulation, and we systematize several heuristics as arbitration techniques to address these failures. Our automated prototype, FirmAE, successfully ran 892 (79.36%) of 1,124 firmware images, including web servers, which is significantly (≈ 4.8x) more images than that run by Firmadyne. Finally, by applying dynamic testing techniques on the emulated images, FirmAE could check 320 known vulnerabilities (306 more than Firmadyne), and also find 12 new 0-days in 23 devices.Keywords
This publication has 13 references indexed in Scilit:
- FirmUp2018
- What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices2018
- Rethinking the Honeypot for Cyber-Physical SystemsIEEE Internet Computing, 2016
- Automated Dynamic Firmware Analysis at Scale2016
- Program-Adaptive Mutational Fuzzing2015
- Firmalice - Automatic Detection of Authentication Bypass Vulnerabilities in Binary Firmware2015
- Prospect2014
- Evaluation of the ability of the Shodan search engine to identify Internet-facing industrial control devicesInternational Journal of Critical Infrastructure Protection, 2014
- Avatar: A Framework to Support Dynamic Security Analysis of Embedded Systems’ Firmwares2014
- A quantitative analysis of the insecurity of embedded network devices2010