基于逻辑炸弹的符号执行工具性能测试
On Benchmarking the Capability of Symbolic Execution Tools with Logic Bombs
摘要:
符号执行已成为软件测试和程序分析中不可缺少的技术。有几个现成的符号执行工具,我们需要一个实用的基准方法来了解它们的功能。因此,本文介绍了一种新的方法来基准符号执行工具,在细粒度和有效的方式。特别是,我们的方法评估这些工具的性能对一般的符号执行技术,如浮点数和符号存储器所面临的已知挑战。为此,我们首先调查相关的论文和系统化的象征执行的挑战。我们从文献中提取了12个不同的挑战,并将其分为两类:符号推理挑战和路径爆炸挑战。然后,我们开发了一个逻辑炸弹的数据集和一个框架来自动基准测试符号执行工具。对于每个挑战,我们的数据集包含几个逻辑炸弹,每个都由一个特定的挑战性问题来保护。如果一个符号执行工具能够找到触发逻辑炸弹的测试用例,则表明该工具能够处理相应的问题。我们用三种流行的符号执行工具进行了真实世界的实验:KLEE,Angr和Triton。实验结果表明,我们的方法可以揭示他们的能力和局限性,在处理特定的问题准确,有效。基准测试过程通常只需要几十分钟来评估一个工具。我们在GitHub上以开源方式发布我们的数据集,旨在更好地促进社区在基准符号执行工具方面开展未来的工作。
英文摘要:
Symbolic execution now becomes an indispensable technique for software testing and program analysis. There are several symbolic execution tools available off-the-shelf, and we need a practical benchmark approach to learn their capabilities. Therefore, this paper introduces a novel approach to benchmark symbolic execution tools in a fine-grained and efficient manner. In particular, our approach evaluates the performance of such tools against the known challenges faced by general symbolic execution techniques, such as floating-point numbers and symbolic memories. To this end, we first survey related papers and systematize the challenges of symbolic execution. We extract 12 distinct challenges from the literature and categorize them into two categories: symbolic-reasoning challenges and path-explosion challenges. Then, we develop a dataset of logic bombs and a framework to benchmark symbolic execution tools automatically. For each challenge, our dataset contains several logic bombs, each of which is guarded by a specific challenging problem. If a symbolic execution tool can find test cases to trigger logic bombs, it indicates that the tool can handle the corresponding problems. We have conducted real-world experiments with three popular symbolic execution tools: KLEE, Angr, and Triton. Experimental results show that our approach can reveal their capabilities and limitations in handling particular issues accurately and efficiently. The benchmark process generally takes only dozens of minutes to evaluate a tool. We release our dataset on GitHub as open source, with an aim to better facilitate the community to conduct future work on benchmarking symbolic execution tools.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。