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 条
  • [31] MLTracer: Malicious Logins Detection System via Graph Neural Network
    Liu, Fucheng
    Wen, Yu
    Wu, Yanna
    Liang, Shuangshuang
    Jiang, Xihe
    Meng, Dan
    2020 IEEE 19TH INTERNATIONAL CONFERENCE ON TRUST, SECURITY AND PRIVACY IN COMPUTING AND COMMUNICATIONS (TRUSTCOM 2020), 2020, : 715 - 726
  • [32] Graph Neural Network-based Vulnerability Predication
    Feng, Qi
    Feng, Chendong
    Hong, Weijiang
    2020 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2020), 2020, : 800 - 801
  • [33] Graph neural network-based long method and blob code smell detection
    Zhang, Minnan
    Jia, Jingdong
    Capretz, Luiz Fernando
    Hou, Xin
    Tan, Huobin
    ADVANCES IN COLLOID AND INTERFACE SCIENCE, 2025, 340
  • [34] Cross-language Source Code Clone Detection Based On Graph Neural Network
    Zhang, Yuguo
    Yang, Jia
    Ruan, Ou
    PROCEEDINGS OF 2024 3RD INTERNATIONAL CONFERENCE ON CRYPTOGRAPHY, NETWORK SECURITY AND COMMUNICATION TECHNOLOGY, CNSCT 2024, 2024, : 189 - 194
  • [35] Code Property Graph based Cross-Domain Vulnerability Detection via Deep Fused Feature
    Du, Gewangzi
    Chen, Liwei
    Wu, Tongshuai
    Zheng, Xiong
    Shi, Gang
    2024 IEEE INTERNATIONAL SYMPOSIUM ON CIRCUITS AND SYSTEMS, ISCAS 2024, 2024,
  • [36] ReGVD: Revisiting Graph Neural Networks for Vulnerability Detection
    Van-Anh Nguyen
    Dai Quoc Nguyen
    Van Nguyen
    Trung Le
    Quan Hung Tran
    Dinh Phung
    2022 ACM/IEEE 44TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: COMPANION PROCEEDINGS (ICSE-COMPANION 2022), 2022, : 178 - 182
  • [37] Graph Neural Networks for Vulnerability Detection: A Counterfactual Explanation
    Chu, Zhaoyang
    Wan, Yao
    Li, Qian
    Wu, Yang
    Zhang, Hongyu
    Sui, Yulei
    Xu, Guandong
    Jin, Hai
    PROCEEDINGS OF THE 33RD ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, ISSTA 2024, 2024, : 389 - 401
  • [38] Improving Cross-Language Code Clone Detection via Code Representation Learning and Graph Neural Networks
    Mehrotra, Nikita
    Sharma, Akash
    Jindal, Anmol
    Purandare, Rahul
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2023, 49 (11) : 4846 - 4868
  • [39] CodeNet: Code-Targeted Convolutional Neural Network Architecture for Smart Contract Vulnerability Detection
    Hwang, Seon-Jin
    Choi, Seok-Hwan
    Shin, Jinmyeong
    Choi, Yoon-Ho
    IEEE ACCESS, 2022, 10 : 32595 - 32607
  • [40] Graph Neural Network for Source Code Defect Prediction
    Sikic, Lucija
    Kurdija, Adrian Satja
    Vladimir, Klemo
    Silic, Marin
    IEEE Access, 2022, 10 : 10402 - 10415