公开还是偷偷摸摸?快还是慢?轻还是重?:调查开源软件包的安全版本
Open or Sneaky? Fast or Slow? Light or Heavy?: Investigating Security Releases of Open Source Packages
摘要:
开放源码包中的漏洞对于将这些包用作依赖项的客户端项目来说可能是一个安全风险。当在软件包中发现新漏洞时,软件包应快速发布新版本的修复程序,在本研究中称为安全发布。安全版本应该有很好的文档记录,并且只需要最少的迁移工作,以促进客户端项目的快速采用。然而,开源软件包在多大程度上遵循这些建议尚不清楚。本研究的目标是帮助软件从业者和研究人员了解目前的做法,释放安全补丁的开源软件包,并确定改进的领域,通过实证研究的安全版本。具体来说,本文研究了(1)修复和发布之间的时间差;(2)如何在发布说明中记录安全修复;(3)代码更改特征(大小和语义版本)的发布;以及(4)发布与Snyk或NVD上的咨询出版物之间的时间差(两个流行的漏洞数据库)的安全版本,涵盖七个软件包生态系统中的4,377个安全数据集。我们发现,中值安全版本在相应修复后的4天内可用,并包含134行代码(代码)更改。此外,我们发现61.5%的安全版本都附带了一个发布说明,记录了相应的安全修复程序。但是,Snyk和NVD可能需要25天(从发布开始)才能发布这些安全版本的建议,这可能会导致延迟通知客户项目。根据我们的研究结果,我们为软件包维护者和生态系统管理员提出了四项建议,例如使用私有分叉进行安全修复,以及标准化发布安全版本的做法。
英文摘要:
Vulnerabilities in open source packages can be a security risk for the client projects that use these packages as dependencies. When a new vulnerability is discovered in a package, the package should quickly release a fix in a new version, referred to as security release in this study. The security release should be well-documented and require minimal migration effort to facilitate fast adoption by the client projects. However, to what extent the open source packages follow these recommendations is not known. The goal of this study is to aid software practitioners and researchers in understanding the current practice of releasing security fixes by open source packages and identifying areas for improvement through an empirical study of security releases. Specifically, in this paper, we study (1) the time lag between fix and release; (2) how security fixes are documented in the release notes; (3) code change characteristics (size and semantic versioning) of the release; and (4) the time lag between the release and an advisory publication on Snyk or NVD (two popular vulnerability databases) for security releases over a dataset of 4,377 security advisories across seven package ecosystems. We find that the median security release is available in under 4 days of the corresponding fix and contains 134 lines of code (LOC) change. Further, we find that 61.5% of the security releases come with a release note that documents the corresponding security fix. However, Snyk and NVD may take a median of 25 days (from the release) to publish an advisory for these security releases, possibly resulting in delayed notification to the client projects. Based on our findings, we make four recommendations for the package maintainers and the ecosystem administrators, such as using private fork for security fixes and standardizing the practice for announcing security releases.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。