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

利用进程树改进JavaScript函数的脆弱性预测

Improving Vulnerability Prediction of JavaScript Functions Using Process Metrics

Tamás Viszkok, Péter Hegedűs, Rudolf Ferenc

摘要:

由于针对计算机系统的网络攻击越来越多,我们需要特别注意软件系统的安全。为了最大限度地发挥效果,将人类排除在这一过程之外将是一个巨大的突破。第一步是自动识别代码中的脆弱部分。研究人员投入了大量的精力来创建机器学习模型,这些模型可以确定给定的代码片段,或者更准确地说,选定的函数,是否包含任何漏洞。我们的目标是改进现有模型,以之前使用众所周知的静态源代码指标预测JavaScript代码中函数级别的漏洞的结果为基础。在这项工作中,我们建议包括几个所谓的过程度量(例如,代码变动、修改文件的开发人员数量或更改的源代码的时间)添加到功能集中,并检查它们如何影响函数级JavaScript漏洞预测模型的性能。我们可以证实,过程度量显著提高了这些模型的预测能力。平均而言,我们观察到F-测量值提高了8.4%(从0.764到0.848),精确度提高了3.5%(从0.953到0.988),召回率提高了6.3%(从0.697到0.760)。

英文摘要:

Due to the growing number of cyber attacks against computer systems, we need to pay special attention to the security of our software systems. In order to maximize the effectiveness, excluding the human component from this process would be a huge breakthrough. The first step towards this is to automatically recognize the vulnerable parts in our code. Researchers put a lot of effort into creating machine learning models that could determine if a given piece of code, or to be more precise, a selected function, contains any vulnerabilities or not. We aim at improving the existing models, building on previous results in predicting vulnerabilities at the level of functions in JavaScript code using the well-known static source code metrics. In this work, we propose to include several so-called process metrics (e.g., code churn, number of developers modifying a file, or the age of the changed source code) into the set of features, and examine how they affect the performance of the function-level JavaScript vulnerability prediction models. We can confirm that process metrics significantly improve the prediction power of such models. On average, we observed a 8.4% improvement in terms of F-measure (from 0.764 to 0.848), 3.5% improvement in terms of precision (from 0.953 to 0.988) and a 6.3% improvement in terms of recall (from 0.697 to 0.760).

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

↑