arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2403.08334cs.CR
收藏

DONAPI:基于行为序列知识映射的恶意NPM包检测器

DONAPI: Malicious NPM Packages Detector using Behavior Sequence Knowledge Mapping

Cheng Huang, Nannan Wang, Ziyan Wang, Siqi Sun, Lingzi Li, Junren Chen, Qianchong Zhao, Jiaxuan Han, Zhen Yang, Lei Shi

AI总结:

针对npm生态的恶意包安全风险,研究提出结合静动态分析的DONAPI检测器,基于行为知识库识别恶意包,已发现325个恶意样本及多种未知异常调用与序列。

摘要:

随着模块化在软件开发中日益普及,包管理器与语言生态系统也随之兴起。其中,npm作为规模最大的包管理器尤为突出,托管了超过200万个第三方开源包,极大简化了代码构建流程。但这种开放性也带来了安全风险,大量包投毒事件就是明证。\n 本文中,我们近实时同步了一个包含超过340万个包的本地包缓存,以获取更多包的代码细节。此外,我们对从公共数据集和安全报告中收集的包进行人工检查与API调用序列分析,构建了覆盖不同敏感行为的分层分类框架和行为知识库。我们还提出了DONAPI——一种结合静态与动态分析的自动化恶意npm包检测器。它通过代码重构技术与静态分析对包的恶意程度做出初步判断,提取动态API调用序列以确认并识别静态分析无法单独处理的混淆内容,最终基于构建的行为知识库为恶意软件包打标签。截至目前,我们已识别并人工确认了325个恶意样本,还发现了2种未在已知样本中出现过的异常API调用以及246条未出现过的API调用序列。

英文摘要:

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 detector that combines static and dynamic analysis. It makes preliminary judgments on the degree of maliciousness of packages by code reconstruction techniques and static analysis, extracts dynamic API call sequences to confirm and identify obfuscated content that static analysis can not handle alone, and finally tags malicious software packages based on the constructed behavior knowledge base. To date, we have identified and manually confirmed 325 malicious samples and discovered 2 unusual API calls and 246 API call sequences that have not appeared in known samples.

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

↑