arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2105.05159cs.PLcs.FLcs.SEcs.SYeess.SY
收藏

位向量程序和反编译二进制文件的LTL性质证明(扩展)

Proving LTL Properties of Bitvector Programs and Decompiled Binaries (Extended)

Yuandong Cyrus Liu, Chengbin Pang, Daniel Dietsch, Eric Koskinen, Ton-Chanh Le, Georgios Portokalidis, Jun Xu

摘要:

人们越来越感兴趣的是将验证工具应用于具有位向量操作的程序(例如,二进制文件)。SMT求解器作为这些工具的基础,因此通过位爆破和线性算术近似增加了对位向量推理的支持。在本文中,我们表明,类似的线性算术近似位向量操作可以在源代码级别通过转换。具体来说,我们引入了新的路径,这些路径通过线性条件/约束过度近似位向量操作,增加了分支,但使我们能够更好地利用成熟的整数推理和验证工具的插值。我们发现,对于位向量程序的可达性,增加分支会产生微不足道的开销,但与整数插值优化相结合时,使更多的程序进行验证。我们进一步表明,这种利用整数插值在常见的情况下,也使竞争终止验证的位向量程序,并导致第一个有效的技术LTL验证的位向量程序。最后,我们提供了一个深入的案例研究反编译(“提升”)二进制程序,模拟X86执行通过频繁使用的位向量操作。我们提出了一个新的工具DarkSea,第一个工具能够验证可达性,终止和LTL的解除二进制文件。

英文摘要:

There is increasing interest in applying verification tools to programs that have bitvector operations (eg., binaries). SMT solvers, which serve as a foundation for these tools, have thus increased support for bitvector reasoning through bit-blasting and linear arithmetic approximations. In this paper we show that similar linear arithmetic approximation of bitvector operations can be done at the source level through transformations. Specifically, we introduce new paths that over-approximate bitvector operations with linear conditions/constraints, increasing branching but allowing us to better exploit the well-developed integer reasoning and interpolation of verification tools. We show that, for reachability of bitvector programs, increased branching incurs negligible overhead yet, when combined with integer interpolation optimizations, enables more programs to be verified. We further show this exploitation of integer interpolation in the common case also enables competitive termination verification of bitvector programs and leads to the first effective technique for LTL verification of bitvector programs. Finally, we provide an in-depth case study of decompiled ("lifted") binary programs, which emulate X86 execution through frequent use of bitvector operations. We present a new tool DarkSea, the first tool capable of verifying reachability, termination, and LTL of lifted binaries.

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

↑