arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.07783cs.PL
收藏

基于抽象解释的可靠符号执行及其在安全中的应用

Sound Symbolic Execution via Abstract Interpretation and its Application to Security

Ignacio Tiraboschi, Tamara Rezk, Xavier Rival

摘要:

符号执行是一种程序分析技术,通常用于确定程序是否违反属性,并在发现违反的情况下生成可以触发它们的输入。在不干扰等安全属性的上下文中使用,当发现不安全的信息流时,符号执行在寻找反例对时是精确的,但是它只在一定范围内是合理的,因此它不允许证明执行超出给定范围的程序的正确性。相比之下,基于抽象解释的静态分析保证了可靠性,但通常缺乏提供反例迹对的能力。在本文中,我们建议编织两者以获得两个世界中最好的。我们通过一系列静态分析证明了这一点,包括一个名为RedSoundRSE的静态分析,旨在验证非干扰性。RedSoundRSE既提供了语义上合理的结果,也提供了导出一个边界内的反例对的能力。它依赖于符号执行和抽象域的组合,灵感来自于众所周知的简化产品概念。我们形式化RedSoundRSE,并证明其合理性以及其相对精度达到一个界限。我们还提供了RedSoundRSE的原型实现,并在具有挑战性的示例样本上对其进行评估。

英文摘要:

Symbolic execution is a program analysis technique commonly utilized to determine whether programs violate properties and, in case violations are found, to generate inputs that can trigger them. Used in the context of security properties such as noninterference, symbolic execution is precise when looking for counterexample pairs of traces when insecure information flows are found, however it is sound only up to a bound thus it does not allow to prove the correctness of programs with executions beyond the given bound. By contrast, abstract interpretation-based static analysis guarantees soundness but generally lacks the ability to provide counterexample pairs of traces. In this paper, we propose to weave both to obtain the best of two worlds. We demonstrate this with a series of static analyses, including a static analysis called RedSoundRSE aimed at verifying noninterference. RedSoundRSE provides both semantically sound results and the ability to derive counterexample pairs of traces up to a bound. It relies on a combination of symbolic execution and abstract domains inspired by the well known notion of reduced product. We formalize RedSoundRSE and prove its soundness as well as its relative precision up to a bound. We also provide a prototype implementation of RedSoundRSE and evaluate it on a sample of challenging examples.

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

↑