EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

XSS Attack Detection Method Based on CNN-BiLSTM-Attention

Zhiping Li, Fangzheng Liu, Zhaojun Gu, Yun Liu

Applied Sciences · 13.08.2025 · 15 (16) · 8924

DOI: 10.3390/app15168924 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Applied Sciences, online erschienen am 13.08.2025. Verfasst von Zhiping Li und 3 weiteren Autor:innen. Die Arbeit wurde bisher 15-mal zitiert (Crossref) und nennt 26 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: National Natural Science Foundation of China, Fundamental Research Business Funds for Central Universities of Civil Aviation University of China.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Cross-site scripting (XSS) is one of the most common security threats to web applications, posing a serious challenge to network information security. Targetting the limitations of traditional detection methods in identifying complex XSS attacks, this paper proposes a hybrid deep learning model that integrates convolutional neural network (CNN), bidirectional long short-term memory network (BiLSTM), and attention mechanism. The model captures local attack feature patterns through the CNN layer, learns contextual long-term dependencies through the BiLSTM layer, and introduces a multi-head attention mechanism to enhance the focus on key attack vectors. In the preprocessing stage, an improved regular word segmentation algorithm is used to construct semantic feature vectors, which effectively solves the problem of text feature representation of XSS attacks. Experimental results show that compared with the baseline method, the proposed method achieves an accuracy of 0.9938, a precision of 0.9936, a recall of 0.9936, and an F1-score of 0.9937 on real datasets. This shows that by integrating CNN and BiLSTM features and combining the attention mechanism, the model can effectively deal with complex XSS attacks.

Förderung

  • National Natural Science Foundation of China
  • Fundamental Research Business Funds for Central Universities of Civil Aviation University of China

Zitieren

APA

Li, Z., Liu, F., Gu, Z., & Liu, Y. (2025). XSS Attack Detection Method Based on CNN-BiLSTM-Attention. Applied Sciences, 15(16), 8924. https://doi.org/10.3390/app15168924

Vancouver

Li Z, Liu F, Gu Z, Liu Y. XSS Attack Detection Method Based on CNN-BiLSTM-Attention. Applied Sciences. 2025;15(16):8924. doi:10.3390/app15168924

BibTeX
@article{Li2025,
  author = {Li, Zhiping and Liu, Fangzheng and Gu, Zhaojun and Liu, Yun},
  title = {XSS Attack Detection Method Based on CNN-BiLSTM-Attention},
  journal = {Applied Sciences},
  year = {2025},
  volume = {15},
  number = {16},
  pages = {8924},
  doi = {10.3390/app15168924}
}
Kostenlos starten →