arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.08417cs.SEcs.CRcs.LG
收藏

细粒度脆弱代码语句在软件漏洞评估模型中的应用

On the Use of Fine-grained Vulnerable Code Statements for Software Vulnerability Assessment Models

The University of Adelaide(阿德莱德大学);Cyber Security Cooperative Research Centre(网络安全合作研究中心)

Triet H. M. Le, M. Ali Babar

摘要:

许多研究已经开发了机器学习(ML)方法来检测函数中的软件漏洞(SV)和导致此类SV的细粒度代码语句。然而,利用这些检测输出进行数据驱动的SV评估以提供有关SV的可利用性、影响和严重性的信息的工作很少。这些信息对于了解SV并确定其修复的优先级非常重要。使用来自200个真实项目中429个SV的1,782个功能的大规模数据,我们研究了用于自动化功能级SV评估任务的ML模型,即,预测七个通用漏洞评分系统(CVSS)指标。我们特别研究的价值和使用的脆弱的报表作为输入开发的评估模型,因为SV的功能起源于这些报表。我们发现,脆弱的报表是5.8倍小的大小,但表现出7.5-114.5%的评估性能(马修斯相关系数(MCC))比非脆弱的报表。消除易受攻击语句的上下文进一步提高了性能,最高可达8.9%(0.64 MCC和0.75 F1-Score)。总的来说,我们提供了初步的但有前途的ML为基础的基线功能级SV评估,铺平了道路,在这个方向上的进一步研究。

英文摘要:

Many studies have developed Machine Learning (ML) approaches to detect Software Vulnerabilities (SVs) in functions and fine-grained code statements that cause such SVs. However, there is little work on leveraging such detection outputs for data-driven SV assessment to give information about exploitability, impact, and severity of SVs. The information is important to understand SVs and prioritize their fixing. Using large-scale data from 1,782 functions of 429 SVs in 200 real-world projects, we investigate ML models for automating function-level SV assessment tasks, i.e., predicting seven Common Vulnerability Scoring System (CVSS) metrics. We particularly study the value and use of vulnerable statements as inputs for developing the assessment models because SVs in functions are originated in these statements. We show that vulnerable statements are 5.8 times smaller in size, yet exhibit 7.5-114.5% stronger assessment performance (Matthews Correlation Coefficient (MCC)) than non-vulnerable statements. Incorporating context of vulnerable statements further increases the performance by up to 8.9% (0.64 MCC and 0.75 F1-Score). Overall, we provide the initial yet promising ML-based baselines for function-level SV assessment, paving the way for further research in this direction.

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

↑