一石二鸟:利用单一恶意行为序列模型在NPM和PyPI中检测恶意包
Killing Two Birds with One Stone: Malicious Package Detection in NPM and PyPI using a Single Model of Malicious Behavior Sequence
AI总结:
本文提出Cerebro模型,通过统一多语言恶意包知识和序列建模技术,有效检测NPM和PyPI中的恶意包,实现高效准确的恶意包识别。
摘要:
开源软件(OSS)供应链扩大了攻击面,使包注册表成为攻击目标。最近,NPM和PyPI包注册表被恶意包淹没。现有恶意包检测方法受限于两个挑战:如何统一不同生态系统的恶意包知识以实现多语言检测,以及如何序列化恶意行为以精确捕捉恶意性。为解决这两个挑战,我们提出了Cerebro模型。我们基于恶意行为的高层抽象构建特征集,实现多语言知识融合。我们组织提取的特征为行为序列以建模序列恶意行为。我们微调BERT模型以理解恶意行为的语义。广泛评估证明了Cerebro在状态-of-the-art方法上的有效性以及可接受的效率。Cerebro已成功检测出PyPI和NPM中的306和196个新恶意包,并获得了官方PyPI和NPM团队的385封感谢信。
英文摘要:
Open-source software (OSS) supply chain enlarges the attack surface, which makes package registries attractive targets for attacks. Recently, package registries NPM and PyPI have been flooded with malicious packages. The effectiveness of existing malicious NPM and PyPI package detection approaches is hindered by two challenges. The first challenge is how to leverage the knowledge of malicious packages from different ecosystems in a unified way such that multi-lingual malicious package detection can be feasible. The second challenge is how to model malicious behavior in a sequential way such that maliciousness can be precisely captured. To address the two challenges, we propose and implement 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 BERT 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 successfully detected 306 and 196 new malicious packages in PyPI and NPM, and received 385 thank letters from the official PyPI and NPM teams.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。