Journal "Software Engineering"
a journal on theoretical and applied science and technology
ISSN 2220-3397

Issue N8 2022 year

DOI: 10.17587/prin.13.394-403
Static Analysis of the Source Code of Python Applications
D. A. Kapustin, kap-kapchik@mail.ru, V. V. Shvyrov, slsh@i.ua, T. I. Shulika, shulika-tatyana@mail.ru, Lugansk State Pedagogical University, Lugansk, 91011, Lugansk Peoples Republic
Corresponding author: Denis A. Kapustin, Associate Professor, Lugansk State Pedagogical University, Lugansk, 91011, Lugansk Peoples Republic, E-mail: kap-kapchik@mail.ru
Received on July 08, 2022
Accepted on July 21, 2022

One of the popular methods of software code analysis is the static analysis method. This method allows not only to check the code for compliance with the language specification, but also to find potential vulnerabilities. The work performs a static analysis of a corpus of open source Python application. Using the Bandit library, statistical indicators of various categories of potential vulnerabilities are found, a rating table of vulnerabilities found in the studied data set is built. A qualitative analysis of threats is carried out according to their danger based on the CWE catalog data. The purpose of this work is to analyze a corpus of open source Python listings for potential vulnerabilities using a static analyzer and rank threats based on the potential vulnerabilities found. Thus, the study should answer the following questions: Q1. What categories of potential vulnerabilities in the CWE catalog are most common in Python open source projects? Q2. What categories of tests (checks) of the Bandit library found the most vulnerabilities? Q3. Is there a correlation between the obtained statistical data and the OWASP rating data?

Keywords: bandit, big data, CWE, linters, OWASP, python dataset, security analysis, static analysis, source code analysis, threat, vulnerability
pp. 394–403
For citation:
Kapustin D. A., Shvyrov V. V., Shulika T. I. Static Analysis of the Source Code of Python Applications, Programmnaya Ingeneria, 2022, vol. 13, no. 8, pp. 394—403.