APIRL: Deep Reinforcement Learning for REST API Fuzzing
On the map: Deep reinforcement learning methods → RL training of language and agent models
Abstract (arXiv)
REST APIs have become key components of web services. However, they often contain logic flaws resulting in server side errors or security vulnerabilities. HTTP requests are used as test cases to find and mitigate such issues. Existing methods to modify requests, including those using deep learning, suffer from limited performance and precision, relying on undirected search or making limited usage of the contextual information. In this paper we propose APIRL, a fully automated deep reinforcement learning tool for testing REST APIs. A key novelty of our approach is the use of feedback from a transformer module pre-trained on JSON-structured data, akin to that used in API responses. This allows APIRL to learn the subtleties relating to test outcomes, and generalise to unseen API endpoints. We show APIRL can find significantly more bugs than the state-of-the-art in real world REST APIs while minimising the number of required test cases. We also study how reward functions, and other key design choices, affect learnt policies in a thorough ablation study.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Placed in RL training of language and agent models, one of 15 directions in Deep reinforcement learning methods. Builds on 11 of its 42 references that are in the map. First posted on arXiv 20 Dec 2024.
Builds on
11 of 42 references.
References · 11
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
- 2015Prioritized Experience Replaycited by 1,099
- 2022Morest: Model-based RESTful API Testing with Execution Feedbackcited by 11
- 2024DeepREST: Automated Test Case Generation for REST APIs Exploiting Deep Reinforcement Learningcited by 8
- 2023Adaptive REST API Testing with Reinforcement Learningcited by 7
- 2020Pythia: Grammar-Based Fuzzing of REST APIs with Coverage-guided Feedback and Learning-based Mutationscited by 5
- 2022Automatic detection of access control vulnerabilities via API specification processingcited by 1
- 2023MINER: A Hybrid Data-Driven Approach for REST API Fuzzingcited by 1
Built on by
Citing papers per year: 2025: 2; 2026: 2.
4 papers.
- 2025DRMD: Deep Reinforcement Learning for Malware Detection under Concept Driftcited by 7
- 2026SoK: The Pitfalls of Deep Reinforcement Learning for Cybersecuritycited by 4
- 2026Building Better Environments for Autonomous Cyber Defencecited by 3
- 2025Clutch Control: An Attention-based Combinatorial Bandit for Efficient Mutation in JavaScript Engine Fuzzingcited by 0
- 2026Building Better Environments for Autonomous Cyber Defence9 Apr 2026
- 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
- 2025DRMD: Deep Reinforcement Learning for Malware Detection under Concept Drift26 Aug 2025
Similar, not cited
Close in wording, no citation either way
- 2026RESTOR: Automated Test Oracle Generation for RESTful APIs via Reinforcement Learning ↗
- 2025AutoRestTest: A Tool for Automated REST API Testing Using LLMs and MARL
- 2024A Multi-Agent Approach for REST API Testing with Semantic Graphs and LLM-Driven Inputs
- 2025Test Amplification for REST APIs via Single and Multi-Agent LLM Systems
- 2025LlamaRestTest: Effective REST API Testing with Small Language Models
- 2026Beyond Next-Token Prediction: An RLVR Proof of Concept for Tool-Use Agents on Atlassian Workflows
- 2025Combining TSL and LLM to Automate REST API Testing: A Comparative Study
- 2026REST API Testing with Verified LLM-Inferred Dependencies and Response-Driven Refinement ↗