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收藏
摘要

摘要

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
Code Aggregate Graph: Effective Representation for Graph Neural Networks to Detect Vulnerable Code
err2022-01-01
err4
errOAAI
errNguyen, Hoang Viet; Zheng, Junjun; Inomata, Atsuo; Uehara, Tetsutaro
err分享
err收藏
err分享
err收藏
err分享
err收藏
err分享
err收藏

期刊

IEEE Access 封面图
IEEE Access
IF:
3.6
论文数:
10.1W
被引数:
36.3W

机构

K
Kobe University
学者数:
633
论文数: 248
被引数: 5.0K
引用论文

引用论文

Television Viewing and Children's Health
err2007-02-23
err0
PREAI
errJyu‐Lin Chen; Christine M. Kennedy; Ann Froese‐Fretz
err分享
err收藏
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收藏
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收藏
学者 查看更多内容