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

面向大规模安全的PyPI Python包静态分析

A Large-Scale Security-Oriented Static Analysis of Python Packages in PyPI

Jukka Ruohonen, Kalle Hjerppe, Kalle Rindell

摘要:

不同的安全问题是归档到软件生态系统并通过软件生态系统交付的开源软件包的常见问题。这些通常表现为可能导致具体软件漏洞的软件弱点。本文使用静态分析来研究Python包中的各种安全问题。该数据集基于存储在Python包索引(PyPI)中的所有包的快照。总共涵盖了超过19.7万个软件包和超过74.9万个安全问题。即使在静态分析施加的约束下,(a)结果表明安全问题普遍存在;大约46%的Python包至少存在一个问题。就问题类型而言,(b)异常处理和不同的代码注入是最常见的问题。子流程模块在这方面尤为突出。反映了软件包的一般小尺寸,(c)软件尺寸度量不能很好地预测通过静态分析揭示的问题的数量。这些结果和相应的讨论,有助于更好地理解软件生态系统中的安全问题的大规模实证研究领域。

英文摘要:

Different security issues are a common problem for open source packages archived to and delivered through software ecosystems. These often manifest themselves as software weaknesses that may lead to concrete software vulnerabilities. This paper examines various security issues in Python packages with static analysis. The dataset is based on a snapshot of all packages stored to the Python Package Index (PyPI). In total, over 197 thousand packages and over 749 thousand security issues are covered. Even under the constraints imposed by static analysis, (a) the results indicate prevalence of security issues; at least one issue is present for about 46% of the Python packages. In terms of the issue types, (b) exception handling and different code injections have been the most common issues. The subprocess module stands out in this regard. Reflecting the generally small size of the packages, (c) software size metrics do not predict well the amount of issues revealed through static analysis. With these results and the accompanying discussion, the paper contributes to the field of large-scale empirical studies for better understanding security problems in software ecosystems.

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

↑