仅使用二进制文件评估反汇编错误
Evaluating Disassembly Errors With Only Binaries
AI总结:
本文提出 TraceBin,首次仅利用二进制文件的动态执行来评估反汇编错误,无需源代码,并在多种二进制和流行反汇编器中发现了大量错误,证明其对自动化安全任务具有重要价值。
摘要:
反汇编器在二进制的分析与修改中至关重要。现有展示反汇编错误的工作大多依赖实际实现,缺乏具体保证,并假设源代码和编译器工具链可用于评估真值。然而,源代码这一假设与典型的二进制场景相悖,因为在这些场景中通常只有二进制文件可用。在本工作中,我们研究了一种假设最少且可靠的反汇编错误评估方法,该方法不需要源代码。任何源代码方法都无法解决二进制反汇编的根本问题,并且在只有二进制存在时会失效。据我们所知,这是第一项仅使用二进制文件来评估反汇编错误的工作。我们提出 TraceBin,它利用动态执行来发现反汇编错误。TraceBin 针对的用例是:反汇编结果以自动化方式用于目标二进制的安全任务,例如静态二进制插桩、二进制加固、自动化代码修复等,这些任务可能受到反汇编错误的影响。发现目标二进制中的反汇编错误有助于减少此类错误所引发的问题。此外,我们尚未发现现有方法能够在仅给定目标二进制的情况下评估错误,因为它们都需要源代码。我们的评估表明,TraceBin 能够发现:(i) 与现有研究一致的反汇编错误,即使没有源代码;(ii) 由控制流引起的反汇编错误;(iii) 新的有趣错误;(iv) 非 C/C++ 二进制中的错误;(v) 闭源二进制中的错误;以及 (vi) 表明反汇编错误可能具有重大安全影响。总体而言,我们的实验结果表明,TraceBin 在现有流行的反汇编器中发现了许多错误。它还有助于依赖反汇编器的(闭源)二进制自动化安全任务。
英文摘要:
Disassemblers are crucial in the analysis and modification of binaries. Existing works showing disassembler errors largely rely on practical implementation without specific guarantees and assume source code and compiler toolchains to evaluate ground truth. However, the assumption of source code is contrary to typical binary scenarios where only the binary is available. In this work, we investigate an approach with minimal assumptions and a sound approach to disassembly error evaluation that does not require source code. Any source code does not address the fundamental problem of binary disassembly and fails when only the binary exists. As far as we know, this is the first work to evaluate disassembly errors using only the binary. We propose TraceBin, which uses dynamic execution to find disassembly errors. TraceBin targets the use case where the disassembly is used in an automated fashion for security tasks on a target binary, such as static binary instrumentation, binary hardening, automated code repair, and so on, which may be affected by disassembly errors. Discovering disassembly errors in the target binary aids in reducing problems caused by such errors. Furthermore, we are not aware of existing approaches that can evaluate errors given only a target binary, as they require source code. Our evaluation shows TraceBin finds: (i) errors consistent with existing studies even without source; (ii) disassembly errors due to control flow; (iii) new interesting errors; (iv) errors in non-C/C++ binaries; (v) errors in closed-source binaries; and (vi) show that disassembly errors can have significant security implications. Overall, our experimental results show that TraceBin finds many errors in existing popular disassemblers. It is also helpful in automated security tasks on (closed source) binaries relying on disassemblers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。