形式化验证的二进制级指针分析
Formally Verified Binary-level Pointer Analysis
AI总结:
本文提出一种形式化证明正确的二进制级指针分析方法,通过通用抽象域满足证明义务来灵活实例化不同精度域,在保证正确性的同时兼顾可扩展性与精度,能够上下文敏感地推导COTS二进制文件的内存写入指向关系。
摘要:
二进制级指针分析可用于软件二进制文件的符号执行、测试、验证和反编译。在许多此类场景中,结果值得信赖至关重要,即可以形式化地确立指针指向关系是过近似(overapproximative)的。本文提出了一种形式化证明正确的二进制级指针分析方法。该方法的一个显著特性是,它首先通用性地考虑了指针分析的通用抽象域必须满足哪些证明义务(proof obligations)。这使得可以轻松实例化具有不同精度的域,同时保持分析的正确性。在可扩展性与精度的权衡中,这种定制化允许“有意义”的精度(足够精确以确保基本健全性属性,例如在函数执行期间相关栈帧部分不被覆盖),同时当指针计算在编译过程中变得过于混乱以至于无法进行健全且准确的边界分析时,也允许进行粗略分析。我们实验了具有高、中、低精度的三种不同抽象域。评估表明,我们的方法能够以上下文敏感的跨过程方式,在COTS二进制文件中健全地推导出内存写入的指向关系。
英文摘要:
Binary-level pointer analysis can be of use in symbolic execution, testing, verification, and decompilation of software binaries. In various such contexts, it is crucial that the result is trustworthy, i.e., it can be formally established that the pointer designations are overapproximative. This paper presents an approach to formally proven correct binary-level pointer analysis. A salient property of our approach is that it first generically considers what proof obligations a generic abstract domain for pointer analysis must satisfy. This allows easy instantiation of different domains, varying in precision, while preserving the correctness of the analysis. In the trade-off between scalability and precision, such customization allows "meaningful" precision (sufficiently precise to ensure basic sanity properties, such as that relevant parts of the stack frame are not overwritten during function execution) while also allowing coarse analysis when pointer computations have become too obfuscated during compilation for sound and accurate bounds analysis. We experiment with three different abstract domains with high, medium, and low precision. Evaluation shows that our approach is able to derive designations for memory writes soundly in COTS binaries, in a context-sensitive interprocedural fashion.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。