arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.08206cs.CRcs.SE
收藏

识别易受攻击的第三方Java库:基于漏洞与库的文本描述

Identifying Vulnerable Third-Party Java Libraries from Textual Descriptions of Vulnerabilities and Libraries

Tianyu Chen, Lin Li, Bingjie Shan, Guangtai Liang, Ding Li, Qianxiang Wang, Tao Xie

AI总结:

针对现有方法在识别名称复杂相似的易受攻击Java库时准确率低的问题,提出VulLibMiner,结合TF-IDF匹配器与BERT-FNN模型,从漏洞和库的文本描述中识别易受攻击库,并在VulLib数据集上取得F1分数0.657,优于现有方法的0.521。

摘要:

为应对第三方库引发的安全漏洞,安全研究人员维护数据库以监控和整理漏洞报告。应用程序开发者可通过直接查询数据库来识别其使用的易受攻击的库。然而,由于漏洞报告的不完整性,查询结果并不可靠。因此,现有方法将识别易受攻击库的任务建模为命名实体识别(NER)任务或极端多标签学习(XML)任务。这些方法在识别名称复杂且相似的易受攻击库(如Java库)时,结果极不准确。为解决这些局限,本文提出VulLibMiner,这是首个从漏洞和库的文本描述中识别易受攻击库的方法,并构建了VulLib,一个包含受影响库的Java漏洞数据集。VulLibMiner包含一个TF-IDF匹配器,用于高效筛选出少量候选库,以及一个BERT-FNN模型,用于从这些候选中有效识别易受攻击的库。我们使用四种最新的/实践中的识别易受攻击库的方法,在它们的数据集VeraJava和我们的VulLib数据集上评估VulLibMiner。评估结果显示,VulLibMiner能有效识别易受攻击的库,平均F1分数为0.657,而最新的/实践中的方法仅达到0.521。

英文摘要:

To address security vulnerabilities arising from third-party libraries, security researchers maintain databases monitoring and curating vulnerability reports. Application developers can identify vulnerable libraries by directly querying the databases with their used libraries. However, the querying results of vulnerable libraries are not reliable due to the incompleteness of vulnerability reports. Thus, current approaches model the task of identifying vulnerable libraries as a named-entity-recognition (NER) task or an extreme multi-label learning (XML) task. These approaches suffer from highly inaccurate results in identifying vulnerable libraries with complex and similar names, e.g., Java libraries. To address these limitations, in this paper, we propose VulLibMiner, the first to identify vulnerable libraries from textual descriptions of both vulnerabilities and libraries, together with VulLib, a Java vulnerability dataset with their affected libraries. VulLibMiner consists of a TF-IDF matcher to efficiently screen out a small set of candidate libraries and a BERT-FNN model to identify vulnerable libraries from these candidates effectively. We evaluate VulLibMiner using four state-of-the-art/practice approaches of identifying vulnerable libraries on both their dataset named VeraJava and our VulLib dataset. Our evaluation results show that VulLibMiner can effectively identify vulnerable libraries with an average F1 score of 0.657 while the state-of-the-art/practice approaches achieve only 0.521.

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

↑