A Machine-Learning-Driven Evolutionary Approach for Testing Web Application Firewalls
Open Access
- 25 June 2018
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Reliability
- Vol. 67 (3) , 733-757
Abstract
Web application firewalls (WAFs) are an essential protection mechanism for online software systems. Because of the relentless flow of new kinds of attacks as well as their increased sophistication, WAFs have to be updated and tested regularly to prevent attackers from easily circumventing them. In this paper, we focus on testing WAFs for SQL injection attacks, but the general principles and strategy we propose can be adapted to other contexts. We present ML-Driven, an approach based on machine learning and an evolutionary algorithm to automatically detect holes in WAFs that let SQL injection attacks bypass them. Initially, ML-Driven automatically generates a diverse set of attacks and submits them to the system being protected by the target WAF. Then, ML-Driven selects attacks that exhibit patterns (substrings) associated with bypassing the WAF and evolves them to generate new successful bypassing attacks. Machine learning is used to incrementally learn attack patterns from previously generated attacks according to their testing results, i.e., if they are blocked or bypass the WAF. We implemented ML-Driven in a tool and evaluated it on ModSecurity, a widely used open-source WAF, and a proprietary WAF protecting a financial institution. Our empirical results indicate that ML-Driven is effective and efficient at generating SQL injection attacks bypassing WAFs and identifying attack patterns.Keywords
Funding Information
- European Research Council ERC under the European Unions Horizon 2020 research and innovation programme (694277)
This publication has 33 references indexed in Scilit:
- Two decades of Web application testing—A survey of recent advancesInformation Systems, 2014
- An orchestrated survey of methodologies for automated software test case generationJournal of Systems and Software, 2013
- SAGE: Whitebox Fuzzing for Security TestingQueue, 2012
- The WEKA data mining softwareACM SIGKDD Explorations Newsletter, 2009
- Grammar-based whitebox fuzzingACM SIGPLAN Notices, 2008
- Testing input validation in Web applications through automated model recoveryJournal of Systems and Software, 2008
- Firewall Conformance Testing2005
- Search‐based software test data generation: a surveySoftware Testing, Verification and Reliability, 2004
- SQLrand: Preventing SQL Injection Attacks2004
- Specification-Based Testing of Firewalls2001