Privacy-Preserving Federated Deep Learning for Real-Time XSS Attack Detection

Web applications continue to face increasing securityrisks due to the rapid evolution of Cross-Site Scripting (XSS) payloadsand the growing sophistication of attackers. Traditional centralizeddetection systems struggle to maintain high accuracy in real-timeenvironments and often require access to sensitive user data,creating additional privacy concerns. Addressing these challengesrequires a detection mechanism that can adapt to diverse datasources, withstand adversarial manipulation, and operate withoutexposing client-side information. The proposed work introduces aprivacy-preserving federated deep learning framework thatcombines LSTM–CNN hybrid feature extraction with secureaggregation to detect XSS attacks across distributed clients in realtime. The system enables collaborative model training withoutsharing raw data, thereby improving generalization whilemaintaining confidentiality. Robustness is further enhanced througha token-aware preprocessing pipeline and resilient gradientaggregation, allowing the model to handle highly obfuscated andpolymorphic XSS payloads. Experimental evaluation demonstratesthat the proposed architecture achieves superior performancecompared to existing centralized and federated detectionapproaches, yielding 96–98% accuracy, 95– 97% precision, and afalse-positive rate as low as 2–4%. The system also shows strongresistance to adversarial crafting, poisoning attempts, and inference-based threats. These results confirm the suitability of the proposedframework as a secure, scalable, and high-performance solution formodern web security environments.Index Terms—Federated learning, deep learning, XSS attackdetection, privacy-preserving security, intrusion detection, real-timeweb security.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-04-27
DOI
https://doi.org/10.5281/zenodo.19807740
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

Privacy-Preserving Federated Deep Learning for Real-Time XSS Attack Detection

Likitha M R
Zenodo (CERN European Organization for Nuclear Research)
Web Application Security Vulnerabilities
article

Privacy-Preserving Federated Deep Learning for Real-Time XSS Attack Detection

Likitha M R
article en

Abstract

Web applications continue to face increasing securityrisks due to the rapid evolution of Cross-Site Scripting (XSS) payloadsand the growing sophistication of attackers. Traditional centralizeddetection systems struggle to maintain high accuracy in real-timeenvironments and often require access to sensitive user data,creating additional privacy concerns. Addressing these challengesrequires a detection mechanism that can adapt to diverse datasources, withstand adversarial manipulation, and operate withoutexposing client-side information. The proposed work introduces aprivacy-preserving federated deep learning framework thatcombines LSTM–CNN hybrid feature extraction with secureaggregation to detect XSS attacks across distributed clients in realtime. The system enables collaborative model training withoutsharing raw data, thereby improving generalization whilemaintaining confidentiality. Robustness is further enhanced througha token-aware preprocessing pipeline and resilient gradientaggregation, allowing the model to handle highly obfuscated andpolymorphic XSS payloads. Experimental evaluation demonstratesthat the proposed architecture achieves superior performancecompared to existing centralized and federated detectionapproaches, yielding 96–98% accuracy, 95– 97% precision, and afalse-positive rate as low as 2–4%. The system also shows strongresistance to adversarial crafting, poisoning attempts, and inference-based threats. These results confirm the suitability of the proposedframework as a secure, scalable, and high-performance solution formodern web security environments.Index Terms—Federated learning, deep learning, XSS attackdetection, privacy-preserving security, intrusion detection, real-timeweb security.

Zenodo (CERN European Organization for Nuclear Research)
Peace, Justice and strong institutions
Openalex Percentile: Top 3%
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.