Skip to content

MalGuard: Real-Time, Accurate and Actionable Detection of Malicious Packages in the PyPI EcosystemMalGuard: Towards Real-Time, Accurate, and Actionable Detection of Malicious Packages in PyPI Ecosystem

arXiv· arXiv:2506.14466· USENIX Security 2025· Xingan Gao, Xiaobing Sun, Sicong Cao, Kaifeng Huang, Di Wu, Xiaolei Liu, Xingwei Lin, Yang Xiang·Indexed by this site · 22 days ago· Originally publishedAttacks
AI summary

MalGuard combines graph centrality analysis with the LIME algorithm to detect malicious packages in the PyPI ecosystem, automatically extracts sensitive APIs, uses an LLM to refine the feature set and provides interpretable results. Compared with six SOTA baselines under the same settings, its precision improves by 0.5%-33.2% and its recall improves by 1.8%-22.1%. Within five weeks it identified 113 previously unknown malicious packages from 64,348 newly uploaded packages, of which 109 have been removed by PyPI officially.

Read originalUSENIX Security 2025