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

在二进制中添加编译元数据以使反汇编可判定

Adding Compilation Metadata To Binaries To Make Disassembly Decidable

Open University, Heerlen, The Netherlands(荷兰海伦芬开放大学);Virginia Tech, Blacksburg, USA(美国布莱克斯堡弗吉尼亚理工大学)

Daniel Engel, Freek Verbeek, Pranav Kumar, Binoy Ravindran

AI总结:

本文提出一种介于剥离黑盒二进制与开源之间的二进制格式,通过工具生成元数据以捕获编译器意图,提升软件安全性和可维护性,且不影响运行时行为。

摘要:

二进制可执行格式是软件分发和执行的标准方法,但其作为软件的表示同样晦涩难懂。如果在二进制格式中添加提供安全相关信息的元数据,例如编译器认为哪些数据是可执行指令,或内存区域的预期边界,将显著提高软件的安全性和可维护性。本文提出一种二进制格式,介于剥离黑盒二进制与开源之间。我们提供一个工具,生成捕获编译器意图的元数据并将其插入到二进制中。这种元数据使提升到正确且可重新编译的更高层次表示成为可能,并使分析和仪器化更加可靠。我们的评估显示,添加元数据不影响运行时行为或性能。与DWARF相比,我们的元数据大小约为其17%。我们通过编译一组全面的现实世界C和C++二进制并证明它们可以被提升、仪器化和重新编译而不改变其行为来验证正确性。

英文摘要:

The binary executable format is the standard method for distributing and executing software. Yet, it is also as opaque a representation of software as can be. If the binary format were augmented with metadata that provides security-relevant information, such as which data is intended by the compiler to be executable instructions, or how memory regions are expected to be bounded, that would dramatically improve the safety and maintainability of software. In this paper, we propose a binary format that is a middle ground between a stripped black-box binary and open source. We provide a tool that generates metadata capturing the compiler's intent and inserts it into the binary. This metadata enables lifting to a correct and recompilable higher-level representation and makes analysis and instrumentation more reliable. Our evaluation shows that adding metadata does not affect runtime behavior or performance. Compared to DWARF, our metadata is roughly 17% of its size. We validate correctness by compiling a comprehensive set of real-world C and C++ binaries and demonstrating that they can be lifted, instrumented, and recompiled without altering their behavior.

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

↑