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
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
科研通AI6.4应助Sutera采纳,获得50
刚刚
潇洒宛筠完成签到 ,获得积分10
2秒前
2秒前
haodong应助cocodu采纳,获得30
2秒前
所所应助彭淑采纳,获得10
2秒前
科研通AI6.4应助cocodu采纳,获得10
3秒前
爆米花应助lllll采纳,获得10
5秒前
打打应助slimayw12采纳,获得10
6秒前
zxh656691发布了新的文献求助10
6秒前
7秒前
科研通AI6.4应助SJK采纳,获得10
7秒前
hahah发布了新的文献求助10
8秒前
旺旺仙貝完成签到,获得积分10
9秒前
9秒前
haodong应助cocodu采纳,获得30
10秒前
彭于晏应助cocodu采纳,获得10
11秒前
11秒前
领导范儿应助cocodu采纳,获得20
11秒前
我是老大应助cocodu采纳,获得10
11秒前
资浩阑发布了新的文献求助10
11秒前
乐乐应助cocodu采纳,获得10
11秒前
彭于晏应助cocodu采纳,获得10
11秒前
飘逸的尔烟完成签到 ,获得积分20
11秒前
科研通AI6.4应助cocodu采纳,获得10
11秒前
852应助cocodu采纳,获得10
11秒前
科研通AI6.4应助cocodu采纳,获得10
12秒前
科研通AI6.4应助cocodu采纳,获得10
12秒前
12秒前
Haijiao完成签到,获得积分10
13秒前
13秒前
Zephyr完成签到,获得积分10
14秒前
Akim应助科研通管家采纳,获得10
14秒前
在水一方应助科研通管家采纳,获得10
15秒前
翻斗花园牛爷爷完成签到 ,获得积分10
15秒前
传奇3应助科研通管家采纳,获得10
15秒前
15秒前
yi应助科研通管家采纳,获得10
15秒前
15秒前
15秒前
千山孤风完成签到,获得积分0
15秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 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小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7642116
求助须知:如何正确求助?哪些是违规求助? 9215191
关于积分的说明 19767902
捐赠科研通 7207492
什么是DOI,文献DOI怎么找? 3276322
关于科研通互助平台的介绍 2438071
邀请新用户注册赠送积分活动 2274067