arrow
返回

StagedVulBERT: Multigranular Vulnerability Detection With a Novel Pretrained Code Model

delete2024-12-01
delete0
PRE
AI
Y
Yuan Jiang *
Y
Yujian Zhang
X
Xiaohong Su
C
Christoph Treude
T
Tiantian Wang
DOI:10.1109/TSE.2024.3493245delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
The emergence of pre-trained model-based vulnerability detection methods has significantly advanced the field of automated vulnerability detection. However, these methods still face several challenges, such as difficulty in learning effective feature representations of statements for fine-grained predictions and struggling to process overly long code sequences. To address these issues, this study introduces StagedVulBERT, a novel vulnerability detection framework that leverages a pre-trained code language model and employs a coarse-to-fine strategy. The key innovation and contribution of our research lies in the development of the CodeBERT-HLS component within our framework, specialized in hierarchical, layered, and semantic encoding. This component is designed to capture semantics at both the token and statement levels simultaneously, which is crucial for achieving more accurate multi-granular vulnerability detection. Additionally, CodeBERT-HLS efficiently processes longer code token sequences, making it more suited to real-world vulnerability detection. Comprehensive experiments demonstrate that our method enhances the performance of vulnerability detection at both coarse- and fine-grained levels. Specifically, in coarse-grained vulnerability detection, StagedVulBERT achieves an F1 score of 92.26%, marking a 6.58% improvement over the best-performing methods. At the fine-grained level, our method achieves a Top-5% accuracy of 65.69%, which outperforms the state-of-the-art methods by up to 75.17%.
Keyword:
Codes
Transformers
Feature extraction
Semantics
Training
Accuracy
Technological innovation
Predictive models
Heating systems
Computer architecture
Vulnerability detection
code language model
pre-training task
program representation

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.8K
被引数:
1.1W

机构

H
harbin institute of technology
学者数:
8.0W
论文数: 6.6W
被引数: 66
S
Singapore Management University
学者数:
1.5K
论文数: 2.5K
被引数: 3.5K
引用论文

引用论文

Existence and learning of oscillations in recurrent neural networks
err2000-01-01
err0
errOAAI
errS. Townley; A. Ilchmann; M.G. Weiss; W. Mcclements; A.C. Ruiz; D.H. Owens; D. Pratzel-Wolters
err分享
err收藏
Firefighting Acutely Increases Airway Responsiveness消防急性增加气道反应性
err1989-07-01
err0
PREAI
errCharles B. Sherman; Scott Barnhart; Mary F. Miller; Mark R. Segal; Moira Aitken; Robert Schoene; William Daniell; Linda Rosenstock
err分享
err收藏
Television Viewing and Children's Health
err2007-02-23
err0
PREAI
errJyu‐Lin Chen; Christine M. Kennedy; Ann Froese‐Fretz
err分享
err收藏
Production of reactive oxygen species from abraded silicates. Implications for the reactivity of the Martian soil
err2017-09-01
err0
PREAI
errEbbe N. Bak; Kaloyan Zafirov; Jonathan P. Merrison; Svend J. Knak Jensen; Per Nørnberg; Haraldur P. Gunnlaugsson; Kai Finster
err分享
err收藏
The Everglades vulnerability analysis—Integrating ecological models and addressing uncertainty
err2021-01-01
err0
errOAAI
errLaura E. D’Acunto; Stephanie S. Romañach; Saira M. Haider; Caitlin E. Hackett; Jennifer H. Nestler; Dilip Shinde; Leonard G. Pearlstine
err分享
err收藏
学者 查看更多内容