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

基于数据库的软件生态系统的安全问题

Security Issues in Language-based Software Ecosystems

Ruturaj K. Vaidya, Lorenzo De Carli, Drew Davidson, Vaibhav Rastogi

摘要:

生态系统(LBE),即:基于单一程序设计语言的软件生态系统是非常常见的。例子包括JavaScript的npm生态系统和Python的PyPI。这些环境鼓励包之间的代码重用,并结合实用程序-包管理器-用于自动解决依赖关系。然而,使这些系统流行的相同方面-易于发布代码和导入外部代码-也产生了新的安全问题,到目前为止几乎没有研究。我们提出了一个系统的研究困扰LBE的安全问题。这些问题是这些生态系统工作方式所固有的,无法通过修复软件包或实用程序中的软件漏洞来解决,例如,包管理器工具,构建这些生态系统。我们从各个方面系统地描述了最近的安全攻击,包括攻击策略,向量和目标。我们对npm和PyPI生态系统的表征和深入分析表明,这些生态系统代表了最大的LBE,覆盖了近100万个包,这表明这些生态系统为攻击者提供了一个合适的环境,可以进行隐形攻击。总的来说,我们认为(i)完全自动检测恶意软件包可能是不可行的;但是(ii)帮助开发人员评估包括外部依赖项的风险的工具和指标将大大有助于防止攻击。

英文摘要:

Language-based ecosystems (LBE), i.e., software ecosystems based on a single programming language, are very common. Examples include the npm ecosystem for JavaScript, and PyPI for Python. These environments encourage code reuse between packages, and incorporate utilities - package managers - for automatically resolving dependencies. However, the same aspects that make these systems popular - ease of publishing code and importing external code - also create novel security issues, which have so far seen little study. We present an a systematic study of security issues that plague LBEs. These issues are inherent to the ways these ecosystems work and cannot be resolved by fixing software vulnerabilities in either the packages or the utilities, e.g., package manager tools, that build these ecosystems. We systematically characterize recent security attacks from various aspects, including attack strategies, vectors, and goals. Our characterization and in-depth analysis of npm and PyPI ecosystems, which represent the largest LBEs, covering nearly one million packages indicates that these ecosystems make an opportune environment for attackers to incorporate stealthy attacks. Overall, we argue that (i) fully automated detection of malicious packages is likely to be unfeasible; however (ii) tools and metrics that help developers assess the risk of including external dependencies would go a long way toward preventing attacks.

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

↑