NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SAVIOR: Towards Bug-Driven Hybrid Testing

Yaohui Chen, Peng Li, Jun Xu, Shengjian Guo, Rundong Zhou, Yulong Zhang, Tao Wei, Long Lu

TL;DR

SAVIOR is a hybrid testing framework that flips the script on traditional software testing by moving from a "coverage-driven" to a "bug-driven" approach. By prioritizing execution seeds likely to reach potential vulnerabilities and using SMT solvers to actively prove the existence of bugs along a path, SAVIOR discovers vulnerabilities up to 43.4% faster than state-of-the-art tools like Driller and QSYM.

What Problem Does This Paper Address?

Automated software testing typically relies on two pillars: Fuzzing (fast, random testing) and Concolic Execution (slow, mathematically precise path exploration). "Hybrid testing" combines them, using fuzzers for easy-to-reach code and concolic engines to break through complex "magic number" checks.

However, the authors identify a major inefficiency: current hybrid tools are obsessed with code coverage. They treat every new branch as equally important. In reality, large swaths of code are bug-free. A coverage-centric tool might spend hours solving complex constraints to reach a perfectly safe piece of code while ignoring a "bug-rich" path nearby. Furthermore, even if a tool reaches a vulnerable line of code, it might not provide the specific input needed to trigger the bug (e.g., an integer overflow that only happens at a specific maximum value).

Methods

SAVIOR introduces two novel techniques to make hybrid testing "bug-driven":

  1. Bug-driven Prioritization:
    • Static Labeling: Before testing begins, SAVIOR uses the Undefined Behavior Sanitizer (UBSan) to instrument the code with "labels" at every potentially dangerous location (e.g., array accesses, arithmetic operations).
  2. Importance Scoring: During execution, SAVIOR calculates an "importance score" for every seed. This score is based on how many unexplored bug labels are reachable from that seed's path. It prioritizes seeds that lead to "vulnerability-dense" regions of the code.
  3. Solving Decay: To prevent getting stuck on mathematically "hard" branches, SAVIOR penalizes the score of a branch every time a constraint-solving attempt fails.
  4. Bug-guided Verification:
    • Instead of just trying to pass a branch, SAVIOR's concolic engine actively tries to break the code. When it reaches a labeled site, it asks the SMT solver: "Given the current path constraints, is there any input that also satisfies the error condition (like an index out of bounds)?"
    • If the solver says "yes," SAVIOR has found a bug and generates a concrete test case as proof.

To make this performant, the authors implemented a Fork Server mode for their concolic engine (based on KLEE), significantly reducing the overhead of re-initializing the execution environment for every new seed.

Datasets

The authors evaluated SAVIOR against two main sets of targets:

  • LAVA-M: A standard research benchmark consisting of four programs (base64, uniq, md5sum, and who) with thousands of injected synthetic bugs.
  • Real-world Programs: Eight widely-used open-source projects, including tcpdump, libtiff, binutils (objdump, readelf), libxml2, libjpeg, and jasper. These programs had already been heavily fuzzed by the community, making new discoveries a high bar.

Key Insights and Ideas

  • Coverage $\neq$ Security: The most striking insight is that SAVIOR often finds bugs faster even when its total code coverage is lower than its competitors. This proves that "where" you test is more important than "how much" you test.
  • Verification as a First-Class Citizen: Traditional tools hope to "stumble" into a bug. SAVIOR treats bug detection as a reachability problem that can be solved mathematically.
  • Static-Dynamic Synergy: By using lightweight static analysis to guide heavy-duty dynamic exploration, SAVIOR bridges the gap between "blind" fuzzing and "expensive" formal verification.

Key Results

  • Speed: SAVIOR detected vulnerabilities 43.4% faster than DRILLER and 44.3% faster than QSYM on average.
  • Thoroughness: In a 24-hour window across the benchmarks, SAVIOR discovered 88 more unique bugs than Driller and 76 more than QSYM.
  • Real-world Impact: On 11 benchmark programs, SAVIOR triggered 481 UBSan violations, of which 243 were confirmed as real, unique bugs.
  • LAVA-M Performance: In the who benchmark, SAVIOR triggered 2,213 bugs, whereas QSYM only triggered 1,244, demonstrating the power of prioritizing bug-heavy paths.

Limitations and Future Work

  • Label Over-approximation: The static labeling (UBSan) is conservative and can produce "dummy" labels that don't represent real vulnerabilities. While SAVIOR includes a static filter that removes about 5% of these, many remain.
  • Data Dependency: The bug-guided verification only works if the vulnerability condition depends on the program input. Bugs triggered by internal state logic without direct input dependency might be missed.
  • Future Directions: The authors suggest using more precise static analysis (like "weakest precondition" calculations) to better predict if a path can ever trigger a bug before the concolic engine spends time exploring it.

Summary updated

BibTeX
@inproceedings{chen2020savior,
  author = {Yaohui Chen and Peng Li and Jun Xu and Shengjian Guo and Rundong Zhou and Yulong Zhang and Tao Wei and Long Lu},
  title = {{SAVIOR: Towards Bug-Driven Hybrid Testing}},
  booktitle = {SP},
  year = {2020},
  doi = {10.1109/sp40000.2020.00002},
}
Figure