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

利用主动学习提高漏洞检测效率

Improving Vulnerability Inspection Efficiency Using Active Learning

Zhe Yu, Christopher Theisen, Laurie Williams, Tim Menzies

摘要:

如果软件工程师针对可能包含更多漏洞的代码,他们可以更轻松地找到漏洞。HARMLESS是一个增量支持向量机工具,它从迄今为止检查的源代码构建漏洞预测模型,然后建议下一步应该检查哪些源代码文件。通过这种方式,HARMLESS可以减少为找到漏洞而达到某种期望的召回水平所需的时间和精力。该工具还提供关于何时停止的反馈(在所需的召回级别),同时通过仔细检查可疑文件来纠正人为错误。本文评估了Mozilla Firefox漏洞数据上的HARMLESS。HARMLESS通过检查10%、16%、20%、34%的源代码文件发现了80%、90%、95%、99%的漏洞。当目标是90%、95%、99%的召回率时,HARMLESS可以在检查23%、30%、47%的源代码文件后停止。即使人类审查人员未能识别一半的漏洞(50%的假阴性率),HARMLESS也可以通过双重检查一半的检查文件来检测96%的缺失漏洞。我们的研究结果突出了保护软件免受漏洞影响的巨大成本(在我们的案例研究中,成本是,例如,检查28,750个$\times$ 20% = 5,750个源代码文件以识别95%的漏洞的人力)。虽然这一结果可能有利于关键任务项目,其中人力资源可用于检查数千个源代码文件,但未来工作的研究挑战是如何进一步降低成本。本文的结论部分讨论了实现这一目标的各种途径。

英文摘要:

Software engineers can find vulnerabilities with less effort if they are directed towards code that might contain more vulnerabilities. HARMLESS is an incremental support vector machine tool that builds a vulnerability prediction model from the sourcecode inspected to date, then suggests what source code files should be inspected next. In this way, HARMLESS can reduce the time and effort required to achieve some desired level of recall for finding vulnerabilities. The tool also provides feedback on when to stop (at that desired level of recall) while at the same time, correcting human errors by double-checking suspicious files. This paper evaluates HARMLESS on Mozilla Firefox vulnerability data. HARMLESS found 80, 90, 95, 99% of the vulnerabilities by inspecting 10, 16, 20, 34% of the source code files. When targeting 90, 95, 99% recall, HARMLESS could stop after inspecting 23, 30, 47% of the source code files. Even when human reviewers fail to identify half of the vulnerabilities (50% false negative rate), HARMLESScould detect 96% of the missing vulnerabilities by double-checking half of the inspected files. Our results serve to highlight the very steep cost of protecting software from vulnerabilities (in our case study that cost is, for example, the human effort of inspecting 28,750$\times$20% = 5,750 source code files to identify 95% of the vulnerabilities). While this result could benefit the mission-critical projects where human resources are available for inspecting thousands of source code files, the research challenge for future work is how to further reduce that cost. The conclusion of this paper discusses various ways that goal might be achieved.

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

↑