Vignat: Vulnerability identification by learning code semantics via graph attention networks

Shuo Liu, Gail Kaiser
10/30/2023
cs.CRcs.AI

No confident code implementation found for this paper.

Abstract

Vulnerability identification is crucial to protect software systems from attacks for cyber-security. However, huge projects have more than millions of lines of code, and the complex dependencies make it hard to carry out traditional static and dynamic methods. Furthermore, the semantic structure of various types of vulnerabilities differs greatly and may occur simultaneously, making general rule-based methods difficult to extend. In this paper, we propose \textit{Vignat}, a novel attention-based framework for identifying vulnerabilities by learning graph-level semantic representations of code. We represent codes with code property graphs (CPGs) in fine grain and use graph attention networks (GATs) for vulnerability detection. The results show that Vignat is able to achieve $57.38\%$ accuracy on reliable datasets derived from popular C libraries. Furthermore, the interpretability of our GATs provides valuable insights into vulnerability patterns.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2023vignat,
  title  = {Vignat: Vulnerability identification by learning code semantics via graph attention networks},
  author = {Shuo Liu and Gail Kaiser},
  year   = {2023},
  eprint = {2310.20067},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.20067v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.20067.svg)](https://codeofpaper.com/paper/2310.20067)

Discussion