Lune

USENIX Security2020Top-tier venue

P2IM: Scalable and Hardware-independent Firmware Testing via Automatic Peripheral Interface Modeling

Bo Feng, Alejandro Mera, Long Lu

Abstract

Dynamic testing or fuzzing of embedded firmware is severely limited by hardware-dependence and poor scalability, partly contributing to the widespread vulnerable IoT devices. We propose a software framework that continuously executes a given firmware binary while channeling inputs from an off-the-shelf fuzzer, enabling hardware-independent and scalable firmware testing. Our framework, using a novel technique called P2^2IM, abstracts diverse peripherals and handles firmware I/O on the fly based on automatically generated models. P2^2IM is oblivious to peripheral designs and generic to firmware implementations, and therefore, applicable to a wide range of embedded devices. We evaluated our framework using 70 sample firmware and 10 firmware from real devices, including a drone, a robot, and a PLC. It successfully executed 79% of the sample firmware without any manual assistance. We also performed a limited fuzzing test on the real firmware, which unveiled 7 unique unknown bugs.

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.

75 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

  • DICE: Automatic Emulation of DMA Input Channels for Dynamic Firmware Analysis cites PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS Boundary
  • DICE: Automatic Emulation of DMA Input Channels for Dynamic Firmware Analysis cites Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
  • 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
  • PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS Boundary cites What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices
  • 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
  • SoK: Prudent Evaluation Practices for Fuzzing cites Snipuzz: Black-box Fuzzing of IoT Firmware via Message Snippet Inference
  • 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
  • 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
  • Automatic Firmware Emulation through Invalidity-guided Knowledge Inference cites DICE: Automatic Emulation of DMA Input Channels for Dynamic Firmware Analysis
  • Automatic Firmware Emulation through Invalidity-guided Knowledge Inference cites Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
  • Automatic Firmware Emulation through Invalidity-guided Knowledge Inference cites What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices
  • Jetset: Targeted Firmware Rehosting for Embedded Systems cites Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
  • Jetset: Targeted Firmware Rehosting for Embedded Systems cites FirmUSB: Vetting USB Device Firmware using Domain Informed Symbolic Execution
  • Jetset: Targeted Firmware Rehosting for Embedded Systems cites What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices
  • Snipuzz: Black-box Fuzzing of IoT Firmware via Message Snippet Inference cites Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
  • Snipuzz: Black-box Fuzzing of IoT Firmware via Message Snippet Inference 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 papers75

  1. Snipuzz: Black-box Fuzzing of IoT Firmware via Message Snippet InferenceXiaotao Feng, Ruoxi Sun, Xiaogang Zhu, Minhui Xue et al.CCS 2021 · 146 citations
  2. DICE: Automatic Emulation of DMA Input Channels for Dynamic Firmware AnalysisAlejandro Mera, Bo Feng, Long Lu, Engin KirdaS&P 2021 · 81 citations
  3. Automatic Firmware Emulation through Invalidity-guided Knowledge InferenceWei Zhou, Le Guan, Peng Liu, Yuqing ZhangUSENIX Security 2021 · 76 citations
  4. Jetset: Targeted Firmware Rehosting for Embedded SystemsEvan Johnson, Maxwell Bland, Yifei Zhu, Joshua Mason et al.USENIX Security 2021 · 76 citations
  5. SoK: Prudent Evaluation Practices for FuzzingMoritz Schloegel, Nils Bars, Nico Schiller, Lukas Bernhard et al.S&P 2024 · 69 citations

Builds on6

  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. Inception: System-Wide Security Testing of Real-World Embedded Systems SoftwareNassim Corteggiani, Giovanni Camurati, Aurélien FrancillonUSENIX Security 2018 · 117 citations
  4. PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS BoundaryDokyung Song, Felicitas Hetzelt, Dipanjan Das, Chad Spensky et al.NDSS 2019 · 114 citations
  5. FirmUSB: Vetting USB Device Firmware using Domain Informed Symbolic ExecutionGrant Hernandez, Farhaan Fowze, Dave (Jing) Tian, Tuba Yavuz et al.CCS 2017 · 98 citations

Related papers

  1. FIRM-AFL: High-Throughput Greybox Fuzzing of IoT Firmware via Augmented Process EmulationYaowen Zheng, Ali Davanian, Heng Yin, Chengyu Song et al.USENIX Security 2019 · 279 citations
  2. Facilitating Non-Intrusive In-Vivo Firmware Testing with Stateless InstrumentationJiameng Shi, Wenqiang Li, Wenwen Wang, Le GuanNDSS 2024
  3. IoTFuzzer: Discovering Memory Corruptions in IoT Through App-based FuzzingJiongyi Chen, Wenrui Diao, Qingchuan Zhao, Chaoshun Zuo et al.NDSS 2018 · 311 citations
  4. Fuzzware: Using Precise MMIO Modeling for Effective Firmware FuzzingTobias Scharnowski, Nils Bars, Moritz Schloegel, Eric Gustafson et al.USENIX Security 2022
  5. MultiFuzz: A Multi-Stream Fuzzer For Testing Monolithic FirmwareMichael Chesser, Surya Nepal, Damith C. RanasingheUSENIX Security 2024 · 13 citations
Dusk over the sea between two cliffs drawn in fine vertical lines