Hybrid ML for adaptive web application firewall validation and multi-cloud auto-remediation
Year: 2026
Type: article
Abstract: Despite the fact that a multi-vendor cloud Web Application Firewall (WAF) deployed for management will attempt to block the attacks, whether they are actually blocked is still a manual task and an open-source tester would replay a static corpus, then not adjust to the response he is seeing or produce remediation. It suggests a hybrid machine-learning (ML) architecture to label the response by a four-layer classifier, to train a stacking ensemble (Random Forest, Gradient Boosting machine and a Multi-Layer Perceptron with a logistic-regression combiner) on the fly during the scan, to generate adaptive mutation rounds based on observed bypass patterns, to persist the calibrated ensemble so that it can reorder the request queues of later scans of the same WAF family, and to produce multi-cloud Infrastructure-as-Code remediation. On a production AWS WAF protecting a Wazuh interface, 36.8% (582 of 1,580) of attack requests are blocked and 63.2% (998) bypass the WAF, and 4 of the 141 benign requests are falsely blocked (benign false-positive rate 2.8%). Two models with the same ensemble architecture are distinguished. The operational in-flight model trains on 52 payload features, and its calibrated scores can be used to reorder future scans; it does not score the adaptive candidates. Its training cost, scoring latency and a warm-start replay are reported, but its predictive and ranking performance on held-out data is not measured. A separate companion evaluation model, trained offline on one-hot encoded test-case descriptions and evaluated by 5-fold cross-validation, scores F1 0.875 and ROC AUC 0.927. These scores indicate how predictable the outcome is from the test-case description and are not evidence of the operational model’s predictive or ranking performance. In the companion model, a paired comparison shows no significant F1 difference between the stacking ensemble and the best single learner. Adaptive generator candidates bypass the WAF at 92.7% (253 out of 273) against 52.5% (558 out of 1,063) for the fixed corpus (generator vs. fixed corpus, chi-square = 145, p < 1e-32), and advanced to encoder-placeholder classes not in the fixed corpus, such as flat-Base64 in SOAP and XML bodies. On an OWASP Core Rule Set laboratory target, the framework found bypasses in all 18 classes that GoTestWAF bypassed along with 23 additional classes, and the two tools produced identical verdicts on all 345 of the 349 overlapping probes that both resolved. The evidence is from one production and one laboratory target.
Source: Scientific Reports
Language: English
Subfield: Information Systems
Field: Computer Science
Domain: Physical Sciences
Open Access status: gold
Estimated APC paid: $2,690
OpenAlex ID: W7238830712
FWCI:
Cites:
Cited by:
Related to:
