返回
Vulnerability Positioner (VulP): enhancing code vulnerability localization with CodeBERT
DOI:10.1007/s00530-025-02106-8.png)
摘要
En 中文
The localization of software vulnerabilities is a critical yet underexplored problem, as evidenced by the increasing need to pinpoint specific vulnerable code lines in complex software systems. This challenge necessitates machine learning methods tailored for vulnerability localization. To address this gap, we propose a novel systematic framework for fine-grained vulnerability localization in source code, named Vulnerability Positioner(VulP). The framework integrates syntax, semantics, and vulnerability context information by employing slicing techniques and a fusion layer that highlights vulnerable code regions. Firstly, slice source code based on syntax rules, generating corresponding program slices and intermediate code. Further refine these program slices by slicing the intermediate representation of code. Then, a CodeBERT-based model is designed, incorporating a fusion layer, K-max pooling layer, and average pooling layer. Validation experiments demonstrate that the proposed method surpasses existing approaches in both detection performance and localization precision, confirming the effectiveness of VulP. Additionally, the ablation experiments validate that the additional layers markedly enhance the performance of VulP.
Keyword:
Source Code
Vulnerability Detection
Vulnerability Localization
CodeBERT
期刊
IF:
3.1
论文数:
2.9K
被引数:
3.8K
机构
引用论文
VulD-Transformer: Source Code Vulnerability Detection via TransformerVulD-Transformer: 基于Transformer的源代码漏洞检测
VulDeeLocator: A Deep Learning-Based Fine-Grained Vulnerability DetectorVulDeeLocator: 一种基于深度学习的细粒度漏洞检测器
SySeVR: A Framework for Using Deep Learning to Detect Software VulnerabilitiesSySeVR: 使用深度学习检测软件漏洞的框架
DeepVD: Toward Class-Separation Features for Neural Network Vulnerability DetectionDeepVD:面向神经网络漏洞检测的类分离特征
CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and GenerationCodeT5: 用于代码理解和生成的标识符感知的统一预训练编码器-解码器模型

