arrow
返回

Securing Code With Context: Enhancing Vulnerability Detection Through Contextualized Graph Representations

delete2024-01-01
delete2
delete
OA
AI
M
Muhammad Fakhrur Rozi *
T
Tao Ban
S
Seiichi Ozawa
A
Akira Yamada
T
Takeshi Takahashi
D
Daisuke Inoue
DOI:10.1109/ACCESS.2024.3467180delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Detecting source code vulnerabilities is a critical challenge in secure software development. Early identification of vulnerabilities ensures that software performance and security remain uncompromised. However, existing vulnerability detection methods often struggle to capture the semantic meaning of source code, particularly for vulnerability types that require a deeper understanding of code flow and context. This work addresses this challenge by introducing ContextCPG, a novel enhancement of the code property graph (CPG) representation. ContextCPG augments the CPG by incorporating additional information about variable names and data types within the source code. Our approach combines natural language processing analysis with graph-based analysis to capture a richer context surrounding the source code, relying on both the structural features of the graph representation and the naming, type, and value of nodes as natural language analysis. These additional features enhance the capability of graph neural network models to capture the semantic meaning of the source code and better detect vulnerabilities. We evaluate ContextCPG by applying it to three selected C/C++ vulnerabilities (buffer overflow, invalid input, and use-after-free) and comparing its performance against CPGs. The evaluation results reveal that ContextCPG consistently outperforms the CPG on all vulnerability types, demonstrating an average accuracy increase of 8%. ContextCPG showcases the value of providing supplementary information within the graph representation, consistently enhancing vulnerability detection efficacy.
Keyword:
Vulnerability detection
code property graph
source code representation
graph neural network
Vulnerability detection
code property graph
source code representation
graph neural network

期刊

IEEE Access 封面图
IEEE Access
IF:
3.6
论文数:
9.8W
被引数:
29.4W

机构

K
kobe university
学者数:
1.6W
论文数: 1.2W
被引数: 8
引用论文

引用论文

Television Viewing and Children's Health
err2007-02-23
err0
PREAI
errJyu‐Lin Chen; Christine M. Kennedy; Ann Froese‐Fretz
err分享
err收藏
Deep Learning for Software Vulnerabilities Detection Using Code Metrics
err2020-01-01
err31
errOAAI
errZagane, Mohammed; Abdi, Mustapha Kamel; Alenezi, Mamdouh
err分享
err收藏
err分享
err收藏
err分享
err收藏
err分享
err收藏
Improved Glycemic Control through Continuous Glucose Sensor-Augmented Insulin Pump Therapy: Prospective Results from a Community and Academic Practice Patient Registry
err2009-07-01
err0
errOAAI
errOhad Cohen; Anna Körner; Rudolf Chlup; Christos S. Zoupas; Anton K. Ragozin; Krisztina Wudi; Dagmar Bartaskova; Aggelos Pappas; Tamás Niederland; Zoltán Taybani; Lubomir Barák; Andriani Vazeou
err分享
err收藏
学者 查看更多内容