Lune

CCS2026顶会

Assessing Semantic Equivalence of Decompiled Code: Are Our Measures Adequate?

Hao Ren, Ruotong Yu, Jun Xu

问 Lune

摘要

Binary decompilation is fundamental to security tasks such as reverse engineering, malware analysis, and vulnerability discovery. To assess whether decompiled code faithfully preserves the original binary's semantics, researchers rely on equivalence measures that compare program properties (function calls, return values, global variables, and local variables) between the original and decompiled code. These measures serve both as bug detectors and as a proxy for ground truth in benchmarking decompiler quality. Yet their adequacy, in terms of how many real errors they detect (effectiveness) and how reliably their flags indicate genuine discrepancies (precision), has never been systematically evaluated. We present, to our knowledge, the first such evaluation. Across four equivalence measures, five mainstream decompilers (IDA, Ghidra, Binary Ninja, angr, and RetDec), and nearly 5,000 function pairs sampled from ten open-source projects, we establish ground truth through manual binary-level analysis and trace every failure to its root cause using a structured error taxonomy. Our findings reveal that most measures achieve high precision but highly uneven effectiveness, with each measure blind to errors outside its narrow target property. Combining all measures substantially improves effectiveness, at the cost of reduced precision on some decompilers. Most critically, we show that using any individual measure as a proxy for ground truth produces deviations in the majority of cases and can even reverse decompiler rankings entirely. Our results call for caution when interpreting measure-based findings and provide a foundation for developing more robust decompilation assessment methods.

问 Lune

几分钟看清这篇 Paper 的位置,不用再花一下午。

Lune 能读引用它和与它最相关的顶会 Paper,讲清它说了什么、后来怎样、哪里站不住,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

摘要 · 相关的 Paper

获取答案

免费开始,无需绑卡

相关 Paper

  1. D-Helix: A Generic Decompiler Testing Framework Using Symbolic DifferentiationMuqi Zou, Arslan Khan, Ruoyu Wu, Han Gao 等USENIX Security 2024 · 14 次引用
  2. Bin2Wrong: a Unified Fuzzing Framework for Uncovering Semantic Errors in Binary-to-C DecompilersZao Yang, Stefan NagyUSENIX ATC 2025 · 6 次引用
  3. OSPREY: Recovery of Variable and Data Structure via Probabilistic Analysis for Stripped BinaryZhuo Zhang, Yapeng Ye, Wei You, Guanhong Tao 等S&P 2021 · 78 次引用
  4. DecompileBench: A Comprehensive Benchmark for Evaluating Decompilers in Real-World ScenariosZeyu Gao, Yuxin Cui, Hao Wang, Siliang Qin 等ACL Findings 2025 · 3 次引用
  5. 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 次引用
黄昏的海面,两侧是细线勾勒的悬崖