Ground Truth for Binary Disassembly is Not Easy
Chengbin Pang, Tiantai Zhang, Ruotong Yu, Bing Mao, Jun Xu
摘要
Modern disassembly tools often rely on empirical evaluations to validate their performance and discover their limitations, thus promoting long-term evolvement. To support the empirical evaluation, a foundation is the right approach to collect the ground truth knowledge. However, there has been no unanimous agreement on the approach we should use. Most users pick an approach based on their experience or will, regardless of the properties that the approach presents.In this paper, we perform a study on the approaches to building the ground truth for binary disassembly, aiming to shed light on the right way for the future. We first provide a taxonomy of the approaches used by past research, which unveils five major mechanisms behind those approaches. Following the taxonomy, we summarize the properties of the five mechanisms from two perspectives: (i) the coverage and precision of the ground truth produced by the mechanisms and (ii) the applicable scope of the mechanisms (e.g., what disassembly tasks and what types of binaries are supported). The summarization, accompanied by quantitative evaluations, illustrates that many mechanisms are ill-suited to support the generation of disassembly ground truth. The mechanism best serving today's need is to trace the compiling process of the target binaries to collect the ground truth information.Observing that the existing tool to trace the compiling process can still miss ground truth results and can only handle x86/x64 binaries, we extend the tool to avoid overlooking those results and support ARM32/AArch64/MIPS32/MIPS64 binaries. We envision that our extension will make the tool a better foundation to enable universal, standard ground truth for binary disassembly.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Disassembly as Weighted Interval Scheduling with Learned Weights 引用了 An In-Depth Analysis of Disassembly on Full-Scale x86/x64 Binaries
- Disassembly as Weighted Interval Scheduling with Learned Weights 引用了 SoK: All You Ever Wanted to Know About x86/x64 Binary Disassembly But Were Afraid to Ask
- Disassembly as Weighted Interval Scheduling with Learned Weights 引用了 SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
- OCFI: Make Function Entry Identification Hard Again 引用了 SoK: All You Ever Wanted to Know About x86/x64 Binary Disassembly But Were Afraid to Ask
- DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled Code 引用了 An In-Depth Analysis of Disassembly on Full-Scale x86/x64 Binaries
- DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled Code 引用了 Plankton: Reconciling Binary Code and Debug Information
- DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled Code 引用了 SoK: All You Ever Wanted to Know About x86/x64 Binary Disassembly But Were Afraid to Ask
- DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled Code 引用了 Egalito: Layout-Agnostic Binary Recompilation
- FFXE: Dynamic Control Flow Graph Recovery for Embedded Firmware Binaries 引用了 SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
- Plankton: Reconciling Binary Code and Debug Information 引用了 SoK: All You Ever Wanted to Know About x86/x64 Binary Disassembly But Were Afraid to Ask
- Plankton: Reconciling Binary Code and Debug Information 引用了 Egalito: Layout-Agnostic Binary Recompilation
- SoK: All You Ever Wanted to Know About x86/x64 Binary Disassembly But Were Afraid to Ask 引用了 An In-Depth Analysis of Disassembly on Full-Scale x86/x64 Binaries
- SoK: All You Ever Wanted to Know About x86/x64 Binary Disassembly But Were Afraid to Ask 引用了 SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
- Egalito: Layout-Agnostic Binary Recompilation 引用了 An In-Depth Analysis of Disassembly on Full-Scale x86/x64 Binaries
- Egalito: Layout-Agnostic Binary Recompilation 引用了 SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
引用它的顶会 Paper8
- Plankton: Reconciling Binary Code and Debug InformationAnshunkang Zhou, Chengfeng Ye, Heqing Huang, Yuandao Cai 等ASPLOS 2024 · 11 次引用
- DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled CodeWai Kin Wong, Daoyuan Wu, Huaijin Wang, Zongjie Li 等ISSTA 2025 · 8 次引用
- FFXE: Dynamic Control Flow Graph Recovery for Embedded Firmware BinariesRyan Tsang, Asmita, Doreen Joseph, Soheil Salehi 等USENIX Security 2024 · 8 次引用
- OCFI: Make Function Entry Identification Hard AgainChengbin Pang, Tiantai Zhang, Xuelan Xu, Linzhang Wang 等ISSTA 2023 · 3 次引用
- Disassembly as Weighted Interval Scheduling with Learned WeightsAntonio Flores-Montoya, Junghee Lim, Adam Seitz, Akshay Sood 等S&P 2025
它引用的 Paper9
- SOK: (State of) The Art of War: Offensive Techniques in Binary AnalysisYan Shoshitaishvili, Ruoyu Wang, Christopher Salls, Nick Stephens 等S&P 2016 · 1,085 次引用
- Order Matters: Semantic-Aware Neural Networks for Binary Code Similarity DetectionZeping Yu, Rui Cao, Qiyi Tang, Sen Nie 等AAAI 2020 · 265 次引用
- An In-Depth Analysis of Disassembly on Full-Scale x86/x64 BinariesDennis Andriesse, Xi Chen, Victor van der Veen, Asia Slowinska 等USENIX Security 2016 · 162 次引用
- SoK: All You Ever Wanted to Know About x86/x64 Binary Disassembly But Were Afraid to AskChengbin Pang, Ruotong Yu, Yaohui Chen, Eric Koskinen 等S&P 2021 · 102 次引用
- Egalito: Layout-Agnostic Binary RecompilationDavid Williams-King, Hidenori Kobayashi, Kent Williams-King, Graham Patterson 等ASPLOS 2020 · 68 次引用
相关 Paper
- An empirical study on ARM disassembly toolsMuhui Jiang, Yajin Zhou, Xiapu Luo, Ruoyu Wang 等ISSTA 2020 · 34 次引用
- D-ARM: Disassembling ARM Binaries by Lightweight Superset Instruction Interpretation and Graph ModelingYapeng Ye, Zhuo Zhang, Qingkai Shi, Yousra Aafer 等S&P 2023
- Reassembly is Hard: A Reflection on Challenges and StrategiesHyungseok Kim, Soomin Kim, Junoh Lee, Kangkook Jee 等USENIX Security 2023
- Tady: A Neural Disassembler without Structural Constraint ViolationsSiliang Qin, Fengrui Yang, Hao Wang, Bolun Zhang 等USENIX Security 2025
- Assessing Semantic Equivalence of Decompiled Code: Are Our Measures Adequate?Hao Ren, Ruotong Yu, Jun XuCCS 2026
