Software vulnerability detection (SVD) in source code remains a significant challenge, capturing the attention of researchers due to its critical importance. Numerous automated detection techniques have emerged, leveraging deep learning and large language models. Graph Neural Network models have been used for SVD and have shown promising results. However, graph-based models often struggle to capture long-term dependencies within code snippets due to simplistic hop neighborhood encoding. This study explores the potential of enhancing graph neural networks by capturing both local and global complex code structures through node and edge embeddings. By generating contextualised embeddings using Node2vec model, we aim to enrich the model’s understanding of source code through an advanced subgraph construction. Our results demonstrate an improvement in the detection capabilities of graph neural networks for identifying vulnerabilities at the statement level in Java source code. Specifically, the proposed approach has achieved a detection precision of up to (i.e., improvement of 11.33%), enhancing the model’s noise robustness and detection capability.

Enhanced Graph Neural Networks for Vulnerability Detection in Java via Advanced Subgraph Construction / Lekeufack Foulefack, Rosmaël Zidane; Marchetto, Alessandro. - (2024), pp. 131-148. [10.1007/978-3-031-80889-0_9]

Enhanced Graph Neural Networks for Vulnerability Detection in Java via Advanced Subgraph Construction

Marchetto, Alessandro
2024-01-01

Abstract

Software vulnerability detection (SVD) in source code remains a significant challenge, capturing the attention of researchers due to its critical importance. Numerous automated detection techniques have emerged, leveraging deep learning and large language models. Graph Neural Network models have been used for SVD and have shown promising results. However, graph-based models often struggle to capture long-term dependencies within code snippets due to simplistic hop neighborhood encoding. This study explores the potential of enhancing graph neural networks by capturing both local and global complex code structures through node and edge embeddings. By generating contextualised embeddings using Node2vec model, we aim to enrich the model’s understanding of source code through an advanced subgraph construction. Our results demonstrate an improvement in the detection capabilities of graph neural networks for identifying vulnerabilities at the statement level in Java source code. Specifically, the proposed approach has achieved a detection precision of up to (i.e., improvement of 11.33%), enhancing the model’s noise robustness and detection capability.
2024
Testing Software and Systems
London, UK
Springer
9783031808883
9783031808890
Lekeufack Foulefack, Rosmaël Zidane; Marchetto, Alessandro
Enhanced Graph Neural Networks for Vulnerability Detection in Java via Advanced Subgraph Construction / Lekeufack Foulefack, Rosmaël Zidane; Marchetto, Alessandro. - (2024), pp. 131-148. [10.1007/978-3-031-80889-0_9]
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11572/445790
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
  • OpenAlex ND
social impact