亲爱的研友该休息了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!身体可是革命的本钱,早点休息,好梦!

Software Vulnerability Detection with GPT and In-Context Learning

计算机科学 代码段 背景(考古学) 脆弱性(计算) 源代码 脆弱性评估 人工智能 机器学习 编码(集合论) 软件 自然语言处理 情报检索 计算机安全 集合(抽象数据类型) 程序设计语言 心理弹性 古生物学 心理学 生物 心理治疗师
作者
Zhihong Liu,Qing Liao,Wenchao Gu,Cuiyun Gao
标识
DOI:10.1109/dsc59305.2023.00041
摘要

Code vulnerability detection is a software security analysis technique that focuses on recognizing and resolving possible code vulnerabilities and weaknesses. Its primary objective is to mitigate the chances of malicious attacks and system failures. Vulnerabilities encompass mistakes, defects, or insecure programming methodologies found within the code, which can lead to security risks, service denials, data leaks, and various other concerns. Previous research has predominantly focused on deep learning models such as VulDeePecker, Russell, and SySeVR. With the advent of large language models, impressive advancements have been made in various domains, including natural language generation, text classification, and sentiment analysis. However, there is currently no effective method for utilizing large language models in vulnerability detection. Therefore, this study explores and validates the application of such models for code vulnerability detection. In this paper we present a context-based learning approach to enhance the capability of code vulnerability detection named VUL-GPT. Our method combines code retrieval and code analysis, leveraging in-context learning to improve the performance of the GPT model in vulnerability detection. Specifically, we use GPT to generate analysis content for the test code and employ code retrieval methods such as BM-25 and TF-IDF to retrieve the most similar code snippet and its vulnerability information from the training set. Subsequently, we input them along with the test code and its analysis into the GPT model, leveraging the contextual learning ability of the large language model for vulnerability detection. Our experiments demonstrate that combining with code retrieval and code analysis, the GPT models can detect code vulnerability detection more effectively.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
yy完成签到 ,获得积分10
2秒前
树懒完成签到,获得积分20
4秒前
7秒前
10秒前
almost发布了新的文献求助20
14秒前
英姑应助锂电阳离子无序采纳,获得10
15秒前
17秒前
almost发布了新的文献求助10
26秒前
谎1028完成签到 ,获得积分10
31秒前
Zhou完成签到,获得积分20
40秒前
44秒前
小猪小猪完成签到 ,获得积分10
47秒前
51秒前
科研通AI2S应助科研通管家采纳,获得10
51秒前
almost发布了新的文献求助20
53秒前
怕黑寻双完成签到,获得积分10
1分钟前
怕黑寻双发布了新的文献求助10
1分钟前
almost发布了新的文献求助10
1分钟前
春和景明发布了新的文献求助10
1分钟前
顾矜应助Metrol_Wang采纳,获得10
1分钟前
春天的粥完成签到 ,获得积分10
1分钟前
1分钟前
joe发布了新的文献求助10
1分钟前
淡然若完成签到 ,获得积分10
1分钟前
1分钟前
无花果应助almost采纳,获得10
1分钟前
春和景明完成签到,获得积分10
1分钟前
爆米花应助flyingpig采纳,获得10
1分钟前
Metrol_Wang发布了新的文献求助10
1分钟前
1分钟前
花花发布了新的文献求助10
1分钟前
almost发布了新的文献求助20
1分钟前
1分钟前
almost发布了新的文献求助10
2分钟前
桐桐应助almost采纳,获得10
2分钟前
2分钟前
闪闪迎南完成签到 ,获得积分10
2分钟前
LSL丶发布了新的文献求助10
2分钟前
欣慰梦易完成签到,获得积分20
2分钟前
2分钟前
高分求助中
Metallurgy at high pressures and high temperatures 2000
Tier 1 Checklists for Seismic Evaluation and Retrofit of Existing Buildings 1000
PowerCascade: A Synthetic Dataset for Cascading Failure Analysis in Power Systems 1000
The Organic Chemistry of Biological Pathways Second Edition 1000
Signals, Systems, and Signal Processing 610
An Introduction to Medicinal Chemistry 第六版习题答案 600
Various Faces of Animal Metaphor in English and Polish 600
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6333942
求助须知:如何正确求助?哪些是违规求助? 8150364
关于积分的说明 17111281
捐赠科研通 5389642
什么是DOI,文献DOI怎么找? 2857125
邀请新用户注册赠送积分活动 1834624
关于科研通互助平台的介绍 1685452