arrow
Return

Code-centric learning-based just-in-time vulnerability detection

delete2024-08-01
delete6
delete
OA
AI
S
Son Nguyen
T
Thu-Trang Nguyen
T
Thanh Trong Vu
T
Thanh-Dat Do
K
Kien-Tuan Ngo
H
Hieu Dinh Vo *
DOI:10.1016/j.jss.2024.112014delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Attacks against computer systems exploiting software vulnerabilities can cause substantial damage to the cyber infrastructure of our modern society and economy. To minimize the consequences, it is vital to detect and fix vulnerabilities as soon as possible. Just -in -time vulnerability detection (JIT-VD) discovers vulnerability -prone (dangerous) commits to prevent them from being merged into source code and causing vulnerabilities. By JIT-VD, the commits' authors, who understand the commits properly, can review these dangerous commits and fix them if necessary while the relevant modifications are still fresh in their minds. In this paper, we propose CodeJIT , a novel graph -based code -centric learning -based approach for just -in -time vulnerability detection. The key idea of CodeJIT is that the meaning of the code changes of a commit is the direct and deciding factor for determining if the commit is dangerous for the code. Based on that idea, we design a novel graph -based representation, Code Transformation Graph (CTG) to represent the semantics of code changes in terms of both code syntactic structure and program dependencies. A graph neural network (GNN) model is developed to capture the meaning of the code changes represented by our graph -based representation and learn to discriminate between dangerous and safe commits. We conducted experiments to evaluate the JIT-VD performance of CodeJIT on a dataset of 20K+ dangerous and safe commits in 506 real -world projects from 1998 to 2022. Our results show that CodeJIT significantly improves the state-of-the-art JIT-VD methods by up to 66% in Recall, 136% in Precision, and 68% in F1. Moreover, CodeJIT correctly classifies nearly 9/10 of dangerous/safe (benign) commits and even detects 69 commits that fix a vulnerability yet produce other issues in source code.
Keywords:
Just-in-time vulnerability detection
Code-centric
Code change representation
Graph-based model
Commit-level bugs
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

Journal of Systems and Software cover
Journal of Systems and Software
IF:
4.1
Papers:
5.5K
Citations:
8.4K

Organization

V
vietnam national university hanoi (vnu hanoi) system
Scholars:
4.0K
Papers: 2.5K
Citations: 2
Cited Papers

Cited Papers

Induction of cellulose in Schizophyllum commune: thiocellobiose as a new inducer
err1982-01-01
err0
errOAAI
errD Rho; M Desrochers; L Jurasek; H Driguez; J Defaye
errShare
errSave
CoreGen: Contextualized Code Representation Learning for Commit Message Generation
err2021-10-01
err25
errOAAI
errNie, Lun Yiu; Gao, Cuiyun; Zhong, Zhicong; Lam, Wai; Liu, Yang; Xu, Zenglin
errShare
errSave
Hemodynamic Exercise Response in Calves with an Implantable Biventricular Centrifugal Blood Pump
err2002-01-11
err0
errOAAI
errJörg Linneweber; Kenji Nonaka; Tamaki Takano; Shinji Kawahito; Sebastian Schulte‐Eistrup; Tadashi Motomura; Seiji Ichikawa; Minoru Mikami; Shelly Stevens; Heinrich Schima; Ernst Wolner; Yukihiko Nosé
errShare
errSave
On the Naturalness of Software
err2016-04-26
err164
PREAI
errHindle, Abram; Barr, Earl T.; Gabel, Mark; Su, Zhendong; Devanbu, Premkumar
errShare
errSave
errShare
errSave
Persistence of Si(111)7 × 7 surface structure under air exposure
err1980-10-01
err0
PREAI
errMichiharu Tabe; Kunihiro Arai; Hiroaki Nakamura
errShare
errSave
The Impact of Mislabeled Changes by SZZ on Just-in-Time Defect Prediction
err2021-08-01
err70
errOAAI
errFan, Yuanrui; Xia, Xin; da Costa, Daniel Alencar; Lo, David; Hassan, Ahmed E.; Li, Shanping
errShare
errSave
Production of reactive oxygen species from abraded silicates. Implications for the reactivity of the Martian soil
err2017-09-01
err0
PREAI
errEbbe N. Bak; Kaloyan Zafirov; Jonathan P. Merrison; Svend J. Knak Jensen; Per Nørnberg; Haraldur P. Gunnlaugsson; Kai Finster
errShare
errSave
When Government Fails
err
IF0
err1998-01-06
err0
PREAI
errMark Baldassare
errShare
errSave
researcher View more