[Paper Review] Combining Static and Dynamic Analysis for Vulnerability Detection
This paper presents a hybrid vulnerability detection approach combining static taint analysis and dynamic genetic algorithm-based input generation to detect buffer overflow vulnerabilities in C programs. By using taint dependency sequences (TDS) to guide input generation and a fitness function based on runtime statement frequency spectra, the method efficiently targets exploitable paths, achieving faster and more accurate crash reproduction than traditional fuzzing or symbolic execution.
In this paper, we present a hybrid approach for buffer overflow detection in C code. The approach makes use of static and dynamic analysis of the application under investigation. The static part consists in calculating taint dependency sequences (TDS) between user controlled inputs and vulnerable statements. This process is akin to program slice of interest to calculate tainted data- and control-flow path which exhibits the dependence between tainted program inputs and vulnerable statements in the code. The dynamic part consists of executing the program along TDSs to trigger the vulnerability by generating suitable inputs. We use genetic algorithm to generate inputs. We propose a fitness function that approximates the program behavior (control flow) based on the frequencies of the statements along TDSs. This runtime aspect makes the approach faster and accurate. We provide experimental results on the Verisec benchmark to validate our approach.
Motivation & Objective
- To address the limitations of purely static or dynamic vulnerability detection by combining both approaches.
- To reduce false positives in static analysis and improve path coverage in dynamic analysis using taint dependency sequences (TDS).
- To automate the generation of malicious inputs that trigger buffer overflow vulnerabilities.
- To provide insights into exploitability by analyzing crash behavior and stack contents upon successful exploitation.
Proposed method
- Static analysis (STAC) performs taint data-flow analysis to identify TDS—paths from user inputs to vulnerable statements.
- TDS are used to guide dynamic input generation, focusing search on relevant program paths.
- A genetic algorithm (TAGA) evolves inputs to maximize fitness based on runtime statement frequency spectra.
- The fitness function compares execution traces against target TDS, rewarding inputs that follow the same control flow patterns.
- Program execution is instrumented to collect runtime traces for frequency spectrum analysis.
- Crash detection triggers debugging to analyze stack contents and assess exploitability.
Experimental results
Research questions
- RQ1Can taint dependency sequences (TDS) effectively reduce the search space for vulnerability-triggering inputs in dynamic analysis?
- RQ2How does a fitness function based on runtime statement frequency improve the efficiency and accuracy of genetic algorithm-based input generation?
- RQ3To what extent does combining static and dynamic analysis outperform symbolic execution or random fuzzing in detecting exploitable buffer overflows?
- RQ4Can the approach provide actionable insights into exploitability by analyzing crash-related runtime data?
- RQ5How does the method handle complex control structures, such as nested or composite IF conditions, in input generation?
Key findings
- The hybrid approach successfully detected buffer overflow vulnerabilities in the Verisec benchmark suite, demonstrating improved efficiency over traditional fuzzing.
- The use of TDS significantly reduced the search space by focusing on paths with actual taint propagation to vulnerable statements.
- The frequency spectrum-based fitness function enabled faster convergence of the genetic algorithm by approximating control flow behavior.
- Successful exploitation attempts produced crashes that allowed detailed analysis of stack contents, providing direct hints on exploitability.
- The approach outperformed purely coverage-driven or constraint-solving-based methods by combining path guidance with dynamic feedback.
- The method showed promise in handling complex control structures, though challenges remain with composite IF conditions in source code.
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.