BinPro:二进制Source Code出处的工具
BinPro: A Tool for Binary Source Code Provenance
摘要:
执行诸如GNU通用公共许可证(GPL)之类的开源许可证、分析二进制文件中可能存在的漏洞以及代码维护都是能够确定二进制文件的源代码出处的有用情况。虽然以前的工作集中在计算二进制到二进制的相似性或源到源的相似性,BinPro是我们知道的第一个解决源到二进制相似性问题的工作。BinPro可以将二进制文件与其源代码进行匹配,即使不知道使用哪个编译器来生成二进制文件,或者编译器使用了什么优化级别。为此,BinPro利用机器学习来计算最佳代码特征,以确定二进制与源代码的相似性,并利用静态分析管道来提取和计算基于这些特征的相似性。我们的实验表明,平均BinPro计算的相似性为81%的匹配二进制文件和源代码的相同的应用程序,和25%的二进制文件和源代码的相似,但不同的应用程序的平均相似性。这表明BinPro的相似性得分对于确定二进制文件是否来自特定的源代码非常有用。
英文摘要:
Enforcing open source licenses such as the GNU General Public License (GPL), analyzing a binary for possible vulnerabilities, and code maintenance are all situations where it is useful to be able to determine the source code provenance of a binary. While previous work has either focused on computing binary-to-binary similarity or source-to-source similarity, BinPro is the first work we are aware of to tackle the problem of source-to-binary similarity. BinPro can match binaries with their source code even without knowing which compiler was used to produce the binary, or what optimization level was used with the compiler. To do this, BinPro utilizes machine learning to compute optimal code features for determining binary-to-source similarity and a static analysis pipeline to extract and compute similarity based on those features. Our experiments show that on average BinPro computes a similarity of 81% for matching binaries and source code of the same applications, and an average similarity of 25% for binaries and source code of similar but different applications. This shows that BinPro's similarity score is useful for determining if a binary was derived from a particular source code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。