mlsanityData to 14 Oct 2026

Adversarial SQL Injection Generation with LLM-Based Architectures

arXiv 2605.11188 ↗First posted 11 May 2026cs.CR cs.AI cs.ETcited by 0

Not on the map. Why?

Abstract (arXiv)

SQL injection (SQLi) attacks are still one of the serious attacks ranked in the Open Worldwide Application Security Project (OWASP) Top 10 threats. Today, with advances in Artificial Intelligence (AI), especially in Large Language Models (LLMs), an opportunity has been created for automating adversarial attack tests to measure the defense mechanisms. In this paper, we aim to create a comprehensive evaluation of use cases that utilize LLMs for adversarial SQL injection generation. We introduce two novel LLM-based systems, Retrieval Augmented Generation for Adversarial SQLi (RADAGAS) and Reflective Chain-of-Thought SQLi (RefleXQLi), and compare them with existing baselines against 10 Web Application Firewalls (WAFs) and one execution-based MySQL validator. To perform a comprehensive test, we used six rule-based open-source WAFs (ModSecurity PL1--3, Coraza PL1--3), 2 AI/ML-based WAFs (WAF Brain, CNN-WAF), and 2 commercial WAFs (AWS WAF and Cloudflare WAF). For the LLM models, we used GPT-4o, Claude 3.7 Sonnet, and DeepSeek R1. Our tests consist of 240 experiments that generate 240,000 payloads and perform 2.2 million tests against WAFs. Our comprehensive evaluation reveals that RADAGAS-GPT4o outperforms other baseline models with a 22.73% bypass rate. The proposed RADAGAS variants are highly successful on AI/ML-based WAFs (92.49% on WAF-Brain by RADAGAS-DeepSeek, 80.48% on CNN-WAF by RADAGAS-Claude), but struggle to bypass rule-based WAFs (0--5.70% on ModSecurity and Coraza). In addition to these findings, another observation is that creating less diverse payloads achieves more bypasses, however they show poor results if the initially chosen payload is not successful. We observe that our findings provide a comprehensive view on using LLM-based approaches in security testing.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 15 of its 41 references that are in the map. First posted on arXiv 11 May 2026.

Builds on

15 of 41 references.

References · 15

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  3. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  4. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
  5. 2019The Curious Case of Neural Text Degenerationcited by 2,916
  6. 2017Billion-scale similarity search with GPUscited by 2,497
  7. 2022MTEB: Massive Text Embedding Benchmarkcited by 640
  8. 2023Prompt Injection attack against LLM-integrated Applicationscited by 605
  9. 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 331
  10. 2024The Effect of Sampling Temperature on Problem Solving in Large Language Modelscited by 170
  11. 2022Locally Typical Samplingcited by 111
  12. 2018The Art, Science, and Engineering of Fuzzing: A Surveycited by 62
3 more
  1. 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoningcited by 59
  2. 2017FairFuzz: Targeting Rare Branches to Rapidly Increase Greybox Fuzz Testing Coveragecited by 20
  3. 2020SQUIRREL: Testing Database Management Systems with Language Validity and Coverage Feedbackcited by 4

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2023From Prompt Injections to SQL Injection Attacks: How Protected is Your LLM-Integrated Web Application?
  2. 2025Are Your LLM-based Text-to-SQL Models Secure? Exploring SQL Injection via Backdoor Attacks
  3. 2026When Prompts Become Payloads: A Framework for Mitigating SQL Injection Attacks in Large Language Model-Driven Applications
  4. 2024Evaluating and Improving the Robustness of Security Attack Detectors Generated by LLMs
  5. 2025Exploiting Web Search Tools of AI Agents for Data Exfiltration
  6. 2025A Survey of Attacks on Large Language Models
  7. 2024Threat Modelling and Risk Analysis for Large Language Model (LLM)-Powered Applications
  8. 2025ControlNET: A Firewall for RAG-based LLM System