A Large-Scale Security-Oriented Static Analysis of Python Packages in PyPI
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). First posted on arXiv 27 Jul 2021.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 1; 2023: 0; 2024: 0; 2025: 1; 2026: 2.
4 papers.
- 2022Malicious Source Code Detection Using Transformercited by 4
- 2025Empirical Evaluation of AI-Assisted Software Package Selection: A Knowledge Graph Approachcited by 2
- 2026Many Hands Make Light Work: An LLM-based Multi-Agent System for Detecting Malicious PyPI Packagescited by 1
- 2026From Leaderboard to Deployment: Code Quality Challenges in AV Perception Repositoriescited by 0
- 2026From Leaderboard to Deployment: Code Quality Challenges in AV Perception Repositories2 Mar 2026
- 2026Many Hands Make Light Work: An LLM-based Multi-Agent System for Detecting Malicious PyPI Packages17 Jan 2026
- 2025Empirical Evaluation of AI-Assisted Software Package Selection: A Knowledge Graph Approach6 Aug 2025
- 2022Malicious Source Code Detection Using Transformer16 Sep 2022