arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2204.08237cs.SE
收藏

Modx:基于程序模块化和语义匹配的二进制部分导入第三方库检测

Modx: Binary Level Partial Imported Third-Party Library Detection through Program Modularization and Semantic Matching

Can Yang, Zhengzi Xu, Hongxu Chen, Yang Liu, Xiaorui Gong, Baoxu Liu

摘要:

随着软件的快速增长,使用第三方库(TPL)变得越来越流行。程序库使用的繁荣为软件工程师提供了许多方便和促进程序开发的方法。不幸的是,这也带来了巨大的挑战,因为管理大量的图书馆变得更加困难。已经提出了检测和理解软件中的TPL的研究和学习。然而,大多数现有的方法依赖于句法特征,当这些特征被敌对方改变或故意隐藏时,这些特征是不鲁棒的。此外,这些方法通常将每个导入的库建模为整体,因此不能应用于主机软件仅部分使用库代码段的场景。为了检测完全和部分导入的TPL在语义层面上,我们提出了ModX,一个框架,利用新的程序模块化技术分解成细粒度的功能为基础的模块的程序。通过提取语法和语义特征,度量模块之间的距离,检测程序中相似库模块的重用。实验结果表明,ModX优于其他模块化工具,通过区分更连贯的程序模块,模块质量分数提高353%,并击败其他TPL检测工具,平均精度提高17%,召回率提高8%。

英文摘要:

With the rapid growth of software, using third-party libraries (TPLs) has become increasingly popular. The prosperity of the library usage has provided the software engineers with handful of methods to facilitate and boost the program development. Unfortunately, it also poses great challenges as it becomes much more difficult to manage the large volume of libraries. Researches and studies have been proposed to detect and understand the TPLs in the software. However, most existing approaches rely on syntactic features, which are not robust when these features are changed or deliberately hidden by the adversarial parties. Moreover, these approaches typically model each of the imported libraries as a whole, therefore, cannot be applied to scenarios where the host software only partially uses the library code segments. To detect both fully and partially imported TPLs at the semantic level, we propose ModX, a framework that leverages novel program modularization techniques to decompose the program into finegrained functionality-based modules. By extracting both syntactic and semantic features, it measures the distance between modules to detect similar library module reuse in the program. Experimental results show that ModX outperforms other modularization tools by distinguishing more coherent program modules with 353% higher module quality scores and beats other TPL detection tools with on average 17% better in precision and 8% better in recall.

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

↑