Skip to main navigation Skip to search Skip to main content

VuLASTE: Long Sequence Model with Abstract Syntax Tree Embedding for Vulnerability Detection

  • Botong Zhu
  • , Huobin Tan*
  • *Corresponding author for this work
  • Beihang University

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

In this paper, we present a model named VuLASTE, treating vulnerability detection as a specialized text classification task. To address the vocabulary explosion problem, VuLASTE utilizes a byte-level BPE algorithm from natural language processing. Within VuLASTE, we introduce a novel AST path embedding to represent source code nesting information. Additionally, we employ a combination of global and dilated window attention from Longformer to extract long sequence semantics from source code. To tackle the issue of data imbalance, a common challenge in vulnerability detection datasets, we employ focal loss as a loss function. This ensures that the model prioritizes poorly classified cases during training. To evaluate our model’s performance on real-world source code, we construct a cross-language and multi-repository vulnerability dataset from the Github Security Advisory Database. VuLASTE achieves top 50, top 100, top 200, and top 500 hits of 29, 51, 86, and 228, respectively, surpassing state-of-the-art researches.

Original languageEnglish
Title of host publicationAAIA 2023 - Conference Proceedings, 2023 International Conference on Advances in Artificial Intelligence and Applications
PublisherAssociation for Computing Machinery
Pages392-396
Number of pages5
ISBN (Electronic)9798400708268
DOIs
StatePublished - 18 Nov 2023
Event2023 International Conference on Advances in Artificial Intelligence and Applications, AAIA 2023 - Virtual, Online
Duration: 18 Nov 202320 Nov 2023

Publication series

NameACM International Conference Proceeding Series

Conference

Conference2023 International Conference on Advances in Artificial Intelligence and Applications, AAIA 2023
CityVirtual, Online
Period18/11/2320/11/23

Keywords

  • Deep Learning
  • Natural Language Processing
  • Open Source Software
  • Vulnerability Detection

Fingerprint

Dive into the research topics of 'VuLASTE: Long Sequence Model with Abstract Syntax Tree Embedding for Vulnerability Detection'. Together they form a unique fingerprint.

Cite this