A Taxonomy of C Decompiler Fidelity Issues
Luke Dramko, Jeremy Lacomis, Edward J. Schwartz, Bogdan Vasilescu, Claire Le Goues
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Decompiling for Constant-Time Analysis 引用了 Helping Johnny to Analyze Malware: A Usability-Optimized Decompiler and Malware Analysis User Study
- Decompiling for Constant-Time Analysis 引用了 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 引用了 SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
- TYGR: Type Inference on Stripped Binaries using Graph Neural Networks 引用了 Debin: Predicting Debug Information in Stripped Binaries
- TYGR: Type Inference on Stripped Binaries using Graph Neural Networks 引用了 Helping Johnny to Analyze Malware: A Usability-Optimized Decompiler and Malware Analysis User Study
- TYGR: Type Inference on Stripped Binaries using Graph Neural Networks 引用了 SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
- Oxidizer: Toward Concise and High-fidelity Rust Decompilation 引用了 OSPREY: Recovery of Variable and Data Structure via Probabilistic Analysis for Stripped Binary
- Oxidizer: Toward Concise and High-fidelity Rust Decompilation 引用了 FidelityGPT: Correcting Decompilation Distortions with Retrieval Augmented Generation
- Oxidizer: Toward Concise and High-fidelity Rust Decompilation 引用了 TYGR: Type Inference on Stripped Binaries using Graph Neural Networks
- Oxidizer: Toward Concise and High-fidelity Rust Decompilation 引用了 Helping Johnny to Analyze Malware: A Usability-Optimized Decompiler and Malware Analysis User Study
- Oxidizer: Toward Concise and High-fidelity Rust Decompilation 引用了 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 引用了 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 引用了 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 引用了 Debin: Predicting Debug Information in Stripped Binaries
- Idioms: A Simple and Effective Framework for Turbo-Charging Local Neural Decompilation with Well-Defined Types 引用了 Neural reverse engineering of stripped binaries using augmented control flow graphs
- Debin: Predicting Debug Information in Stripped Binaries 引用了 SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
- Neural reverse engineering of stripped binaries using augmented control flow graphs 引用了 Debin: Predicting Debug Information in Stripped Binaries
引用它的顶会 Paper8
- TYGR: Type Inference on Stripped Binaries using Graph Neural NetworksChang Zhu, Ziyang Li, Anton Xue, Ati Priya Bajaj 等USENIX Security 2024 · 10 次引用
- 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 次引用
- FidelityGPT: Correcting Decompilation Distortions with Retrieval Augmented GenerationZhiping Zhou, Xiaohong Li, Ruitao Feng, Yao Zhang 等NDSS 2026 · 5 次引用
- Decompiling for Constant-Time AnalysisSantiago Arranz-Olmos, Gilles Barthe, Lionel Blatter, Youcef Bouzid 等OOPSLA 2026 · 1 次引用
- Oxidizer: Toward Concise and High-fidelity Rust DecompilationYibo Liu, Zion Leonahenahe Basque, Arvind S. Raj, Chavin Udomwongsa 等S&P 2026 · 1 次引用
它引用的 Paper12
- SOK: (State of) The Art of War: Offensive Techniques in Binary AnalysisYan Shoshitaishvili, Ruoyu Wang, Christopher Salls, Nick Stephens 等S&P 2016 · 1,085 次引用
- Debin: Predicting Debug Information in Stripped BinariesJingxuan He, Pesho Ivanov, Petar Tsankov, Veselin Raychev 等CCS 2018 · 148 次引用
- 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 次引用
- Neural reverse engineering of stripped binaries using augmented control flow graphsYaniv David, Uri Alon, Eran YahavOOPSLA 2020 · 83 次引用
- OSPREY: Recovery of Variable and Data Structure via Probabilistic Analysis for Stripped BinaryZhuo Zhang, Yapeng Ye, Wei You, Guanhong Tao 等S&P 2021 · 78 次引用
相关 Paper
- Augmenting Decompiler Output with Learned Variable Names and TypesQibin Chen, Jeremy Lacomis, Edward J. Schwartz, Claire Le Goues 等USENIX Security 2022
- Evaluating the Effectiveness of DecompilersYing Cao, Runze Zhang, Ruigang Liang, Kai ChenISSTA 2024 · 10 次引用
- How far we have come: testing decompilation correctness of C decompilersZhibo Liu, Shuai WangISSTA 2020 · 53 次引用
- R2I: A Relative Readability Metric for Decompiled CodeHaeun Eom, Dohee Kim, Sori Lim, Hyungjoon Koo 等FSE 2024 · 6 次引用
- DecompileBench: A Comprehensive Benchmark for Evaluating Decompilers in Real-World ScenariosZeyu Gao, Yuxin Cui, Hao Wang, Siliang Qin 等ACL Findings 2025 · 3 次引用
