Skip to main content
QUICK REVIEW

[Paper Review] AIBugHunter: A Practical Tool for Predicting, Classifying and Repairing Software Vulnerabilities

Michael C. Fu, Chakkrit Tantithamthavorn|arXiv (Cornell University)|May 26, 2023
Software Engineering ResearchComputer Science7 citations
TL;DR

AIBugHunter is an ML-based tool integrated into Visual Studio Code that enables real-time detection, classification, severity estimation, and repair suggestion for C/C++ software vulnerabilities. It combines a novel multi-objective optimization approach for vulnerability classification and a transformer-based model for severity estimation, achieving state-of-the-art accuracy and demonstrating strong developer adoption in user studies.

ABSTRACT

Many ML-based approaches have been proposed to automatically detect, localize, and repair software vulnerabilities. While ML-based methods are more effective than program analysis-based vulnerability analysis tools, few have been integrated into modern IDEs, hindering practical adoption. To bridge this critical gap, we propose AIBugHunter, a novel ML-based software vulnerability analysis tool for C/C++ languages that is integrated into Visual Studio Code. AIBugHunter helps software developers to achieve real-time vulnerability detection, explanation, and repairs during programming. In particular, AIBugHunter scans through developers' source code to (1) locate vulnerabilities, (2) identify vulnerability types, (3) estimate vulnerability severity, and (4) suggest vulnerability repairs. In this article, we propose a novel multi-objective optimization (MOO)-based vulnerability classification approach and a transformer-based estimation approach to help AIBugHunter accurately identify vulnerability types and estimate severity. Our empirical experiments on a large dataset consisting of 188K+ C/C++ functions confirm that our proposed approaches are more accurate than other state-of-the-art baseline methods for vulnerability classification and estimation. Furthermore, we conduct qualitative evaluations including a survey study and a user study to obtain software practitioners' perceptions of our AIBugHunter tool and assess the impact that AIBugHunter may have on developers' productivity in security aspects. Our survey study shows that our AIBugHunter is perceived as useful where 90% of the participants consider adopting our AIBugHunter. Last but not least, our user study shows that our AIBugHunter could possibly enhance developers' productivity in combating cybersecurity issues during software development.

Motivation & Objective

  • To bridge the gap between ML-based vulnerability detection tools and practical adoption in modern IDEs like Visual Studio Code.
  • To enable real-time, in-IDE security analysis during software development to support shift-left security practices.
  • To improve developer productivity by providing actionable, explainable vulnerability insights including repair suggestions.
  • To address the lack of explainable AI in vulnerability prediction by offering explanations for classification, severity, and repairs.
  • To evaluate practitioner perception and real-world impact through surveys and user studies.

Proposed method

  • Integrates LineVul for precise line-level vulnerability localization using deep learning on code sequences.
  • Employs a multi-objective optimization (MOO) framework to jointly optimize multiple vulnerability classification tasks, balancing conflicting objectives during training.
  • Utilizes a transformer-based architecture to estimate vulnerability severity with contextual code representation.
  • Applies model-agnostic explainability techniques (e.g., LIME) to provide interpretable explanations for predictions, classifications, and repair suggestions.
  • Deploys the system as a VS Code extension for real-time static analysis during coding.
  • Combines historical vulnerability data from large-scale datasets (188K+ C/C++ functions) to train and validate the models.

Experimental results

Research questions

  • RQ1Can an ML-based vulnerability analysis tool be effectively integrated into a mainstream IDE like Visual Studio Code to support real-time security feedback?
  • RQ2How accurately can a multi-objective optimization approach classify software vulnerabilities compared to existing state-of-the-art methods?
  • RQ3To what extent does a transformer-based model improve severity estimation accuracy for software vulnerabilities?
  • RQ4How do software practitioners perceive the usefulness and usability of an AI-powered vulnerability assistant in their daily development workflow?
  • RQ5To what extent can AIBugHunter reduce developers’ time spent on security analysis and improve productivity?

Key findings

  • AIBugHunter achieved state-of-the-art performance in vulnerability classification, correctly identifying 79% of CWE-119 buffer errors in the top-1 prediction rank.
  • The multi-objective optimization approach outperformed single-task baselines in classifying multiple vulnerability types simultaneously, demonstrating improved generalization across conflicting objectives.
  • The transformer-based severity estimation model showed higher accuracy than baseline methods on the large-scale C/C++ dataset of 188K+ functions.
  • In a survey of 21 practitioners, 90% expressed intent to adopt AIBugHunter in their development workflow, indicating strong perceived utility.
  • The user study demonstrated that AIBugHunter could reduce developers’ time spent on security analysis, enhancing productivity in identifying and addressing vulnerabilities.
  • The tool is now publicly available in the Visual Studio Code marketplace, with training data and code released on GitHub for reproducibility.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.