Lune

ASPLOS2024顶会

What You Trace is What You Get: Dynamic Stack-Layout Recovery for Binary Recompilation

Fabian Parzefall, Chinmay Deshpande, Felicitas Hetzelt, Michael Franz

摘要

Users of proprietary and/or legacy programs without vendor support are denied the significant advances in compiler technologies of the past decades. Adapting these technologies to operate directly on binaries without source code is often infeasible. Binary recompilers attempt to bridge this gap by "lifting" binary executables to compiler-level intermediate representations (IR) and "lowering" them back down to executable form, enabling application of the full range of analyses and transformations available in modern compiler infrastructures. Past approaches could not recover local variables in lifted programs with sufficient precision, which is a necessary prerequisite for many compiler-related applications, including performance optimization. They have relied on heuristics failing on certain input programs, or on conservative over-approximations yielding imprecise results.

In this paper, we present a novel approach, WYTIWYG, to recover function-local variables within lifted binaries. Our approach is fully automated and preserves functionality for user-provided inputs. This is accomplished by decomposing the recovery of local variables into a series of instrumentation-based dynamic binary analyses. We conduct an extensive set of careful evaluations on the SPECint 2006 benchmark suite, including direct comparisons with two previously published state-of-the-art binary recompilers. Our approach recompiles fully optimized commercial off-the-shelf binaries compiled with the latest compilers. Using performance of recompiled binaries as an indicator of IR-quality, our approach significantly outperforms similar recompilers by 1.18𝑥 on average. Furthermore, WYTIWYG

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • 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
  • DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled Code 引用了 SoK: Demystifying Binary Lifters Through the Lens of Downstream Applications
  • DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled Code 引用了 OSPREY: Recovery of Variable and Data Structure via Probabilistic Analysis for Stripped Binary
  • DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled Code 引用了 BinRec: dynamic binary lifting and recompilation
  • DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled Code 引用了 Egalito: Layout-Agnostic Binary Recompilation
  • DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled Code 引用了 Polynima: Practical Hybrid Recompilation for Multithreaded Binaries
  • No More Translation at Runtime: LLM-Empowered Static Binary Translation 引用了 SoK: Demystifying Binary Lifters Through the Lens of Downstream Applications
  • No More Translation at Runtime: LLM-Empowered Static Binary Translation 引用了 DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled Code
  • No More Translation at Runtime: LLM-Empowered Static Binary Translation 引用了 BinRec: dynamic binary lifting and recompilation
  • No More Translation at Runtime: LLM-Empowered Static Binary Translation 引用了 Egalito: Layout-Agnostic Binary Recompilation
  • No More Translation at Runtime: LLM-Empowered Static Binary Translation 引用了 Polynima: Practical Hybrid Recompilation for Multithreaded Binaries
  • No More Translation at Runtime: LLM-Empowered Static Binary Translation 引用了 SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
  • Diatom: Polylithic Binary Lifting with Data-Flow Summaries and Type-Aware IR Linking 引用了 SoK: Demystifying Binary Lifters Through the Lens of Downstream Applications
  • Diatom: Polylithic Binary Lifting with Data-Flow Summaries and Type-Aware IR Linking 引用了 OSPREY: Recovery of Variable and Data Structure via Probabilistic Analysis for Stripped Binary
  • Diatom: Polylithic Binary Lifting with Data-Flow Summaries and Type-Aware IR Linking 引用了 BinRec: dynamic binary lifting and recompilation
  • Diatom: Polylithic Binary Lifting with Data-Flow Summaries and Type-Aware IR Linking 引用了 Egalito: Layout-Agnostic Binary Recompilation
  • Diatom: Polylithic Binary Lifting with Data-Flow Summaries and Type-Aware IR Linking 引用了 Polynima: Practical Hybrid Recompilation for Multithreaded Binaries
  • BinRec: dynamic binary lifting and recompilation 引用了 SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
  • Egalito: Layout-Agnostic Binary Recompilation 引用了 SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
  • Polynima: Practical Hybrid Recompilation for Multithreaded Binaries 引用了 SoK: Demystifying Binary Lifters Through the Lens of Downstream Applications
  • Polynima: Practical Hybrid Recompilation for Multithreaded Binaries 引用了 BinRec: dynamic binary lifting and recompilation
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  1. DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled CodeWai Kin Wong, Daoyuan Wu, Huaijin Wang, Zongjie Li 等ISSTA 2025 · 8 次引用
  2. Polynima: Practical Hybrid Recompilation for Multithreaded BinariesChinmay Deshpande, Fabian Parzefall, Felicitas Hetzelt, Michael FranzEuroSys 2024 · 3 次引用
  3. No More Translation at Runtime: LLM-Empowered Static Binary TranslationZhibo Liu, Huaijin Wang, Wai Kin Wong, Daoyuan Wu 等EuroSys 2026 · 1 次引用
  4. Diatom: Polylithic Binary Lifting with Data-Flow Summaries and Type-Aware IR LinkingAnshunkang Zhou, Charles ZhangOOPSLA 2026 · 1 次引用

它引用的 Paper6

  1. SOK: (State of) The Art of War: Offensive Techniques in Binary AnalysisYan Shoshitaishvili, Ruoyu Wang, Christopher Salls, Nick Stephens 等S&P 2016 · 1,085 次引用
  2. OSPREY: Recovery of Variable and Data Structure via Probabilistic Analysis for Stripped BinaryZhuo Zhang, Yapeng Ye, Wei You, Guanhong Tao 等S&P 2021 · 78 次引用
  3. Egalito: Layout-Agnostic Binary RecompilationDavid Williams-King, Hidenori Kobayashi, Kent Williams-King, Graham Patterson 等ASPLOS 2020 · 68 次引用
  4. BinRec: dynamic binary lifting and recompilationAnil Altinay, Joseph Nash, Taddeus Kroes, Prabhu Rajasekaran 等EuroSys 2020 · 51 次引用
  5. SoK: Demystifying Binary Lifters Through the Lens of Downstream ApplicationsZhibo Liu, Yuanyuan Yuan, Shuai Wang, Yuyan BaoS&P 2022 · 29 次引用

相关 Paper

  1. Lifting Optimized Binaries to Canonical Compiler IR via Structure-Aware Retrieval and Iterative VerificationXiaoao Zhu, Jie Ren, Zhiqiang Li, Jie Zheng 等ACL 2026
  2. LeanBin: Harnessing Lifting and Recompilation to Debloat BinariesIgor Wodiany, Antoniu Pop, Mikel LujánASE 2024 · 1 次引用
  3. Augmenting Decompiler Output with Learned Variable Names and TypesQibin Chen, Jeremy Lacomis, Edward J. Schwartz, Claire Le Goues 等USENIX Security 2022
  4. ReSym: Harnessing LLMs to Recover Variable and Data Structure Symbols from Stripped BinariesDanning Xie, Zhuo Zhang, Nan Jiang, Xiangzhe Xu 等CCS 2024 · 21 次引用
  5. Bridging the Gap between Real-World and Formal Binary Lifting through Filtered-SimulationJihee Park, Insu Yun, Sukyoung RyuOOPSLA 2025 · 2 次引用
黄昏的海面,两侧是细线勾勒的悬崖