[Paper Review] Evaluating Manual Intervention to Address the Challenges of Bug Finding with KLEE
This paper introduces Hemiptera, a novel corpus of 133 real-world security bugs in open-source software, and evaluates KLEE's symbolic execution on it. The study identifies recurring code patterns that challenge symbolic execution scalability and demonstrates that manual interventions—such as adding logical constraints and using driver programs—significantly improve code coverage and bug detection, though limitations remain.
Symbolic execution has shown its ability to find security-relevant flaws in software, but faces significant scalability challenges. There is a commonly held belief that manual intervention by an expert can help alleviate these limiting factors. However, there has been little formal investigation of this idea. In this paper, we present our experiences applying the KLEE symbolic execution engine to a new bug corpus, and of using manual intervention to alleviate the issues encountered. Our contributions are (1) Hemiptera, a novel corpus of over 130 bugs in real world software, (2) a comprehensive evaluation of the KLEE symbolic execution engine on Hemiptera with a categorisation of frequently occurring software patterns that are problematic for symbolic execution, and (3) an evaluation of manual mitigations aimed at addressing the underlying issues of symbolic execution. Our experience shows that manual intervention can increase both code coverage and bug detection in many situations. It is not a silver bullet however, and we discuss its limitations and the challenges encountered.
Motivation & Objective
- To address the lack of real-world, diverse, and well-characterized bug corpora for evaluating symbolic execution tools.
- To identify and categorize common code constructs in real-world software that hinder symbolic execution scalability in KLEE.
- To empirically evaluate the feasibility and effectiveness of manual intervention techniques in overcoming these scalability challenges.
- To provide a publicly shared, high-fidelity benchmark (Hemiptera) to support future research in symbolic execution and automated program analysis.
Proposed method
- Constructed Hemiptera, a corpus of 133 real security bugs from open-source C programs, each with a commit ID and a minimal test case.
- Performed large-scale symbolic execution of 24 program versions across eight real-world applications using KLEE to identify scalability bottlenecks.
- Categorized recurring code patterns causing state space explosion and symbolic execution failure, such as complex loops, pointer arithmetic, and system call handling.
- Applied manual mitigation techniques including insertion of logical assumptions, early state termination, and use of custom driver programs to guide symbolic execution.
- Measured improvements in code coverage and bug detection rates before and after manual interventions.
- Shared all raw data, scripts, and source code via GitHub to ensure reproducibility and community reuse.
Experimental results
Research questions
- RQ1What are the most common code patterns in real-world software that cause symbolic execution with KLEE to scale poorly?
- RQ2How effective are manual intervention techniques—such as logical assumptions and driver programs—in improving code coverage and bug detection in symbolic execution?
- RQ3To what extent do manual interventions mitigate the scalability issues identified in real-world programs?
- RQ4How does the performance of KLEE on Hemiptera compare to synthetic or limited real-world benchmarks in terms of bug detection and coverage?
- RQ5Can a manually curated, real-world bug corpus like Hemiptera serve as a reliable benchmark for evaluating symbolic execution tools and future automated solutions?
Key findings
- Hemiptera contains 133 real, security-relevant bugs in open-source software, each with a unique commit ID and a minimal test case, making it the largest publicly available real-world bug corpus to date.
- Common code constructs such as loops with complex conditions, pointer arithmetic, and indirect function calls were identified as major causes of state space explosion and symbolic execution failure in KLEE.
- Manual interventions—including logical assumptions and driver programs—led to measurable improvements in both code coverage and the number of bugs detected across multiple targets.
- Despite improvements, manual intervention is not a universal solution; some patterns remain intractable even with expert guidance, highlighting persistent scalability limitations.
- The study demonstrates that manual mitigation is a viable and effective strategy in real-world symbolic execution deployment, especially when automated solutions fail.
- The authors conclude that Hemiptera is a valuable benchmark for evaluating both manual and automated symbolic execution techniques due to its realism and diversity.
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.