ModSec-AdvLearn: Countering Adversarial SQL Injections with Robust Machine Learning
Giuseppe Floris, Christian Scano, Biagio Montaruli, Luca Demetrio, Andrea Valenza, Luca Compagna, Davide Ariu, Luca Piras, Davide Balzarotti, Battista Biggio

TL;DR
This paper introduces ModSec-AdvLearn, a machine learning-based approach to optimize CRS configurations in WAFs for better detection of SQLi attacks and enhanced robustness against adversarial manipulations.
Contribution
It proposes automating CRS rule selection and weighting using machine learning, combined with adversarial training to improve WAF effectiveness and resilience.
Findings
Detection rate increased by up to 30%
False alarms remained negligible
Robustness against adversarial SQLi improved by up to 85%
Abstract
Many Web Application Firewalls (WAFs) leverage the OWASP CRS to block incoming malicious requests. The CRS consists of different sets of rules designed by domain experts to detect well-known web attack patterns. Both the set of rules and the weights used to combine them are manually defined, yielding four different default configurations of the CRS. In this work, we focus on the detection of SQLi attacks, and show that the manual configurations of the CRS typically yield a suboptimal trade-off between detection and false alarm rates. Furthermore, we show that these configurations are not robust to adversarial SQLi attacks, i.e., carefully-crafted attacks that iteratively refine the malicious SQLi payload by querying the target WAF to bypass detection. To overcome these limitations, we propose (i) using machine learning to automate the selection of the set of rules to be combined along…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsWeb Application Security Vulnerabilities · Network Security and Intrusion Detection · Security and Verification in Computing
