Lune

USENIX Security2021Top-tier venue

Jetset: Targeted Firmware Rehosting for Embedded Systems

Evan Johnson, Maxwell Bland, Yifei Zhu, Joshua Mason, Stephen Checkoway, Stefan Savage, Kirill Levchenko

Abstract

The ability to execute code in an emulator is a fundamental part of modern vulnerability testing. Unfortunately, this poses a challenge for many embedded systems, where firmware expects to interact with hardware devices specific to the target. Getting embedded system firmware to run outside its native environment, termed rehosting, requires emulating these hardware devices with enough accuracy to convince the firmware that it is executing on the target hardware. However, full fidelity emulation of target devices (which requires considerable engineering effort) may not be necessary to boot the firmware to a point of interest for an analyst (for example, a point where fuzzer input can be injected). We hypothesized that, for the firmware to boot successfully, it is sufficient to emulate only the behavior expected by the firmware, and that this behavior could be inferred automatically. To test this hypothesis, we developed and implemented Jetset, a system that uses symbolic execution to infer what behavior firmware expects from a target device. Jetset can generate devices models for hardware peripherals in C, allowing an analyst to boot the firmware in an emulator (e.g., QEMU). We successfully applied Jetset to thirteen distinct pieces of firmware together representing three architectures, three application domains (power grid, avionics, and consumer electronics), and five different operating systems. We also demonstrate how Jetset-assisted rehosting facilitates fuzztesting, a common security analysis technique, on an avionics embedded system, in which we found a previously unknown privilege escalation vulnerability.

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.

29 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Leveraging Semantic Relations in Code and Data to Enhance Taint Analysis of Embedded Systems cites Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
  • HEAPSTER: Analyzing the Security of Dynamic Allocators for Monolithic Firmware Images cites P2IM: Scalable and Hardware-independent Firmware Testing via Automatic Peripheral Interface Modeling
  • HEAPSTER: Analyzing the Security of Dynamic Allocators for Monolithic Firmware Images cites What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices
  • HEAPSTER: Analyzing the Security of Dynamic Allocators for Monolithic Firmware Images cites HALucinator: Firmware Re-hosting Through Abstraction Layer Emulation
  • P2IM: Scalable and Hardware-independent Firmware Testing via Automatic Peripheral Interface Modeling cites Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
  • P2IM: Scalable and Hardware-independent Firmware Testing via Automatic Peripheral Interface Modeling cites FirmUSB: Vetting USB Device Firmware using Domain Informed Symbolic Execution
  • P2IM: Scalable and Hardware-independent Firmware Testing via Automatic Peripheral Interface Modeling cites What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices
  • FirmUSB: Vetting USB Device Firmware using Domain Informed Symbolic Execution cites Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
  • What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices cites Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
  • What Your Firmware Tells You Is Not How You Should Emulate It: A Specification-Guided Approach for Firmware Emulation cites Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
  • What Your Firmware Tells You Is Not How You Should Emulate It: A Specification-Guided Approach for Firmware Emulation cites P2IM: Scalable and Hardware-independent Firmware Testing via Automatic Peripheral Interface Modeling
  • What Your Firmware Tells You Is Not How You Should Emulate It: A Specification-Guided Approach for Firmware Emulation cites HALucinator: Firmware Re-hosting Through Abstraction Layer Emulation
  • Fuzzing Embedded Systems using Debug Interfaces cites P2IM: Scalable and Hardware-independent Firmware Testing via Automatic Peripheral Interface Modeling
  • Fuzzing Embedded Systems using Debug Interfaces cites What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices
  • Fuzzing Embedded Systems using Debug Interfaces cites HALucinator: Firmware Re-hosting Through Abstraction Layer Emulation
  • \mu AFL: Non-intrusive Feedback-driven Fuzzing for Microcontroller Firmware cites P2IM: Scalable and Hardware-independent Firmware Testing via Automatic Peripheral Interface Modeling
  • \mu AFL: Non-intrusive Feedback-driven Fuzzing for Microcontroller Firmware cites FirmUSB: Vetting USB Device Firmware using Domain Informed Symbolic Execution
  • \mu AFL: Non-intrusive Feedback-driven Fuzzing for Microcontroller Firmware cites HALucinator: Firmware Re-hosting Through Abstraction Layer Emulation
  • HALucinator: Firmware Re-hosting Through Abstraction Layer Emulation cites Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
  • HALucinator: Firmware Re-hosting Through Abstraction Layer Emulation cites What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers29

  1. HEAPSTER: Analyzing the Security of Dynamic Allocators for Monolithic Firmware ImagesFabio Gritti, Fabio Pagani, Ilya Grishchenko, Lukas Dresel et al.S&P 2022 · 31 citations
  2. μAFL\mu AFL: Non-intrusive Feedback-driven Fuzzing for Microcontroller FirmwareWenqiang Li, Jiameng Shi, Fengjun Li, Jingqiang Lin et al.ICSE 2022 · 27 citations
  3. Fuzzing Embedded Systems using Debug InterfacesMax Eisele, Daniel Ebert, Christopher Huth, Andreas ZellerISSTA 2023 · 20 citations
  4. What Your Firmware Tells You Is Not How You Should Emulate It: A Specification-Guided Approach for Firmware EmulationWei Zhou, Lan Zhang, Le Guan, Peng Liu et al.CCS 2022 · 18 citations
  5. Leveraging Semantic Relations in Code and Data to Enhance Taint Analysis of Embedded SystemsJiaxu Zhao, Yuekang Li, Yanyan Zou, Zhaohui Liang et al.USENIX Security 2024 · 16 citations

Builds on5

  1. Towards Automated Dynamic Analysis for Linux-based Embedded FirmwareDaming D. Chen, Maverick Woo, David Brumley, Manuel EgeleNDSS 2016 · 428 citations
  2. 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
  3. FirmUSB: Vetting USB Device Firmware using Domain Informed Symbolic ExecutionGrant Hernandez, Farhaan Fowze, Dave (Jing) Tian, Tuba Yavuz et al.CCS 2017 · 98 citations
  4. P2IM: Scalable and Hardware-independent Firmware Testing via Automatic Peripheral Interface ModelingBo Feng, Alejandro Mera, Long LuUSENIX Security 2020
  5. HALucinator: Firmware Re-hosting Through Abstraction Layer EmulationAbraham A. Clements, Eric Gustafson, Tobias Scharnowski, Paul Grosen et al.USENIX Security 2020

Related papers

  1. Fuzzware: Using Precise MMIO Modeling for Effective Firmware FuzzingTobias Scharnowski, Nils Bars, Moritz Schloegel, Eric Gustafson et al.USENIX Security 2022
  2. FirmGuide: Boosting the Capability of Rehosting Embedded Linux Kernels through Model-Guided Kernel ExecutionQiang Liu, Cen Zhang, Lin Ma, Muhui Jiang et al.ASE 2021 · 10 citations
  3. Forming Faster Firmware FuzzersLukas Seidel, Dominik Christian Maier, Marius MuenchUSENIX Security 2023
  4. BoardRunner: Automatic Firmware Rehosting Using High-Fidelity Compositional Device ModelsMuhammad Hammad Bashir, Michael Rooney, Colin Smith, Dongyan Xu et al.CCS 2026
  5. MetaEmu: An Architecture Agnostic Rehosting Framework for Automotive FirmwareZitai Chen, Sam L. Thomas, Flavio D. GarciaCCS 2022 · 9 citations
Dusk over the sea between two cliffs drawn in fine vertical lines