ModSec-AdvLearn: Robust Machine Learning against Adversarial SQL InjectionsModSec-AdvLearn: Countering Adversarial SQL Injections with Robust Machine Learning
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.