UCL (University College London)
Information Retrieval-Driven Software Vulnerability Prediction
Abstract
dc:description.abstractContext: The growing complexity of software systems continually correlates with increasing vulnerabilities, necessitating effective mitigation strategies, such as vulnerability prediction. This Artificial Intelligence (AI)-driven approach aims to improve Secure Software Development Life Cycle (SSDLC) practices by proactively identifying potential security flaws. While various prediction approaches have been proposed, opportunities for further research remain, particularly in leveraging Information Retrieval (IR)’s pattern-matching capabilities to enhance prediction models. Objective: This thesis advances secure software engineering methodologies by introducing IR-driven feature engineering methods for predicting software vulnerabilities. We develop granular method-level vulnerability prediction models that leverage novel IR-driven security-relevant metrics and evaluate their predictive performances. Methodology: We developed two varieties of sixteen IR-driven security-relevant features using token-based and Abstract Syntax Tree (AST)-based source code representations. Then, we utilised these features to develop models with various machine learning classifiers using Python and evaluated them on Java open-source software systems, starting with a Within-Project (release-by-release dataset). Finally, we conducted a stress test in a Mixed-Project (multi-software systems dataset) setting to assess the generalisability of our models across software systems. Results: Our Within-Project token-based IR-driven approach reached a post-hyperparameter tuning precision of 0.73, a recall of 0.60, and an F1 score of 0.66 using a Random Forest classifier. The Within-Project AST-based approach attained a slightly better F1 score performance, yielding a post-hyperparameter tuning precision of 0.72, a recall of 0.62, and an F1 score of 0.67, also using Random Forest. Conclusion: Our research indicates that IR-driven feature engineering techniques significantly enhance prediction performance, demonstrating the effectiveness of our approach. However, the Mixed-Project analysis indicated that data-related challenges in vulnerability prediction persist, especially regarding data heterogeneity across software systems. Thus, system-specific vulnerability prediction models leveraging a release-by-release dataset and knowledge of previous system-specific vulnerabilities represent the most promising approach for practical vulnerability prediction in real-world software systems.
Degree
thesis:*- Level dc:type.qualificationlevel
- Doctoral
- Grantor dc:publisher.institution
- UCL (University College London)
- Year dc:date.issued
- 2025
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Meka, Chizzy Godson
Rights
- Language dc:language
- en, eng
Identifiers
dc:identifier.*- Repository record dc:identifier.uri
- https://discovery.ucl.ac.uk/id/eprint/10207359/