论文标题

软件安全实践会产生更少的漏洞吗?

Do Software Security Practices Yield Fewer Vulnerabilities?

论文作者

Zahan, Nusrat, Shohan, Shohanuzzaman, Harris, Dan, Williams, Laurie

论文摘要

由于安全漏洞不断增加,从业人员有动力生产更安全的软件。在美国,白宫办公室发布了一份关于行政命令(EO)14028的备忘录,该备忘录要求组织对安全软件开发实践的使用提供自我证明。 OpenSSF记分卡项目允许从业人员自动衡量软件安全实践的使用。但是,几乎没有进行研究以确定安全实践是否改善包裹安全性,尤其是哪些安全惯例对安全结果产生了最大的影响。这项研究的目的是协助从业者和研究人员做出明智的决定,以通过在软件安全实践分数和安全漏洞数量之间开发模型来采用哪些安全实践。 为此,我们使用OpenSSF记分安全实践得分为NPM和PYPI软件包开发了五个监督机器学习模型,并将安全得分汇总为预测指标,以及作为目标变量的外部报告漏洞的数量。我们的模型发现四种安全实践(维护,代码审查,分支保护和安全政策)是影响脆弱性数量的最重要实践。但是,当我们测试模型以预测漏洞计数时,我们的r^2较低(从9%到12%)。此外,我们观察到,随着包装的总安全评分的增加,报告漏洞的数量增加而不是减少。这两个发现都表明其他因素可能会影响包装漏洞数量。我们建议对漏洞计数和安全评分数据进行完善,以便可以使用这些措施来提供有关安全实践的可行指南。

Due to the ever-increasing security breaches, practitioners are motivated to produce more secure software. In the United States, the White House Office released a memorandum on Executive Order (EO) 14028 that mandates organizations provide self-attestation of the use of secure software development practices. The OpenSSF Scorecard project allows practitioners to measure the use of software security practices automatically. However, little research has been done to determine whether the use of security practices improves package security, particularly which security practices have the biggest impact on security outcomes. The goal of this study is to assist practitioners and researchers making informed decisions on which security practices to adopt through the development of models between software security practice scores and security vulnerability counts. To that end, we developed five supervised machine learning models for npm and PyPI packages using the OpenSSF Scorecared security practices scores and aggregate security scores as predictors and the number of externally-reported vulnerabilities as a target variable. Our models found four security practices (Maintained, Code Review, Branch Protection, and Security Policy) were the most important practices influencing vulnerability count. However, we had low R^2 (ranging from 9% to 12%) when we tested the models to predict vulnerability counts. Additionally, we observed that the number of reported vulnerabilities increased rather than reduced as the aggregate security score of the packages increased. Both findings indicate that additional factors may influence the package vulnerability count. We suggest that vulnerability count and security score data be refined such that these measures may be used to provide actionable guidance on security practices.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源