arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.22677cs.LGcs.CR
收藏

函数相似度是否被过度设计?构建一个基准测试

Is Function Similarity Over-Engineered? Building a Benchmark

Booz Allen Hamilton(博兹·艾伦·汉密尔顿公司);Syracuse University(雪城大学);University of Maryland, Baltimore County(马里兰大学巴尔的摩分校);Laboratory for Physical Sciences(物理科学实验室)

Rebecca Saul, Chang Liu, Noah Fleischmann, Richard Zak, Kristopher Micinski, Edward Raff, James Holt

AI总结:

本研究针对二进制函数相似度检测领域研究与实际需求脱节的问题,构建了更贴合真实场景的REFuSE-Bench基准,发现仅用原始字节、无需预处理的简单方法可达SOTA,挑战了复杂模型更优的传统认知。

摘要:

二进制分析是逆向工程、恶意软件分析、漏洞检测等众多关键安全任务的核心组成部分。人工分析通常耗时极长,但识别常用或此前见过的函数能够缩短理解新文件的时间。然而,鉴于汇编代码的复杂性,以及判定函数等价性的NP难特性,这项任务难度极高。常见方法通常会使用复杂的反汇编与反编译工具、图分析以及其他高成本预处理步骤,在特定语料库上执行函数相似度搜索。\n在本研究中,我们发现当前研究环境与底层应用需求之间存在诸多不一致之处。为解决这一问题,我们构建了一个用于二进制函数相似度检测的新基准REFuSE-Bench,它由更能反映真实世界用例的高质量数据集与测试组成。构建过程中,我们解决了数据重复、标注准确等问题,使用真实恶意软件开展实验,并首次针对Windows数据上的机器学习二进制函数相似度模型进行了严谨评估。\n我们的基准测试显示,一种全新的简单基线方法——仅查看函数的原始字节,无需反汇编或其他预处理——能够在多种场景下达到当前最优性能。我们的发现挑战了“具备高度工程化特征的复杂模型已被充分发挥潜力”的传统假设,证明更简单的方法也能提供显著价值。

英文摘要:

Binary analysis is a core component of many critical security tasks, including reverse engineering, malware analysis, and vulnerability detection. Manual analysis is often time-consuming, but identifying commonly-used or previously-seen functions can reduce the time it takes to understand a new file. However, given the complexity of assembly, and the NP-hard nature of determining function equivalence, this task is extremely difficult. Common approaches often use sophisticated disassembly and decompilation tools, graph analysis, and other expensive pre-processing steps to perform function similarity searches over some corpus. In this work, we identify a number of discrepancies between the current research environment and the underlying application need. To remedy this, we build a new benchmark, REFuSE-Bench, for binary function similarity detection consisting of high-quality datasets and tests that better reflect real-world use cases. In doing so, we address issues like data duplication and accurate labeling, experiment with real malware, and perform the first serious evaluation of ML binary function similarity models on Windows data. Our benchmark reveals that a new, simple basline, one which looks at only the raw bytes of a function, and requires no disassembly or other pre-processing, is able to achieve state-of-the-art performance in multiple settings. Our findings challenge conventional assumptions that complex models with highly-engineered features are being used to their full potential, and demonstrate that simpler approaches can provide significant value.

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

↑