CRAILGApr 17, 2023

An Unbiased Transformer Source Code Learning with Semantic Vulnerability Graph

arXiv:2304.11072v115 citationsh-index: 31Has Code
Originality Incremental advance
AI Analysis

This addresses the problem of identifying novel vulnerabilities in source code for software developers, though it appears incremental as it builds on existing transformer and GCN methods.

The paper tackles the problem of ineffective vulnerability screening in software development by proposing a joint transformer-GCN classifier that reduces dataset bias and handles complex code dependencies. The approach achieves state-of-the-art results with improvements of at least 2.41% to 18.75% in detection metrics, 93% accuracy on N-day samples, and detection of 4 zero-day vulnerabilities.

Over the years, open-source software systems have become prey to threat actors. Even as open-source communities act quickly to patch the breach, code vulnerability screening should be an integral part of agile software development from the beginning. Unfortunately, current vulnerability screening techniques are ineffective at identifying novel vulnerabilities or providing developers with code vulnerability and classification. Furthermore, the datasets used for vulnerability learning often exhibit distribution shifts from the real-world testing distribution due to novel attack strategies deployed by adversaries and as a result, the machine learning model's performance may be hindered or biased. To address these issues, we propose a joint interpolated multitasked unbiased vulnerability classifier comprising a transformer "RoBERTa" and graph convolution neural network (GCN). We present a training process utilizing a semantic vulnerability graph (SVG) representation from source code, created by integrating edges from a sequential flow, control flow, and data flow, as well as a novel flow dubbed Poacher Flow (PF). Poacher flow edges reduce the gap between dynamic and static program analysis and handle complex long-range dependencies. Moreover, our approach reduces biases of classifiers regarding unbalanced datasets by integrating Focal Loss objective function along with SVG. Remarkably, experimental results show that our classifier outperforms state-of-the-art results on vulnerability detection with fewer false negatives and false positives. After testing our model across multiple datasets, it shows an improvement of at least 2.41% and 18.75% in the best-case scenario. Evaluations using N-day program samples demonstrate that our proposed approach achieves a 93% accuracy and was able to detect 4, zero-day vulnerabilities from popular GitHub repositories.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes