LCVD: Loop-oriented code vulnerability detection via graph neural network

被引:4
|
作者
Wang, Mingke [1 ]
Tao, Chuanqi [1 ,2 ,3 ,4 ]
Guo, Hongjing [1 ]
机构
[1] Nanjing Univ Aeronaut & Astronaut, Coll Comp Sci & Technol, Nanjing, Peoples R China
[2] Nanjing Univ Aeronaut & Astronaut, Minist Key Lab Safety Crit Software Dev & Verifica, Nanjing, Peoples R China
[3] Collaborat Innovat Ctr Novel Software Technol & In, Nanjing, Peoples R China
[4] Nanjing Univ, State Key Lab Novel Software Technol, Nanjing, Peoples R China
基金
国家重点研发计划; 中国博士后科学基金;
关键词
Loop-oriented vulnerability; Vulnerability detection; Deep learning; Code representation; Graph neural network;
D O I
10.1016/j.jss.2023.111706
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Due to the unique mechanism and complex structure, loops in programs can easily lead to various vulnerabilities such as dead loops, memory leaks, resource depletion, etc. Traditional approaches to loop-oriented program analysis (e.g. loop summarization) are costly with a high rate of false positives in complex software systems. To address the issues above, recent works have applied deep learning (DL) techniques to vulnerability detection. However, existing DL-based approaches mainly focused on the general characteristics of most vulnerabilities without considering the semantic information of specific vulnerabilities. As a typical structure in programs, loops are highly iterative with multi-paths. Currently, there is a lack of available approaches to represent loops, as well as useful methods to extract the implicit vulnerability patterns. Therefore, this paper introduces LCVD, an automated loop -oriented code vulnerability detection approach. LCVD represents the source code as the Loop-flow Abstract Syntax Tree (LFAST), which focuses on interleaving multi-paths around loop structures. Then a novel Loop-flow Graph Neural Network (LFGNN) is proposed to learn both the local and overall structure of loop-oriented vulnerabilities. The experimental results demonstrate that LCVD outperforms the three static analysis-based and four state-of-the-art DL-based vulnerability detection approaches across evaluation settings.(c) 2023 Elsevier Inc. All rights reserved.
引用
收藏
页数:12
相关论文
共 50 条
  • [1] Accelerating Loop-Oriented RTL Simulation With Code Instrumentation
    Mao, Fubing
    Guo, Yapu
    Liao, Xiaofei
    Jin, Hai
    Zhang, Wei
    Liu, Haikun
    Zheng, Long
    Liu, Xu
    Jiang, Zihan
    Zheng, Xiaohua
    IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, 2023, 42 (12) : 4985 - 4998
  • [2] ACGVD: Vulnerability Detection Based on Comprehensive Graph via Graph Neural Network with Attention
    Li, Min
    Li, Chunfang
    Li, Shuailou
    Wu, Yanna
    Zhang, Boyang
    Wen, Yu
    INFORMATION AND COMMUNICATIONS SECURITY (ICICS 2021), PT I, 2021, 12918 : 243 - 259
  • [3] 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
  • [4] Loop-Oriented Programming: A New Code Reuse Attack to Bypass Modern Defenses
    Lan, Bingchen
    Li, Yan
    Sun, Hao
    Su, Chao
    Liu, Yao
    Zeng, Qingkai
    2015 IEEE TRUSTCOM/BIGDATASE/ISPA, VOL 1, 2015, : 190 - 197
  • [5] Tensor-based gated graph neural network for automatic vulnerability detection in source code
    Yang, Jia
    Ruan, Ou
    Zhang, JiXin
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2024, 34 (02):
  • [6] TACSan: Enhancing Vulnerability Detection with Graph Neural Network
    Zeng, Qingyao
    Xiong, Dapeng
    Wu, Zhongwang
    Qian, Kechang
    Wang, Yu
    Su, Yinghao
    ELECTRONICS, 2024, 13 (19)
  • [7] Improved Code Summarization via a Graph Neural Network
    LeClair, Alexander
    Haque, Sakib
    Wu, Lingfei
    McMillan, Collin
    2020 IEEE/ACM 28TH INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION, ICPC, 2020, : 184 - 195
  • [8] VulGraB: Graph-embedding-based code vulnerability detection with bi-directional gated graph neural network
    Wang, Sixuan
    Huang, Chen
    Yu, Dongjin
    Chen, Xin
    SOFTWARE-PRACTICE & EXPERIENCE, 2023, 53 (08): : 1631 - 1658
  • [9] 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
  • [10] AUC-oriented Graph Neural Network for Fraud Detection
    Huang, Mengda
    Liu, Yang
    Ao, Xiang
    Li, Kuan
    Chi, Jianfeng
    Feng, Jinghua
    Yang, Hao
    He, Qing
    PROCEEDINGS OF THE ACM WEB CONFERENCE 2022 (WWW'22), 2022, : 1311 - 1321