Affiliation:
1. College of Computer and Information Technology, Taif University, Taif 26571, Saudi Arabia
Abstract
The ever-growing web application landscape, fueled by technological advancements, introduces new vulnerabilities to cyberattacks. Cross-site scripting (XSS) attacks pose a significant threat, exploiting the difficulty of distinguishing between benign and malicious scripts within web applications. Traditional detection methods struggle with high false-positive (FP) and false-negative (FN) rates. This research proposes a novel machine learning (ML)-based approach for robust XSS attack detection. We evaluate various models including Random Forest (RF), Logistic Regression (LR), Support Vector Machines (SVMs), Decision Trees (DTs), Extreme Gradient Boosting (XGBoost), Multi-Layer Perceptron (MLP), Convolutional Neural Networks (CNNs), Artificial Neural Networks (ANNs), and ensemble learning. The models are trained on a real-world dataset categorized into benign and malicious traffic, incorporating feature selection methods like Information Gain (IG) and Analysis of Variance (ANOVA) for optimal performance. Our findings reveal exceptional accuracy, with the RF model achieving 99.78% and ensemble models exceeding 99.64%. These results surpass existing methods, demonstrating the effectiveness of the proposed approach in securing web applications while minimizing FPs and FNs. This research offers a significant contribution to the field of web application security by providing a highly accurate and robust ML-based solution for XSS attack detection.
Reference45 articles.
1. Sotnik, S., Shakurova, T., and Lyashenko, V. (2024, June 13). Development Features Web-Applications. Available online: www.ijeais.org/ijaar.
2. Cross-site Scripting Attack Detection Using Machine Learning with Hybrid Features;Prasetio;J. Infotel,2021
3. Survey on JavaScript security policies and their enforcement mechanisms in a web browser;Bielova;J. Log. Algebr. Program.,2013
4. Machine learning in cybersecurity: A comprehensive survey;Dasgupta;J. Def. Model. Simul.,2022
5. Chaudhari, G.R., and Vaidya, M.V. (2024, June 13). A Survey on Security and Vulnerabilities of Web Application. Available online: www.ijcsit.com.