Skip to content

ModSec-AdvLearn: Robust Machine Learning against Adversarial SQL InjectionsModSec-AdvLearn: Countering Adversarial SQL Injections with Robust Machine Learning

arXiv· arXiv:2308.04964· IEEE Transactions on Information Forensics and Security 2025· Giuseppe Floris, Christian Scano, Biagio Montaruli, Luca Demetrio, Andrea Valenza, Luca Compagna, Davide Ariu, Luca Piras, Davide Balzarotti, Battista Biggio·Indexed by this site · 25 days ago· Originally publishedDefenses
AI summary

ModSec-AdvLearn uses machine learning to automatically select a subset of rules and weights for the OWASP CRS of the ModSecurity WAF, and uses adversarial training to improve robustness against adversarial SQL injection. The authors state that the CRS's default manual configuration is suboptimal in the trade-off between detection and false positives, and can be bypassed by SQLi payloads refined through iterative queries; on ModSecurity + CRS, detection rate improves by up to 30%, false positives are negligible, up to 50% of rules are dropped, and robustness against adversarial SQLi improves by up to 85%. The code is open-sourced.

Read originalIEEE Transactions on Information Forensics and Security 2025