arrow
Return

Exploring extended Abstract Syntax Tree encoding for enhancing code vulnerability detection

delete2026-03-24
delete0
PRE
AI
X
Xuejun Zhang *
Z
Zhang, Yifan
M
Meifeng Guo
C
Chen, Zhuo
DOI:10.1007/s11219-026-09748-5delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Vulnerabilities are common in software systems and can potentially pose a serious threat to system security. In response to these threats, various vulnerability detection methods have been proposed recently. Among them, deep learning-based methods have received widespread attention from academia and industry due to their superior detection performance. However, existing deep learning-based methods still struggle to balance detection accuracy, effectiveness, and availability. Moreover, the Abstract Syntax Tree (AST) representation widely used in deep learning-based methods typically treats nodes and edges as static structures, which hinders the accurate portrayal of the complex control flows and the nuanced semantic interrelations that are inherent in dynamic source code interactions. To address these challenges, we propose ExASTrVD ( Extended abstract syntax tree based source code vulnerability detector) to shed light on the dynamic structures between nodes and edges for accurate and efficient vulnerability detection. To facilitate the capture of dynamic deep structural information, ExASTrVD initially constructs an extended AST by carefully adding eight edges with additional information to the original AST and presents multi-relational graphs to store these eight edges. The global embedding vector for multi-relational graphs are derived by applying the adjacency matrix and initial node embeddings. Ultimately, this global vector representation undergoes processing and is integrated into the prediction network for vulnerability detection. Experimental results on large-scale vulnerability datasets show that ExASTrVD is superior to the existing baseline models of vulnerability detection, with higher accuracy, precision, recall and F1-measure. The ablation studies also demonstrate the effective of the core design of ExASTrVD.
Keywords:
Vulnerability detection
Extended abstract syntax tree
Graph attention network
Code representation
CoCoAST: Representing Source Code via Hierarchical Splitting and Reconstruction of Abstract Syntax Trees
err2023-10-06
err2
PREAI
errShi, Ensheng; Wang, Yanlin; Du, Lun; Zhang, Hongyu; Han, Shi; Zhang, Dongmei; Sun, Hongbin
errShare
errSave
Securing Code With Context: Enhancing Vulnerability Detection Through Contextualized Graph Representations
err2024-01-01
err2
errOAAI
errRozi, Muhammad Fakhrur; Ban, Tao; Ozawa, Seiichi; Yamada, Akira; Takahashi, Takeshi; Inoue, Daisuke
errShare
errSave
BovdGFE: buffer overflow vulnerability detection based on graph feature extraction
err2022-11-12
err4
PREAI
errLv, Xinghang; Peng, Tao; Chen, Jia; Liu, Junping; Hu, Xinrong; He, Ruhan; Jiang, Minghua; Cao, Wenli
errShare
errSave
errShare
errSave
Learning to Detect Memory-related Vulnerabilities
err2023-12-23
err3
PREAI
errCao, Sicong; Sun, Xiaobing; Bo, Lili; Wu, Rongxin; Li, Bin; Wu, Xiaoxue; Tao, Chuanqi; Zhang, Tao; Liu, Wei
errShare
errSave

Journal

S
Software Quality Journal
IF:
2.3
Papers:
33
Citations:
924

Organization

Lanzhou Jiaotong University cover
Lanzhou Jiaotong University
Scholars:
1.3K
Papers: 352
Citations: 2.8K
Cited Papers

Cited Papers

No cited papers available