Symbolic Security Predicates: Hunt Program Weaknesses

Alexey Vishnyakov, Vlada Logunova, Eli Kobrin, Daniil Kuts, Darya Parygina +1 more
11/10/2021
cs.CRcs.SE

Official code: ispras/juliet-dynamic (39 stars, Apache-2.0, last commit 2023-04-18).

Abstract

Dynamic symbolic execution (DSE) is a powerful method for path exploration during hybrid fuzzing and automatic bug detection. We propose security predicates to effectively detect undefined behavior and memory access violation errors.

Show full abstract

Initially, we symbolically execute program on paths that don't trigger any errors (hybrid fuzzing may explore these paths). Then we construct a symbolic security predicate to verify some error condition. Thus, we may change the program data flow to entail null pointer dereference, division by zero, out-of-bounds access, or integer overflow weaknesses. Unlike static analysis, dynamic symbolic execution does not only report errors but also generates new input data to reproduce them. Furthermore, we introduce function semantics modeling for common C/C++ standard library functions. We aim to model the control flow inside a function with a single symbolic formula. This assists bug detection, speeds up path exploration, and overcomes overconstraints in path predicate. We implement the proposed techniques in our dynamic symbolic execution tool Sydr. Thus, we utilize powerful methods from Sydr such as path predicate slicing that eliminates irrelevant constraints. We present Juliet Dynamic to measure dynamic bug detection tools accuracy. The testing system also verifies that generated inputs trigger sanitizers. We evaluate Sydr accuracy for 11 CWEs from Juliet test suite. Sydr shows 95.59% overall accuracy. We make Sydr evaluation artifacts publicly available to facilitate results reproducibility.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Juliet C/C++ Dynamic Test Suite

3910Sep 17, 20213 years agoApache-2.0
binarybinary-analysischeckerscwedynamic+4 more

Similar Papers

Cite this paper

@article{vishnyakov2021symbolic,
  title  = {Symbolic Security Predicates: Hunt Program Weaknesses},
  author = {Alexey Vishnyakov and Vlada Logunova and Eli Kobrin and Daniil Kuts and Darya Parygina and Andrey Fedotov},
  year   = {2021},
  eprint = {2111.05770},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.05770}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2111.05770.svg)](https://codeofpaper.com/paper/2111.05770)

Discussion