USENIX Security2024Top-tier venue
A Taxonomy of C Decompiler Fidelity Issues
Luke Dramko, Jeremy Lacomis, Edward J. Schwartz, Bogdan Vasilescu, Claire Le Goues
Abstract
Decompilation is an important part of analyzing threats in computer security. Unfortunately, decompiled code contains less information than the corresponding original source code, which makes understanding it more difficult for the reverse engineers who manually perform threat analysis. Thus, the fidelity of decompiled code to the original source code matters, as it can influence reverse engineers' productivity. There is some existing work in predicting some of the missing information using statistical methods, but these focus largely on variable names and variable types. In this work, we more holistically evaluate decompiler output from C-language executables and use our findings to inform directions for future decompiler development. More specifically, we use opencoding techniques to identify defects in decompiled code beyond missing names and types. To ensure that our study is robust, we compare and evaluate four different decompilers. Using thematic analysis, we build a taxonomy of decompiler defects. Using this taxonomy to reason about classes of issues, we suggest specific approaches that can be used to mitigate fidelity issues in decompiled code.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
8 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Decompiling for Constant-Time Analysis cites Helping Johnny to Analyze Malware: A Usability-Optimized Decompiler and Malware Analysis User Study
- Decompiling for Constant-Time Analysis cites SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
- OSPREY: Recovery of Variable and Data Structure via Probabilistic Analysis for Stripped Binary cites SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
- TYGR: Type Inference on Stripped Binaries using Graph Neural Networks cites Debin: Predicting Debug Information in Stripped Binaries
- TYGR: Type Inference on Stripped Binaries using Graph Neural Networks cites Helping Johnny to Analyze Malware: A Usability-Optimized Decompiler and Malware Analysis User Study
- TYGR: Type Inference on Stripped Binaries using Graph Neural Networks cites SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
- Oxidizer: Toward Concise and High-fidelity Rust Decompilation cites OSPREY: Recovery of Variable and Data Structure via Probabilistic Analysis for Stripped Binary
- Oxidizer: Toward Concise and High-fidelity Rust Decompilation cites FidelityGPT: Correcting Decompilation Distortions with Retrieval Augmented Generation
- Oxidizer: Toward Concise and High-fidelity Rust Decompilation cites TYGR: Type Inference on Stripped Binaries using Graph Neural Networks
- Oxidizer: Toward Concise and High-fidelity Rust Decompilation cites Helping Johnny to Analyze Malware: A Usability-Optimized Decompiler and Malware Analysis User Study
- Oxidizer: Toward Concise and High-fidelity Rust Decompilation cites SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
- Idioms: A Simple and Effective Framework for Turbo-Charging Local Neural Decompilation with Well-Defined Types cites OSPREY: Recovery of Variable and Data Structure via Probabilistic Analysis for Stripped Binary
- Idioms: A Simple and Effective Framework for Turbo-Charging Local Neural Decompilation with Well-Defined Types cites TYGR: Type Inference on Stripped Binaries using Graph Neural Networks
- Idioms: A Simple and Effective Framework for Turbo-Charging Local Neural Decompilation with Well-Defined Types cites Debin: Predicting Debug Information in Stripped Binaries
- Idioms: A Simple and Effective Framework for Turbo-Charging Local Neural Decompilation with Well-Defined Types cites Neural reverse engineering of stripped binaries using augmented control flow graphs
- Debin: Predicting Debug Information in Stripped Binaries cites SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
- Neural reverse engineering of stripped binaries using augmented control flow graphs cites Debin: Predicting Debug Information in Stripped Binaries
Cited by top-tier papers8
- TYGR: Type Inference on Stripped Binaries using Graph Neural NetworksChang Zhu, Ziyang Li, Anton Xue, Ati Priya Bajaj et al.USENIX Security 2024 · 10 citations
- Idioms: A Simple and Effective Framework for Turbo-Charging Local Neural Decompilation with Well-Defined TypesLuke Dramko, Claire Le Goues, Edward J. SchwartzNDSS 2026 · 7 citations
- FidelityGPT: Correcting Decompilation Distortions with Retrieval Augmented GenerationZhiping Zhou, Xiaohong Li, Ruitao Feng, Yao Zhang et al.NDSS 2026 · 5 citations
- Decompiling for Constant-Time AnalysisSantiago Arranz-Olmos, Gilles Barthe, Lionel Blatter, Youcef Bouzid et al.OOPSLA 2026 · 1 citation
- Oxidizer: Toward Concise and High-fidelity Rust DecompilationYibo Liu, Zion Leonahenahe Basque, Arvind S. Raj, Chavin Udomwongsa et al.S&P 2026 · 1 citation
Builds on12
- SOK: (State of) The Art of War: Offensive Techniques in Binary AnalysisYan Shoshitaishvili, Ruoyu Wang, Christopher Salls, Nick Stephens et al.S&P 2016 · 1,085 citations
- Debin: Predicting Debug Information in Stripped BinariesJingxuan He, Pesho Ivanov, Petar Tsankov, Veselin Raychev et al.CCS 2018 · 148 citations
- Helping Johnny to Analyze Malware: A Usability-Optimized Decompiler and Malware Analysis User StudyKhaled Yakdan, Sergej Dechand, Elmar Gerhards-Padilla, Matthew SmithS&P 2016 · 128 citations
- Neural reverse engineering of stripped binaries using augmented control flow graphsYaniv David, Uri Alon, Eran YahavOOPSLA 2020 · 83 citations
- OSPREY: Recovery of Variable and Data Structure via Probabilistic Analysis for Stripped BinaryZhuo Zhang, Yapeng Ye, Wei You, Guanhong Tao et al.S&P 2021 · 78 citations
Related papers
- Augmenting Decompiler Output with Learned Variable Names and TypesQibin Chen, Jeremy Lacomis, Edward J. Schwartz, Claire Le Goues et al.USENIX Security 2022
- Evaluating the Effectiveness of DecompilersYing Cao, Runze Zhang, Ruigang Liang, Kai ChenISSTA 2024 · 10 citations
- How far we have come: testing decompilation correctness of C decompilersZhibo Liu, Shuai WangISSTA 2020 · 53 citations
- R2I: A Relative Readability Metric for Decompiled CodeHaeun Eom, Dohee Kim, Sori Lim, Hyungjoon Koo et al.FSE 2024 · 6 citations
- DecompileBench: A Comprehensive Benchmark for Evaluating Decompilers in Real-World ScenariosZeyu Gao, Yuxin Cui, Hao Wang, Siliang Qin et al.ACL Findings 2025 · 3 citations
