Machine Learning-Based Security Regression Risk Prediction Using Static Code Features and Vulnerability History
The proposed mechanism combines static code feature extraction, source-code change analysis, vulnerability history, and Gradient Boosting classification to estimate the potential security regression risk associated with PHP code modifications.
Git identifies differences between source-code versions, while Python-based feature extraction converts relevant code-change characteristics into structured model inputs. Vulnerability history provides additional information about previously identified security weaknesses when suitable historical records are available.
A public cybersecurity dataset containing suitable labelled vulnerability-related records is used for model training and evaluation. Gradient Boosting learns classification patterns from the prepared training data and predicts the potential regression risk of compatible feature records extracted from the target code changes.
Semgrep CE provides independent static analysis evidence, and OWASP ZAP supports controlled application-level validation. The model prediction is treated as a risk indicator rather than proof that a vulnerability exists. Dataset labels, extracted features, and model inputs must be compatible, and the limitations of applying a dataset-trained model to DVWA code must be documented.
Assessment Flow :
PHP Application Review
↓
Security Control Identification
↓
Source-Code Version Comparison
↓
Static Code Feature Extraction
↓
Vulnerability History Analysis
↓
Public Dataset Preparation
↓
Gradient Boosting Model Training
↓
Model Performance Evaluation
↓
Modified PHP Code Feature Preparation
↓
Security Regression Risk Prediction
↓
Static and Dynamic Security Validation
↓
Finding Correlation and Risk Assessment
↓
Corrective Changes and Final Validation