An Intelligent Deep Learning Model for XSS Attack Detection using Enhanced LSTM

Cross-site scripting (XSS) attacks remain a significant threat to web applications, allowing attackers to inject malicious scripts into trusted sites. This paper presents a hybrid detection framework that combines Term frequency-inverse document frequency (TF-IDF) for contextual feature extraction with long short-term memory (LSTM) networks to capture sequential characteristics of input payloads. The model was evaluated on benchmark datasets and achieved a precision of 99.5% and a recall of 97.9%, outperforming traditional machine learning models. A lightweight deployment using Flask demonstrates its suitability for real-time XSS detection. Limited explainability is also incorporated to support practical auditing.

Authors

Publication Details

Published
2025-07-25
DOI
https://doi.org/10.1109/isac364032.2025.11156304
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

An Intelligent Deep Learning Model for XSS Attack Detection using Enhanced LSTM

T. Praveen, M Sravani, Ummadi Sruthi, Bhogireddy Rupa Sri
Network Security and Intrusion Detection
article

An Intelligent Deep Learning Model for XSS Attack Detection using Enhanced LSTM

T. Praveen, M Sravani, Ummadi Sruthi, Bhogireddy Rupa Sri
article en

Abstract

Cross-site scripting (XSS) attacks remain a significant threat to web applications, allowing attackers to inject malicious scripts into trusted sites. This paper presents a hybrid detection framework that combines Term frequency-inverse document frequency (TF-IDF) for contextual feature extraction with long short-term memory (LSTM) networks to capture sequential characteristics of input payloads. The model was evaluated on benchmark datasets and achieved a precision of 99.5% and a recall of 97.9%, outperforming traditional machine learning models. A lightweight deployment using Flask demonstrates its suitability for real-time XSS detection. Limited explainability is also incorporated to support practical auditing.

Openalex Percentile: Top 72%
Network Security and Intrusion Detection
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.