Using ChatGPT as a Static Application Security Testing Tool

被引:2
|
作者
Bakhshandeh, Atieh [1 ,2 ]
Keramatfar, Abdalsamad [1 ,2 ]
Norouzi, Amir [1 ,2 ]
Chekidehkhoun, Mohammad M. [1 ,2 ]
机构
[1] Res Ctr Dev Adv Technol, Tehran, Iran
[2] MIT, Res & Engn, Cambridge, MA 02139 USA
关键词
Artificial Intelligence-based Code; Review ChatGPT Model; Common Weakness Enumeration; Static Application Security; Testing Vulnerability Detection;
D O I
10.22042/isecure.2023.182082
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
In recent years, artificial intelligence has had a conspicuous growth in almost every aspect of life. One of the most applicable areas is security code review, in which a lot of AI-based tools and approaches have been proposed. Recently, ChatGPT has caught a huge amount of attention with its remarkable performance in following instructions and providing a detailed response. Regarding the similarities between natural language and code, in this paper, we study the feasibility of using ChatGPT for vulnerability detection in Python source code. Toward this goal, we feed an appropriate prompt along with vulnerable data to ChatGPT and compare its results on two datasets with the results of three widely used Static Application Security Testing tools (Bandit, Semgrep, and SonarQube). We implement different kinds of experiments with ChatGPT and the results indicate that ChatGPT reduces the false positive and false negative rates and has the potential to be used for Python source code vulnerability detection.
引用
收藏
页数:8
相关论文
共 50 条
  • [1] Why Is Static Application Security Testing Hard to Learn?
    Krishnan, Padmanabhan
    Cifuentes, Cristina
    Li, Li
    Bissyande, Tegawende F.
    Klein, Jacques
    IEEE SECURITY & PRIVACY, 2023, 21 (05) : 68 - 72
  • [2] An Extensive Comparison of Static Application Security Testing Tools
    Esposito, Matteo
    Falaschi, Valentina
    Falessi, Davide
    PROCEEDINGS OF 2024 28TH INTERNATION CONFERENCE ON EVALUATION AND ASSESSMENT IN SOFTWARE ENGINEERING, EASE 2024, 2024, : 69 - 78
  • [3] An Extensive Comparison of Static Application Security Testing Tools
    Esposito, Matteo
    Falaschi, Valentina
    Falessi, Davide
    arXiv, 2024,
  • [4] Towards Better Utilizing Static Application Security Testing
    Yang, Jinqiu
    Tan, Lin
    Peyton, John
    Duer, Kristofer A.
    2019 IEEE/ACM 41ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: SOFTWARE ENGINEERING IN PRACTICE (ICSE-SEIP 2019), 2019, : 51 - 60
  • [5] SEBASTiAn: A static and extensible black-box application security testing tool for iOS and Android applications
    Pagano, Francesco
    Romdhana, Andrea
    Caputo, Davide
    Verderame, Luca
    Merlo, Alessio
    SOFTWAREX, 2023, 23
  • [6] An empirical study of security warnings from static application security testing tools
    Aloraini, Bushra
    Nagappan, Meiyappan
    German, Daniel M.
    Hayashi, Shinpei
    Higo, Yoshiki
    JOURNAL OF SYSTEMS AND SOFTWARE, 2019, 158
  • [7] Code Analysis with Static Application Security Testing for Python Program
    Li Ma
    Huihong Yang
    Jianxiong Xu
    Zexian Yang
    Qidi Lao
    Dong Yuan
    Journal of Signal Processing Systems, 2022, 94 : 1169 - 1182
  • [8] Code Analysis with Static Application Security Testing for Python']Python Program
    Ma, Li
    Yang, Huihong
    Xu, Jianxiong
    Yang, Zexian
    Lao, Qidi
    Yuan, Dong
    JOURNAL OF SIGNAL PROCESSING SYSTEMS FOR SIGNAL IMAGE AND VIDEO TECHNOLOGY, 2022, 94 (11): : 1169 - 1182
  • [9] A Comprehensive Study on Static Application Security Testing (SAST) Tools for Android
    Zhu, Jingyun
    Li, Kaixuan
    Chen, Sen
    Fan, Lingling
    Wang, Junjie
    Xie, Xiaofei
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2024, 50 (12) : 3385 - 3402
  • [10] Constructing Benchmarks for Supporting Explainable Evaluations of Static Application Security Testing Tools
    Hao, Gaojian
    Li, Feng
    Huo, Wei
    Sun, Qing
    Wang, Wei
    Li, Xinhua
    Zou, Wei
    2019 13TH INTERNATIONAL SYMPOSIUM ON THEORETICAL ASPECTS OF SOFTWARE ENGINEERING (TASE 2019), 2019, : 65 - 72