Enhancing Source Code Vulnerability Detection Using Flattened Code Graph Structures

Source code vulnerability detection is essential for software security, but identifying subtle vulnerabilities in code is challenging. While Transformer-based pre-trained models have achieved success in this area, they typically treat code as a sequence of text, neglecting its structural characteristics. To address this, we propose a novel approach that uses a flattened code graph structure, which effectively captures both semantic and syntactic relationships in the code. By transforming the code into a structured sequence, this method allows the model to explicitly learn from both semantic and structural information. We combine the flattened code graph structure tokens with pre-trained models and fine-tune them to enhance performance in vulnerability detection. Experimental results demonstrate significant improvements in recall, particularly in detecting vulnerabilities in complex code. This approach provides an efficient and robust solution for source code vulnerability detection, advancing the field of software security.

Authors

Institutions

Publication Details

Published
2024-12-13
DOI
https://doi.org/10.1109/icftic64248.2024.10913325
Citations
1
Primary Topic
Software Reliability and Analysis Research
Type
article
Field-Weighted Citation Impact
0.49
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Enhancing Source Code Vulnerability Detection Using Flattened Code Graph Structures

Zhangdong Sun, Ke Liu, Yang Yu
1 citations
Software Reliability and Analysis Research
0.49
article

Enhancing Source Code Vulnerability Detection Using Flattened Code Graph Structures

Zhangdong Sun, Ke Liu, Yang Yu
article en
1 citations

Abstract

Source code vulnerability detection is essential for software security, but identifying subtle vulnerabilities in code is challenging. While Transformer-based pre-trained models have achieved success in this area, they typically treat code as a sequence of text, neglecting its structural characteristics. To address this, we propose a novel approach that uses a flattened code graph structure, which effectively captures both semantic and syntactic relationships in the code. By transforming the code into a structured sequence, this method allows the model to explicitly learn from both semantic and structural information. We combine the flattened code graph structure tokens with pre-trained models and fine-tune them to enhance performance in vulnerability detection. Experimental results demonstrate significant improvements in recall, particularly in detecting vulnerabilities in complex code. This approach provides an efficient and robust solution for source code vulnerability detection, advancing the field of software security.

Northeastern University (CN)
Openalex Percentile: Top 27%
Software Reliability and Analysis Research
0.49
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Enhancing Source Code Vulnerability Detection Using Flattened Code Graph Structures — Zhangdong Sun, Ke Liu, et al. · (2024) | TGRS Research Map | TGRS