DONAPI: Malicious NPM Packages Detector using Behavior Sequence Knowledge Mapping
Cheng Huang (1), Nannan Wang (1), Ziyan Wang (1), Siqi Sun (1), Lingzi, Li (1), Junren Chen (1), Qianchong Zhao (1), Jiaxuan Han (1), Zhen Yang (1),, Lei Shi (2) ((1) Sichuan University, (2) Huawei Technologies)

TL;DR
DONAPI is a novel system that combines static and dynamic analysis to detect malicious npm packages by analyzing behavior sequences and knowledge mapping, significantly improving security in the npm ecosystem.
Contribution
It introduces a hierarchical classification framework and behavior knowledge base for malicious package detection, integrating static code analysis with dynamic API call sequence analysis.
Findings
Identified 325 malicious npm packages
Discovered 2 new API calls and 246 API call sequences
Enhanced detection accuracy through behavior knowledge mapping
Abstract
With the growing popularity of modularity in software development comes the rise of package managers and language ecosystems. Among them, npm stands out as the most extensive package manager, hosting more than 2 million third-party open-source packages that greatly simplify the process of building code. However, this openness also brings security risks, as evidenced by numerous package poisoning incidents. In this paper, we synchronize a local package cache containing more than 3.4 million packages in near real-time to give us access to more package code details. Further, we perform manual inspection and API call sequence analysis on packages collected from public datasets and security reports to build a hierarchical classification framework and behavioral knowledge base covering different sensitive behaviors. In addition, we propose the DONAPI, an automatic malicious npm packages…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNetwork Security and Intrusion Detection · Advanced Malware Detection Techniques · Spam and Phishing Detection
