arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.15978cs.SE
收藏

检查代码和架构气味与软件漏洞的关系

Examining the Relationship of Code and Architectural Smells with Software Vulnerabilities

Kazi Zakia Sultana, Zadia Codabux, Byron Williams

摘要:

安全性对于为商业或个人使用而开发的软件至关重要。虽然越来越多的组织意识到应用安全编码实践的重要性,但在其中许多组织中,直到发生安全故障时才知道或解决安全问题。安全失败的根本原因是易受攻击的代码。虽然度量已被用于预测软件漏洞,我们探索代码和架构气味与安全弱点之间的关系。由于气味是软件中更深层次问题的表面指标,因此确定气味与软件漏洞之间的关系可以在漏洞预测模型中发挥重要作用。目的:探讨气味与软件漏洞的关系,以识别气味。方法:我们提取了三个系统的类、方法、文件和包级别的气味:Apache Tomcat、Apache CXF和Android。然后,我们比较了它们在报告包含易受攻击代码的易受攻击类和中性类(尚未报告漏洞的非易受攻击类)中的出现情况。结果:我们发现,与非脆弱类相比,脆弱类更有可能具有某些气味。上帝类、复杂类、大类、数据类、特征嫉妒类、大脑类与软件漏洞具有统计学显着关系。我们发现架构气味和软件漏洞之间没有显著的关系。结论:我们可以得出结论,对于所有被检查的系统,在软件漏洞和一些气味之间存在统计学上显著的相关性。

英文摘要:

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. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑