Share, But Be Aware: Security Smells in Python']Python Gists

被引:19
作者
Rahman, Md Rayhanur [1 ]
Rahman, Akond [2 ]
Williams, Laurie [1 ]
机构
[1] North Carolina State Univ, Raleigh, NC 27695 USA
[2] Tennessee Technol Univ, Cookeville, TN USA
来源
2019 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2019) | 2019年
关键词
GitHub; Gist; !text type='Python']Python[!/text; Security; Security Smell; Static Analysis; Software Security;
D O I
10.1109/ICSME.2019.00087
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Github Gist is a service provided by Github which is used by developers to share code snippets. While sharing, developers may inadvertently introduce security smells in code snippets as well, such as hard-coded passwords. Security smells are recurrent coding patterns that are indicative of security weaknesses, which could potentially lead to security breaches. The goal of this paper is to help software practitioners avoid insecure coding practices through an empirical study of security smells in publicly-available GitHub Gists. Through static analysis, we found 13 types of security smells with 4,403 occurrences in 5,822 publicly-available Python Gists. 1,817 of those Gists, which is around 31%, have at least one security smell including 689 instances of hard-coded secrets. We also found no significance relation between the presence of these security smells and the reputation of the Gist author. Based on our findings, we advocate for increased awareness and rigorous code review efforts related to software security for Github Gists so that propagation of insecure coding practices are mitigated.
引用
收藏
页码:536 / 540
页数:5
相关论文
共 10 条
[1]  
[Anonymous], 2019, P 41 INT C SOFTW ENG
[2]  
[Anonymous], P 27 INT C SOFTW ENG
[3]  
Bird C., 2011, P 19 ACM SIGSOFT S 1
[4]  
Chen M., 2019, ARXIV190101327
[5]  
Greiler M., 2015, 2015 IEEE ACM 12 WOR
[6]  
Horton E., 2018, 2018 IEEE INT C SOFT
[7]  
Meng N., 2018, 2018 IEEE ACM 40 INT
[8]  
Rahman Akond, 2019, P 16 INT C MIN SOFTW
[9]  
Unruh T., 2017, 11 USENIX WORKSH OFF
[10]  
Wohlin Claes, 2012, EXPT SOFTWARE ENG