EUVIMEDOpdag EUVIMED
Open access · CC BY 4.0

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

Dun Jin, Chengwan He, Quan Zou, Yan Qin, Boshu Wang

Electronics · 2025-02-28 · 14 (5) · 975

DOI: 10.3390/electronics14050975 ↗

At a glance

Journal article in Electronics, published online on 2025-02-28. Written by Dun Jin and 4 co-authors. Cited 16 times so far (Crossref); 33 references. The full text is freely available (open access, CC BY 4.0). Funded by: 16th Graduate Education Innovation Fund of Wuhan Institute of Technology.

AbstractBibliografiske oplysningerCiteRelated studies

Abstract (original language)

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.

Funding

  • 16th Graduate Education Innovation Fund of Wuhan Institute of Technology

Cite

APA

Jin, D., He, C., Zou, Q., Qin, Y., & Wang, B. (2025). Source Code Vulnerability Detection Based on Joint Graph and Multimodal Feature Fusion. Electronics, 14(5), 975. https://doi.org/10.3390/electronics14050975

Vancouver

Jin D, He C, Zou Q, Qin Y, Wang B. Source Code Vulnerability Detection Based on Joint Graph and Multimodal Feature Fusion. Electronics. 2025;14(5):975. doi:10.3390/electronics14050975

BibTeX
@article{Jin2025,
  author = {Jin, Dun and He, Chengwan and Zou, Quan and Qin, Yan and Wang, Boshu},
  title = {Source Code Vulnerability Detection Based on Joint Graph and Multimodal Feature Fusion},
  journal = {Electronics},
  year = {2025},
  volume = {14},
  number = {5},
  pages = {975},
  doi = {10.3390/electronics14050975}
}
Start for free →