Enhancing cross-site scripting attack detection by using FastText as word embeddings and long-short term memory
Abstract
Cross-site scripting (XSS) is one of the dangerous cyber-attacks and the number of attacks continues to increase. This study takes a new approach to detect attacks by utilizing FastText as word embedding, and long-short term memory (LSTM), which aims to improve the performance of deep learning. This method is proposed to capture the broader meaning and context of the data used, leading to better feature extraction and model performance. This study not only improves the detection of XSS attacks, but also highlights the potential for better text processing techniques. The results obtained showing this method achieves higher results than other methods, with an accuracy of 99.89%.
Keywords
Cross-site scripting; Cyber security; Deep learning; FastText; Long-short term memory; Word embedding
Full Text:
PDFDOI: http://doi.org/10.11591/ijai.v14.i6.pp4923-4932
Refbacks
- There are currently no refbacks.
Copyright (c) 2025 Muhammad Alkhairi Mashuri, Nico Surantha

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
IAES International Journal of Artificial Intelligence (IJ-AI)
ISSN/e-ISSN 2089-4872/2252-8938
This journal is published by the Institute of Advanced Engineering and Science (IAES).