MetaEmu: An Architecture Agnostic Rehosting Framework for Automotive Firmware
Zitai Chen, Sam L. Thomas, Flavio D. Garcia
Abstract
In this paper we present MetaEmu, an architecture-agnostic emulator synthesizer geared towards rehosting and security analysis of automotive firmware. MetaEmu improves over existing rehosting environments in two ways: Firstly, it solves the hitherto openproblem of a lack of generic Virtual Execution Environments (VXEs) for rehosting by synthesizing processor simulators from Ghidra's language definitions. In doing so, MetaEmu can simulate any processor supported by a vast and growing library of open-source definitions. In MetaEmu, we use a specification-based approach to cover peripherals, execution models, and analyses, which allows our framework to be easily extended. Secondly, MetaEmu can rehost and analyze multiple targets, each of different architecture, simultaneously, and share analysis facts between each target's analysis environment, a technique we call inter-device analysis. We show that the flexibility afforded by our approach does not lead to a performance trade-off-MetaEmu lifts rehosted firmware to an optimized intermediate representation, and provides performance comparable to existing emulation tools, such as Unicorn. Our evaluation spans five different architectures, bare-metal and RTOS-based firmware, and three kinds of automotive Electronic Control Unit (ECU) from four distinct vendors-none of which can be rehosted or emulated by current tools, due to lack of processor support. Further, we show how MetaEmu enables a diverse set of analyses by implementing a fuzzer, a symbolic executor for solving peripheral access checks, a CAN ID reverse engineering tool, and an inter-device coverage tracker.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
7 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- DICE: Automatic Emulation of DMA Input Channels for Dynamic Firmware Analysis cites Inception: System-Wide Security Testing of Real-World Embedded Systems Software
- DICE: Automatic Emulation of DMA Input Channels for Dynamic Firmware Analysis cites What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices
- Khost: KVM-based Near Native MCU Firmware Rehosting cites DICE: Automatic Emulation of DMA Input Channels for Dynamic Firmware Analysis
- Khost: KVM-based Near Native MCU Firmware Rehosting cites Inception: System-Wide Security Testing of Real-World Embedded Systems Software
- Khost: KVM-based Near Native MCU Firmware Rehosting cites Icicle: A Re-designed Emulator for Grey-Box Firmware Fuzzing
- Khost: KVM-based Near Native MCU Firmware Rehosting cites LEMIX: Enabling Testing of Embedded Applications as Linux Applications
- Khost: KVM-based Near Native MCU Firmware Rehosting cites What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices
- GDMA: Fully Automated DMA Rehosting via Iterative Type Overlays cites DICE: Automatic Emulation of DMA Input Channels for Dynamic Firmware Analysis
- GDMA: Fully Automated DMA Rehosting via Iterative Type Overlays cites SoK: Prudent Evaluation Practices for Fuzzing
- GDMA: Fully Automated DMA Rehosting via Iterative Type Overlays cites Icicle: A Re-designed Emulator for Grey-Box Firmware Fuzzing
- SoK: Prudent Evaluation Practices for Fuzzing cites DICE: Automatic Emulation of DMA Input Channels for Dynamic Firmware Analysis
- SoK: Prudent Evaluation Practices for Fuzzing cites What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices
- Inception: System-Wide Security Testing of Real-World Embedded Systems Software cites What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices
- Icicle: A Re-designed Emulator for Grey-Box Firmware Fuzzing cites Inception: System-Wide Security Testing of Real-World Embedded Systems Software
- LEMIX: Enabling Testing of Embedded Applications as Linux Applications cites Inception: System-Wide Security Testing of Real-World Embedded Systems Software
- LEMIX: Enabling Testing of Embedded Applications as Linux Applications cites What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices
Cited by top-tier papers7
- SoK: Prudent Evaluation Practices for FuzzingMoritz Schloegel, Nils Bars, Nico Schiller, Lukas Bernhard et al.S&P 2024 · 69 citations
- Icicle: A Re-designed Emulator for Grey-Box Firmware FuzzingMichael Chesser, Surya Nepal, Damith C. RanasingheISSTA 2023 · 10 citations
- Khost: KVM-based Near Native MCU Firmware RehostingChunlin Wang, Yicheng Yang, Yuan Zhang, Haoyu Xiao et al.USENIX Security 2026
- GDMA: Fully Automated DMA Rehosting via Iterative Type OverlaysTobias Scharnowski, Simeon Hoffmann, Moritz Bley, Simon Wörner et al.USENIX Security 2025
- LEMIX: Enabling Testing of Embedded Applications as Linux ApplicationsSai Ritvik Tanksalkar, Siddharth Muralee, Srihari Danduri, Paschal C. Amusuo et al.USENIX Security 2025
Builds on13
- What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded DevicesMarius Muench, Jan Stijohann, Frank Kargl, Aurélien Francillon et al.NDSS 2018 · 202 citations
- egg: Fast and extensible equality saturationMax Willsey, Chandrakana Nandi, Yisu Remy Wang, Oliver Flatt et al.POPL 2021 · 170 citations
- Lock It and Still Lose It - on the (In)Security of Automotive Remote Keyless Entry SystemsFlavio D. Garcia, David F. Oswald, Timo Kasper, Pierre PavlidèsUSENIX Security 2016 · 151 citations
- Inception: System-Wide Security Testing of Real-World Embedded Systems SoftwareNassim Corteggiani, Giovanni Camurati, Aurélien FrancillonUSENIX Security 2018 · 117 citations
- DICE: Automatic Emulation of DMA Input Channels for Dynamic Firmware AnalysisAlejandro Mera, Bo Feng, Long Lu, Engin KirdaS&P 2021 · 81 citations
Related papers
- Jetset: Targeted Firmware Rehosting for Embedded SystemsEvan Johnson, Maxwell Bland, Yifei Zhu, Joshua Mason et al.USENIX Security 2021 · 76 citations
- Fuzzware: Using Precise MMIO Modeling for Effective Firmware FuzzingTobias Scharnowski, Nils Bars, Moritz Schloegel, Eric Gustafson et al.USENIX Security 2022
- BoardRunner: Automatic Firmware Rehosting Using High-Fidelity Compositional Device ModelsMuhammad Hammad Bashir, Michael Rooney, Colin Smith, Dongyan Xu et al.CCS 2026
- FlexEmu: Towards Flexible MCU Peripheral EmulationChongqing Lei, Zhen Ling, Xiangyu Xu, Shaofeng Li et al.CCS 2025 · 1 citation
- Greenhouse: Single-Service Rehosting of Linux-Based Firmware Binaries in User-Space EmulationHui Jun Tay, Kyle Zeng, Jayakrishna Menon Vadayath, Arvind S. Raj et al.USENIX Security 2023
