An improved text classification modelling approach to identify security messages in heterogeneous projects

8Citations
Citations of this article
27Readers
Mendeley users who have this article in their library.

Abstract

Security remains under-addressed in many organisations, illustrated by the number of large-scale software security breaches. Preventing breaches can begin during software development if attention is paid to security during the software’s design and implementation. One approach to security assurance during software development is to examine communications between developers as a means of studying the security concerns of the project. Prior research has investigated models for classifying project communication messages (e.g., issues or commits) as security related or not. A known problem is that these models are project-specific, limiting their use by other projects or organisations. We investigate whether we can build a generic classification model that can generalise across projects. We define a set of security keywords by extracting them from relevant security sources, dividing them into four categories: asset, attack/threat, control/mitigation, and implicit. Using different combinations of these categories and including them in the training dataset, we built a classification model and evaluated it on industrial, open-source, and research-based datasets containing over 45 different products. Our model based on harvested security keywords as a feature set shows average recall from 55 to 86%, minimum recall from 43 to 71% and maximum recall from 60 to 100%. An average f-score between 3.4 and 88%, an average g-measure of at least 66% across all the dataset, and an average AUC of ROC from 69 to 89%. In addition, models that use externally sourced features outperformed models that use project-specific features on average by a margin of 26–44% in recall, 22–50% in g-measure, 0.4–28% in f-score, and 15–19% in AUC of ROC. Further, our results outperform a state-of-the-art prediction model for security bug reports in all cases. We find using sound statistical and effect size tests that (1) using harvested security keywords as features to train a text classification model improve classification models and generalise to other projects significantly. (2) Including features in the training dataset before model construction improve classification models significantly. (3) Different security categories represent predictors for different projects. Finally, we introduce new and promising approaches to construct models that can generalise across different independent projects.

References Powered by Scopus

Learning from imbalanced data

7398Citations
N/AReaders
Get full text

Term-weighting approaches in automatic text retrieval

6836Citations
N/AReaders
Get full text

Machine Learning in Automated Text Categorization

6066Citations
N/AReaders
Get full text

Cited by Powered by Scopus

Automated unearthing of dangerous issue reports

10Citations
N/AReaders
Get full text

Research and Progress on Learning-Based Source Code Vulnerability Detection

4Citations
N/AReaders
Get full text

Survey on Vulnerability Awareness of Open Source Software

2Citations
N/AReaders
Get full text

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Cite

CITATION STYLE

APA

Oyetoyan, T. D., & Morrison, P. (2021). An improved text classification modelling approach to identify security messages in heterogeneous projects. Software Quality Journal, 29(2), 509–553. https://doi.org/10.1007/s11219-020-09546-7

Readers over time

‘21‘22‘23‘24‘250481216

Readers' Seniority

Tooltip

PhD / Post grad / Masters / Doc 6

67%

Professor / Associate Prof. 2

22%

Lecturer / Post doc 1

11%

Readers' Discipline

Tooltip

Computer Science 10

100%

Save time finding and organizing research with Mendeley

Sign up for free
0