IFIZZ: Deep-State and Efficient Fault-Scenario Generation to Test IoT Firmware
Peiyu Liu, Shouling Ji, Xuhong Zhang, Qinming Dai, Kangjie Lu, Lirong Fu, Wenzhi Chen, Peng Cheng, Wenhai Wang, Raheem Beyah
摘要
IoT devices are abnormally prone to diverse errors due to harsh environments and limited computational capabilities. As a result, correct error handling is critical in IoT. Implementing correct error handling is non-trivial, thus requiring extensive testing such as fuzzing. However, existing fuzzing cannot effectively test IoT error-handling code. First, errors typically represent corner cases, thus are hard to trigger. Second, testing error-handling code would frequently crash the execution, which prevents fuzzing from testing following deep error paths.In this paper, we propose IFIZZ, a new bug detection system specifically designed for testing error-handling code in Linux-based IoT firmware. IFIZZ first employs an automated binary-based approach to identify realistic runtime errors by analyzing errors and error conditions in closed-source IoT firmware. Then, IFIZZ employs state-aware and bounded error generation to reach deep error paths effectively. We implement and evaluate IFIZZ on 10 popular IoT firmware. The results show that IFIZZ can find many bugs hidden in deep error paths. Specifically, IFIZZ finds 109 critical bugs, 63 of which are even in widely used IoT libraries. IFIZZ also features high code coverage and efficiency, and covers 67.3% more error paths than normal execution. Meanwhile, the depth of error handling covered by IFIZZ is 7.3 times deeper than that covered by the state-of-the-art method. Furthermore, IFIZZ has been practically adopted and deployed in a worldwide leading IoT company. We will open-source IFIZZ to facilitate further research in this area.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- IoTFuzzer: Discovering Memory Corruptions in IoT Through App-based Fuzzing 引用了 Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
- IoTFuzzer: Discovering Memory Corruptions in IoT Through App-based Fuzzing 引用了 Scalable Graph-based Bug Search for Firmware Images
- A large-scale empirical analysis of the vulnerabilities introduced by third-party components in IoT firmware 引用了 Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
- A large-scale empirical analysis of the vulnerabilities introduced by third-party components in IoT firmware 引用了 Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
- A large-scale empirical analysis of the vulnerabilities introduced by third-party components in IoT firmware 引用了 Scalable Graph-based Bug Search for Firmware Images
- CPscan: Detecting Bugs Caused by Code Pruning in IoT Kernels 引用了 Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
- CPscan: Detecting Bugs Caused by Code Pruning in IoT Kernels 引用了 IoTFuzzer: Discovering Memory Corruptions in IoT Through App-based Fuzzing
- CPscan: Detecting Bugs Caused by Code Pruning in IoT Kernels 引用了 Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
- CPscan: Detecting Bugs Caused by Code Pruning in IoT Kernels 引用了 Scalable Graph-based Bug Search for Firmware Images
- Mens Sana In Corpore Sano: Sound Firmware Corpora for Vulnerability Research 引用了 Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
- Mens Sana In Corpore Sano: Sound Firmware Corpora for Vulnerability Research 引用了 IoTFuzzer: Discovering Memory Corruptions in IoT Through App-based Fuzzing
- Mens Sana In Corpore Sano: Sound Firmware Corpora for Vulnerability Research 引用了 CPscan: Detecting Bugs Caused by Code Pruning in IoT Kernels
- Mens Sana In Corpore Sano: Sound Firmware Corpora for Vulnerability Research 引用了 Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
- Mens Sana In Corpore Sano: Sound Firmware Corpora for Vulnerability Research 引用了 Scalable Graph-based Bug Search for Firmware Images
- Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection 引用了 Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
- Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection 引用了 Scalable Graph-based Bug Search for Firmware Images
- Scalable Graph-based Bug Search for Firmware Images 引用了 Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
- Arguzz: Testing zkVMs for Soundness and Completeness Bugs 引用了 No Peer, no Cry: Network Application Fuzzing via Fault Injection
引用它的顶会 Paper6
- A large-scale empirical analysis of the vulnerabilities introduced by third-party components in IoT firmwareBinbin Zhao, Shouling Ji, Jiacheng Xu, Yuan Tian 等ISSTA 2022 · 49 次引用
- CPscan: Detecting Bugs Caused by Code Pruning in IoT KernelsLirong Fu, Shouling Ji, Kangjie Lu, Peiyu Liu 等CCS 2021 · 7 次引用
- No Peer, no Cry: Network Application Fuzzing via Fault InjectionNils Bars, Moritz Schloegel, Nico Schiller, Lukas Bernhard 等CCS 2024 · 5 次引用
- Arguzz: Testing zkVMs for Soundness and Completeness BugsChristoph Hochrainer, Valentin Wüstholz, Maria ChristakisUSENIX Security 2026 · 2 次引用
- Mens Sana In Corpore Sano: Sound Firmware Corpora for Vulnerability ResearchRené Helmke, Elmar Padilla, Nils AschenbruckNDSS 2025
它引用的 Paper16
- Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity DetectionXiaojun Xu, Chang Liu, Qian Feng, Heng Yin 等CCS 2017 · 682 次引用
- Scalable Graph-based Bug Search for Firmware ImagesQian Feng, Rundong Zhou, Chengcheng Xu, Yao Cheng 等CCS 2016 · 456 次引用
- Towards Automated Dynamic Analysis for Linux-based Embedded FirmwareDaming D. Chen, Maverick Woo, David Brumley, Manuel EgeleNDSS 2016 · 428 次引用
- T-Fuzz: Fuzzing by Program TransformationHui Peng, Yan Shoshitaishvili, Mathias PayerS&P 2018 · 326 次引用
- IoTFuzzer: Discovering Memory Corruptions in IoT Through App-based FuzzingJiongyi Chen, Wenrui Diao, Qingchuan Zhao, Chaoshun Zuo 等NDSS 2018 · 311 次引用
相关 Paper
- Fuzzing Error Handling Code using Context-Sensitive Software Fault InjectionZu-Ming Jiang, Jia-Ju Bai, Kangjie Lu, Shi-Min HuUSENIX Security 2020
- Labrador: Response Guided Directed Fuzzing for Black-box IoT DevicesHangtian Liu, Shuitao Gan, Chao Zhang, Zicong Gao 等S&P 2024 · 25 次引用
- AidFuzzer: Adaptive Interrupt-Driven Firmware Fuzzing via Run-Time State RecognitionJianqiang Wang, Qinying Wang, Tobias Scharnowski, Li Shi 等USENIX Security 2025
- WingMuzz: Blackbox Testing of IoT Protocols via Two-dimensional Fuzzing ScheduleXiaogang Zhu, Enze Dai, Xiaotao Feng, Shaohua Wang 等ASE 2025
- P2IM: Scalable and Hardware-independent Firmware Testing via Automatic Peripheral Interface ModelingBo Feng, Alejandro Mera, Long LuUSENIX Security 2020
