arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2408.07797cs.SEcs.PL
收藏

多轮定向动态符号执行

Multi-Pass Targeted Dynamic Symbolic Execution

Tuba Yavuz

AI总结:

针对动态符号执行的路径爆炸问题,提出混合反向与正向推理的多轮定向动态符号执行方法,基于KLEE实现工具DESTINA,实验显示其能精准检测内存漏洞,平均路径数降4倍、速度提升2倍。

摘要:

动态符号执行(DSE)提供了一种精确的程序分析手段,可用于生成测试用例并检测包括内存漏洞在内的各类错误。然而,路径爆炸问题可能会阻碍符号执行器覆盖感兴趣的程序位置或路径。本文提出了一种多轮定向动态符号执行方法,该方法从目标程序位置出发反向遍历,直至到达指定入口点,以检查可达性、检测入口点与目标之间可行路径上的错误,并收集代码所访问内存位置的约束条件。我们的方法混合使用反向和正向推理轮次,引入了一个在反向遍历过程中填充的抽象地址空间,并采用合一化(unification)技术将抽象对象精确映射到具体地址空间中的对象。我们基于动态符号执行工具KLEE实现了该方法,开发出名为DESTINA的工具。我们使用SvComp基准测试集中内存安全和控制流类别的用例对DESTINA进行了评估。结果表明,DESTINA能够精确检测内存漏洞,并且在动态符号执行遭遇路径爆炸难题时,可帮助其更快到达目标位置。我们的方法平均可将探索的路径数量减少4倍,并实现2倍的速度提升。

英文摘要:

Dynamic symbolic execution (DSE) provides a precise means to analyze programs and it can be used to generate test cases and to detect a variety of bugs including memory vulnerabilities. However, the path explosion problem may prevent a symbolic executor from covering program locations or paths of interest. In this paper, we present a Multi-Pass Targeted Dynamic Symbolic Execution approach that starts from a target program location and moves backward until it reaches a specified entry point to check for reachability, to detect bugs on the feasible paths between the entry point and the target, and to collect constraints about the memory locations accessed by the code. Our approach uses a mix of backward and forward reasoning passes. It introduces an abstract address space that gets populated during the backward pass and uses unification to precisely map the abstract objects to the objects in the concrete address space. We have implemented our approach in a tool called DESTINA using KLEE, a DSE tool. We have evaluated DESTINA using SvComp benchmarks from the memory safety and control-flow categories. Results show that DESTINA can detect memory vulnerabilities precisely and it can help DSE reach target locations faster when it struggles with the path explosion. Our approach achieves on average 4X reduction in the number of paths explored and 2X speedup.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑