Snake in the Grass: A Hybrid Detection Method Targeting Malicious PyPI Packages
IEEE Transactions on Reliability · 2026 · 75 · 1540-1553
DOI: 10.1109/tr.2026.3676895 ↗Kurz gefasst
Fachartikel in der Zeitschrift IEEE Transactions on Reliability, 2026. Verfasst von Cheng Huang und 4 weiteren Autor:innen. Die Arbeit wurde bisher 1-mal zitiert (Crossref) und nennt 70 Literaturangaben. Gefördert von: National Key Research and Development Program of China, National Natural Science Foundation of China, Sichuan Science and Technology Program.
Abstract (Originalsprache)
As an increasing number of reusable packages are available in software development, package ecosystems are becoming more mature. Python is one of the most popular programming languages today. PyPI, as the primary repository of Python packages, serves a critical role in Python software development. While PyPI enables registered users to publish open-source packages, attackers can disguise themselves as developers to distribute malicious packages. We present a hybrid malicious python package detection framework named PCPD, which combines static anomaly detection and dynamic running analysis to detect lurking malicious packages. Using PCPD, we analyze a real-world dataset containing 414 880 PyPI packages and successfully narrow the inspection scope to 324 suspicious packages, reducing the manual review workload for repository managers by 99.48%. We have identified 121 packages with malicious behavior using PCPD and made all samples publicly available for security researchers to help mitigate these risks and protect the community. In addition, we discover potential factors that enable malicious packages to evade scrutiny from repositories and associated threat signals.
Förderung
- National Key Research and Development Program of China
- National Natural Science Foundation of China
- Sichuan Science and Technology Program
Zitieren
APA
Huang, C., Zeng, Y., Liang, G., Yang, Z., & Du, Y. (2026). Snake in the Grass: A Hybrid Detection Method Targeting Malicious PyPI Packages. IEEE Transactions on Reliability, 75, 1540-1553. https://doi.org/10.1109/tr.2026.3676895
Vancouver
Huang C, Zeng Y, Liang G, Yang Z, Du Y. Snake in the Grass: A Hybrid Detection Method Targeting Malicious PyPI Packages. IEEE Transactions on Reliability. 2026;75:1540-1553. doi:10.1109/tr.2026.3676895
BibTeX
@article{Huang2026,
author = {Huang, Cheng and Zeng, Yutong and Liang, Genpei and Yang, Zhen and Du, Yutong},
title = {Snake in the Grass: A Hybrid Detection Method Targeting Malicious PyPI Packages},
journal = {IEEE Transactions on Reliability},
year = {2026},
volume = {75},
pages = {1540--1553},
doi = {10.1109/tr.2026.3676895}
}
EUVIMED