论文精选73°

LLM反编译器重编译保真度研究

When LLM Decompilers Recompile More and Preserve Less

精选理由

这篇论文揭示了LLM反编译器的一个关键缺陷:通过测试但行为不一致,可能导致安全漏洞消失。

研究人员提出Decompile-Diverge方法,评估LLM反编译器的行为一致性。在九种配置的八个系统测试中,通过所有测试的候选仍有4.9%的行为偏差。在300个GitHub库函数和287个CVE相关函数测试中,最强LLM将Ghidra构建率从75%提升到90%,但匹配率从74%下降到62%。部分输出中高达十分之一的漏洞表现出崩溃缺失现象。

原文 · arXiv cs.AI

When LLM Decompilers Recompile More and Preserve Less

Decompilation recovers high-level source from compiled machine code and serves as a foundation for security tasks such as vulnerability detection and malware analysis. Traditional decompilers like Ghidra and Hex-Rays expose whatever they cannot resolve as visible placeholders and often emit pseudocode that will not compile or execute; LLM-based decompilers produce clean, idiomatic C and are now judged almost entirely by recompilability and re-executability: whether the output builds and passes its shipped input/output tests. We show that these metrics can reward the wrong path: a function may recompile and pass every shipped test yet diverge on other legitimate inputs, and a disclosed vulnerability may disappear from the recompiled code with no visible trace of the crash. Neither failure is caught by existing suites. To address this gap, we propose Decompile-Diverge, a behavioral comparison oracle not relying on fixed or hand-crafted tests: for each function it synthesizes a driver, grows a fuzzing corpus from the reference, and reruns the decompiled code on the same inputs to detect changes in the function's behavior. Across eight systems in nine configurations on established LLM decompilation corpora, candidates that pass every shipped test still diverge from the original on our input corpus: 4.9% overall, and as many as 13% for a single system. On 300 real GitHub library functions and 287 CVE-grounded functions, recompilability and behavioral agreement can come apart: the strongest refinement LLM lifts Ghidra's build rate from 75% to 90%, while its Matched rate falls from 74% to 62%; on disclosed vulnerabilities, up to one tenth exhibit Crash Absence in its output. Source-level analysis traces this divergence to introduced fields, types, callees, and guards that replace the visible unknowns traditional tools leave behind.