Cross-site scripting adversarial attacks based on deep reinforcement learning: Evaluation and extension study

Samuele Pasini, Gianluca Maragliano, Jinhan Kim, Paolo Tonella
2/26/2025
cs.SEcs.AIcs.CR
rl

No confident code implementation found for this paper.

Abstract

Cross-site scripting (XSS) poses a significant threat to web application security. While Deep Learning (DL) has shown remarkable success in detecting XSS attacks, it remains vulnerable to adversarial attacks due to the discontinuous nature of the mapping between the input (i.e., the attack) and the output (i.e., the prediction of the model whether an input is classified as XSS or benign).

Show full abstract

These adversarial attacks employ mutation-based strategies for different components of XSS attack vectors, allowing adversarial agents to iteratively select mutations to evade detection. Our work replicates a state-of-the-art XSS adversarial attack, highlighting threats to validity in the reference work and extending it towards a more effective evaluation strategy. Moreover, we introduce an XSS Oracle to mitigate these threats. The experimental results show that our approach achieves an escape rate above 96% when the threats to validity of the replicated technique are addressed.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{pasini2025crosssite,
  title  = {Cross-site scripting adversarial attacks based on deep reinforcement learning: Evaluation and extension study},
  author = {Samuele Pasini and Gianluca Maragliano and Jinhan Kim and Paolo Tonella},
  year   = {2025},
  eprint = {2502.19095},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.19095v2}
}

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/2502.19095.svg)](https://codeofpaper.com/paper/2502.19095)

Discussion