Machine Learning Based Approach to Threat Classification in Application Security

As the landscape of cyber threats advances at a rapid pace, organizations need to maintain consistent and efficient threat modelling processes within their systems. Traditional threat modeling frameworks such as STRIDE and PASTA rely on manual assessments, which are prone to human error, time-consuming and lack standardization across digital platforms. This study was conducted by building and evaluating four machine learning models that automate the classification of application security threats within an organizational environment, with the goal of enhancing consistency and reducing reliance on manual severity assessments. Using internal data from a security company, two ensemble machine learning algorithms, Random Forest and XGBoost, were implemented and trained on datasets consisting of different feature compositions. The models were later evaluated using four evaluation metrics: accuracy, precision, recall, and F1-Score, through both hold-out validation and 5-fold cross-validation. The model that was trained on five features, including metadata from code review logs, achieved the highest performance with an F1-Score of 95.94%. The inclusion of textual features significantly improved classification performance across all metrics compared to the models that excluded them. Finally, the results of this study demonstrate that machine learning can significantly enhance the accuracy and consistency of threat severity classification, particularly when incorporating contextual features.

Publication Details

Journal
KTH Publication Database DiVA (KTH Royal Institute of Technology)
Published
2025-01-01
Primary Topic
Fetal and Pediatric Neurological Disorders
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Machine Learning Based Approach to Threat Classification in Application Security

KTH Publication Database DiVA (KTH Royal Institute of Technology)
Fetal and Pediatric Neurological Disorders
article

Machine Learning Based Approach to Threat Classification in Application Security

article en

Abstract

As the landscape of cyber threats advances at a rapid pace, organizations need to maintain consistent and efficient threat modelling processes within their systems. Traditional threat modeling frameworks such as STRIDE and PASTA rely on manual assessments, which are prone to human error, time-consuming and lack standardization across digital platforms. This study was conducted by building and evaluating four machine learning models that automate the classification of application security threats within an organizational environment, with the goal of enhancing consistency and reducing reliance on manual severity assessments. Using internal data from a security company, two ensemble machine learning algorithms, Random Forest and XGBoost, were implemented and trained on datasets consisting of different feature compositions. The models were later evaluated using four evaluation metrics: accuracy, precision, recall, and F1-Score, through both hold-out validation and 5-fold cross-validation. The model that was trained on five features, including metadata from code review logs, achieved the highest performance with an F1-Score of 95.94%. The inclusion of textual features significantly improved classification performance across all metrics compared to the models that excluded them. Finally, the results of this study demonstrate that machine learning can significantly enhance the accuracy and consistency of threat severity classification, particularly when incorporating contextual features.

KTH Publication Database DiVA (KTH Royal Institute of Technology)
Openalex Percentile: Top 39%
Fetal and Pediatric Neurological Disorders
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Machine Learning Based Approach to Threat Classification in Application Security · KTH Publication Database DiVA (KTH Royal Institute of Technology) (2025) | TGRS Research Map | TGRS