Hybrid ML for adaptive web application firewall validation and multi-cloud auto-remediation

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.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-11-23
DOI
https://doi.org/10.1038/s41598-026-80525-x
Primary Topic
Web Application Security Vulnerabilities
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Hybrid ML for adaptive web application firewall validation and multi-cloud auto-remediation

Durgesh Nandan, Ruchi Rani, MWP Maduranga, Chanaka Lasantha
Scientific Reports
Web Application Security Vulnerabilities
article

Hybrid ML for adaptive web application firewall validation and multi-cloud auto-remediation

Durgesh Nandan, Ruchi Rani, MWP Maduranga, Chanaka Lasantha
article en

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.

Scientific Reports
National Institute of Technology Warangal (IN), University of Sri Jayewardenepura (LK), Symbiosis International (Deemed University) (IN)
Web Application Security Vulnerabilities
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.

Laika access coming soon