An attention-based automatic vulnerability detection approach with GGNN

被引:0
|
作者
Gaigai Tang
Lin Yang
Long Zhang
Weipeng Cao
Lianxiao Meng
Hongbin He
Hongyu Kuang
Feng Yang
Huiqiang Wang
机构
[1] Harbin Engineering University,School of Computer Science and Technology
[2] Academy of Military Science,National Key Laboratory of Science and Technology on Information System Security, Institute of System Engineering
[3] Guangdong Laboratory of Artificial Intelligence and Digital Economy (SZ),undefined
关键词
Vulnerability detection; Software source code; Attention; Graph neural network;
D O I
暂无
中图分类号
学科分类号
摘要
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
页数:14
相关论文
共 50 条
  • [1] An attention-based automatic vulnerability detection approach with GGNN
    Tang, Gaigai
    Yang, Lin
    Zhang, Long
    Cao, Weipeng
    Meng, Lianxiao
    He, Hongbin
    Kuang, Hongyu
    Yang, Feng
    Wang, Huiqiang
    [J]. INTERNATIONAL JOURNAL OF MACHINE LEARNING AND CYBERNETICS, 2023, 14 (09) : 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] Automatic epilepsy detection with an attention-based multiscale residual network
    Wang, Xingqi
    Li, Ming'ai
    [J]. Shengwu Yixue Gongchengxue Zazhi/Journal of Biomedical Engineering, 2024, 41 (02): : 253 - 261
  • [5] 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
  • [6] Hybrid Attention-based Approach for Arabic Paraphrase Detection
    Mahmoud, Adnen
    Zrigui, Mounir
    [J]. APPLIED ARTIFICIAL INTELLIGENCE, 2021, 35 (15) : 1271 - 1286
  • [7] 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,
  • [8] 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
  • [9] 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
  • [10] 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