Forming Faster Firmware Fuzzers
摘要
A recent trend for assessing the security of an embedded system's firmware is rehosting, the art of running the firmware in a virtualized environment, rather than on the original hardware platform. One significant use case for firmware rehosting is fuzzing to dynamically uncover security vulnerabilities. However, state-of-the-art implementations suffer from high emulator-induced overhead, leading to less-than-optimal execution speeds. Instead of emulation, we propose near-native rehosting: running embedded firmware as a Linux userspace process on a high-performance system that shares the instruction set family with the targeted device. We implement this approach with SAFIREFUZZ, a throughput-optimized rehosting and fuzzing framework for ARM Cortex-M firmware. SAFIREFUZZ takes monolithic binary-only firmware images and uses high-level emulation (HLE) and dynamic binary rewriting to run them on far more powerful hardware with low overhead. By replicating experiments of HALucinator, the state-of-the-art HLE-based rehosting system for binary firmware, we show that SAFIREFUZZ can provide a 690x throughput increase on average during 24-hour fuzzing campaigns while covering up to 30% more basic blocks.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 14 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- MultiFuzz: A Multi-Stream Fuzzer For Testing Monolithic Firmware 引用了 What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices
- MultiFuzz: A Multi-Stream Fuzzer For Testing Monolithic Firmware 引用了 Automatic Firmware Emulation through Invalidity-guided Knowledge Inference
- MultiFuzz: A Multi-Stream Fuzzer For Testing Monolithic Firmware 引用了 Jetset: Targeted Firmware Rehosting for Embedded Systems
- MultiFuzz: A Multi-Stream Fuzzer For Testing Monolithic Firmware 引用了 FIRM-AFL: High-Throughput Greybox Fuzzing of IoT Firmware via Augmented Process Emulation
- FlexEmu: Towards Flexible MCU Peripheral Emulation 引用了 MultiFuzz: A Multi-Stream Fuzzer For Testing Monolithic Firmware
- FlexEmu: Towards Flexible MCU Peripheral Emulation 引用了 Automatic Firmware Emulation through Invalidity-guided Knowledge Inference
- FlexEmu: Towards Flexible MCU Peripheral Emulation 引用了 Jetset: Targeted Firmware Rehosting for Embedded Systems
- FlexEmu: Towards Flexible MCU Peripheral Emulation 引用了 SHiFT: Semi-hosted Fuzz Testing for Embedded Applications
- User-Space Dependency-Aware Rehosting for Linux-Based Firmware Binaries 引用了 Automatic Firmware Emulation through Invalidity-guided Knowledge Inference
- User-Space Dependency-Aware Rehosting for Linux-Based Firmware Binaries 引用了 Jetset: Targeted Firmware Rehosting for Embedded Systems
- User-Space Dependency-Aware Rehosting for Linux-Based Firmware Binaries 引用了 FIRM-AFL: High-Throughput Greybox Fuzzing of IoT Firmware via Augmented Process Emulation
- 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 引用了 RetroWrite: Statically Instrumenting COTS Binaries for Fuzzing and Sanitization
- SoK: Prudent Evaluation Practices for Fuzzing 引用了 FIRM-AFL: High-Throughput Greybox Fuzzing of IoT Firmware via Augmented Process Emulation
- 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 引用了 What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices
- FIRM-AFL: High-Throughput Greybox Fuzzing of IoT Firmware via Augmented Process Emulation 引用了 What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices
- SHiFT: Semi-hosted Fuzz Testing for Embedded Applications 引用了 What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices
- SHiFT: Semi-hosted Fuzz Testing for Embedded Applications 引用了 Automatic Firmware Emulation through Invalidity-guided Knowledge Inference
- SHiFT: Semi-hosted Fuzz Testing for Embedded Applications 引用了 Jetset: Targeted Firmware Rehosting for Embedded Systems
- SHiFT: Semi-hosted Fuzz Testing for Embedded Applications 引用了 FIRM-AFL: High-Throughput Greybox Fuzzing of IoT Firmware via Augmented Process Emulation
引用它的顶会 Paper14
- SoK: Prudent Evaluation Practices for FuzzingMoritz Schloegel, Nils Bars, Nico Schiller, Lukas Bernhard 等S&P 2024 · 69 次引用
- SHiFT: Semi-hosted Fuzz Testing for Embedded ApplicationsAlejandro Mera, Changming Liu, Ruimin Sun, Engin Kirda 等USENIX Security 2024 · 15 次引用
- MultiFuzz: A Multi-Stream Fuzzer For Testing Monolithic FirmwareMichael Chesser, Surya Nepal, Damith C. RanasingheUSENIX Security 2024 · 13 次引用
- User-Space Dependency-Aware Rehosting for Linux-Based Firmware BinariesChuan Qin, Cen Zhang, Yaowen Zheng, Puzhuo Liu 等NDSS 2026 · 2 次引用
- FlexEmu: Towards Flexible MCU Peripheral EmulationChongqing Lei, Zhen Ling, Xiangyu Xu, Shaofeng Li 等CCS 2025 · 1 次引用
它引用的 Paper19
- FIRM-AFL: High-Throughput Greybox Fuzzing of IoT Firmware via Augmented Process EmulationYaowen Zheng, Ali Davanian, Heng Yin, Chengyu Song 等USENIX Security 2019 · 279 次引用
- What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded DevicesMarius Muench, Jan Stijohann, Frank Kargl, Aurélien Francillon 等NDSS 2018 · 202 次引用
- RetroWrite: Statically Instrumenting COTS Binaries for Fuzzing and SanitizationSushant Dinesh, Nathan Burow, Dongyan Xu, Mathias PayerS&P 2020 · 187 次引用
- 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 次引用
相关 Paper
- Khost: KVM-based Near Native MCU Firmware RehostingChunlin Wang, Yicheng Yang, Yuan Zhang, Haoyu Xiao 等USENIX Security 2026
- HALucinator: Firmware Re-hosting Through Abstraction Layer EmulationAbraham A. Clements, Eric Gustafson, Tobias Scharnowski, Paul Grosen 等USENIX Security 2020
- LEMIX: Enabling Testing of Embedded Applications as Linux ApplicationsSai Ritvik Tanksalkar, Siddharth Muralee, Srihari Danduri, Paschal C. Amusuo 等USENIX Security 2025
- Fuzzware: Using Precise MMIO Modeling for Effective Firmware FuzzingTobias Scharnowski, Nils Bars, Moritz Schloegel, Eric Gustafson 等USENIX Security 2022
- BoardRunner: Automatic Firmware Rehosting Using High-Fidelity Compositional Device ModelsMuhammad Hammad Bashir, Michael Rooney, Colin Smith, Dongyan Xu 等CCS 2026
