arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.15033cs.CR
收藏

基于机器学习的良性与恶意软件包分类研究

Towards Classifying Benign And Malicious Packages Using Machine Learning

Eastern International University(东方国际大学);University of Information Technology(信息技术大学)

Thanh-Cong Nguyen, Ngoc-Thanh Nguyen, Van-Giau Ung, Duc-Ly Vu

AI总结:

针对现有动态分析工具无法自动区分开源软件包善恶的问题,提出从动态分析结果提取特征结合机器学习的分类方法,在npm近2000个包上实现0.91的AUC且误报率近0%。

摘要:

近年来,软件包仓库中的恶意开源软件包数量急剧增长。当前主流安全扫描器主要聚焦于识别开源软件包中已知的通用漏洞披露(CVE),针对恶意软件包检测的研究十分匮乏。恶意开源软件包检测通常需要采用静态分析、动态分析或二者结合的方式,其中动态分析因可暴露软件包运行时行为而效果更优,但现有动态分析工具(如ossf的package-analysis)缺乏自动区分恶意与良性软件包的方法。本文提出一种从动态分析结果(如执行的命令)中提取特征,并利用机器学习技术自动将软件包分类为良性或恶意的方法。我们在npm平台的近2000个软件包上开展评估,结果显示该机器学习分类器的AUC达到0.91,误报率接近0%。

英文摘要:

Recently, the number of malicious open-source packages in package repositories has been increasing dramatically. While major security scanners focus on identifying known Common Vulnerabilities and Exposures (CVEs) in open-source packages, there are very few studies on detecting malicious packages. Malicious open-source package detection typically requires static, dynamic analysis, or both. Dynamic analysis is more effective as it can expose a package's behaviors at runtime. However, current dynamic analysis tools (e.g., ossf's package-analysis) lack an automatic method to differentiate malicious packages from benign packages. In this paper, we propose an approach to extract the features from dynamic analysis (e.g., executed commands) and leverage machine learning techniques to automatically classify packages as benign or malicious. Our evaluation of nearly 2000 packages on npm shows that the machine learning classifier achieves an AUC of 0.91 with a false positive rate of nearly 0%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑