Skip to main content
QUICK REVIEW

[Paper Review] Early Detection of Security-Relevant Bug Reports using Machine Learning: How Far Are We?

Arthur D. Sawadogo, Quentin Guimard|arXiv (Cornell University)|Dec 19, 2021
Software Engineering ResearchComputer Science4 citations
TL;DR

This paper evaluates machine learning approaches for early detection of security-relevant bug reports using a large, curated dataset of open-source bug reports. It finds that TF-IDF features combined with tree-based classifiers (e.g., Random Forest, XGBoost) yield the highest F-scores, while non-tree models suffer from performance degradation with high-dimensional, noisy feature vectors, highlighting the critical role of feature engineering in secure software triaging systems.

ABSTRACT

Bug reports are common artefacts in software development. They serve as the main channel for users to communicate to developers information about the issues that they encounter when using released versions of software programs. In the descriptions of issues, however, a user may, intentionally or not, expose a vulnerability. In a typical maintenance scenario, such security-relevant bug reports are prioritised by the development team when preparing corrective patches. Nevertheless, when security relevance is not immediately expressed (e.g., via a tag) or rapidly identified by triaging teams, the open security-relevant bug report can become a critical leak of sensitive information that attackers can leverage to perform zero-day attacks. To support practitioners in triaging bug reports, the research community has proposed a number of approaches for the detection of security-relevant bug reports. In recent years, approaches in this respect based on machine learning have been reported with promising performance. Our work focuses on such approaches, and revisits their building blocks to provide a comprehensive view on the current achievements. To that end, we built a large experimental dataset and performed extensive experiments with variations in feature sets and learning algorithms. Eventually, our study highlights different approach configurations that yield best performing classifiers.

Motivation & Objective

  • To investigate the current state of machine learning approaches for detecting security-relevant bug reports in software development.
  • To address the lack of standardized, large-scale datasets for evaluating security-relevant bug report classification.
  • To identify optimal combinations of features, learning algorithms, and hyperparameters for high-accuracy detection.
  • To provide a comprehensive empirical evaluation of model performance across diverse configurations to guide future research and tool integration.

Proposed method

  • Constructed a large, multi-source dataset of security-relevant and non-security bug reports from open-source projects and existing literature.
  • Employed TF-IDF vectorization to transform bug report titles and descriptions into numerical feature vectors.
  • Evaluated 11 supervised learning algorithms, including tree-based models (Random Forest, XGBoost), linear models (Logistic Regression), and neural networks.
  • Conducted extensive hyperparameter tuning and cross-validation to assess model performance across varying feature vector sizes and input formats.
  • Compared models using F-measure as the primary metric, analyzing performance trends across feature dimensionality and algorithm types.
  • Reported training and validation losses over epochs to ensure model stability and mitigate overfitting in deep learning experiments.

Experimental results

Research questions

  • RQ1Which feature representation (e.g., TF-IDF, bag-of-words) yields the highest classification performance for security-relevant bug reports?
  • RQ2How do different machine learning algorithms (tree-based vs. non-tree-based) perform in detecting security-relevant bug reports across varying feature vector sizes?
  • RQ3What is the impact of feature vector dimensionality on model performance, particularly in terms of overfitting and noise sensitivity?
  • RQ4To what extent do bug report titles alone contain predictive signals for security relevance, compared to full descriptions?
  • RQ5Can deep learning models effectively classify security-relevant bug reports when trained on large-scale open-source datasets?

Key findings

  • TF-IDF-based feature representation consistently outperformed other feature sets, achieving the highest F-measure across all evaluated models.
  • Tree-based classifiers such as Random Forest and XGBoost demonstrated superior performance, especially when combined with TF-IDF features.
  • Non-tree-based classifiers, particularly Gaussian Naive Bayes, showed significant performance degradation with high-dimensional feature vectors due to noise sensitivity.
  • Performance generally improved with increasing feature vector size but plateaued or slightly declined beyond 50–80 dimensions, indicating an optimal range before noise dominates.
  • The description section of bug reports contained more relevant information than titles alone, though titles still contributed meaningfully to prediction.
  • Initial experiments with deep learning models showed promise but required further hyperparameter tuning and validation to achieve stable performance, suggesting caution in direct deployment without optimization.

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.