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

被引:8
作者
Ruohonen, Jukka [1 ]
Hjerppe, Kalle [1 ]
Rindell, Kalle [1 ]
机构
[1] Univ Turku, Turku, Finland
来源
2021 18TH INTERNATIONAL CONFERENCE ON PRIVACY, SECURITY AND TRUST (PST) | 2021年
关键词
Bug; defect; issue; smell; vulnerability; weakness; repository; ecosystem; static analysis; tinting; Bandit; PyPI; BOOTSTRAP METHODS; SOFTWARE;
D O I
10.1109/PST52912.2021.9647791
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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.
引用
收藏
页数:10
相关论文
共 80 条
  • [31] MITRE, 2020, CWE322 MITRE
  • [32] MITRE, CWE327 MITRE
  • [33] MITRE, 2020, CWE326 MITRE
  • [34] MITRE, 2020, CWE338 MITRE
  • [35] MITRE, CWE319 MITRE
  • [36] MITRE, 2020, CWE755 MITRE
  • [37] MITRE, CWE502 MITRE
  • [38] MITRE, 2020, CWE95 MITRE
  • [39] Nachtigall M., 2019, P 34 IEEEACM INT C A, P2932
  • [40] National Institute of Standards and Technology (NIST), 2017, CVE201718342 NIST