Using ChatGPT as a Static Application Security Testing Tool

被引:2
|
作者
Bakhshandeh, Atieh [1 ]
Keramatfar, Abdalsamad [1 ]
Norouzi, Amir [1 ]
Chekidehkhoun, Mohammad M. [1 ]
机构
[1] Res Ctr Dev Adv Technol, Tehran, Iran
来源
ISECURE-ISC INTERNATIONAL JOURNAL OF INFORMATION SECURITY | 2023年 / 15卷 / 03期
关键词
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. (c) 2023 ISC. All rights reserved.
引用
收藏
页码:51 / 58
页数:8
相关论文
共 50 条
  • [1] 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
  • [2] 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
  • [3] 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
  • [4] Static Application Security Testing of Consensus-Critical Code in the Cosmos Network
    Surmont, Jasper
    Wang, Weihong
    Van Cutsem, Tom
    2023 5TH CONFERENCE ON BLOCKCHAIN RESEARCH & APPLICATIONS FOR INNOVATIVE NETWORKS AND SERVICES, BRAINS, 2023,
  • [5] 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
  • [6] Comparison and Evaluation on Static Application Security Testing (SAST) Tools for Java']Java
    Li, Kaixuan
    Chen, Sen
    Fan, Lingling
    Feng, Ruitao
    Liu, Han
    Liu, Chengwei
    Liu, Yang
    Chen, Yixiang
    PROCEEDINGS OF THE 31ST ACM JOINT MEETING EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, ESEC/FSE 2023, 2023, : 921 - 933
  • [7] Vulnerabilities mapping based on OWASP-SANS: A survey for static application security testing (SAST)
    Li J.
    Annals of Emerging Technologies in Computing, 2020, 4 (03) : 1 - 8
  • [8] Data-Driven Improvement of Static Application Security Testing Service: An Experience Report in Visma
    Iovan, Monica
    Cruzes, Daniela Soares
    PRODUCT-FOCUSED SOFTWARE PROCESS IMPROVEMENT, PROFES 2022, 2022, 13709 : 157 - 170
  • [9] Myths and Facts About Static Application Security Testing Tools: An Action Research at Telenor Digital
    Oyetoyan, Tosin Daniel
    Milosheska, Bisera
    Grini, Mari
    Cruzes, Daniela Soares
    AGILE PROCESSES IN SOFTWARE ENGINEERING AND EXTREME PROGRAMMING, XP 2018, 2018, 314 : 86 - 103
  • [10] Can a Llama be a Watchdog? Exploring Llama 3 and Code Llama for Static Application Security Testing
    Curto, Claudio
    Giordano, Daniela
    Indelicato, Daniel Gustav
    Patatu, Vladimiro
    2024 IEEE INTERNATIONAL CONFERENCE ON CYBER SECURITY AND RESILIENCE, CSR, 2024, : 395 - 400