arrow
返回

Predicting vulnerability inducing function versions using node embeddings and graph neural networks

delete2022-05-01
delete5
PRE
AI
S
Sefa Eren Şahin
E
Ecem Mine Özyedierler
A
Ayşe Tosun *
DOI:10.1016/j.infsof.2022.106822delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Context: Predicting software vulnerabilities over code changes is a difficult task due to obtaining real vulnerability data and their associated code fixes from software projects as software organizations are often reluctant to report those. Objective: We aim to propose a vulnerability prediction model that runs after every code change, and identifies vulnerability inducing functions in that version. We also would like to assess the success of node and token based source code representations over abstract syntax trees (ASTs) on predicting vulnerability inducing functions. Method: We train neural networks to represent node embeddings and token embeddings over ASTs in order to obtain feature representations. Then, we build two Graph Neural Networks (GNNs) with node embeddings, and compare them against Convolutional Neural Network (CNN) and Support Vector Machine (SVM) with token representations. Results: We report our empirical analysis over the change history of vulnerability inducing functions of Wireshark project. GraphSAGE model using source code representation via ASTs achieves the highest AUC rate, while CNN models using token representations achieves the highest recall, precision and F1 measure. Conclusion: Representing functions with their structural information extracted from ASTs, either in token form or in complete graph form, is great at predicting vulnerability inducing function versions. Transforming source code into token frequencies as a natural language text fails to build successful models for vulnerability prediction in a real software project.
Keyword:
Software vulnerabilities
Graph neural networks
Graph embeddings
Abstract syntax trees

期刊

Information and Software Technology 封面图
Information and Software Technology
IF:
4.3
论文数:
3.8K
被引数:
7.7K

机构

I
Istanbul Technical University
学者数:
8.9K
论文数: 7.8K
被引数: 7.9K
引用论文

引用论文

Impact of Metformin Use on Lactate Kinetics in Patients with Severe Sepsis and Septic Shock
err2017-05-01
err0
PREAI
errJoongmin Park; Sung Yeon Hwang; Ik Joon Jo; Kyeongman Jeon; Gee Young Suh; Tae Rim Lee; Hee Yoon; Won Chul Cha; Min Seob Sim; Keumhee Chough Carriere; Seungmin Yeon; Tae Gun Shin
err分享
err收藏
Deep Learning With Customized Abstract Syntax Tree for Bug Localization
err2019-01-01
err36
errOAAI
errLiang, Hongliang; Sun, Lu; Wang, Meilin; Yang, Yuxing
err分享
err收藏
Predicting Vulnerable Software Components via Text Mining
err2014-10-01
err266
errOAAI
errScandariato, Riccardo; Walden, James; Hovsepyan, Aram; Joosen, Wouter
err分享
err收藏
Software Vulnerability Detection Using Deep Neural Networks: A Survey
err2020-10-01
err269
PREAI
errLin, Guanjun; Wen, Sheng; Han, Qing-Long; Zhang, Jun; Xiang, Yang
err分享
err收藏
Modeling Event Propagation via Graph Biased Temporal Point Process
err2023-04-01
err4
errOAAI
errWu, Weichang; Liu, Huanxi; Zhang, Xiaohu; Liu, Yu; Zha, Hongyuan
err分享
err收藏
err分享
err收藏
err分享
err收藏
学者 查看更多内容