Prior studies have demonstrated the effectiveness of Deep Learning (DL) in automated software vulnerability detection. Graph Neural Networks (GNNs) have proven effective in learning the graph representations of source code and are commonly adopted by existing DL-based vulnerability detection methods. However, the existing methods are still limited by the fact that GNNs are essentially difficult to handle the connections between long-distance nodes in a code structure graph. Besides, they do not well exploit the multiple types of edges in a code structure graph (such as edges representing data flow and control flow). Consequently, despite achieving state-of-the-art performance, the existing GNN-based methods tend to fail to capture global information (i.e., long-range dependencies among nodes) of code graphs. To mitigate these issues, in this paper, we propose a novel vulnerability detection framework with grAph siMplification and enhanced graph rePresentation LEarning, named AMPLE. AMPLE mainly contains two parts: 1) graph simplification, which aims at reducing the distances between nodes by shrinking the node sizes of code structure graphs; 2) enhanced graph representation learning, which involves one edge-aware graph convolutional network module for fusing heterogeneous edge information into node representations and one kernel-scaled representation module for well capturing the relations between distant graph nodes. Experiments on three public benchmark datasets show that AMPLE outperforms the state-of-the-art methods by 0.39%-35.32% and 7.64%-199.81% with respect to the accuracy and F1 score metrics, respectively. The results demonstrate the effectiveness of AMPLE in learning global information of code graphs for vulnerability detection.
Nanjing University of Posts and Telecommunications(南京邮电大学);National Interdisciplinary Research Center of Engineering Physics(工程物理国家 interdisciplinary 研究中心);Alibaba Qwen(阿里巴巴通义千问);Beijing Jiaotong University(北京交通大学);Zhejiang University(浙江大学);Yangzhou University(扬州大学);Nanjing University(南京大学);Singapore Management University(新加坡管理大学)
Dipartimento di Ingegneria Elettrica e Elettronica, Università di Cagliari(卡利亚里大学电气与电子工程系);Interuniversity National Consortium for Informatics, CINI(意大利国家信息学大学联盟)
CGP-Tuning: Structure-Aware Soft Prompt Tuning for Code Vulnerability Detection
School of Computer Science and Engineering, University of New South Wales (UNSW)(新南威尔士大学计算机科学与工程学院);Department of Electrical Engineering and Information Technology, University of Naples Federico II(那不勒斯费德里克二世大学电气工程与信息技术系)
AutoVulnPHP: LLM-Powered Two-Stage PHP Vulnerability Detection and Automated Localization
Beijing Electronic Science and Technology Institute(北京电子科技学院);Nankai University(南开大学);The 15th Research Institute of China Electronics Technology Group Corporation(中国电子科技集团公司第十五研究所)
Securing the Dark Matter: A Semantic-Enhanced Neuro-Symbolic Framework for Supply Chain Analysis of Opaque Industrial Software
School of Artificial Intelligence, Shenyang University of Technology(沈阳工业大学人工智能学院);Key Laboratory of Information Security for Petrochemical Industry in Liaoning Province(辽宁省石油化工信息安全重点实验室);School of Information Engineering, Shenyang University of Chemical Technology(沈阳化工大学信息工程学院)
AST-Enhanced or AST-Overloaded? The Surprising Impact of Hybrid Graph Representations on Code Clone Detection
University of Galway(Galway大学);CRT-AI, Irish National Centre for Research Training in Artificial Intelligence(CRT-AI,爱尔兰人工智能研究培训国家中心);Lero, the Research Ireland Centre for Software(Lero,爱尔兰软件研究中心)