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 条
  • [21] SNOW: An Effective Smart Contract Reentrancy Vulnerability Detection Method Based on Joint Feature Graph and Hybrid Graph Neural Network
    Lian, Wenjuan
    Zhang, Xinze
    Bao, Zikang
    Jia, Bin
    SOFTWARE-PRACTICE & EXPERIENCE, 2025,
  • [22] Weakly Aligned Feature Fusion for Multimodal Object Detection
    Zhang, Lu
    Liu, Zhiyong
    Zhu, Xiangyu
    Song, Zhan
    Yang, Xu
    Lei, Zhen
    Qiao, Hong
    IEEE TRANSACTIONS ON NEURAL NETWORKS AND LEARNING SYSTEMS, 2021,
  • [23] Software Vulnerability Detection Using Informed Code Graph Pruning
    Gear, Joseph
    Xu, Yue
    Foo, Ernest
    Gauravaram, Praveen
    Jadidi, Zahra
    Simpson, Leonie
    IEEE ACCESS, 2023, 11 : 135626 - 135644
  • [24] Airborne Small Target Detection Method Based on Multimodal and Adaptive Feature Fusion
    Xu, Shufang
    Chen, Xu
    Li, Haiwei
    Liu, Tianci
    Chen, Zhonghao
    Gao, Hongmin
    Zhang, Yiyan
    IEEE TRANSACTIONS ON GEOSCIENCE AND REMOTE SENSING, 2024, 62
  • [25] Vulnerability Detection in C/C plus plus Source Code With Graph Representation Learning
    Wu, Yuelong
    Lu, Jintian
    Zhang, Yunyi
    Jin, Shuyuan
    2021 IEEE 11TH ANNUAL COMPUTING AND COMMUNICATION WORKSHOP AND CONFERENCE (CCWC), 2021, : 1519 - 1524
  • [26] Vulnerability detection in Java']Java source code using a quantum convolutional neural network with self-attentive pooling, deep sequence, and graph-based hybrid feature extraction
    Hussain, Shumaila
    Nadeem, Muhammad
    Baber, Junaid
    Hamdi, Mohammed
    Rajab, Adel
    Al Reshan, Mana Saleh
    Shaikh, Asadullah
    SCIENTIFIC REPORTS, 2024, 14 (01)
  • [27] Smart Contract Vulnerability Detection Using Code Representation Fusion
    Wang, Ben
    Chu, Hanting
    Zhang, Pengcheng
    Dong, Hai
    2021 28TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2021), 2021, : 564 - 565
  • [28] A Fast Malicious Code Detection Method Based on Feature Fusion
    Wang S.
    Wang J.
    Wang Y.-N.
    Song Y.-F.
    Tien Tzu Hsueh Pao/Acta Electronica Sinica, 2023, 51 (01): : 57 - 66
  • [29] DiverseVul: A New Vulnerable Source Code Dataset for Deep Learning Based Vulnerability Detection
    Chen, Yizheng
    Ding, Zhoujie
    Alowain, Lamya
    Chen, Xinyun
    Wagner, David
    PROCEEDINGS OF THE 26TH INTERNATIONAL SYMPOSIUM ON RESEARCH IN ATTACKS, INTRUSIONS AND DEFENSES, RAID 2023, 2023, : 654 - 668
  • [30] MANDO-GURU: Vulnerability Detection for Smart Contract Source Code by Heterogeneous Graph Embeddings
    Nguyen, Hoang H.
    Nhat-Minh Nguyen
    Hong-Phuc Doan
    Ahmadi, Zahra
    Thanh-Nam Doan
    Jiang, Lingxiao
    PROCEEDINGS OF THE 30TH ACM JOINT MEETING EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, ESEC/FSE 2022, 2022, : 1736 - 1740