Source Code Vulnerability Detection Based on Joint Graph and Multimodal Feature Fusion

被引:0
作者
Jin, Dun [1 ]
He, Chengwan [1 ]
Zou, Quan [1 ]
Qin, Yan [1 ]
Wang, Boshu [1 ]
机构
[1] Wuhan Inst Technol, Sch Comp Sci & Engn, Hubei Key Lab Intelligent Robot, Wuhan 430205, Peoples R China
来源
ELECTRONICS | 2025年 / 14卷 / 05期
关键词
deep learning; vulnerability detection; joint graph; multimodal; feature fusion; FRAMEWORK;
D O I
10.3390/electronics14050975
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Code vulnerability detection is a crucial approach to ensuring software security, aiming to automatically identify potential security vulnerabilities in source code. However, existing static vulnerability detection methods often face challenges such as feature loss and an insufficient expressive power when extracting program features. To address these issues, in this paper, we propose a source code vulnerability detection method based on joint graph and multimodal feature fusion. Innovatively, we construct a joint graph that integrates multiple program dependencies and semantic edges to achieve more comprehensive feature extraction. Additionally, by combining Graph Attention Networks (GATs) with the Transformer architecture, both structural and sequential features of code snippets are captured, further enhancing the model's expressive capabilities. Finally, we introduce pre-fusion and post-fusion strategies to fully integrate multimodal features, thereby improving the accuracy and performance of vulnerability detection. Experimental results on the SARD dataset demonstrate the method's excellent performance in detecting various types of vulnerabilities, achieving an F1 score of 85.20% and an accuracy of 86.50%. On the Real-Vul real-world dataset, the method achieves an F1 score of 73.9% and an accuracy of 86.50%. The detection results exhibit remarkable stability, ensuring a reliable and consistent performance. Overall, the proposed method surpasses the performance of existing mainstream detection approaches.
引用
收藏
页数:20
相关论文
共 50 条
  • [1] Smart Contract Vulnerability Detection Based on Multimodal Feature Fusion
    Yu, Jie
    Yu, Xiao
    Li, Jiale
    Sun, Haoxin
    Sun, Mengdi
    ADVANCED INTELLIGENT COMPUTING TECHNOLOGY AND APPLICATIONS, PT III, ICIC 2024, 2024, 14864 : 344 - 355
  • [2] A Smart Contract Vulnerability Detection Method Based on Multimodal Feature Fusion and Deep Learning
    Li, Jinggang
    Lu, Gehao
    Gao, Yulian
    Gao, Feng
    MATHEMATICS, 2023, 11 (23)
  • [3] Binary Code Vulnerability Detection Based on Multi-Level Feature Fusion
    Wu, Guangli
    Tang, Huili
    IEEE ACCESS, 2023, 11 : 63904 - 63915
  • [4] VDHGT: A Source Code Vulnerability Detection Method Based on Heterogeneous Graph Transformer
    Yang, Hongyu
    Yang, Haiyun
    Zhang, Liang
    CYBERSPACE SAFETY AND SECURITY, CSS 2022, 2022, 13547 : 217 - 224
  • [5] Code Property Graph based Cross-Domain Vulnerability Detection via Deep Fused Feature
    Du, Gewangzi
    Chen, Liwei
    Wu, Tongshuai
    Zheng, Xiong
    Shi, Gang
    2024 IEEE INTERNATIONAL SYMPOSIUM ON CIRCUITS AND SYSTEMS, ISCAS 2024, 2024,
  • [6] A General Source Code Vulnerability Detection Method via Ensemble of Graph Neural Networks
    Zeng, Ciling
    Zhou, Bo
    Dong, Huoyuan
    Wu, Haolin
    Xie, Peiyuan
    Guan, Zhitao
    FRONTIERS IN CYBER SECURITY, FCS 2023, 2024, 1992 : 560 - 574
  • [7] Smart Contract Vulnerability Detection Based on Code Graph Embedding Approach
    Zhai, Yiwen
    Yang, Jia
    Zhang, Mingwu
    FRONTIERS IN CYBER SECURITY, FCS 2024, PT I, 2024, 2315 : 317 - 332
  • [8] Vulnerability Detection via Multiple-Graph-Based Code Representation
    Qiu, Fangcheng
    Liu, Zhongxin
    Hu, Xing
    Xia, Xin
    Chen, Gang
    Wang, Xinyu
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2024, 50 (08) : 2178 - 2199
  • [9] Vulnerability Localization Based On Intermediate Code Representation and Feature Fusion
    Zhu, Chenguang
    Wei, Renzheng
    Chen, Liwei
    Wu, Tongshuai
    Du, Gewangzi
    Shi, Gang
    COMPUTER JOURNAL, 2024, 67 (09) : 2749 - 2762
  • [10] CodeSAGE: A multi-feature fusion vulnerability detection approach using code attribute graphs and attention mechanisms
    Zhang, Guodong
    Yao, Tianyu
    Qin, Jiawei
    Li, Yitao
    Ma, Qiao
    Sun, Donghong
    JOURNAL OF INFORMATION SECURITY AND APPLICATIONS, 2025, 89