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 条
  • [1] Evaluating State-of-the-Art Free and Open Source Static Analysis Tools against Buffer Errors in Android Apps
    Aloraini, Bushra
    Nagappan, Meiyappan
    [J]. 2017 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME), 2017, : 295 - 306
  • [2] Software Metrics and Security Vulnerabilities: Dataset and Exploratory Study
    Alves, Henrique
    Fonseca, Baldoino
    Antunes, Nuno
    [J]. 2016 12TH EUROPEAN DEPENDABLE COMPUTING CONFERENCE (EDCC 2016), 2016, : 37 - 44
  • [3] Baltes S, SAMPLING SOFTWARE EN
  • [4] Analyzing the State of Static Analysis: A Large-Scale Evaluation in Open Source Software
    Beller, Moritz
    Bholanath, Radjino
    McIntosh, Shane
    Zaidman, Andy
    [J]. 2016 IEEE 23RD INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER), VOL 1, 2016, : 470 - 481
  • [5] Designing a Code Vulnerability Meta-scanner
    Benabidallah, Raounak
    Sadou, Salah
    Le Trionnaire, Brendan
    Borne, Isabelle
    [J]. INFORMATION SECURITY PRACTICE AND EXPERIENCE, ISPEC 2019, 2019, 11879 : 194 - 210
  • [6] Security Issues in Cloud Computing
    Borazjani, Parnian Najafi
    [J]. GREEN, PERVASIVE, AND CLOUD COMPUTING (GPC 2017), 2017, 10232 : 800 - 811
  • [7] What's in a GitHub Star? Understanding Repository Starring Practices in a Social Coding Platform
    Borges, Hudson
    Valente, Marco Tulio
    [J]. JOURNAL OF SYSTEMS AND SOFTWARE, 2018, 146 : 112 - 129
  • [8] Understanding How to Use Static Analysis Tools for Detecting Cryptography Misuse in Software
    Braga, Alexandre
    Dahab, Ricardo
    Antunes, Nuno
    Laranjeiro, Nuno
    Vieira, Marco
    [J]. IEEE TRANSACTIONS ON RELIABILITY, 2019, 68 (04) : 1384 - 1403
  • [9] Understanding metric-based detectable smells in Python']Python software: A comparative study
    Chen Zhifei
    Chen Lin
    Ma Wanwangying
    Zhou Xiaoyu
    Zhou Yuming
    Xu Baowen
    [J]. INFORMATION AND SOFTWARE TECHNOLOGY, 2018, 94 : 14 - 29
  • [10] Static analysis for security
    Chess, B
    McGraw, G
    [J]. IEEE SECURITY & PRIVACY, 2004, 2 (06) : 76 - 79