arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.03998cs.CR
收藏

恶意Java包的检测

Towards the Detection of Malicious Java Packages

Piergiorgio Ladisa, Henrik Plate, Matias Martinez, Olivier Barais, Serena Elisa Ponta

摘要:

开源软件供应链攻击旨在通过毒害开源软件包来感染下游用户。消费这种工件的常见方式是通过包存储库,并且正在研究开发检测这种攻击的审查策略。尽管Java生态系统很受欢迎,但在供应链攻击的背景下,它是一个较少探索的生态系统。在本文中,我们提出了恶意行为的指标,可以通过分析Java字节码静态观察。然后,我们评估这些指标及其组合在检测恶意代码注入时的表现。我们通过将三个来自真实世界示例的恶意有效负载注入libraries.io中十大最受欢迎的Java库来做到这一点。我们发现,分析常量池中的字符串和字节码指令中的敏感API有助于通过显着减少信息来检测恶意Java包,从而使手动分类成为可能。

英文摘要:

Open-source software supply chain attacks aim at infecting downstream users by poisoning open-source packages. The common way of consuming such artifacts is through package repositories and the development of vetting strategies to detect such attacks is ongoing research. Despite its popularity, the Java ecosystem is the less explored one in the context of supply chain attacks. In this paper we present indicators of malicious behavior that can be observed statically through the analysis of Java bytecode. Then we evaluate how such indicators and their combinations perform when detecting malicious code injections. We do so by injecting three malicious payloads taken from real-world examples into the Top-10 most popular Java libraries from libraries.io. We found that the analysis of strings in the constant pool and of sensitive APIs in the bytecode instructions aid in the task of detecting malicious Java packages by significantly reducing the information, thus, making also manual triage possible.

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

↑