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

超越保真度:解释基于学习的检测器的漏洞定位

Beyond Fidelity: Explaining Vulnerability Localization of Learning-based Detectors

Peking University(北京大学);University of Alberta(阿尔伯塔大学);Huazhong University of Science and Technology(华中科技大学);University of Queensland(昆士兰大学);University of New South Wales(新南威尔士大学)

Baijun Cheng, Shengming Zhao, Kailong Wang, Meizhen Wang, Guangdong Bai, Ruitao Feng, Yao Guo, Lei Ma, Haoyu Wang

AI总结:

本文评估了十种漏洞检测器解释方法,发现仅凭保真度不足以衡量其性能,且这些方法在定位漏洞相关代码行方面准确率普遍较差,原因在于解释器选特征低效及检测器学习了无关伪影。

摘要:

基于深度学习(DL)模型的漏洞检测器近年来已被证明是有效的。然而,这些检测器决策过程的不透明性使安全分析师难以理解其判断依据。为了解决这一问题,研究者提出了多种解释方法,通过突出重要特征来解释预测结果,这些方法已在计算机视觉和自然语言处理等其他领域被证明有效。遗憾的是,针对这些解释方法所学习和理解的漏洞关键特征(例如细粒度的漏洞相关代码行)的深入评估仍然缺乏。在本研究中,我们首先评估了十种针对基于图和序列表示的漏洞检测器的解释方法的性能,采用保真度和漏洞行覆盖率两个定量指标进行衡量。我们的结果表明,仅凭保真度不足以评估这些方法,因为保真度在不同数据集和检测器之间存在显著波动。随后,我们检查了解释方法所报告的漏洞相关代码行的精确度,发现所有方法在该任务上的准确率都很差。这可以归因于解释器在选择重要特征方面的低效,以及基于DL的检测器学习到了无关的伪影。

英文摘要:

Vulnerability detectors based on deep learning (DL) models have proven their effectiveness in recent years. However, the shroud of opacity surrounding the decision-making process of these detectors makes it difficult for security analysts to comprehend. To address this, various explanation approaches have been proposed to explain the predictions by highlighting important features, which have been demonstrated effective in other domains such as computer vision and natural language processing. Unfortunately, an in-depth evaluation of vulnerability-critical features, such as fine-grained vulnerability-related code lines, learned and understood by these explanation approaches remains lacking. In this study, we first evaluate the performance of ten explanation approaches for vulnerability detectors based on graph and sequence representations, measured by two quantitative metrics including fidelity and vulnerability line coverage rate. Our results show that fidelity alone is not sufficient for evaluating these approaches, as fidelity incurs significant fluctuations across different datasets and detectors. We subsequently check the precision of the vulnerability-related code lines reported by the explanation approaches, and find poor accuracy in this task among all of them. This can be attributed to the inefficiency of explainers in selecting important features and the presence of irrelevant artifacts learned by DL-based detectors.

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

↑