A Software Vulnerability Detection Model Combined with Graph Simplification

Code vulnerability detection is an important issue in software security, however, when analyzing large programs, the diversity and complexity of the syntax and semantic of real-world vulnerability code makes it difficult to efficiently extract vulnerability features. In addition, real-world exploit code contains a large number of redundant features unrelated to the vulnerability, which will further impact detection efficiency. Traditional methods are limited by predefined vulnerability patterns, while existing deep learning-based methods usually retain all code information to extract features. To address this challenge, we define a new code representation called Code Simplified Graph (CSG) and then propose a new vulnerability detection method, GSVD. This method uses CSG as the code representation and CodeBERT as the semantic extractor, and finally extracts the vulnerability features by combining a CNN model with an attention mechanism. Our approach represent the code graphically, eliminating as much redundant information irrelevant to vulnerabilities as possible while preserving structural information. The experimental results show that GSVD has a good performance in both accuracy and speed of detection comparing with the previous methods.

Authors

Institutions

Publication Details

Published
2024-12-27
DOI
https://doi.org/10.1145/3718491.3718525
Primary Topic
Software Reliability and Analysis Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Software Vulnerability Detection Model Combined with Graph Simplification

Cheng Zhang, Jie Wu
Software Reliability and Analysis Research
article

A Software Vulnerability Detection Model Combined with Graph Simplification

Cheng Zhang, Jie Wu
article en

Abstract

Code vulnerability detection is an important issue in software security, however, when analyzing large programs, the diversity and complexity of the syntax and semantic of real-world vulnerability code makes it difficult to efficiently extract vulnerability features. In addition, real-world exploit code contains a large number of redundant features unrelated to the vulnerability, which will further impact detection efficiency. Traditional methods are limited by predefined vulnerability patterns, while existing deep learning-based methods usually retain all code information to extract features. To address this challenge, we define a new code representation called Code Simplified Graph (CSG) and then propose a new vulnerability detection method, GSVD. This method uses CSG as the code representation and CodeBERT as the semantic extractor, and finally extracts the vulnerability features by combining a CNN model with an attention mechanism. Our approach represent the code graphically, eliminating as much redundant information irrelevant to vulnerabilities as possible while preserving structural information. The experimental results show that GSVD has a good performance in both accuracy and speed of detection comparing with the previous methods.

Anhui University (CN)
Openalex Percentile: Top 71%
Software Reliability and Analysis Research
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.