P2IM: Scalable and Hardware-independent Firmware Testing via Automatic Peripheral Interface Modeling
摘要
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 PIM, abstracts diverse peripherals and handles firmware I/O on the fly based on automatically generated models. PIM 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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 75 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- DICE: Automatic Emulation of DMA Input Channels for Dynamic Firmware Analysis 引用了 PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS Boundary
- DICE: Automatic Emulation of DMA Input Channels for Dynamic Firmware Analysis 引用了 Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
- DICE: Automatic Emulation of DMA Input Channels for Dynamic Firmware Analysis 引用了 Inception: System-Wide Security Testing of Real-World Embedded Systems Software
- DICE: Automatic Emulation of DMA Input Channels for Dynamic Firmware Analysis 引用了 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 引用了 What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices
- SoK: Prudent Evaluation Practices for Fuzzing 引用了 DICE: Automatic Emulation of DMA Input Channels for Dynamic Firmware Analysis
- SoK: Prudent Evaluation Practices for Fuzzing 引用了 What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices
- SoK: Prudent Evaluation Practices for Fuzzing 引用了 Snipuzz: Black-box Fuzzing of IoT Firmware via Message Snippet Inference
- Inception: System-Wide Security Testing of Real-World Embedded Systems Software 引用了 What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices
- FirmUSB: Vetting USB Device Firmware using Domain Informed Symbolic Execution 引用了 Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
- What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices 引用了 Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
- Automatic Firmware Emulation through Invalidity-guided Knowledge Inference 引用了 DICE: Automatic Emulation of DMA Input Channels for Dynamic Firmware Analysis
- Automatic Firmware Emulation through Invalidity-guided Knowledge Inference 引用了 Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
- Automatic Firmware Emulation through Invalidity-guided Knowledge Inference 引用了 What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices
- Jetset: Targeted Firmware Rehosting for Embedded Systems 引用了 Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
- Jetset: Targeted Firmware Rehosting for Embedded Systems 引用了 FirmUSB: Vetting USB Device Firmware using Domain Informed Symbolic Execution
- Jetset: Targeted Firmware Rehosting for Embedded Systems 引用了 What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices
- Snipuzz: Black-box Fuzzing of IoT Firmware via Message Snippet Inference 引用了 Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
- Snipuzz: Black-box Fuzzing of IoT Firmware via Message Snippet Inference 引用了 What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices
引用它的顶会 Paper75
- Snipuzz: Black-box Fuzzing of IoT Firmware via Message Snippet InferenceXiaotao Feng, Ruoxi Sun, Xiaogang Zhu, Minhui Xue 等CCS 2021 · 146 次引用
- DICE: Automatic Emulation of DMA Input Channels for Dynamic Firmware AnalysisAlejandro Mera, Bo Feng, Long Lu, Engin KirdaS&P 2021 · 81 次引用
- Automatic Firmware Emulation through Invalidity-guided Knowledge InferenceWei Zhou, Le Guan, Peng Liu, Yuqing ZhangUSENIX Security 2021 · 76 次引用
- Jetset: Targeted Firmware Rehosting for Embedded SystemsEvan Johnson, Maxwell Bland, Yifei Zhu, Joshua Mason 等USENIX Security 2021 · 76 次引用
- SoK: Prudent Evaluation Practices for FuzzingMoritz Schloegel, Nils Bars, Nico Schiller, Lukas Bernhard 等S&P 2024 · 69 次引用
它引用的 Paper6
- Towards Automated Dynamic Analysis for Linux-based Embedded FirmwareDaming D. Chen, Maverick Woo, David Brumley, Manuel EgeleNDSS 2016 · 428 次引用
- What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded DevicesMarius Muench, Jan Stijohann, Frank Kargl, Aurélien Francillon 等NDSS 2018 · 202 次引用
- Inception: System-Wide Security Testing of Real-World Embedded Systems SoftwareNassim Corteggiani, Giovanni Camurati, Aurélien FrancillonUSENIX Security 2018 · 117 次引用
- PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS BoundaryDokyung Song, Felicitas Hetzelt, Dipanjan Das, Chad Spensky 等NDSS 2019 · 114 次引用
- FirmUSB: Vetting USB Device Firmware using Domain Informed Symbolic ExecutionGrant Hernandez, Farhaan Fowze, Dave (Jing) Tian, Tuba Yavuz 等CCS 2017 · 98 次引用
相关 Paper
- FIRM-AFL: High-Throughput Greybox Fuzzing of IoT Firmware via Augmented Process EmulationYaowen Zheng, Ali Davanian, Heng Yin, Chengyu Song 等USENIX Security 2019 · 279 次引用
- Facilitating Non-Intrusive In-Vivo Firmware Testing with Stateless InstrumentationJiameng Shi, Wenqiang Li, Wenwen Wang, Le GuanNDSS 2024
- IoTFuzzer: Discovering Memory Corruptions in IoT Through App-based FuzzingJiongyi Chen, Wenrui Diao, Qingchuan Zhao, Chaoshun Zuo 等NDSS 2018 · 311 次引用
- Fuzzware: Using Precise MMIO Modeling for Effective Firmware FuzzingTobias Scharnowski, Nils Bars, Moritz Schloegel, Eric Gustafson 等USENIX Security 2022
- MultiFuzz: A Multi-Stream Fuzzer For Testing Monolithic FirmwareMichael Chesser, Surya Nepal, Damith C. RanasingheUSENIX Security 2024 · 13 次引用
