RAT: Reinforcement-Learning-Driven and Adaptive Testing for Vulnerability Discovery in Web Application Firewalls

Mohammadhossein Amouei, Mohsen Rezvani, Mansoor Fateh
12/13/2023
39 citations
cs.CRcs.AIcs.IR

Official code: mhamouei/rat_datasets (4 stars, Python, last commit 2021-07-29). 1 more implementation below.

Abstract

Due to the increasing sophistication of web attacks, Web Application Firewalls (WAFs) have to be tested and updated regularly to resist the relentless flow of web attacks. In practice, using a brute-force attack to discover vulnerabilities is infeasible due to the wide variety of attack patterns.

Show full abstract

Thus, various black-box testing techniques have been proposed in the literature. However, these techniques suffer from low efficiency. This paper presents Reinforcement-Learning-Driven and Adaptive Testing (RAT), an automated black-box testing strategy to discover injection vulnerabilities in WAFs. In particular, we focus on SQL injection and Cross-site Scripting, which have been among the top ten vulnerabilities over the past decade. More specifically, RAT clusters similar attack samples together. It then utilizes a reinforcement learning technique combined with a novel adaptive search algorithm to discover almost all bypassing attack patterns efficiently. We compare RAT with three state-of-the-art methods considering their objectives. The experiments show that RAT performs 33.53% and 63.16% on average better than its counterparts in discovering the most possible bypassing payloads and reducing the number of attempts before finding the first bypassing payload when testing well-configured WAFs, respectively.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
mhamouei/rat_datasetsOfficial4Python–2021-07-29
mhamouei/ratOfficial1––2021-11-26
41PythonOct 19, 20205 years ago
mhamouei/ratOfficial100%

This repository contains a vulnerability detection approach for testing web application firewalls.

10Nov 26, 20215 years ago

Similar Papers

Cite this paper

@article{amouei2023rat,
  title  = {RAT: Reinforcement-Learning-Driven and Adaptive Testing for Vulnerability Discovery in Web Application Firewalls},
  author = {Mohammadhossein Amouei and Mohsen Rezvani and Mansoor Fateh},
  year   = {2023},
  eprint = {2312.07885},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.07885v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.07885.svg)](https://codeofpaper.com/paper/2312.07885)

Discussion