Empirical Analysis of Security Vulnerabilities in Python']Python Packages

被引:43
|
作者
Alfadel, Mahmoud [1 ]
Costa, Diego Elias [1 ]
Shihab, Emad [1 ]
机构
[1] Concordia Univ, Data Driven Anal Software DAS Lab, Montreal, PQ, Canada
关键词
!text type='python']python[!/text; pypi; packages; vulnerabilities; empirical studies;
D O I
10.1109/SANER50967.2021.00048
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Software ecosystems play an important role in modern software development, providing an open platform of reusable packages that speed up and facilitate development tasks. However, this level of code reusability supported by software ecosystems also makes the discovery of security vulnerabilities much more difficult, as software systems depend on an increasingly high number of packages. Recently, security vulnerabilities in the npm ecosystem, the ecosystem of Node.js packages, have been studied in the literature. As different software ecosystems embodied different programming languages and particularities, we argue that it is also important to study other popular programming languages to build stronger empirical evidence about vulnerabilities in software ecosystems. In this paper, we present an empirical study of 550 vulnerability reports affecting 252 Python packages in the Python ecosystem (PyPi). In particular, we study the propagation and life span of security vulnerabilities, accounting for how long they take to be discovered and fixed. Our findings show that the discovered vulnerabilities in Python packages are increasing over time, and they take more than 3 years to be discovered. The majority of these vulnerabilities (50.55%) are only fixed after being publicly announced, giving ample time for attackers exploitation. We find similarities in some characteristics of vulnerabilities in PyPi and npm and divergences that can be attributed to specific PyPi policies. By leveraging our findings, we provide a series of implications that can help the security of software ecosystems by improving the process of discovering, fixing and managing package vulnerabilities.
引用
收藏
页码:446 / 457
页数:12
相关论文
共 50 条
  • [1] Empirical analysis of security vulnerabilities in Python']Python packages
    Alfadel, Mahmoud
    Costa, Diego Elias
    Shihab, Emad
    EMPIRICAL SOFTWARE ENGINEERING, 2023, 28 (03)
  • [2] Empirical analysis of security vulnerabilities in Python packages
    Mahmoud Alfadel
    Diego Elias Costa
    Emad Shihab
    Empirical Software Engineering, 2023, 28
  • [3] An Empirical Analysis of Vulnerabilities in Python']Python Packages for Web Applications
    Ruohonen, Jukka
    2018 9TH INTERNATIONAL WORKSHOP ON EMPIRICAL SOFTWARE ENGINEERING IN PRACTICE (IWESEP), 2018, : 25 - 30
  • [4] Python']Python Packages for Exploratory Factor Analysis
    Persson, Isaiah
    Khojasteh, Jam
    STRUCTURAL EQUATION MODELING-A MULTIDISCIPLINARY JOURNAL, 2021, 28 (06) : 983 - 988
  • [5] A Taxonomy for Python']Python Vulnerabilities
    Bogaerts, Frederic C. G.
    Ivaki, Naghmeh
    Fonseca, Jose
    IEEE OPEN JOURNAL OF THE COMPUTER SOCIETY, 2024, 5 : 368 - 379
  • [6] On the Security of Python']Python Virtual Machines: An Empirical Study
    Lin, Xinrong
    Hua, Baojian
    Fan, Qiliang
    2022 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2022), 2022, : 223 - 234
  • [7] A Large-Scale Security-Oriented Static Analysis of Python']Python Packages in PyPI
    Ruohonen, Jukka
    Hjerppe, Kalle
    Rindell, Kalle
    2021 18TH INTERNATIONAL CONFERENCE ON PRIVACY, SECURITY AND TRUST (PST), 2021,
  • [8] An empirical analysis of the transition from Python']Python 2 to Python']Python 3
    Malloy, Brian A.
    Power, James F.
    EMPIRICAL SOFTWARE ENGINEERING, 2019, 24 (02) : 751 - 778
  • [9] A survey of Python']Python plotting packages for PyRAF
    De La Peña, MD
    Greenfield, P
    ASTRONOMICAL DATA ANALYSIS SOFTWARE AND SYSTEMS XI, 2002, 281 : 193 - 196
  • [10] Using AI to Inject Vulnerabilities in Python']Python Code
    Bogaerts, Frederic C. G.
    Ivaki, Naghmeh
    Fonseca, Jose
    2023 53RD ANNUAL IEEE/IFIP INTERNATIONAL CONFERENCE ON DEPENDABLE SYSTEMS AND NETWORKS WORKSHOPS, DSN-W, 2023, : 223 - 230