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

被引:17
|
作者
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
关键词
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
相关论文
共 50 条
  • [1] Detecting Code Smells in Python']Python Programs
    Chen, Zhifei
    Chen, Lin
    Ma, Wanwangying
    Xu, Baowen
    [J]. 2016 INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, TESTING AND EVOLUTION (SATE 2016), 2016, : 18 - 23
  • [2] A Severity Assessment of Python']Python Code Smells
    Gupta, Aakanshi
    Gandhi, Rashmi
    Jatana, Nishtha
    Jatain, Divya
    Panda, Sandeep Kumar
    Ramesh, Janjhyam Venkata Naga
    [J]. IEEE ACCESS, 2023, 11 : 119146 - 119160
  • [3] Exploring Security Commits in Python']Python
    Sun, Shiyu
    Wang, Shu
    Wang, Xinda
    Xing, Yunlong
    Zhang, Elisa
    Sun, Kun
    [J]. 2023 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION, ICSME, 2023, : 171 - 181
  • [4] Python']Python code smells detection using conventional machine learning models
    Sandouka, Rana
    Aljamaan, Hamoud
    [J]. PEERJ COMPUTER SCIENCE, 2023, 9
  • [5] BGPy: The BGP Python']Python Security Simulator
    Furuness, Justin
    Morris, Cameron
    Morillo, Reynaldo
    Herzberg, Amir
    Wang, Bing
    [J]. PROCEEDINGS OF 16TH CYBER SECURITY EXPERIMENTATION AND TEST WORKSHOP, CSET 2023, 2023, : 41 - 56
  • [6] Understanding metric-based detectable smells in Python']Python software: A comparative study
    Chen Zhifei
    Chen Lin
    Ma Wanwangying
    Zhou Xiaoyu
    Zhou Yuming
    Xu Baowen
    [J]. INFORMATION AND SOFTWARE TECHNOLOGY, 2018, 94 : 14 - 29
  • [7] Towards Better Dependency Management: A First Look at Dependency Smells in Python']Python Projects
    Cao, Yulu
    Chen, Lin
    Ma, Wanwangying
    Li, Yanhui
    Zhou, Yuming
    Wang, Linzhang
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2023, 49 (04) : 1741 - 1765
  • [8] Empirical Analysis of Security Vulnerabilities in Python']Python Packages
    Alfadel, Mahmoud
    Costa, Diego Elias
    Shihab, Emad
    [J]. 2021 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING (SANER 2021), 2021, : 446 - 457
  • [9] A Method to Enhance the Security Capability of Python']Python IDE
    Vinh Pham
    Kim, Namuk
    Seo, Eunil
    Ha, Jun Suk
    Chung, Tai-Myoung
    [J]. FUTURE DATA AND SECURITY ENGINEERING (FDSE 2019), 2019, 11814 : 399 - 410
  • [10] On the Security of Python']Python Virtual Machines: An Empirical Study
    Lin, Xinrong
    Hua, Baojian
    Fan, Qiliang
    [J]. 2022 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2022), 2022, : 223 - 234