Ruby:通过机器学习揭示剥离二进制文件中的不安全Rust
Ruby: Unmasking Unsafe Rust in Stripped Binaries via Machine Learning
AI总结:
研究旨在揭示Rust二进制文件中的不安全区域,核心方法是用机器学习工具Ruby捕获二进制指令差异,主要贡献为识别大部分不安全区域且误报率低,应用于指导符号执行和模糊测试有显著速度提升并帮助修复安卓库漏洞。
摘要:
Rust作为一种新兴的系统编程语言,引入了不安全机制以允许开发者在编译时绕过安全检查。内存安全漏洞通常局限于不安全区域,这一直是Rust漏洞查找工具的主要关注点。然而,此类工具依赖于Rust源代码中不安全关键字的存在,目前尚无能够检查Rust二进制文件以确定不安全区域的工具。因此,我们提出了Ruby,这是首个使用机器学习揭示Rust二进制文件中不安全区域的工具。通过捕获二进制指令中的细微差异,Ruby能识别出91.75%的不安全区域,误报率为6.16%,优于包括GPT - 5.2、Claude - 4.5和Gemini - 3在内的当前最优语言模型。我们还将Ruby应用于指导符号执行和模糊测试,速度分别提升了57.95%和21.26%,在安卓库模糊测试中谷歌确认并修复了五个漏洞。
英文摘要:
Rust, as an emerging system programming language, introduces $\texttt{unsafe}$ to allow developers to bypass safety checks during compilation. As a result, memory safety bugs are typically confined to the $\texttt{unsafe}$ regions, which have been the primary focus of Rust bug-finding tools. However, such tools rely on the presence of the $\texttt{unsafe}$ keyword in Rust source code; there are no tools available that can examine Rust binaries to pinpoint $\texttt{unsafe}$ areas. Therefore, we propose $\texttt{Ruby}$, the first tool that unmasks $\texttt{unsafe}$ regions in Rust binaries using machine learning. By capturing the subtle differences in the binary instructions, $\texttt{Ruby}$ can identify 91.75% of the total $\texttt{unsafe}$ regions with a false positive rate of 6.16%, beating SOTA LLM models including GPT-5.2, Claude-4.5 and Gemini-3. We further applied $\texttt{Ruby}$ to guide symbolic execution and fuzzing, showing a speed-up of 57.95% and 21.26%, with five bugs confirmed and patched by Google in Android library fuzzing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。