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
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
阿云完成签到,获得积分10
刚刚
霍师傅完成签到,获得积分10
1秒前
毛毛余发布了新的文献求助10
1秒前
研友_5Z4ZA5发布了新的文献求助10
1秒前
AHA完成签到,获得积分10
1秒前
小小怪完成签到,获得积分10
2秒前
康康完成签到,获得积分10
2秒前
3秒前
科研通AI6.4应助霍师傅采纳,获得10
4秒前
aajhajkahna应助1101592875采纳,获得10
6秒前
Cxinny完成签到,获得积分10
6秒前
里旺发布了新的文献求助10
6秒前
小张完成签到 ,获得积分10
7秒前
Lllll完成签到,获得积分10
8秒前
魔王发布了新的文献求助10
8秒前
Lllll发布了新的文献求助10
11秒前
blinkals57完成签到,获得积分10
11秒前
希望天下0贩的0应助祁瓀采纳,获得10
11秒前
12秒前
12秒前
13秒前
14秒前
15秒前
Tonald Yang发布了新的文献求助10
16秒前
16秒前
Cxinny发布了新的文献求助10
16秒前
16秒前
qazqazokm01完成签到,获得积分10
16秒前
doranlou发布了新的文献求助30
18秒前
蒲勇兵发布了新的文献求助10
20秒前
21秒前
蓝天发布了新的文献求助10
21秒前
21秒前
qazqazokm01发布了新的文献求助10
21秒前
23秒前
烟花应助烦烦烦采纳,获得10
23秒前
清茶颂歌完成签到,获得积分10
24秒前
NexusExplorer应助cheyenne采纳,获得10
24秒前
柯擎汉完成签到,获得积分10
25秒前
隐形的凡双完成签到 ,获得积分10
27秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
China Pluperfect I: Epistemology of Past and Outside in Chinese Art 520
Management and the Arts 510
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
基于锂离子电池正极材料回收的绿色溶剂开发及工程化应用研究 500
Auslegungsgeschichte 500
Transdermal drug delivery systems market size report 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7641436
求助须知:如何正确求助?哪些是违规求助? 9214517
关于积分的说明 19766323
捐赠科研通 7206966
什么是DOI,文献DOI怎么找? 3276254
关于科研通互助平台的介绍 2437981
邀请新用户注册赠送积分活动 2273824