Skip to main content
QUICK REVIEW

[Paper Review] Measuring and Preventing Supply Chain Attacks on Package Managers.

Ruian Duan, Omar Alrawi|arXiv (Cornell University)|Feb 4, 2020
Advanced Malware Detection TechniquesComputer Science30 references9 citations
TL;DR

This paper proposes MalOSS, a vetting pipeline that combines metadata, static, and dynamic analysis to detect malicious packages in package managers. By applying a comparative framework to analyze supply chain attacks, the authors identified and reported 339 malware packages, with 82% confirmed and removed and 3 high-download packages assigned CVEs.

ABSTRACT

Package managers have become a vital part of the modern software development process. They allow developers to reuse third-party code, share their own code, minimize their codebase, and simplify the build process. However, recent reports showed that hundreds of malware have sneaked into package managers, which have been downloaded millions of times, posing significant security risks to developers as well as end-users. For example, eslint-scope, a package with millions of weekly downloads in Npm, was compromised to steal credentials from developers. To understand the attacks on package managers and the misplaced trust that makes them possible, we propose a comparative framework to study the package managers for interpreted languages. By systematically analyzing the recent attacks using our framework, we can identify security gaps and broken trust in the package manager ecosystem. Based on these insights, we propose and implement a vetting pipeline, MalOSS, to perform metadata, static and dynamic analysis on packages and flag the suspicious ones. Through iterative labeling, we identified and reported 339 malware to package manager maintainers. 278 (82 percent) of them have been confirmed and removed, and 3 of them with more than 100,000 downloads have been assigned CVEs. To help secure the ecosystem, we propose actionable security improvements for package manager maintainers and suggestions for other stakeholders.

Motivation & Objective

  • To understand the root causes of supply chain attacks in package managers, especially those targeting interpreted language ecosystems.
  • To identify systemic security gaps and broken trust models that enable malware to infiltrate package repositories.
  • To develop a scalable, actionable vetting pipeline capable of flagging malicious packages before they cause widespread harm.
  • To improve the security posture of package manager ecosystems through evidence-based recommendations for maintainers and stakeholders.

Proposed method

  • Designing a comparative framework to systematically evaluate package managers for interpreted languages based on trust and security properties.
  • Performing metadata analysis to detect anomalies in package authors, dependencies, and publication history.
  • Applying static analysis to detect obfuscated code, suspicious API calls, and known malicious patterns in package source code.
  • Conducting dynamic analysis by executing packages in isolated environments to observe runtime behavior, including network and system calls.
  • Implementing an iterative labeling process to validate suspicious packages and triage them for reporting to maintainers.
  • Reporting identified malware to package manager maintainers with evidence, enabling takedowns and CVE assignments.

Experimental results

Research questions

  • RQ1What are the common attack vectors and trust model weaknesses that enable supply chain compromises in package managers?
  • RQ2How effective is a multi-layered analysis pipeline (metadata, static, dynamic) in detecting malicious packages in real-world ecosystems?
  • RQ3What proportion of reported malicious packages are confirmed and removed by maintainers, and how many receive CVE assignments?
  • RQ4Which security improvements can be proposed to package manager maintainers and other stakeholders to reduce future attack surface?

Key findings

  • The study identified 339 malicious packages across package managers, with 278 (82%) confirmed and removed by maintainers after reporting.
  • Three malicious packages with over 100,000 weekly downloads were assigned CVE identifiers, indicating high-risk impact.
  • The framework successfully detected malware in widely used packages such as eslint-scope, which was compromised to steal developer credentials.
  • The multi-stage analysis pipeline (metadata, static, dynamic) proved effective in uncovering obfuscated and behaviorally malicious code.
  • The majority of reported packages were removed promptly, demonstrating the feasibility and impact of proactive detection and reporting.
  • The findings revealed systemic trust issues in package manager ecosystems, particularly around author reputation and dependency integrity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.