• Home
  • Search
  • Learning and Fusing Multi-View Code Representations for Function Vulnerability Detection
  • Cite Icon5
  • https://doi.org/10.3390/electronics12112495Copy DOI Icon

Learning and Fusing Multi-View Code Representations for Function Vulnerability Detection

Show More
  • Abstract
  • Highlights & Summary
  • PDF
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

The explosive growth of vulnerabilities poses a significant threat to the security of software systems. While various deep-learning-based vulnerability detection methods have emerged, they primarily rely on semantic features extracted from a single code representation structure, which limits their ability to detect vulnerabilities hidden deep within the code. To address this limitation, we propose S2FVD, short for Sequence and Structure Fusion-based Vulnerability Detector, which fuses vulnerability-indicative features learned from the multiple views of the code for more accurate vulnerability detection. Specifically, S2FVD employs either well-matched or carefully extended neural network models to extract vulnerability-indicative semantic features from the token sequence, attributed control flow graph (ACFG) and abstract syntax tree (AST) representations of a function, respectively. These features capture different perspectives of the code, which are then fused to enable S2FVD to accurately detect vulnerabilities that are well-hidden within a function. The experiments conducted on two large vulnerability datasets demonstrated the superior performance of S2FVD against state-of-the-art approaches, with its accuracy and F1 scores reaching 98.07% and 98.14% respectively in detecting the presence of vulnerabilities, and 97.93% and 97.94%, respectively, in pinpointing specific vulnerability types. Furthermore, with regard to the real-world dataset D2A, S2FVD achieved average performance gains of 6.86% and 14.84% in terms of accuracy and F1 metrics, respectively, over the state-of-the-art baselines. This ablation study also confirms the superiority of fusing the semantics implied in multiple distinct code views to further enhance vulnerability detection performance.

Loading PDF

Similar Papers
  • Research Article
  • Citations6

A Smart Contract Vulnerability Detection Model Based on Syntactic and Semantic Fusion Learning

  • Feb 03, 2023
  • Wireless Communications and Mobile Computing
  • Daojun Han +3
  • Research Article
  • Citations40

Vulnerability Detection via Multiple-Graph-Based Code Representation

  • Aug 01, 2024
  • IEEE Transactions on Software Engineering
  • Fangcheng Qiu +5
  • Research Article
  • Citations15

Vulnerability detection through cross-modal feature enhancement and fusion

  • Jun 18, 2023
  • Computers & Security
  • Wenxin Tao +4
  • Research Article
  • Citations9

BinAIV: Semantic-enhanced vulnerability detection for Linux x86 binaries

  • Sep 27, 2023
  • Computers & Security
  • Yeming Gu +2
  • Research Article
  • Citations5

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

  • Feb 28, 2025
  • Electronics
  • Dun Jin +4
  • Conference Article
  • Citations11

A smart contract vulnerability detection model based on graph neural networks

  • Dec 02, 2022
  • Daojun Han +3
  • PDF
  • Research Article
  • Citations81

Automated Vulnerability Detection in Source Code Using Minimum Intermediate Representation Learning

  • Mar 02, 2020
  • Applied Sciences
  • Xin Li +4
  • Research Article
  • Citations219

BGNN4VD: Constructing Bidirectional Graph Neural-Network for Vulnerability Detection

  • Mar 20, 2021
  • Information and Software Technology
  • Sicong Cao +4
  • Research Article
  • Citations18

Survey of source code vulnerability analysis based on deep learning

  • Sep 03, 2024
  • Computers & Security
  • Chen Liang +4
  • PDF
  • Research Article
  • Citations4

IRC-CLVul: Cross-Programming-Language Vulnerability Detection with Intermediate Representations and Combined Features

  • Jul 13, 2023
  • Electronics
  • Tianwei Lei +3
  • Research Article

Research on Vulnerability Detection for Software Based on Taint Analysis

  • Aug 01, 2013
  • Applied Mechanics and Materials
  • Bei Hai Liang +3
  • Book Chapter

Data Flow Incompatible Vulnerability Analysis and Detection for Networked Collaborative Design Business Process

  • Jan 01, 2014
  • Huaizhi Yan +2
  • PDF
  • Research Article
  • Citations12

Vulnerability detection in Java source code using a quantum convolutional neural network with self-attentive pooling, deep sequence, and graph-based hybrid feature extraction

  • Mar 28, 2024
  • Scientific Reports
  • Shumaila Hussain +6
  • Conference Article
  • Citations48

Learning Program Semantics with Code Representations: An Empirical Study

  • Mar 01, 2022
  • Jing Kai Siow +4
  • Conference Article
  • Citations34

ReGVD: Revisiting Graph Neural Networks for Vulnerability Detection

  • May 01, 2022
  • Van-Anh Nguyen +5
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.