Simulating SQL Injection Vulnerability Exploitation Using Q-Learning Reinforcement Learning Agents
Not on the map. Why?
Abstract (arXiv)
In this paper, we propose a formalization of the process of exploitation of SQL injection vulnerabilities. We consider a simplification of the dynamics of SQL injection attacks by casting this problem as a security capture-the-flag challenge. We model it as a Markov decision process, and we implement it as a reinforcement learning problem. We then deploy reinforcement learning agents tasked with learning an effective policy to perform SQL injection; we design our training in such a way that the agent learns not just a specific strategy to solve an individual challenge but a more generic policy that may be applied to perform SQL injection attacks against any system instantiated randomly by our problem generator. We analyze the results in terms of the quality of the learned policy and in terms of convergence time as a function of the complexity of the challenge and the learning agent's complexity. Our work fits in the wider research on the development of intelligent agents for autonomous penetration testing and white-hat hacking, and our results aim to contribute to understanding the potential and the limits of reinforcement learning in a security environment.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 4 of its 23 references that are in the map. First posted on arXiv 8 Jan 2021.
Builds on
4 of 23 references.
References · 4
- 2017Attention Is All You Needcited by 60,361
- 2018Automated Vulnerability Detection in Source Code Using Deep Representation Learningcited by 114
- 2013Penetration Testing == POMDP Solving?cited by 9
- 2020The Agent Web Model -- Modelling web hacking for reinforcement learningcited by 2
Built on by
Citing papers per year: 2023: 1; 2024: 1; 2025: 3; 2026: 1.
6 papers.
- 2023BertRLFuzzer: A BERT and Reinforcement Learning Based Fuzzercited by 5
- 2024SoK: On the Offensive Potential of AIcited by 5
- 2026SoK: The Pitfalls of Deep Reinforcement Learning for Cybersecuritycited by 4
- 2025A Unified Modeling Framework for Automated Penetration Testingcited by 1
- 2025Responsible Development of Offensive AIcited by 0
- 2025Clutch Control: An Attention-based Combinatorial Bandit for Efficient Mutation in JavaScript Engine Fuzzingcited by 0
- 2026SoK: The Pitfalls of Deep Reinforcement Learning for Cybersecurity9 Feb 2026
- 2025Clutch Control: An Attention-based Combinatorial Bandit for Efficient Mutation in JavaScript Engine Fuzzing14 Oct 2025
- 2025Responsible Development of Offensive AI3 Apr 2025
- 2025A Unified Modeling Framework for Automated Penetration Testing17 Feb 2025
- 2024SoK: On the Offensive Potential of AI24 Dec 2024
- 2023BertRLFuzzer: A BERT and Reinforcement Learning Based Fuzzer21 May 2023