{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T17:23:55Z","timestamp":1787333035902,"version":"build-2736575974"},"reference-count":41,"publisher":"Association for Computing Machinery (ACM)","issue":"9","license":[{"start":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T00:00:00Z","timestamp":1787270400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0\/legalcode"}],"funder":[{"name":"Basic Innovation Research Cultivation Program of Yanshan University","award":["Grant 2024LGZD004"],"award-info":[{"award-number":["Grant 2024LGZD004"]}]},{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"crossref","award":["No. 62376240"],"award-info":[{"award-number":["No. 62376240"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"crossref"}]},{"name":"S&T Program of Hebei","award":["No. 236Z0304G"],"award-info":[{"award-number":["No. 236Z0304G"]}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Softw. Eng. Methodol."],"published-print":{"date-parts":[[2026,9,30]]},"abstract":"<jats:p>SQL injection-based adversarial attacks can directly evaluate WAFs by observing block\/allow actions, yet existing methods have four key issues: low quality and diversity of payloads, inadequate mutation strategies, semantic inequivalence of mutated payloads, and inefficient search processes for generating such payloads. We hypothesize that a method simultaneously improving these aspects would yield more effective attacks. Thus, we propose BWAFSQLi, a general and extensible framework for adversarial SQLi-based WAF bypass. It first designs a convergence-factor-guided context-free grammar to generate high-quality, diverse payloads (covering 18 attack scenarios, targeting 58 rules). For detected payload tokens, BWAFSQLi applies 26 rules with 15 mutation strategies\u2014including 2 novel techniques (Quotation Mark Encoding and Comment Extension)\u2014to ensure semantic-equivalent mutations. A mutation strategy selection mechanism, integrating a decay factor and historical data table, enables adaptive multi-position mutations for efficient exploration while reducing requests. Mutated payloads are finally evaluated via HTTP requests against target WAFs. Experiments with 1 self-built dataset (SQLiCFG) and 2 public datasets (HPD, SIK) on 11 WAFs (3 gray-box, 8 black-box) show that BWAFSQLi increases WAF\u2019s false negative rates (FNR) by up to 93.39% (gray-box) and 58.49% (black-box) with minimal-requests, surpassing three SOTA methods. Applying seven proposed preprocessing defenses fully suppresses FNR increases, highlighting practical significance.<\/jats:p>","DOI":"10.1145\/3788286","type":"journal-article","created":{"date-parts":[[2026,1,19]],"date-time":"2026-01-19T14:49:24Z","timestamp":1768834164000},"page":"1-44","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":0,"title":["BWAFSQLi: Bypassing Web Application Firewall with Adversarial SQL Injections"],"prefix":"10.1145","volume":"35","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-9867-8439","authenticated-orcid":false,"given":"Bing","family":"Zhang","sequence":"first","affiliation":[{"name":"School of Information Science and Engineering, The Key Laboratory for Software Engineering of Hebei Province, Yanshan University, Qinhuangdao, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0009-4564-6618","authenticated-orcid":false,"given":"Chao","family":"Liu","sequence":"additional","affiliation":[{"name":"School of Information Science and Engineering, The Key Laboratory for Software Engineering of Hebei Province, Yanshan University, Qinhuangdao, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0002-9320-9382","authenticated-orcid":false,"given":"Rong","family":"Ren","sequence":"additional","affiliation":[{"name":"School of Information Science and Engineering, The Key Laboratory for Software Engineering of Hebei Province, Yanshan University, Qinhuangdao, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-7159-1424","authenticated-orcid":false,"given":"Qian","family":"Wang","sequence":"additional","affiliation":[{"name":"School of Information Science and Engineering, The Key Laboratory for Software Engineering of Hebei Province, Yanshan University, Qinhuangdao, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2245-9133","authenticated-orcid":false,"given":"Jiadong","family":"Ren","sequence":"additional","affiliation":[{"name":"School of Information Science and Engineering, The Key Laboratory for Software Engineering of Hebei Province, Yanshan University, Qinhuangdao, China"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,8,21]]},"reference":[{"key":"e_1_3_2_2_2","doi-asserted-by":"publisher","DOI":"10.1109\/TDSC.2021.3095417"},{"key":"e_1_3_2_3_2","unstructured":"andialbrecht. 2025. python-sqlparse: Parse SQL Statements. Technical Report. GitHub. Retrieved January 06 2025 from https:\/\/github.com\/andialbrecht\/sqlparse"},{"key":"e_1_3_2_4_2","doi-asserted-by":"crossref","unstructured":"Maksym Andriushchenko Francesco Croce Nicolas Flammarion and Matthias Hein. 2020. Square attack: A query-efficient black-box adversarial attack via random search. arXiv:1912.00049. Retrieved from https:\/\/arxiv.org\/abs\/1912.00049","DOI":"10.1007\/978-3-030-58592-1_29"},{"key":"e_1_3_2_5_2","unstructured":"ANTLR. 2023. ANTLR. Retrieved December 31 2023 from https:\/\/www.antlr.org\/"},{"key":"e_1_3_2_6_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICST.2015.7102581"},{"key":"e_1_3_2_7_2","doi-asserted-by":"publisher","DOI":"10.1109\/TR.2018.2805763"},{"key":"e_1_3_2_8_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.procs.2021.05.105"},{"key":"e_1_3_2_9_2","doi-asserted-by":"publisher","DOI":"10.1007\/s13369-024-09916-4"},{"key":"e_1_3_2_10_2","unstructured":"Xianghao Chu and Zhen Liu. 2019. Research on SQL injection attack detection based on LSTM neural network. Journal of Tianjin University of Technology 6 (2019) 41\u201346. Retrieved April 20 2024 from https:\/\/www.zhangqiaokeyan.com\/academic-journal-cn_journal-tianjin-university-technology_thesis\/0201273470604.html"},{"key":"e_1_3_2_11_2","doi-asserted-by":"publisher","DOI":"10.1016\/S0022-0000(75)80051-1"},{"key":"e_1_3_2_12_2","unstructured":"CWE. 2024. Weaknesses in the 2024 CWE Top 25 Most Dangerous Software Weaknesses. Retrieved January 06 2026 from https:\/\/cwe.mitre.org\/top25\/index.html"},{"key":"e_1_3_2_13_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.jnca.2020.102662"},{"key":"e_1_3_2_14_2","doi-asserted-by":"crossref","unstructured":"Luca Demetrio Andrea V\u00e1bbi and Giovanni Lagorio Costa. 2020. WAF-A-MoLE: Evading web application firewalls through adversarial machine learning. arXiv:2001.01952. Retrieved from https:\/\/arxiv.org\/abs\/2001.01952","DOI":"10.1145\/3341105.3373962"},{"key":"e_1_3_2_15_2","unstructured":"Ian Goodfellow Jonathon Shlens and Christian Szegedy. 2018. Adversarial attacks and defences: A survey. arXiv. Retrieved October 01 2018 from https:\/\/ar5iv.labs.arxiv.org\/html\/1810.00069"},{"key":"e_1_3_2_16_2","doi-asserted-by":"publisher","DOI":"10.1109\/icaeeci58247.2023.10370872"},{"key":"e_1_3_2_17_2","doi-asserted-by":"publisher","DOI":"10.1109\/ISCISC53448.2021.9720473"},{"key":"e_1_3_2_18_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICIS46139.2019.8940196"},{"key":"e_1_3_2_19_2","doi-asserted-by":"publisher","DOI":"10.1109\/TII.2020.3038761"},{"key":"e_1_3_2_20_2","unstructured":"MariaDB. 2025. Random Query Generator (with MariaDB Patches). GitHub. Retrieved October 26 2025 from https:\/\/github.com\/MariaDB\/randgen"},{"key":"e_1_3_2_21_2","unstructured":"Morzeux. 2020. HttpParamsDataset: A Large-Scale Dataset for HTTP Parameter Inference. Morzeux. Retrieved December 30 2023 from https:\/\/github.com\/Morzeux\/HttpParamsDataset"},{"key":"e_1_3_2_22_2","first-page":"194","volume-title":"Proceedings of the 2020 6th International Conference on Advanced Computing and Communication Systems (ICACCS)","author":"Nagendran K.","year":"2020","unstructured":"K. Nagendran, S. Balaji, B. Akshay Raj, P. Chanthrika, and R. G. Amirthaa. 2020. Web application firewall evasion techniques. In Proceedings of the 2020 6th International Conference on Advanced Computing and Communication Systems (ICACCS), 194\u2013199."},{"key":"e_1_3_2_23_2","unstructured":"niccolox. 2019. WAF-Brain\u2014The Clever and Efficient Firewall for the Web. Niccolox. Retrieved from https:\/\/github.com\/niccolox\/waf-brain"},{"key":"e_1_3_2_24_2","unstructured":"OWASP. 2025. Top 10 Web Application Security Risks. Retrieved January 06 2026 from https:\/\/owasp.org\/Top10\/2025\/"},{"key":"e_1_3_2_25_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-26961-0_29"},{"key":"e_1_3_2_26_2","doi-asserted-by":"publisher","DOI":"10.1109\/TIFS.2024.3350911"},{"key":"e_1_3_2_27_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.cose.2019.06.005"},{"key":"e_1_3_2_28_2","unstructured":"Ivan Risti\u0107 and Christian Folini. 2023. ModSecurity Handbook. Technical Report. Feisty Duck. Retrieved October 01 2023 from https:\/\/www.feistyduck.com\/books\/modsecurity-handbook\/"},{"key":"e_1_3_2_29_2","doi-asserted-by":"publisher","DOI":"10.1111\/exsy.13505"},{"key":"e_1_3_2_30_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICICM.2013.52"},{"key":"e_1_3_2_31_2","unstructured":"SaneBow. 2023. WAF Evasion Environment for OpenAI Gym [Experimental]. SaneBow. Retrieved December 31 2023 from https:\/\/github.com\/SaneBow\/gym-waf"},{"key":"e_1_3_2_32_2","unstructured":"S. S. H. Shah. 2021. HttpParamsDataset: A Large-Scale Dataset for HTTP Parameter Inference. Retrieved December 30 2023 from https:\/\/www.sikgle.com\/syedsaqlainhussain\/sql-injection-dataset"},{"key":"e_1_3_2_33_2","unstructured":"Spanish National Research Council (CSIC) and Nature Index. 2024. Spanish National Research Council (CSIC): Institution Outputs. Nature Index. Retrieved March 15 2024 from https:\/\/www.nature.com\/nature-index\/institution-outputs\/spain\/spanish-national-research-council-csic\/5139073734d6b65e6a002254"},{"key":"e_1_3_2_34_2","unstructured":"sqlmapproject. 2023. sqlmap: Automatic SQL Injection and Database Takeover Tool. Technical Report. GitHub. Retrieved October 01 2023 from https:\/\/github.com\/sqlmapproject\/sqlmap"},{"key":"e_1_3_2_35_2","doi-asserted-by":"publisher","DOI":"10.1145\/2483760.2483776"},{"key":"e_1_3_2_36_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICCECT.2012.235"},{"key":"e_1_3_2_37_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICDIS55630.2022.00021"},{"key":"e_1_3_2_38_2","doi-asserted-by":"publisher","DOI":"10.1109\/FG52635.2021.9667076"},{"key":"e_1_3_2_39_2","unstructured":"Xianbo Wang and Han Hu. 2020. Evading Web Application Firewalls with Reinforcement Learning. OpenReview preprint last modified 5 May 2023. Retrieved December 14 2020 from https:\/\/openreview.net\/forum?id=m5AntlhJ7Z5"},{"key":"e_1_3_2_40_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICSSSM.2018.8465034"},{"key":"e_1_3_2_41_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2024.3400404"},{"key":"e_1_3_2_42_2","doi-asserted-by":"publisher","DOI":"10.1109\/TR.2019.2910285"}],"container-title":["ACM Transactions on Software Engineering and Methodology"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3788286","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T16:27:19Z","timestamp":1787329639000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3788286"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,8,21]]},"references-count":41,"journal-issue":{"issue":"9","published-print":{"date-parts":[[2026,9,30]]}},"alternative-id":["10.1145\/3788286"],"URL":"https:\/\/doi.org\/10.1145\/3788286","relation":{},"ISSN":["1049-331X","1557-7392"],"issn-type":[{"value":"1049-331X","type":"print"},{"value":"1557-7392","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,8,21]]},"assertion":[{"value":"2025-07-18","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-01-05","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-08-21","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}