arrow
Return

Real-World Code Vulnerability Detection Framework: From Data Preprocessing to Multi-Feature Fusion Detection

delete2025-08-21
delete0
PRE
AI
J
Jixian Zhang
Q
Qingfeng Du
S
Sheng Li
Z
Zhongda Lu
T
Ting He
C
Cheng‐Wei Liu
DOI:10.1109/TDSC.2025.3601228delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Code vulnerability detection (CVD) is a critical approach to ensuring the security, stability, and reliability of software. When exploited by malicious actors or hackers, code vulnerabilities can lead to a series of severe consequences and cause significant losses. However, the effectiveness of real-world CVD is currently unsatisfactory, with several issues that need to be optimized and resolved. These issues include the poor quality of real-world CVD datasets, the high resource consumption of code intermediate structures, the imbalance between positive and negative samples, and insufficient feature modeling of code vulnerabilities. To address these challenges, we propose a comprehensive and efficient framework for real-world CVD called MARCOVul. It offers a complete process from data preprocessing to final vulnerability detection, optimizing the entire real-world CVD pipeline. Our approach begins with a data derivation technique which seeks to improve the overall quality of the dataset. Next, we propose a code-specific data augmentation method to tackle the issue of sample imbalance in the dataset. We then propose a code intermediate structure simplification method to reduce computational complexity and resource consumption while fully leveraging the power of language models. Finally, we propose a real-world CVD method based on multi-feature fusion to identify potential security vulnerabilities in the code. Experiments on a large-scale real-world CVD dataset demonstrate the effectiveness of MARCOVul in detecting real-world code vulnerabilities, achieving up to 12.75% Binary-F1 score (BF1) and 6.98% matthews correlation coefficient (MCC) improvements over the best unweighted baselines, and 1.55% BF1 and 1.42% MCC gains over the best weighted ones.
Keywords:
Code vulnerability detection (CVD)
language model
multi-feature fusion
structure simplification
data augmentation

Journal

IEEE Transactions on Dependable and Secure Computing cover
IEEE Transactions on Dependable and Secure Computing
IF:
7.5
Papers:
2.4K
Citations:
9.6K

Organization

T
tongji university
Scholars:
7.8W
Papers: 5.9W
Citations: 98
B
beijing baolande software corporation
Scholars:
3
Papers: 1
Citations: 0