Pith. sign in

Adaptive REST API Testing with Reinforcement Learning

1 Pith paper cite this work. Polarity classification is still indexing.

1 Pith paper citing it
abstract

Modern web services increasingly rely on REST APIs. Effectively testing these APIs is challenging due to the vast search space to be explored, which involves selecting API operations for sequence creation, choosing parameters for each operation from a potentially large set of parameters, and sampling values from the virtually infinite parameter input space. Current testing tools lack efficient exploration mechanisms, treating all operations and parameters equally (i.e., not considering their importance or complexity) and lacking prioritization strategies. Furthermore, these tools struggle when response schemas are absent in the specification or exhibit variants. To address these limitations, we present an adaptive REST API testing technique that incorporates reinforcement learning to prioritize operations and parameters during exploration. Our approach dynamically analyzes request and response data to inform dependent parameters and adopts a sampling-based strategy for efficient processing of dynamic API feedback. We evaluated our technique on ten RESTful services, comparing it against state-of-the-art REST testing tools with respect to code coverage achieved, requests generated, operations covered, and service failures triggered. Additionally, we performed an ablation study on prioritization, dynamic feedback analysis, and sampling to assess their individual effects. Our findings demonstrate that our approach outperforms existing REST API testing tools in terms of effectiveness, efficiency, and fault-finding ability.

fields

cs.SE 1

years

2024 1

verdicts

CONDITIONAL 1

representative citing papers

APIRL: Deep Reinforcement Learning for REST API Fuzzing

cs.SE · 2024-12-20 · conditional · novelty 6.0

APIRL, a deep Q-network with a pre-trained transformer embedding of HTTP responses, finds more 5XX bugs than six baseline fuzzers across 26 REST APIs using fewer requests.

citing papers explorer

Showing 1 of 1 citing paper.

  • APIRL: Deep Reinforcement Learning for REST API Fuzzing cs.SE · 2024-12-20 · conditional · none · ref 19 · internal anchor

    APIRL, a deep Q-network with a pre-trained transformer embedding of HTTP responses, finds more 5XX bugs than six baseline fuzzers across 26 REST APIs using fewer requests.