Adversarially Robust <scp>CNN</scp> – <scp>BiLSTM</scp> –Attention Framework for Intelligent Detection of Cross‐Site Scripting Attacks

ABSTRACT Cross‐Site Scripting (XSS) continues to pose serious risks to modern web applications as attackers increasingly employ sophisticated obfuscation and adversarial manipulations. Traditional rule‐based and machine learning detectors often fail to model multi‐level semantic patterns, making them vulnerable to well‐crafted evasive payloads. To address this challenge, this paper proposes an adversarially robust CNN–BiLSTM–Multi‐Head Attention model that enhances contextual feature extraction and strengthens resistance to gradient‐driven perturbations. Convolutional layers capture local token interactions, BiLSTM modules learn long‐range dependencies, and the attention mechanism provides token‐level interpretability and prioritized feature weighting. FGSM‐based adversarial training further exposes the model to worst‐case perturbation directions, improving its generalization to evolving XSS variants. Experiments conducted on a composite dataset of 29 000 real‐world, benchmark, and adversarial samples demonstrate the effectiveness of the proposed framework. The system achieves 97.8% accuracy, 96.5% precision, 97.1% recall, and a 98.3% AUC score, surpassing existing detectors such as FusionXSS and XSShield. Robustness evaluations show gains of up to 17% under FGSM attacks. With low inference latency and moderate memory usage, the model offers a practical and scalable solution for real‐time XSS defense in modern web environments.

Authors

Institutions

Publication Details

Journal
Security and Privacy
Published
2026-05-31
DOI
https://doi.org/10.1002/spy2.70231
Primary Topic
Web Application Security Vulnerabilities
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Adversarially Robust CNN – BiLSTM –Attention Framework for Intelligent Detection of Cross‐Site Scripting Attacks

M. B. Bharath, N. R. Latha
Security and Privacy
Web Application Security Vulnerabilities
article

Adversarially Robust CNN – BiLSTM –Attention Framework for Intelligent Detection of Cross‐Site Scripting Attacks

M. B. Bharath, N. R. Latha
article en

Abstract

ABSTRACT Cross‐Site Scripting (XSS) continues to pose serious risks to modern web applications as attackers increasingly employ sophisticated obfuscation and adversarial manipulations. Traditional rule‐based and machine learning detectors often fail to model multi‐level semantic patterns, making them vulnerable to well‐crafted evasive payloads. To address this challenge, this paper proposes an adversarially robust CNN–BiLSTM–Multi‐Head Attention model that enhances contextual feature extraction and strengthens resistance to gradient‐driven perturbations. Convolutional layers capture local token interactions, BiLSTM modules learn long‐range dependencies, and the attention mechanism provides token‐level interpretability and prioritized feature weighting. FGSM‐based adversarial training further exposes the model to worst‐case perturbation directions, improving its generalization to evolving XSS variants. Experiments conducted on a composite dataset of 29 000 real‐world, benchmark, and adversarial samples demonstrate the effectiveness of the proposed framework. The system achieves 97.8% accuracy, 96.5% precision, 97.1% recall, and a 98.3% AUC score, surpassing existing detectors such as FusionXSS and XSShield. Robustness evaluations show gains of up to 17% under FGSM attacks. With low inference latency and moderate memory usage, the model offers a practical and scalable solution for real‐time XSS defense in modern web environments.

Security and PrivacyVol. 9(4)
University B.D.T College of Engineering (IN), Visvesvaraya Technological University (IN)
Openalex Percentile: Top 2%
Web Application Security Vulnerabilities
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.