[Paper Review] Improving Function Coverage with Munch: A Hybrid Fuzzing and Directed Symbolic Execution Approach
Munch is a hybrid fuzzer-symbolic execution framework that improves function coverage in C programs by combining fuzzing with targeted symbolic execution. It achieves higher coverage—especially in deep, hard-to-reach functions—using two modes: fuzzing first to identify uncovered functions, then directed symbolic execution on those, and vice versa, reducing SMT solver queries and execution time while outperforming pure fuzzing or symbolic execution.
Fuzzing and symbolic execution are popular techniques for finding vulnerabilities and generating test-cases for programs. Fuzzing, a blackbox method that mutates seed input values, is generally incapable of generating diverse inputs that exercise all paths in the program. Due to the path-explosion problem and dependence on SMT solvers, symbolic execution may also not achieve high path coverage. A hybrid technique involving fuzzing and symbolic execution may achieve better function coverage than fuzzing or symbolic execution alone. In this paper, we present Munch, an open source framework implementing two hybrid techniques based on fuzzing and symbolic execution. We empirically show using nine large open-source programs that overall, Munch achieves higher (in-depth) function coverage than symbolic execution or fuzzing alone. Using metrics based on total analyses time and number of queries issued to the SMT solver, we also show that Munch is more efficient at achieving better function coverage.
Motivation & Objective
- To address low function coverage in deep program components, especially those unreachable via standard fuzzing or symbolic execution.
- To reduce the computational cost of symbolic execution by minimizing SMT solver queries through targeted exploration.
- To improve test coverage in highly modular or compositional software where components are reused across systems.
- To provide an open-source, production-ready framework that outperforms existing hybrid approaches in both coverage and efficiency.
- To empirically validate the effectiveness and efficiency of hybrid fuzzer-symbolic execution on real-world open-source programs.
Proposed method
- Augmenting KLEE with a shortest-path-based targeted search strategy to prioritize exploration of uncovered functions.
- Using AFL for initial fuzzing with manually supplied seed inputs to identify easily reachable functions.
- Applying a difference-set computation between fuzzing and symbolic execution results to identify uncovered functions for targeted symbolic exploration.
- Generating functionally diverse test cases via symbolic execution to enhance fuzzing input diversity and coverage.
- Implementing two operational modes: (1) fuzzing followed by targeted symbolic execution, and (2) symbolic execution to generate seeds for fuzzing.
- Instrumenting programs to track function-level coverage and guide symbolic execution toward uncovered targets.
Experimental results
Research questions
- RQ1Can a hybrid approach combining fuzzing and symbolic execution achieve higher function coverage than either technique used in isolation?
- RQ2Does targeted symbolic execution guided by uncovered function sets reduce the number of SMT solver queries and execution time?
- RQ3How effective is the hybrid approach in achieving deep function coverage in real-world, complex C programs?
- RQ4Can the framework be efficiently deployed and used out-of-the-box on standard Linux systems?
- RQ5How does the performance of Munch compare to existing hybrid tools like Driller in terms of coverage and efficiency?
Key findings
- Munch achieved higher function coverage than pure fuzzing or symbolic execution alone across nine real-world open-source programs.
- In all evaluated programs, Munch achieved higher coverage at deeper levels of the call graph, particularly for functions far from the entry point.
- The hybrid approach reduced total analysis time and SMT solver queries by more than half compared to symbolic execution alone.
- The framework demonstrated improved efficiency by focusing symbolic execution on uncovered functions, avoiding redundant exploration of already-covered paths.
- Munch outperformed both standalone fuzzing and symbolic execution in terms of coverage per unit of time and per query issued to the SMT solver.
- The open-source implementation of Munch is production-ready and deployable on standard Linux systems, unlike some prior tools such as Driller.
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.