XSShield: A novel dataset and lightweight hybrid deep learning model for XSS attack detection

With the proliferation of web applications, cross-site scripting (XSS) attacks have increased significantly and now pose a significant threat to users' information security and privacy. To enhance the efficiency of XSS attack detection, the adoption of machine learning (ML) and deep learning (DL) techniques offers promising solutions, but their effectiveness is limited by the lack of comprehensive and diverse datasets. Moreover, existing approaches often prioritize detection accuracy over real-time processing capabilities, which are essential for effective defense. To address these challenges, in this paper, we propose a novel framework that automatically collects web resources, efficiently extracts informative features, and constructs an up-to-date XSS attack dataset, which is then used to train a machine learning-based XSS detection model. Using this framework, we created and published a well-structured dataset over 100,000 samples for the research community. Furthermore, we present a hybrid detection model that leverages the strengths of both Convolutional Neural Networks (CNNs) and Long Short-Term Memory (LSTM) networks. Extensive evaluations of our dataset demonstrate that the proposed model outperforms other baseline ML models across various metrics, including processing rate. Notably, our model achieves an accuracy of 99.27% while maintaining a low false positive rate of 0.06% and high processing rate of exceeding 1000 samples per second. These results highlight its high accuracy and robustness in detecting XSS, and suitability for real-time applications. Our work presents a comprehensive solution for enhancing web application security by providing a diverse dataset and a high-accuracy detection model with low latency. • Novel framework automatically collects web data and extracts XSS attack features. • New diverse dataset with 100,000+ XSS samples published for research community. • Hybrid CNN-LSTM model detecting XSS attacks accurately and timely. • Lightweight detection model suitable for real-time defense on resource-limited devices.

Authors

Institutions

Publication Details

Journal
Results in Engineering
Published
2024-11-13
DOI
https://doi.org/10.1016/j.rineng.2024.103363
Citations
10
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
3.49
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

XSShield: A novel dataset and lightweight hybrid deep learning model for XSS attack detection

Thi Duyen Ngo, Minh-Khang Duong, Xuan-Ha Nguyen, Kim-Hung Le et al.
10 citations
Results in Engineering
Network Security and Intrusion Detection
3.49
article

XSShield: A novel dataset and lightweight hybrid deep learning model for XSS attack detection

Thi Duyen Ngo, Minh-Khang Duong, Xuan-Ha Nguyen, Kim-Hung Le, Dat-Thinh Nguyen, Gia-Huy Luu, Trong-Phuc Pham-Ngo
article en
10 citations

Abstract

With the proliferation of web applications, cross-site scripting (XSS) attacks have increased significantly and now pose a significant threat to users' information security and privacy. To enhance the efficiency of XSS attack detection, the adoption of machine learning (ML) and deep learning (DL) techniques offers promising solutions, but their effectiveness is limited by the lack of comprehensive and diverse datasets. Moreover, existing approaches often prioritize detection accuracy over real-time processing capabilities, which are essential for effective defense. To address these challenges, in this paper, we propose a novel framework that automatically collects web resources, efficiently extracts informative features, and constructs an up-to-date XSS attack dataset, which is then used to train a machine learning-based XSS detection model. Using this framework, we created and published a well-structured dataset over 100,000 samples for the research community. Furthermore, we present a hybrid detection model that leverages the strengths of both Convolutional Neural Networks (CNNs) and Long Short-Term Memory (LSTM) networks. Extensive evaluations of our dataset demonstrate that the proposed model outperforms other baseline ML models across various metrics, including processing rate. Notably, our model achieves an accuracy of 99.27% while maintaining a low false positive rate of 0.06% and high processing rate of exceeding 1000 samples per second. These results highlight its high accuracy and robustness in detecting XSS, and suitability for real-time applications. Our work presents a comprehensive solution for enhancing web application security by providing a diverse dataset and a high-accuracy detection model with low latency. • Novel framework automatically collects web data and extracts XSS attack features. • New diverse dataset with 100,000+ XSS samples published for research community. • Hybrid CNN-LSTM model detecting XSS attacks accurately and timely. • Lightweight detection model suitable for real-time defense on resource-limited devices.

Results in EngineeringVol. 24
Vietnam National University Ho Chi Minh City (VN)
Openalex Percentile: Top 7%
Network Security and Intrusion Detection
3.49
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.