arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2507.18792cs.PLcs.SE
收藏

反编译 Rust:编译器优化与逆向工程挑战的实证研究

Decompiling Rust: An Empirical Study of Compiler Optimizations and Reverse Engineering Challenges

Zixu Zhou

AI总结:

本文通过基准驱动评估与自动化评分框架,量化分析 Rust 核心特性及构建模式对反编译质量的影响,并结合案例揭示泛型、trait 和错误处理带来的逆向挑战。

摘要:

反编译 Rust 二进制文件颇具挑战,原因在于该语言丰富的类型系统、激进的编译器优化以及高层抽象的广泛使用。在本工作中,我们围绕 Rust 核心特性和编译器构建模式,对反编译质量开展了由基准测试驱动的评估。我们的自动化评分框架表明,泛型类型、trait 方法和错误处理结构会显著降低反编译质量,尤其是在 release 构建中。通过具有代表性的案例研究,我们分析了特定语言结构如何影响控制流、变量命名和类型信息恢复。我们的发现为工具开发者提供了可付诸行动的见解,并凸显了采用具备 Rust 感知能力的反编译策略的必要性。

英文摘要:

Decompiling Rust binaries is challenging due to the language's rich type system, aggressive compiler optimizations, and widespread use of high-level abstractions. In this work, we conduct a benchmark-driven evaluation of decompilation quality across core Rust features and compiler build modes. Our automated scoring framework shows that generic types, trait methods, and error handling constructs significantly reduce decompilation quality, especially in release builds. Through representative case studies, we analyze how specific language constructs affect control flow, variable naming, and type information recovery. Our findings provide actionable insights for tool developers and highlight the need for Rust-aware decompilation strategies.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑