计算机与现代化 ›› 2024, Vol. 0 ›› Issue (04): 88-91.doi: 10.3969/j.issn.1006-2475.2024.04.015

• 信息安全 • 上一篇    下一篇

一种使用ChatGPT的源代码安全漏洞检测方法

  


  1. (江西省科技基础条件平台中心(江西省计算中心),江西 南昌 330003)
  • 出版日期:2024-04-30 发布日期:2024-05-13
  • 作者简介:余里辉(1993—),男,江西南昌人,工程师,硕士,研究方向:图像处理及信息安全,E-mail: 1297025039@qq.com; 胡少文(1987—),男,江西南昌人,高级工程师,硕士,研究方向:物联网技术及信息安全,信息号处理,图像加密,E-mail: 806814726@qq.com; 通信作者:黄浪鑫(1994—),男,江西丰城人,助理工程师,硕士,研究方向:图像加密及信息安全,E-mail: 1007098367@qq.com; 罗澍寰(1976—),男,安徽合肥人,助理工程师,本科,研究方向:图像处理,网络安全,E-mail: wetrain@qq.com。
  • 基金资助:
    江西省03专项及5G项目(20224ABC03W02)

A Source Code Security Vulnerability Detection Method Using ChatGPT



  1. (Jiangxi Science and Technology Infrastructure Center (Jiangxi Computing Center), Nanchang 330003, China)
  • Online:2024-04-30 Published:2024-05-13

摘要: 摘要:随着软件及信息系统的安全问题越来越突出,作为重要组成部分,源代码的安全是最底层的关键点,如何快速准确地对源代码进行安全漏洞检测显得尤为重要。本文提出一种基于ChatGPT的源代码安全漏洞检测方法,利用ChatGPT在自然语言处理领域的优势,将源代码转换为自然语言形式,然后利用ChatGPT对其进行处理,识别潜在的安全漏洞。该方法可以检测出多种类型的安全漏洞,如不安全的设计、SQL注入等。通过在公开数据集的源代码上进行安全漏洞检测的实验分析,验证了该方法的优越性和准确性。

关键词: 关键词:源代码安全, ChatGPT, 漏洞检测, SQL注入

Abstract: Abstract: As the security issues of software and information systems become more and more prominent, as an important part, the security of source code is the bottom key point. How to quickly and accurately detect security vulnerabilities of source code is particularly important. This paper proposes a source code security vulnerability detection method based on ChatGPT, which takes advantage of ChatGPT in the field of natural language processing, converts source code into natural language form, and then uses ChatGPT to process it to identify potential security vulnerabilities. This method can detect various types of security vulnerabilities, such as insecure design, SQL injection and so on. We demonstrate the superiority and accuracy of our approach through experimental analysis of security vulnerability detection on source codes of publicly available datasets.

Key words: Key words: source code security, ChatGPT, vulnerability detection, SQL injection

中图分类号: