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 条
  • [41] Detecting Security-Relevant Methods using Multi-label Machine Learning
    Johnson, Oshando
    Piskachev, Goran
    Krishnarnurthy, Ranjith
    Bodden, Eric
    PROCEEDINGS OF THE 2024 FIRST IDE WORKSHOP, IDE 2024, 2024, : 101 - 106
  • [42] Detecting Cross-Site Scripting Vulnerability using Concolic Testing
    Ruse, Michelle E.
    Basu, Samik
    PROCEEDINGS OF THE 2013 10TH INTERNATIONAL CONFERENCE ON INFORMATION TECHNOLOGY: NEW GENERATIONS, 2013, : 633 - 638
  • [43] SSG-AFL: Vulnerability detection for Reactive Systems using Static Seed Generator based AFL
    Godboley, Sangharatna
    Dutta, Arpita
    Pisipati, Radha Krishna
    Mohapatra, Durga Prasad
    2022 IEEE 46TH ANNUAL COMPUTERS, SOFTWARE, AND APPLICATIONS CONFERENCE (COMPSAC 2022), 2022, : 1728 - 1733
  • [44] Detection of Software Security Weaknesses Using Cross-Language Source Code Representation (CLaSCoRe)
    Zaharia, Sergiu
    Rebedea, Traian
    Trausan-Matu, Stefan
    APPLIED SCIENCES-BASEL, 2023, 13 (13):
  • [45] Information security vulnerability prediction based on business process model using machine learning approach
    Hariyanti, Eva
    Djunaidy, Arif
    Siahaan, Daniel
    COMPUTERS & SECURITY, 2021, 110 (110)
  • [46] Bug detection in Java']Java code: An extensive evaluation of static analysis tools using Juliet Test Suites
    Amankwah, Richard
    Chen, Jinfu
    Song, Heping
    Kudjo, Patrick Kwaku
    SOFTWARE-PRACTICE & EXPERIENCE, 2023, 53 (05) : 1125 - 1143
  • [47] AV-AFL: A Vulnerability Detection Fuzzing Approach by Proving Non-reachable Vulnerabilities using Sound Static Analyser
    Godboley, Sangharatna
    Gupta, Kanika
    Rani, G. Monika
    ENASE: PROCEEDINGS OF THE 17TH INTERNATIONAL CONFERENCE ON EVALUATION OF NOVEL APPROACHES TO SOFTWARE ENGINEERING, 2022, : 301 - 308
  • [48] IoT Application-Layer Protocol Vulnerability Detection using Reverse Engineering
    Luo, Jian-Zhen
    Shan, Chun
    Cai, Jun
    Liu, Yan
    SYMMETRY-BASEL, 2018, 10 (11):
  • [49] Vulnerability Detection in PHP Web Application Using Lexical Analysis Approach with Machine Learning
    Anbiya, Dhika Rizki
    Purwarianti, Ayu
    Asnar, Yudistira
    PROCEEDINGS OF 2018 5TH INTERNATIONAL CONFERENCE ON DATA AND SOFTWARE ENGINEERING (ICODSE), 2018,
  • [50] A Design and Development of Web Application Vulnerability Detection Using Graph-based Modeling Analysis Over CAPEC
    Bongkodmalee, Teeramaet
    Vongvipaporn, Supasake
    Siripanich, Preravitch
    Fugkeaw, Somchart
    Vorakulpipat, Chalee
    2024 21ST INTERNATIONAL JOINT CONFERENCE ON COMPUTER SCIENCE AND SOFTWARE ENGINEERING, JCSSE 2024, 2024, : 28 - 34