TY - GEN
T1 - Security Bug Report Prediction Within and Across Projects
T2 - 21st International Conference on Predictive Models and Data Analytics in Software Engineering, PROMISE 2025 , co-located with the International Conference on the Foundations of Software Engineering, FSE 2025
AU - Soltaniani, Farnaz
AU - Ghafari, Mohammad
AU - Sayagh, Mohammed
N1 - Publisher Copyright:
© 2025 Copyright held by the owner/author(s).
PY - 2025/6/26
Y1 - 2025/6/26
N2 - Early detection of security bug reports (SBRs) is crucial for preventing vulnerabilities and ensuring system reliability. While machine learning models have been developed for SBR prediction, their predictive performance still has room for improvement. In this study, we conduct a comprehensive comparison between BERT and Random Forest (RF), a competitive baseline for predicting SBRs. The results show that RF outperforms BERT with a 34% higher average G-measure for within-project predictions. Adding only SBRs from various projects improves both models’ average performance. However, including both security and nonsecurity bug reports significantly reduces RF’s average performance to 46%, while boosts BERT to its best average performance of 66%, surpassing RF. In cross-project SBR prediction, BERT achieves a remarkable 62% G-measure, which is substantially higher than RF.
AB - Early detection of security bug reports (SBRs) is crucial for preventing vulnerabilities and ensuring system reliability. While machine learning models have been developed for SBR prediction, their predictive performance still has room for improvement. In this study, we conduct a comprehensive comparison between BERT and Random Forest (RF), a competitive baseline for predicting SBRs. The results show that RF outperforms BERT with a 34% higher average G-measure for within-project predictions. Adding only SBRs from various projects improves both models’ average performance. However, including both security and nonsecurity bug reports significantly reduces RF’s average performance to 46%, while boosts BERT to its best average performance of 66%, surpassing RF. In cross-project SBR prediction, BERT achieves a remarkable 62% G-measure, which is substantially higher than RF.
KW - Security bug reports
KW - machine learning for security
KW - software vulnerabilities
UR - https://www.scopus.com/pages/publications/105012243837
U2 - 10.1145/3727582.3728686
DO - 10.1145/3727582.3728686
M3 - Contribution to conference proceedings
AN - SCOPUS:105012243837
T3 - PROMISE 2025 - Proceedings of the 2025 21st International Conference on Predictive Models and Data Analytics in Software Engineering
SP - 85
EP - 94
BT - PROMISE 2025 - Proceedings of the 2025 21st International Conference on Predictive Models and Data Analytics in Software Engineering
PB - Association for Computing Machinery, Inc
Y2 - 26 June 2025
ER -