[Paper Review] Snipuzz: Black-box Fuzzing of IoT Firmware via Message Snippet Inference
Snipuzz is a novel black-box fuzzing framework for IoT firmware that infers message snippets from device responses to guide mutation, enabling grammar-aware testing without prior protocol knowledge. It discovered 5 zero-day vulnerabilities across 20 real-world devices, with 3 unique to its approach.
The proliferation of Internet of Things (IoT) devices has made people's lives more convenient, but it has also raised many security concerns. Due to the difficulty of obtaining and emulating IoT firmware, the black-box fuzzing of IoT devices has become a viable option. However, existing black-box fuzzers cannot form effective mutation optimization mechanisms to guide their testing processes, mainly due to the lack of feedback. It is difficult or even impossible to apply existing grammar-based fuzzing strategies. Therefore, an efficient fuzzing approach with syntax inference is required in the IoT fuzzing domain. To address these critical problems, we propose a novel automatic black-box fuzzing for IoT firmware, termed Snipuzz. Snipuzz runs as a client communicating with the devices and infers message snippets for mutation based on the responses. Each snippet refers to a block of consecutive bytes that reflect the approximate code coverage in fuzzing. This mutation strategy based on message snippets considerably narrows down the search space to change the probing messages. We compared Snipuzz with four state-of-the-art IoT fuzzing approaches, i.e., IoTFuzzer, BooFuzz, Doona, and Nemesys. Snipuzz not only inherits the advantages of app-based fuzzing (e.g., IoTFuzzer, but also utilizes communication responses to perform efficient mutation. Furthermore, Snipuzz is lightweight as its execution does not rely on any prerequisite operations, such as reverse engineering of apps. We also evaluated Snipuzz on 20 popular real-world IoT devices. Our results show that Snipuzz could identify 5 zero-day vulnerabilities, and 3 of them could be exposed only by Snipuzz. All the newly discovered vulnerabilities have been confirmed by their vendors.
Motivation & Objective
- Address the challenge of black-box fuzzing in IoT firmware due to lack of internal feedback and unknown communication protocols.
- Overcome the limitations of existing fuzzers that rely on random mutation or require grammar specifications.
- Enable efficient, feedback-driven mutation in IoT firmware testing without reverse engineering or firmware access.
- Improve vulnerability discovery by inferring grammatical roles of message bytes from device response patterns.
Proposed method
- Snipuzz operates as a client that communicates with IoT devices and observes their response messages to infer message snippets.
- Message snippets are blocks of consecutive bytes that correlate with code coverage changes, derived from response variations during mutation.
- The framework uses response-based feedback to guide mutation, prioritizing input changes that alter device behavior.
- It performs syntactic inference by analyzing how response differences correspond to input modifications, enabling grammar-aware mutation without predefined grammar rules.
- Mutation is guided by identifying which input segments cause distinct responses, allowing targeted exploration of input space.
- The system recombines inferred message snippets to generate new, valid inputs that explore deeper firmware execution paths.
Experimental results
Research questions
- RQ1How can black-box fuzzing of IoT firmware be made more effective when no internal execution feedback or protocol grammar is available?
- RQ2Can device response patterns be leveraged to infer meaningful message structure and guide mutation in the absence of grammar specifications?
- RQ3To what extent can response-based feedback improve mutation efficiency and vulnerability discovery in IoT firmware?
- RQ4Can a lightweight, no-prerequisite fuzzing framework outperform existing state-of-the-art IoT fuzzers in zero-day vulnerability detection?
Key findings
- Snipuzz discovered 5 zero-day vulnerabilities across 20 real-world consumer IoT devices, with 3 vulnerabilities uniquely exposed by its approach.
- The framework outperformed four state-of-the-art fuzzers—IoTFuzzer, BooFuzz, Doona, and Nemesys—by combining the benefits of app-based fuzzing with response-driven feedback.
- Snipuzz achieved effective mutation without requiring firmware emulation, reverse engineering, or prior protocol knowledge.
- The response-based feedback mechanism enabled targeted mutation, significantly narrowing the search space compared to blind random mutation.
- The method demonstrated effectiveness even in devices with non-standard or complex communication formats, where grammar-based approaches fail.
- All discovered vulnerabilities were confirmed by vendors, validating the practical impact of Snipuzz in real-world security testing.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.