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

基于超参数优化的安全漏洞报告分类

Better Security Bug Report Classification via Hyperparameter Optimization

Rui Shu, Tianpei Xia, Laurie Williams, Tim Menzies

摘要:

当发现安全漏洞时,应(a)~由安全软件工程师私下讨论;(b)~在安全补丁可用之前不向公众提及。软件工程师通常会向缺陷跟踪系统报告缺陷,并将其标记为安全缺陷报告(SBR)或非安全缺陷报告(NSBRs),而安全缺陷报告比非安全缺陷报告具有更高的被修复优先级。然而,可疑的安全漏洞报告经常被公开披露,因为错误标签问题(即,错误地将安全错误报告标记为非安全错误报告)。本文的目标是帮助软件开发人员更好地分类错误报告,识别安全漏洞作为安全错误报告,通过学习器和数据预处理器的参数调整。以前的工作已经应用了文本分析和机器学习学习器来分类哪些报告的错误与安全相关。我们对这一工作进行了改进,正如我们对五个开源项目的分析所示。我们将超参数优化应用于(a)学习器的控制参数;以及(b)处理目标类是所有数据的一小部分的情况的数据预处理方法。我们表明,优化的预处理器是更有用的比优化的学习者。我们还表明,从我们的方法获得的改进可以是非常大的。例如,使用与我们的基线方法最近分析的相同的数据集,我们表明,调整数据预处理可以使分类召回率提高35%至65%(中位数至最大值),并适度增加假阳性率。

英文摘要:

When security bugs are detected, they should be (a)~discussed privately by security software engineers; and (b)~not mentioned to the general public until security patches are available. Software engineers usually report bugs to bug tracking system, and label them as security bug reports (SBRs) or not-security bug reports (NSBRs), while SBRs have a higher priority to be fixed before exploited by attackers than NSBRs. Yet suspected security bug reports are often publicly disclosed because the mislabelling issues ( i.e., mislabel security bug reports as not-security bug report). The goal of this paper is to aid software developers to better classify bug reports that identify security vulnerabilities as security bug reports through parameter tuning of learners and data pre-processor. Previous work has applied text analytics and machine learning learners to classify which reported bugs are security related. We improve on that work, as shown by our analysis of five open source projects. We apply hyperparameter optimization to (a)~the control parameters of a learner; and (b)~the data pre-processing methods that handle the case where the target class is a small fraction of all the data. We show that optimizing the pre-processor is more useful than optimizing the learners. We also show that improvements gained from our approach can be very large. For example, using the same data sets as recently analyzed by our baseline approach, we show that adjusting the data pre-processing results in improvements to classification recall of 35% to 65% (median to max) with moderate increment of false positive rate.

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

↑