Swift Detection of XSS Attacks: Enhancing XSS Attack Detection by Leveraging Hybrid Semantic Embeddings and AI Techniques
Open Access
- 3 June 2024
- journal article
- research article
- Published by Springer Nature in Arabian Journal for Science and Engineering
- Vol. 50 (2) , 1191-1207
Abstract
Cross-Site Scripting (XSS) attacks continue to be a significant threat to web application security, necessitating robust detection mechanisms to safeguard user data and ensure system integrity. In this study, we present a novel approach for detecting XSS attacks that harnesses the combined capabilities of the Universal Sentence Encoder (USE) and Word2Vec embeddings as a feature extractor, aiming to enhance the performance of machine learning and deep learning techniques. By leveraging the semantic understanding of sentences offered by USE and the word-level representations from Word2Vec, we obtain a comprehensive feature representation for XSS attack payloads. Our proposed approach aims to capture both fine-grained word meanings and broader sentence contexts, leading to enhanced feature extraction and improved model performance. We conducted extensive experiments utilizing machine learning and deep learning architectures to evaluate the effectiveness of our approach. The obtained results demonstrate that our combined embeddings approach outperforms traditional methods, achieving superior accuracy, precision, recall, ROC, and F1-score in detecting XSS attacks. This study not only advances XSS attack detection but also highlights the potential of state-of-the-art natural language processing techniques in web security applications. Our findings offer valuable insights for the development of more robust and effective security measures against XSS attacks.Keywords
Funding Information
- Sivas University of Science and Technology
This publication has 35 references indexed in Scilit:
- Contents-Based Spam Detection on Social Networks Using RoBERTa Embedding and Stacked BLSTMSN Computer Science, 2023
- Detection of cross-site scripting (XSS) attacks using machine learning techniques: a reviewArtificial Intelligence Review, 2023
- Spam detection on social networks using deep contextualized word representationMultimedia Tools and Applications, 2022
- DeepVisDroid: android malware detection by hybridizing image-based features with deep learning techniquesNeural Computing and Applications, 2021
- Context-dependent model for spam detection on social networksSN Applied Sciences, 2020
- Android malware detection based on image-based features and machine learning techniquesSN Applied Sciences, 2020
- Cross-site scripting (XSS) attacks and mitigation: A surveyComputer Networks, 2020
- A Deep Camouflage: Evaluating Android’s Anti-malware Systems Robustness Against Hybridization of Obfuscation Techniques with Injection AttacksArabian Journal for Science and Engineering, 2019
- A Comparison of Machine Learning Algorithms for Detecting XSS Attacks2019
- XSS-SAFE: A Server-Side Approach to Detect and Mitigate Cross-Site Scripting (XSS) Attacks in JavaScript CodeArabian Journal for Science and Engineering, 2015