符号安全断言:Hunt程序弱点
Symbolic Security Predicates: Hunt Program Weaknesses
摘要:
动态符号执行(DSE)是一种在混合模糊和自动错误检测过程中进行路径探索的强大方法。我们提出了安全谓词,以有效地检测未定义的行为和内存访问违规错误。最初,我们象征性地在不会触发任何错误的路径上执行程序(混合模糊可能会探索这些路径)。然后我们构造了一个符号安全谓词来验证一些错误条件。因此,我们可以改变程序的数据流,使其具有空指针解引用、被零除、越界访问或整数溢出的弱点。与静态分析不同,动态符号执行不仅报告错误,而且生成新的输入数据来重现错误。此外,我们介绍了常见的C/C++标准库函数的函数语义建模。我们的目标是用一个符号公式来模拟函数内部的控制流。这有助于错误检测,加快路径探索,并克服路径谓词中的过度约束。我们实现我们的动态符号执行工具Sydr所提出的技术。因此,我们利用Sydr的强大方法,例如消除不相关约束的路径谓词切片。我们提出朱丽叶动态来衡量动态错误检测工具的准确性。测试系统还验证生成的输入是否触发消毒剂。我们评估Sydr准确度为11 CWE从朱丽叶测试套件。Sydr显示了95.59%的整体准确度。我们公开了Sydr评估工件,以促进结果的可重复性。
英文摘要:
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. 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。