VulCoBERT: A CodeBERT-Based System for Source Code Vulnerability Detection

计算机科学 脆弱性(计算) 编码(集合论) 源代码 计算机安全 程序设计语言 集合(抽象数据类型)
作者
Yuying Xia,Haijian Shao,Xing Deng
标识
DOI:10.1145/3665348.3665391
摘要

As we advance in time, with the evolution of the computer industry and the escalating intricacy of diverse software, the demand for source code defects is also increasing. Traditional deep learning-based software defect detection methods perform well on synthetic defect datasets, but their performance on real software defect datasets is unsatisfactory. At the same time, pre-trained models derived from extensive data training are extensively employed in various NLP tasks and have achieved excellent results. Based on this background, this study introduces a software defect detection system leveraging CodeBERT and Bi-LSTM. This method first preprocesses and standardizes the C source code to minimize the impact of redundant information and reduce noise; Secondly, coding sequences are segmented and encoded using the CodeBERT pre-trained model, capturing the semantic features within the program's code and converting them into vectors containing code feature information and output; Then, the output of the received CodeBERT is processed through the Bi-LSTM network to acquire the structural composition inherent to the code and the semantic information of the positive and negative terms; Finally, the vectors containing source code features are classified using a fully connected network to determine whether the code segment has defects. To verify the impact of this approach, we used the cross-language benchmark test set CodeXGLUE proposed by Microsoft Research Institute for evaluating code tasks for validation. The results showed that this method had higher accuracy in detecting real software defect samples than other methods, indicating that the proposed method can effectively improve software defect detection capabilities.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
Derik发布了新的文献求助10
1秒前
kk119完成签到,获得积分10
1秒前
翁雁丝发布了新的文献求助10
2秒前
上官若男的应助被爽歪歪采纳,获得10
2秒前
扬大小汤发布了新的文献求助10
3秒前
mrastv发布了新的文献求助10
4秒前
淳于越泽给淳于越泽的求助进行了留言
5秒前
5秒前
Akim的应助被小木采纳,获得10
5秒前
小插曲发布了新的文献求助10
5秒前
库库学完成签到,获得积分20
7秒前
领导范儿的应助被yjt采纳,获得10
8秒前
8秒前
Ava的应助被小趙采纳,获得10
8秒前
OneTion完成签到 ,获得积分10
8秒前
mrastv完成签到,获得积分20
8秒前
俭朴笑晴完成签到 ,获得积分10
9秒前
Fiona0518完成签到 ,获得积分10
9秒前
斯文败类的应助被科研通管家采纳,获得10
9秒前
ski完成签到 ,获得积分10
9秒前
CodeCraft的应助被科研通管家采纳,获得10
9秒前
aaaa的应助被科研通管家采纳,获得30
10秒前
10秒前
10秒前
汉堡包的应助被科研通管家采纳,获得10
10秒前
JamesPei的应助被科研通管家采纳,获得10
10秒前
SciGPT的应助被科研通管家采纳,获得10
10秒前
ypp发布了新的文献求助10
10秒前
小二郎的应助被科研通管家采纳,获得10
10秒前
Yinxb的应助被科研通管家采纳,获得20
10秒前
我是老大的应助被科研通管家采纳,获得10
10秒前
CodeCraft的应助被科研通管家采纳,获得10
11秒前
搜集达人的应助被科研通管家采纳,获得10
11秒前
11秒前
华仔的应助被科研通管家采纳,获得10
11秒前
SciGPT的应助被科研通管家采纳,获得10
11秒前
molihuakai的应助被科研通管家采纳,获得10
11秒前
科目三的应助被科研通管家采纳,获得10
11秒前
田様的应助被小糯米团采纳,获得10
11秒前
11秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Aspects of Post-SPE Phonology 2000
Nanocomposite Removal of Pesticides from Wastewater 1000
Practical Manual of Forensic Psychophysiology: Methodology, Execution, and Fields of Application 800
Rosenblum, Global Change Biology 800
Final Report for the 2-D Test of Model 901 Rotor and Wing Airfoils (BSWT 592) 528
Berberine regulates the TLR4 signaling pathway to suppress hypoxia-induced proliferation and migration of pulmonary arterial smooth muscle cells 520
热门求助领域 (近24小时)
化学 材料科学 医学 生物 计算机科学 工程类 纳米技术 有机化学 物理 生物化学 化学工程 内科学 复合材料 催化作用 心理学 人工智能 细胞生物学 光电子学 无机化学 量子力学
热门帖子
关注 科研通微信公众号,转发送积分 7906602
求助须知:如何正确求助?哪些是违规求助? 9411224
关于积分的说明 20891505
捐赠科研通 7507523
什么是DOI,文献DOI怎么找? 3361745
关于科研通互助平台的介绍 2499738
邀请新用户注册赠送积分活动 2392008