Examining the Relationship of Code and Architectural Smells with Software Vulnerabilities

Kazi Zakia Sultana, Zadia Codabux, Byron Williams
10/29/2020
cs.SE

Official code: tdresearchgroup/GetSmells (2 stars, Python, last commit 2023-07-20).

Abstract

Context: Security is vital to software developed for commercial or personal use. Although more organizations are realizing the importance of applying secure coding practices, in many of them, security concerns are not known or addressed until a security failure occurs.

Show full abstract

The root cause of security failures is vulnerable code. While metrics have been used to predict software vulnerabilities, we explore the relationship between code and architectural smells with security weaknesses. As smells are surface indicators of a deeper problem in software, determining the relationship between smells and software vulnerabilities can play a significant role in vulnerability prediction models. Objective: This study explores the relationship between smells and software vulnerabilities to identify the smells. Method: We extracted the class, method, file, and package level smells for three systems: Apache Tomcat, Apache CXF, and Android. We then compared their occurrences in the vulnerable classes which were reported to contain vulnerable code and in the neutral classes (non-vulnerable classes where no vulnerability had yet been reported). Results: We found that a vulnerable class is more likely to have certain smells compared to a non-vulnerable class. God Class, Complex Class, Large Class, Data Class, Feature Envy, Brain Class have a statistically significant relationship with software vulnerabilities. We found no significant relationship between architectural smells and software vulnerabilities. Conclusion: We can conclude that for all the systems examined, there is a statistically significant correlation between software vulnerabilities and some smells.

View on arXivView PDF

Code Implementations(1)

Code Smells Detection Tool

20PythonJun 28, 20183 years ago

Similar Papers

Cite this paper

@article{sultana2020examining,
  title  = {Examining the Relationship of Code and Architectural Smells with Software Vulnerabilities},
  author = {Kazi Zakia Sultana and Zadia Codabux and Byron Williams},
  year   = {2020},
  eprint = {2010.15978},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.15978}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2010.15978.svg)](https://codeofpaper.com/paper/2010.15978)

Discussion