Adversarial SQLi Detection Using Character-Level CNN and Reinforcement Learning

View at publisher
Authors: Fucai Yu, Xusheng Li, Yang Wu, Ziqiang Chang, Gaolei Fei, Xuemeng Zhai
Cited by: 0

Abstract

Adversarial SQL injection (SQLi) refers to the process in which attackers dynamically modify their attack strategies based on feedback from the target Web Application Firewall (WAF) in an attempt to bypass it. The emergence of automated adversarial SQLi tools in recent years, such as AdvSQLi, RAT, and GPTFuzzer, demonstrates that adversarial SQLi has become a critical method for vulnerability detection and SQLi execution. These tools' intelligent nature poses a significant threat to existing SQLi defense mechanisms. Payloads subjected to adversarial mutation can effectively deceive machine learning-based WAFs, while rule-based WAFs are more susceptible to having vulnerabilities discovered. To address this issue, we propose a hybrid model based on enhanced Character-Level CNN (CLCNN) and Reinforcement Learning (RL), which detects malicious patterns through multi-scale feature extraction by CLCNN from a pattern-matching perspective. Additionally, the reinforcement learning module is employed for adversarial training, executing de-obfuscation operations on payloads for which the CLCNN outputs a low confidence level, further processing ambiguous payloads. The experimental results indicate that even without a priori knowledge, CLCNN demonstrates strong resistance to such tools. And the RL module can further enhance Recall through adversarial training, with minimal reduction in the hybrid model's performance on standard SQLi datasets.

Fields of Study & Subjects

Web Application Security Vulnerabilities Adversarial Robustness in Machine Learning Network Security and Intrusion Detection

Publication details

Journal / source
IEEE Transactions on Dependable and Secure Computing
Volume
23
Issue
3
Pages
6906–6923
Publication date
3 March 2026
Language
EN