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

函数级漏洞检测器对过程间漏洞的有效性研究

On the Effectiveness of Function-Level Vulnerability Detectors for Inter-Procedural Vulnerabilities

Zhen Li, Ning Wang, Deqing Zou, Yating Li, Ruqian Zhang, Shouhuai Xu, Chao Zhang, Hai Jin

AI总结:

针对函数级深度学习漏洞检测器难以覆盖跨函数成因的问题,本文构建InterPVD数据集并提出VulTrigger,证实过程间漏洞普遍且现有检测器对其待修补函数的检测效果明显较弱。

摘要:

软件漏洞是一项重大网络威胁,因此检测漏洞十分重要。检测漏洞的一种重要方法是使用深度学习,并将程序函数作为一个整体来处理,这被称为函数级漏洞检测器。然而,该方法的局限性尚未被充分理解。本文研究其在检测一类被称为过程间漏洞的漏洞时的局限性;在此类漏洞中,待修补语句与触发漏洞的语句属于不同函数。为此,我们基于C/C++开源软件创建了首个过程间漏洞数据集(InterPVD),并提出了一个名为VulTrigger的工具,用于跨函数识别触发漏洞的语句。实验结果表明,VulTrigger能够有效识别触发漏洞的语句和过程间漏洞。我们的发现包括:(i)过程间漏洞普遍存在,平均具有2.8个过程间层;(ii)函数级漏洞检测器在检测过程间漏洞的待修补函数方面,其有效性远低于检测过程内漏洞的对应函数。

英文摘要:

Software vulnerabilities are a major cyber threat and it is important to detect them. One important approach to detecting vulnerabilities is to use deep learning while treating a program function as a whole, known as function-level vulnerability detectors. However, the limitation of this approach is not understood. In this paper, we investigate its limitation in detecting one class of vulnerabilities known as inter-procedural vulnerabilities, where the to-be-patched statements and the vulnerability-triggering statements belong to different functions. For this purpose, we create the first Inter-Procedural Vulnerability Dataset (InterPVD) based on C/C++ open-source software, and we propose a tool dubbed VulTrigger for identifying vulnerability-triggering statements across functions. Experimental results show that VulTrigger can effectively identify vulnerability-triggering statements and inter-procedural vulnerabilities. Our findings include: (i) inter-procedural vulnerabilities are prevalent with an average of 2.8 inter-procedural layers; and (ii) function-level vulnerability detectors are much less effective in detecting to-be-patched functions of inter-procedural vulnerabilities than detecting their counterparts of intra-procedural vulnerabilities.

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

↑