添加编译元数据到二进制文件以实现可判定的反汇编 Adding Compilation Metadata To Binaries To Make Disassembly Decidable 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-04-21
⬇️ 3 次下载
👁️ 预览文献
💡 AI 中文简介
二进制文件是软件分发的标准格式,但内容不透明。本文提出一种介于黑盒二进制和开源之间的二进制格式,通过工具将编译器意图(如哪些数据是指令、内存边界)作为元数据插入二进制中。实验表明,添加元数据不影响运行行为和性能,其体积仅为DWARF调试信息的约17%。对大量真实C/C++程序验证显示,可正确提升、插桩并重新编译而不改变行为。
领域程序分析与编译技术/二进制安全
适合谁读需要一定专业背景(编译原理、程序分析或系统安全)
核心贡献1. 提出一种介于剥离二进制与开源之间的二进制格式,嵌入编译器意图元数据;2. 实现工具自动生成并插入元数据,支持正确提升、插桩和重编译。
关键数据元数据体积约为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.