An attention-based automatic vulnerability detection approach with GGNN

被引:3
|
作者
Tang, Gaigai [1 ,2 ]
Yang, Lin [2 ]
Zhang, Long [2 ]
Cao, Weipeng [3 ]
Meng, Lianxiao [1 ,2 ]
He, Hongbin [2 ]
Kuang, Hongyu [2 ]
Yang, Feng [2 ]
Wang, Huiqiang [1 ]
机构
[1] Harbin Engn Univ, Sch Comp Sci & Technol, Harbin 150000, Heilongjiang, Peoples R China
[2] Acad Mil Sci, Inst Syst Engn, Natl Key Lab Sci & Technol Informat Syst Secur, Beijing 100071, Peoples R China
[3] Guangdong Lab Artificial Intelligence & Digital Ec, Shenzhen 518107, Guangdong, Peoples R China
基金
中国国家自然科学基金;
关键词
Vulnerability detection; Software source code; Attention; Graph neural network;
D O I
10.1007/s13042-023-01824-7
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Vulnerability detection has long been an important issue in software security. The existing methods mainly define the rules and features of vulnerabilities through experts, which are time-consuming and laborious, and usually with poor accuracy. Thus automatic vulnerability detection methods based on code representation graph and Graph Neural Network (GNN) have been proposed with the advantage of effectively capture both the semantics and structure information of the source code, showing a better performance. However, these methods ignore the redundant information in the graph and the GNN model, leading to a still unsatisfactory performance. To alleviate this problem, we propose a attention-based automatic vulnerability detection approach with Gated Graph Sequence Neural Network (GGNN). Firstly, we introduce two preprocessing methods namely pruning and symbolization representation to reduce the redundant information of the input code representation graph, and then put the graph into the GGNN layer to update the node features. Next, the key subgraph extraction and global feature aggregation are realized through the attention-based Pooling layers. Finally, the classification result is obtained through a linear classifier. The experimental results show the effectiveness of our proposed preprocessing methods and attention-based Pooling layers, especially the higher Accuracy and F1-score gains compared with the state-of-the-art automatic vulnerability detection approaches.
引用
收藏
页码:3113 / 3127
页数:15
相关论文
共 50 条
  • [1] An attention-based automatic vulnerability detection approach with GGNN
    Gaigai Tang
    Lin Yang
    Long Zhang
    Weipeng Cao
    Lianxiao Meng
    Hongbin He
    Hongyu Kuang
    Feng Yang
    Huiqiang Wang
    [J]. International Journal of Machine Learning and Cybernetics, 2023, 14 : 3113 - 3127
  • [2] An Attention-Based Spatiotemporal GGNN for Next POI Recommendation
    Li, Quan
    Xu, Xinhua
    Liu, Xinghong
    Chen, Qi
    [J]. IEEE ACCESS, 2022, 10 : 26471 - 26480
  • [3] ADD: Attention-Based DeepFake Detection Approach
    Khormali, Aminollah
    Yuan, Jiann-Shiun
    [J]. BIG DATA AND COGNITIVE COMPUTING, 2021, 5 (04)
  • [4] A visual attention-based approach for automatic landmark selection and recognition
    Ouerhani, N
    Hügli, H
    Gruener, G
    Codourey, A
    [J]. ATTENTION AND PERFORMANCE IN COMPUTATIONAL VISION, 2005, 3368 : 183 - 195
  • [5] Hybrid Attention-based Approach for Arabic Paraphrase Detection
    Mahmoud, Adnen
    Zrigui, Mounir
    [J]. APPLIED ARTIFICIAL INTELLIGENCE, 2021, 35 (15) : 1271 - 1286
  • [6] A novel transformer attention-based approach for sarcasm detection
    Khan, Shumaila
    Qasim, Iqbal
    Khan, Wahab
    Aurangzeb, Khursheed
    Khan, Javed Ali
    Anwar, Muhammad Shahid
    [J]. EXPERT SYSTEMS, 2024,
  • [7] Explainable Software vulnerability detection based on Attention-based Bidirectional Recurrent Neural Networks
    Mao, Yi
    Li, Yun
    Sun, Jiatai
    Chen, Yixin
    [J]. 2020 IEEE INTERNATIONAL CONFERENCE ON BIG DATA (BIG DATA), 2020, : 4651 - 4656
  • [8] An Attention-Based Approach to Enhance the Detection and Classification of Android Malware
    Ghourabi, Abdallah
    [J]. CMC-COMPUTERS MATERIALS & CONTINUA, 2024, 80 (02): : 2743 - 2760
  • [9] Automatic Epileptic Seizure Detection via Attention-Based CNN-BiRNN
    Huang, Chengbin
    Chen, Weiting
    Cao, Guitao
    [J]. 2019 IEEE INTERNATIONAL CONFERENCE ON BIOINFORMATICS AND BIOMEDICINE (BIBM), 2019, : 660 - 663
  • [10] Attention-Based Vandalism Detection in OpenStreetMap
    Tempelmeier, Nicolas
    Demidova, Elena
    [J]. PROCEEDINGS OF THE ACM WEB CONFERENCE 2022 (WWW'22), 2022, : 643 - 651