Graduate School and Research Center in Digital Sciences

Toward the analysis of embedded firmware through automated re-hosting

Gustafson, Eric; Muench, Marius; Spensky, Chad; Redini, Nilo; Machiry, Aravind; Fratantonio, Yanick; Balzarotti, Davide; Francillon, Aurélien; Choe, Yung Ryn; Kruegel, Christopher; Vigna, Giovanni

RAID 2019, 22nd International Symposium on Research in Attacks, Intrusions and Defenses, September 23-25, 2019, Beijing, China

The recent paradigm shift introduced by the Internet of Things (IoT) has brought embedded systems into focus as a target for both security analysts and malicious adversaries. Typified by their lack of standardized hardware, diverse software, and opaque functionality, IoT devices present unique challenges to security analysts due to the tight coupling between their firmware and the hardware for which it was designed. In order to take advantage of modern program analysis techniques, such as fuzzing or symbolic execution, with any kind of scale or depth, analysts must have the ability to execute firmware code in emulated (or virtualized) environments. However, these emulation environments are rarely available and are cumbersome to create through manual reverse engineering, greatly limiting the analysis of binary firmware. In this work, we explore the problem of firmware re-hosting, the process by which firmware is migrated from its original hardware environment into a virtualized one. We show that an approach capable of creating virtual, interactive environments in an automated manner is a necessity to enable firmware analysis at scale. We present the first proof-of-concept system aiming to achieve this goal, called PRETENDER, which uses observations of the interactions between the original hardware and the firmware to automatically create models of peripherals, and allows for the execution of the firmware in a fully-emulated environment. Unlike previous approaches, these models are interactive, stateful, and transferable, meaning they are designed to allow the program to receive and process new input, a requirement of many analyses. We demonstrate our approach on multiple hardware platforms and firmware samples, and show that the models are flexible enough to allow for virtualized code execution, the exploration of new code paths, and the identification of security vulnerabilities. 

Document Bibtex

Title:Toward the analysis of embedded firmware through automated re-hosting
Type:Conference
Language:English
City:Beijing
Country:CHINA
Date:
Department:Digital Security
Eurecom ref:5917
Copyright: Copyright Usenix. Personal use of this material is permitted. The definitive version of this paper was published in RAID 2019, 22nd International Symposium on Research in Attacks, Intrusions and Defenses, September 23-25, 2019, Beijing, China and is available at :
Bibtex: @inproceedings{EURECOM+5917, year = {2019}, title = {{T}oward the analysis of embedded firmware through automated re-hosting}, author = {{G}ustafson, {E}ric and {M}uench, {M}arius and {S}pensky, {C}had and {R}edini, {N}ilo and {M}achiry, {A}ravind and {F}ratantonio, {Y}anick and {B}alzarotti, {D}avide and {F}rancillon, {A}ur{\'e}lien and {C}hoe, {Y}ung {R}yn and {K}ruegel, {C}hristopher and {V}igna, {G}iovanni}, booktitle = {{RAID} 2019, 22nd {I}nternational {S}ymposium on {R}esearch in {A}ttacks, {I}ntrusions and {D}efenses, {S}eptember 23-25, 2019, {B}eijing, {C}hina}, address = {{B}eijing, {CHINA}}, month = {09}, url = {http://www.eurecom.fr/publication/5917} }
See also: