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

《恶意第三方依赖漫游指南》

The Hitchhiker's Guide to Malicious Third-Party Dependencies

Piergiorgio Ladisa, Merve Sahin, Serena Elisa Ponta, Marco Rosa, Matias Martinez, Olivier Barais

AI总结:

该研究针对开源软件供应链中恶意第三方依赖的安全问题,分析7个生态系统的攻击技术,给出风险缓解建议并披露攻击者的检测规避策略。

摘要:

特定编程语言的日益普及推动了生态系统专属的软件包仓库和包管理器的诞生。这类仓库(例如npm、PyPI)作为公共数据库,用户可查询以获取具备各类功能的软件包,而包管理器则在客户端自动处理依赖解析与软件包安装。这些机制强化了软件模块化并加快了开发速度,但也成为企图大规模传播恶意软件的攻击者的目标。\n在本研究中,我们展示了攻击者如何利用主流包管理器与编程语言的功能在受害机器上实现任意代码执行,从而发起开源软件供应链攻击。基于对7个生态系统的分析,我们识别出3种安装时技术与4种运行时技术,并给出了降低使用第三方依赖时风险的建议。我们将提供验证所识别技术的概念验证(PoC)。此外,我们还阐述了攻击者用于规避检测机制的逃避策略。

英文摘要:

The increasing popularity of certain programming languages has spurred the creation of ecosystem-specific package repositories and package managers. Such repositories (e.g., npm, PyPI) serve as public databases that users can query to retrieve packages for various functionalities, whereas package managers automatically handle dependency resolution and package installation on the client side. These mechanisms enhance software modularization and accelerate implementation. However, they have become a target for malicious actors seeking to propagate malware on a large scale. In this work, we show how attackers can leverage capabilities of popular package managers and languages to achieve arbitrary code execution on victim machines, thereby realizing open-source software supply chain attacks. Based on the analysis of 7 ecosystems, we identify 3 install-time and 4 runtime techniques, and we provide recommendations describing how to reduce the risk when consuming third-party dependencies. We will provide proof-of-concepts that demonstrate the identified techniques. Furthermore, we describe evasion strategies employed by attackers to circumvent detection mechanisms.

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

↑