Web Application Firewalls (WAFs) are the first line of defense, inspecting incoming HTTP requests to detect malicious payloads. Distinguishing between malicious and benign payloads is complex, and universal criteria do not exist. In recent decades, Machine Learning (ML) has emerged as an alternative to rule-based WAFs, using trained models instead of manually crafted rules. However, the reliability of ML-WAFs is questionable, mainly due to recurrent biases and the lack of a standardized assessment framework. This paper introduces a benchmarking framework to systematically identify and measure biases in ML-WAFs, evaluating dataset diversity, training validity, and evaluation robustness. We conduct an in-depth case study on WafBrain and further validate the proposed framework by applying it to the Barracuda WAF, a widely deployed commercial product. Such biases determine inflated performances in controlled environments, but they make WAFs fragile in adversarial settings.
Automatically benchmarking biases in ML-based wafs / Hamza, X., Costa, G.. - 16900:(2027), pp. 5-21. (ARES 2026 International Workshops Linköping, Sweden 24-27/08/2026) [10.1007/978-3-032-35576-8_1].
Automatically benchmarking biases in ML-based wafs
XXX Hamza;Costa Gabriele
2027
Abstract
Web Application Firewalls (WAFs) are the first line of defense, inspecting incoming HTTP requests to detect malicious payloads. Distinguishing between malicious and benign payloads is complex, and universal criteria do not exist. In recent decades, Machine Learning (ML) has emerged as an alternative to rule-based WAFs, using trained models instead of manually crafted rules. However, the reliability of ML-WAFs is questionable, mainly due to recurrent biases and the lack of a standardized assessment framework. This paper introduces a benchmarking framework to systematically identify and measure biases in ML-WAFs, evaluating dataset diversity, training validity, and evaluation robustness. We conduct an in-depth case study on WafBrain and further validate the proposed framework by applying it to the Barracuda WAF, a widely deployed commercial product. Such biases determine inflated performances in controlled environments, but they make WAFs fragile in adversarial settings.| File | Dimensione | Formato | |
|---|---|---|---|
|
Automatically Benchmarking Biases in ML_based WAFs.pdf
Accesso aperto
Descrizione: Preprint - Automatically Benchmarking Biases in ML-Based WAFs
Tipologia:
Documento in Pre-print
Licenza:
Creative commons
Dimensione
1.52 MB
Formato
Adobe PDF
|
1.52 MB | Adobe PDF | Visualizza/Apri |
I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.


