{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,13]],"date-time":"2026-11-13T11:53:31Z","timestamp":1794570811454,"version":"4.9.1"},"reference-count":34,"publisher":"MDPI AG","issue":"4","license":[{"start":{"date-parts":[[2023,3,30]],"date-time":"2023-03-30T00:00:00Z","timestamp":1680134400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"National Key Research and Development Program of China","award":["2020YFB1805400"],"award-info":[{"award-number":["2020YFB1805400"]}]},{"name":"National Key Research and Development Program of China","award":["U19A2068"],"award-info":[{"award-number":["U19A2068"]}]},{"name":"National Key Research and Development Program of China","award":["62032002"],"award-info":[{"award-number":["62032002"]}]},{"name":"National Key Research and Development Program of China","award":["62101358"],"award-info":[{"award-number":["62101358"]}]},{"name":"National Key Research and Development Program of China","award":["2020M683345"],"award-info":[{"award-number":["2020M683345"]}]},{"name":"National Key Research and Development Program of China","award":["SCU2021D052"],"award-info":[{"award-number":["SCU2021D052"]}]},{"name":"National Natural Science Foundation of China","award":["2020YFB1805400"],"award-info":[{"award-number":["2020YFB1805400"]}]},{"name":"National Natural Science Foundation of China","award":["U19A2068"],"award-info":[{"award-number":["U19A2068"]}]},{"name":"National Natural Science Foundation of China","award":["62032002"],"award-info":[{"award-number":["62032002"]}]},{"name":"National Natural Science Foundation of China","award":["62101358"],"award-info":[{"award-number":["62101358"]}]},{"name":"National Natural Science Foundation of China","award":["2020M683345"],"award-info":[{"award-number":["2020M683345"]}]},{"name":"National Natural Science Foundation of China","award":["SCU2021D052"],"award-info":[{"award-number":["SCU2021D052"]}]},{"name":"China Postdoctoral Science Foundation","award":["2020YFB1805400"],"award-info":[{"award-number":["2020YFB1805400"]}]},{"name":"China Postdoctoral Science Foundation","award":["U19A2068"],"award-info":[{"award-number":["U19A2068"]}]},{"name":"China Postdoctoral Science Foundation","award":["62032002"],"award-info":[{"award-number":["62032002"]}]},{"name":"China Postdoctoral Science Foundation","award":["62101358"],"award-info":[{"award-number":["62101358"]}]},{"name":"China Postdoctoral Science Foundation","award":["2020M683345"],"award-info":[{"award-number":["2020M683345"]}]},{"name":"China Postdoctoral Science Foundation","award":["SCU2021D052"],"award-info":[{"award-number":["SCU2021D052"]}]},{"name":"Fundamental Research Funds for the Central Universities","award":["2020YFB1805400"],"award-info":[{"award-number":["2020YFB1805400"]}]},{"name":"Fundamental Research Funds for the Central Universities","award":["U19A2068"],"award-info":[{"award-number":["U19A2068"]}]},{"name":"Fundamental Research Funds for the Central Universities","award":["62032002"],"award-info":[{"award-number":["62032002"]}]},{"name":"Fundamental Research Funds for the Central Universities","award":["62101358"],"award-info":[{"award-number":["62101358"]}]},{"name":"Fundamental Research Funds for the Central Universities","award":["2020M683345"],"award-info":[{"award-number":["2020M683345"]}]},{"name":"Fundamental Research Funds for the Central Universities","award":["SCU2021D052"],"award-info":[{"award-number":["SCU2021D052"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Future Internet"],"abstract":"<jats:p>SQL injection is a highly detrimental web attack technique that can result in significant data leakage and compromise system integrity. To counteract the harm caused by such attacks, researchers have devoted much attention to the examination of SQL injection detection techniques, which have progressed from traditional signature-based detection methods to machine- and deep-learning-based detection models. These detection techniques have demonstrated promising results on existing datasets; however, most studies have overlooked the impact of adversarial attacks, particularly black-box adversarial attacks, on detection methods. This study addressed the shortcomings of current SQL injection detection techniques and proposed a reinforcement-learning-based black-box adversarial attack method. The proposal included an innovative vector transformation approach for the original SQL injection payload, a comprehensive attack-rule matrix, and a reinforcement-learning-based method for the adaptive generation of adversarial examples. Our approach was evaluated on existing web application firewalls (WAF) and detection models based on machine- and deep-learning methods, and the generated adversarial examples successfully bypassed the detection method at a rate of up to 97.39%. Furthermore, there was a substantial decrease in the detection accuracy of the model after multiple attacks had been carried out on the detection model via the adversarial examples.<\/jats:p>","DOI":"10.3390\/fi15040133","type":"journal-article","created":{"date-parts":[[2023,3,31]],"date-time":"2023-03-31T01:37:02Z","timestamp":1680226622000},"page":"133","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":27,"title":["SSQLi: A Black-Box Adversarial Attack Method for SQL Injection Based on Reinforcement Learning"],"prefix":"10.3390","volume":"15","author":[{"given":"Yuting","family":"Guan","sequence":"first","affiliation":[{"name":"School of cyber Science and Engineering, Sichuan University, Chengdu 610065, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Junjiang","family":"He","sequence":"additional","affiliation":[{"name":"School of cyber Science and Engineering, Sichuan University, Chengdu 610065, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Tao","family":"Li","sequence":"additional","affiliation":[{"name":"School of cyber Science and Engineering, Sichuan University, Chengdu 610065, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Hui","family":"Zhao","sequence":"additional","affiliation":[{"name":"School of cyber Science and Engineering, Sichuan University, Chengdu 610065, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Baoqiang","family":"Ma","sequence":"additional","affiliation":[{"name":"School of cyber Science and Engineering, Sichuan University, Chengdu 610065, China"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2023,3,30]]},"reference":[{"key":"ref_1","unstructured":"OWASP (2022, June 04). OWASP Top Ten. Available online: https:\/\/owasp.org\/."},{"key":"ref_2","unstructured":"Clay Keller (2021, March 20). Vulnerability Dstribution of CVE Security Vulnerabilities by Types. Available online: https:\/\/www.cvedetails.com\/vulnerabilities-by-types.php."},{"key":"ref_3","first-page":"102852","article-title":"An ensemble classification-based approach to detect attack level of SQL injections","volume":"59","author":"Kasim","year":"2021","journal-title":"J. Inf. Secur. Appl."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"206","DOI":"10.1016\/j.cose.2016.04.005","article-title":"SQLiGoT: Detecting SQL injection attacks using graph of tokens and SVM","volume":"60","author":"Kar","year":"2016","journal-title":"Comput. Secur."},{"key":"ref_5","first-page":"4182","article-title":"LSTM-based SQL injection detection method for intelligent transportation system","volume":"68","author":"Li","year":"2019","journal-title":"IEEE Trans. Veh. Technol."},{"key":"ref_6","doi-asserted-by":"crossref","unstructured":"Qiu, S., Liu, Q., Zhou, S., and Wu, C. (2019). Review of artificial intelligence adversarial attack and defense technologies. Appl. Sci., 9.","DOI":"10.3390\/app9050909"},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"10989","DOI":"10.1109\/ACCESS.2020.2965184","article-title":"Adversarial examples detection for XSS attacks based on generative adversarial networks","volume":"8","author":"Zhang","year":"2020","journal-title":"IEEE Access"},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Fang, Y., Huang, C., Xu, Y., and Li, Y. (2019). RLXSS: Optimizing XSS detection model to defend against adversarial attacks based on reinforcement learning. Future Int., 11.","DOI":"10.3390\/fi11080177"},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"102554","DOI":"10.1016\/j.cose.2021.102554","article-title":"Black-box adversarial attacks on XSS attack detection model","volume":"113","author":"Wang","year":"2022","journal-title":"Comput. Secur."},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"102831","DOI":"10.1016\/j.cose.2022.102831","article-title":"XSS Adversarial Example Attacks Based on Deep Reinforcement Learning","volume":"120","author":"Chen","year":"2022","journal-title":"Comput. Secur."},{"key":"ref_11","doi-asserted-by":"crossref","unstructured":"Liu, M., Li, K., and Chen, T. (2020, January 18\u201322). DeepSQLi: Deep semantic learning for testing SQL injection. Proceedings of the 29th ACM SIGSOFT International Symposium on Software Testing and Analysis, Virtual Event.","DOI":"10.1145\/3395363.3397375"},{"key":"ref_12","unstructured":"Demetrio, L., Valenza, A., Costa, G., and Lagorio, G. (April, January 30). Waf-a-mole: Evading web application firewalls through adversarial machine learning. Proceedings of the 35th Annual ACM Symposium on Applied Computing, Brno, Czech Republic."},{"key":"ref_13","first-page":"131","article-title":"Bypassing Web Application Firewalls Using Deep Reinforcement Learning","volume":"14","author":"Hemmati","year":"2022","journal-title":"ISeCure"},{"key":"ref_14","unstructured":"Wang, X., and Han, H. (2022, June 04). Evading Web Application Firewalls with Reinforcement Learning. Available online: https:\/\/openreview.net\/forum?id=m5AntlhJ7Z5."},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"3371","DOI":"10.1109\/TDSC.2021.3095417","article-title":"RAT: Reinforcement-Learning-Driven and Adaptive Testing for Vulnerability Discovery in Web Application Firewalls","volume":"19","author":"Amouei","year":"2021","journal-title":"IEEE Trans. Dependable Secur. Comput."},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Hemmati, M., and Hadavi, M.A. (2021, January 1\u20132). Using Deep Reinforcement Learning to Evade Web Application Firewalls. Proceedings of the 2021 18th International ISC Conference on Information Security and Cryptology (ISCISC), Isfahan, Iran.","DOI":"10.1109\/ISCISC53448.2021.9720473"},{"key":"ref_17","unstructured":"Guo, C., Gardner, J., You, Y., Wilson, A.G., and Weinberger, K. (2019, January 18\u201323). Simple black-box adversarial attacks. Proceedings of the International Conference on Machine Learning, Long Beach, CA, USA."},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Goswami, G., Ratha, N., Agarwal, A., Singh, R., and Vatsa, M. (2018, January 2\u20137). Unravelling robustness of deep learning based face recognition against adversarial attacks. Proceedings of the AAAI Conference on Artificial Intelligence, New Orleans, LA, USA.","DOI":"10.1609\/aaai.v32i1.12341"},{"key":"ref_19","unstructured":"Morris, J.X., Lifland, E., Yoo, J.Y., and Qi, Y. (2020). Textattack: A framework for adversarial attacks in natural language processing. arXiv."},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"4788","DOI":"10.1109\/TIFS.2021.3117078","article-title":"Attacking Recommender Systems With Plausible Profile","volume":"16","author":"Zhang","year":"2021","journal-title":"IEEE Trans. Inf. Forensics Secur."},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"261","DOI":"10.1016\/j.cose.2018.12.016","article-title":"An ensemble learning approach for XSS attack detection with domain knowledge and threat intelligence","volume":"82","author":"Zhou","year":"2019","journal-title":"Comput. Secur."},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Kumar, P., and Pateriya, R. (2012, January 26\u201328). A survey on SQL injection attacks, detection and prevention techniques. Proceedings of the 2012 Third International Conference on Computing, Communication and Networking Technologies (ICCCNT\u201912), Coimbatore, India.","DOI":"10.1109\/ICCCNT.2012.6396096"},{"key":"ref_23","unstructured":"OWASP (2022, March 22). The SQL injection Knowledge Base. Available online: https:\/\/www.websec.ca\/kb\/sql_injection."},{"key":"ref_24","unstructured":"ORACLE (2022, March 23). MySQL 8.0 Reference Manual. Available online: https:\/\/dev.mysql.com\/doc\/refman\/8.0\/en\/."},{"key":"ref_25","unstructured":"Haarnoja, T. (2018). Acquiring Diverse Robot Skills via Maximum Entropy Deep Reinforcement Learning, University of California."},{"key":"ref_26","unstructured":"Ziebart, B.D., Maas, A.L., Bagnell, J.A., and Dey, A.K. (2008, January 13\u201317). Maximum entropy inverse reinforcement learning. Proceedings of the Aaai, Chicago, IL, USA."},{"key":"ref_27","unstructured":"Haarnoja, T., Zhou, A., Abbeel, P., and Levine, S. (2018, January 10\u201315). Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. Proceedings of the International Conference on Machine Learning, Stockholm, Sweden."},{"key":"ref_28","unstructured":"Christodoulou, P. (2019). Soft actor-critic for discrete action settings. arXiv."},{"key":"ref_29","doi-asserted-by":"crossref","unstructured":"Luo, A., Huang, W., and Fan, W. (2019, January 17\u201319). A CNN-based Approach to the Detection of SQL Injection Attacks. Proceedings of the 2019 IEEE\/ACIS 18th International Conference on Computer and Information Science (ICIS), Beijing, China.","DOI":"10.1109\/ICIS46139.2019.8940196"},{"key":"ref_30","unstructured":"Hasselt, H.V., Guez, A., and Silver, D. (2016, January 12\u201317). Deep Reinforcement Learning with Double Q-learning. Proceedings of the Thirtieth AAAI Conference on Artificial Intelligence, Phoenix, AZ, USA."},{"key":"ref_31","unstructured":"Safedog (2021, December 02). Safedog WEB Firewall Application. Available online: http:\/\/free.safedog.cn\/."},{"key":"ref_32","unstructured":"Martinhsv (2021, January 29). SpiderLabs ModSecurity repository in github. Available online: https:\/\/github.com\/SpiderLabs\/ModSecurity."},{"key":"ref_33","doi-asserted-by":"crossref","unstructured":"Fang, Y., Peng, J., Liu, L., and Huang, C. (2018, January 16\u201319). WOVSQLI: Detection of SQL Injection Behaviors Using Word Vector and LSTM. Proceedings of the the 2nd International Conference, Guiyang, China.","DOI":"10.1145\/3199478.3199503"},{"key":"ref_34","first-page":"199","article-title":"SQL Injection Attack classification through the feature extraction of SQL query strings using a Gap-Weighted String Subsequence Kernel","volume":"40","author":"Mcwhirter","year":"2018","journal-title":"J. Inf. Secur. Appl."}],"container-title":["Future Internet"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1999-5903\/15\/4\/133\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T19:07:11Z","timestamp":1760123231000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1999-5903\/15\/4\/133"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,3,30]]},"references-count":34,"journal-issue":{"issue":"4","published-online":{"date-parts":[[2023,4]]}},"alternative-id":["fi15040133"],"URL":"https:\/\/doi.org\/10.3390\/fi15040133","relation":{},"ISSN":["1999-5903"],"issn-type":[{"value":"1999-5903","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,3,30]]}}}