基于语义学习和仿真的跨平台二进制漏洞搜索器
Semantic Learning and Emulation Based Cross-platform Binary Vulnerability Seeker
摘要:
克隆检测被广泛用于软件漏洞搜索。基于源代码分析的方法不能应用于二进制克隆检测,因为相同的源代码可以产生显著不同的二进制文件。在本文中,我们提出了BinSeeker,一个跨平台的二进制搜索器,集成了语义学习和仿真。在标记语义流图的帮助下,BinSeeker可以快速地从目标二进制文件中识别出与漏洞最相似的M个候选函数。M的值相对较大,因此该语义学习过程基本上消除了那些不太可能具有漏洞的函数。然后,对这M个候选者进行语义仿真,得到它们的动态签名序列。通过比较签名序列,BinSeeker产生了表现出与漏洞行为最相似的前N个函数。通过语义学习的快速过滤和语义仿真的准确比较,BinSeeker可以精确地查找漏洞,开销很小。在六个广泛使用的程序上进行的实验表明,BinSeeker的性能优于三个最先进的工具Genius,Gemini和CACompare。关于搜索精度,BinSeeker在目标程序中实现了0.65的MRR值,而Genius、Gemini和CACompare的MRR值分别为0.17、0.07和0.42。如果我们将目标漏洞排在前5位的功能视为准确,BinSeeker的准确率为93.33%,而其他三个工具的准确率分别仅为33.33%,13.33%和53.33%。这样的准确度平均达到0.27秒,以确定目标二进制函数是否包含已知漏洞,其他三种工具的时间分别为1.57秒,0.15秒和0.98秒。
英文摘要:
Clone detection is widely exploited for software vulnerability search. The approaches based on source code analysis cannot be applied to binary clone detection because the same source code can produce significantly different binaries. In this paper, we present BinSeeker, a cross-platform binary seeker that integrates semantic learning and emulation. With the help of the labeled semantic flow graph, BinSeeker can quickly identify M candidate functions that are most similar to the vulnerability from the target binary. The value of M is relatively large so this semantic learning procedure essentially eliminates those functions that are very unlikely to have the vulnerability. Then, semantic emulation is conducted on these M candidates to obtain their dynamic signature sequences. By comparing signature sequences, BinSeeker produces top-N functions that exhibit most similar behavior to that of the vulnerability. With fast filtering of semantic learning and accurate comparison of semantic emulation, BinSeeker seeks vulnerability precisely with little overhead. The experiments on six widely used programs with fifteen known CVE vulnerabilities demonstrate that BinSeeker outperforms three state-of-the-art tools Genius, Gemini and CACompare. Regarding search accuracy, BinSeeker achieves an MRR value of 0.65 in the target programs, whereas the MRR values by Genius, Gemini and CACompare are 0.17, 0.07 and 0.42, respectively. If we consider ranking a function with the targeted vulnerability in the top-5 as accurate, BinSeeker achieves the accuracy of 93.33 percent, while the accuracy of the other three tools is merely 33.33, 13.33 and 53.33 percent, respectively. Such accuracy is achieved with 0.27s on average to determine whether the target binary function contains a known vulnerability, and the time for the other three tools are 1.57s, 0.15s and 0.98s, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。