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

NPM供应链中的薄弱环节是什么?

What are Weak Links in the npm Supply Chain?

Nusrat Zahan, Thomas Zimmermann, Patrice Godefroid, Brendan Murphy, Chandra Maddila, Laurie Williams

摘要:

现代软件开发经常使用第三方软件包,这引发了对供应链安全攻击的担忧。许多攻击者针对流行的包管理器,如npm,以及他们的用户进行供应链攻击。2021年,利用开源软件供应链进行的安全攻击同比增长650%。需要主动的方法来预测高风险供应链攻击的软件包漏洞。这项工作的目标是帮助软件开发人员和安全专家通过实证研究npm包元数据来测量npm供应链薄弱环节信号,以防止未来的供应链攻击。在本文中,我们分析了163万个JavaScript npm包的元数据。我们提出了软件供应链中安全漏洞的六个信号,例如安装脚本的存在,与过期的电子邮件域相关的维护者帐户,以及不活动的软件包与不活动的维护者。我们的一个案例研究从安装脚本信号中识别出11个恶意软件包。我们还发现了2,818个与过期域名相关的维护者电子邮件地址,允许攻击者通过接管npm帐户来劫持8,494个软件包。我们通过470名npm软件包开发人员的调查获得了关于我们弱链接信号的反馈。大多数开发人员支持我们提出的六个弱链接信号中的三个。开发人员还表示,他们希望在使用第三方软件包之前获得有关弱链接信号的通知。此外,我们还讨论了软件包开发人员建议的八个新信号。

英文摘要:

Modern software development frequently uses third-party packages, raising the concern of supply chain security attacks. Many attackers target popular package managers, like npm, and their users with supply chain attacks. In 2021 there was a 650% year-on-year growth in security attacks by exploiting Open Source Software's supply chain. Proactive approaches are needed to predict package vulnerability to high-risk supply chain attacks. The goal of this work is to help software developers and security specialists in measuring npm supply chain weak link signals to prevent future supply chain attacks by empirically studying npm package metadata. In this paper, we analyzed the metadata of 1.63 million JavaScript npm packages. We propose six signals of security weaknesses in a software supply chain, such as the presence of install scripts, maintainer accounts associated with an expired email domain, and inactive packages with inactive maintainers. One of our case studies identified 11 malicious packages from the install scripts signal. We also found 2,818 maintainer email addresses associated with expired domains, allowing an attacker to hijack 8,494 packages by taking over the npm accounts. We obtained feedback on our weak link signals through a survey responded to by 470 npm package developers. The majority of the developers supported three out of our six proposed weak link signals. The developers also indicated that they would want to be notified about weak links signals before using third-party packages. Additionally, we discussed eight new signals suggested by package developers.

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

↑