EUVIMEDEUVIMED entdecken
Crossref

Killing Two Birds with One Stone: Malicious Package Detection in NPM and PyPI using a Single Model of Malicious Behavior Sequence

Junan Zhang, Kaifeng Huang, Yiheng Huang, Bihuan Chen, Ruisi Wang, Chong Wang, Xin Peng

ACM Transactions on Software Engineering and Methodology · 31.05.2025 · 34 (4) · 1-28

DOI: 10.1145/3705304 ↗

Kurz gefasst

Fachartikel in der Zeitschrift ACM Transactions on Software Engineering and Methodology, online erschienen am 28.04.2025. Verfasst von Junan Zhang und 6 weiteren Autor:innen. Die Arbeit wurde bisher 36-mal zitiert (Crossref) und nennt 96 Literaturangaben. Gefördert von: National Natural Science Foundation of China, Shanghai Sailing.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Open source software (OSS) supply chain enlarges the attack surface of a software system, which makes package registries attractive targets for attacks. Recently, multiple package registries have received intensified attacks with malicious packages. Of those package registries, NPM and PyPI are two of the most severe victims. Existing malicious package detectors are developed with features from a list of packages of the same ecosystem and deployed within the same ecosystem exclusively, which is infeasible to utilize the knowledge of a new malicious NPM package detected recently to detect the new malicious package in PyPI. Moreover, existing detectors lack support to model malicious behavior of OSS packages in a sequential way. To address the two limitations, we propose a single detection model using malicious behavior sequence, named Cerebro , to detect malicious packages in NPM and PyPI. We curate a feature set based on a high-level abstraction of malicious behavior to enable multi-lingual knowledge fusing. We organize extracted features into a behavior sequence to model sequential malicious behavior. We fine-tune the pre-trained language model to understand the semantics of malicious behavior. Extensive evaluation has demonstrated the effectiveness of Cerebro over the state-of-the-art as well as the practically acceptable efficiency. Cerebro has detected 683 and 799 new malicious packages in PyPI and NPM, and received 707 thank letters from the official PyPI and NPM teams.

Förderung

  • National Natural Science Foundation of China
  • Shanghai Sailing

Zitieren

APA

Zhang, J., Huang, K., Huang, Y., Chen, B., Wang, R., Wang, C., & Peng, X. (2025). Killing Two Birds with One Stone: Malicious Package Detection in NPM and PyPI using a Single Model of Malicious Behavior Sequence. ACM Transactions on Software Engineering and Methodology, 34(4), 1-28. https://doi.org/10.1145/3705304

Vancouver

Zhang J, Huang K, Huang Y, Chen B, Wang R, Wang C, et al. Killing Two Birds with One Stone: Malicious Package Detection in NPM and PyPI using a Single Model of Malicious Behavior Sequence. ACM Transactions on Software Engineering and Methodology. 2025;34(4):1-28. doi:10.1145/3705304

BibTeX
@article{Zhang2025,
  author = {Zhang, Junan and Huang, Kaifeng and Huang, Yiheng and Chen, Bihuan and Wang, Ruisi and Wang, Chong and Peng, Xin},
  title = {Killing Two Birds with One Stone: Malicious Package Detection in NPM and PyPI using a Single Model of Malicious Behavior Sequence},
  journal = {ACM Transactions on Software Engineering and Methodology},
  year = {2025},
  volume = {34},
  number = {4},
  pages = {1--28},
  doi = {10.1145/3705304}
}
Kostenlos starten →