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 条
  • [51] Python Software Foundation, 2020, MISC OP SYST INT
  • [52] Python Software Foundation, 2017, 551 PEP PYTH SOFTW
  • [53] Python Software Foundation, 2020, TEMPF GEN TEMP FIL D
  • [54] Share, But Be Aware: Security Smells in Python']Python Gists
    Rahman, Md Rayhanur
    Rahman, Akond
    Williams, Laurie
    [J]. 2019 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2019), 2019, : 536 - 540
  • [55] Ronacher A., 2020, QUICKSTART
  • [56] Ruohonen Jukka, 2019, Applied Computing and Informatics, V15, P129, DOI 10.1016/j.aci.2017.12.002
  • [57] A Demand-Side Viewpoint to Software Vulnerabilities in WordPress Plugins
    Ruohonen, Jukka
    [J]. PROCEEDINGS OF EASE 2019 - EVALUATION AND ASSESSMENT IN SOFTWARE ENGINEERING, 2019, : 222 - 228
  • [58] An Empirical Analysis of Vulnerabilities in Python']Python Packages for Web Applications
    Ruohonen, Jukka
    [J]. 2018 9TH INTERNATIONAL WORKSHOP ON EMPIRICAL SOFTWARE ENGINEERING IN PRACTICE (IWESEP), 2018, : 25 - 30
  • [59] Scheirlinck D., 2017, HTTPOXY CGI APPL VUL
  • [60] Mitigating Program Security Vulnerabilities: Approaches and Challenges
    Shahriar, Hossain
    Zulkernine, Mohammad
    [J]. ACM COMPUTING SURVEYS, 2012, 44 (03)