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.
DistillGuard: Malicious NPM Package Detection and API Attack Chain Analysis via Static Graph and LLM Distillation
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院)
Taint-Based Code Slicing for LLMs-based Malicious NPM Package Detection
Ho Chi Minh City University of Technology (HCMUT), VNU-HCM(胡志明市理工大学);Eastern International University(东方国际大学);Univ. Grenoble Alpes, CNRS, Grenoble INP, VERIMAG, UMR 5104(格勒诺布尔阿尔卑斯大学);PackGuard
S3C2 Summit 2025-03: Industry Secure Supply Chain Summit
North Carolina State University(北卡罗来纳州立大学);Paderborn University(帕德博恩大学);George Washington University(乔治华盛顿大学);University of Maryland, College Park(马里兰大学帕克分校);Carnegie Mellon University(卡内基梅隆大学)
S3C2 Summit 2025-07: Government Secure Supply Chain Summit
North Carolina State University(北卡罗来纳州立大学);Paderborn University(帕德博恩大学);George Washington University(乔治华盛顿大学);University of Maryland, College Park(马里兰大学帕克分校);Carnegie Mellon University(卡内基梅隆大学)