JOURNAL ARTICLE

XSS Attack Detection using Machine Learning Algorithms

Dr R Nagaraju

Year: 2023 Journal:   INTERANTIONAL JOURNAL OF SCIENTIFIC RESEARCH IN ENGINEERING AND MANAGEMENT Vol: 07 (12)Pages: 1-11

Abstract

This project focuses on the development of an XSS attack detection system using machine learning algorithms. The research involves the careful curation of diverse datasets encompassing XSS attacks and benign data. Key features are extracted, emphasizing HTML structure and JavaScript patterns. The study evaluates the efficacy of k- Nearest Neighbors, Logistic Regression, Random Forest, and Support Vector Machines (SVM) in detecting XSS threats. The training phase optimizes model accuracy, and performance metrics such as Precision, Recall, and F1 Score assess the model's effectiveness. Results provide a comparative analysis of machine learning algorithms, offering insights for future implementations. The study contributes to strengthening web security, showcasing the potential of machine learning in XSS attack detection.

Keywords:
Cross-site scripting Computer science Machine learning Support vector machine Implementation JavaScript Artificial intelligence Random forest Precision and recall Key (lock) Algorithm Computer security World Wide Web Web application security Web page Programming language

Metrics

0
Cited By
0.00
FWCI (Field Weighted Citation Impact)
2
Refs
0.30
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Topics

Web Application Security Vulnerabilities
Physical Sciences →  Computer Science →  Information Systems
Network Security and Intrusion Detection
Physical Sciences →  Computer Science →  Computer Networks and Communications
Advanced Malware Detection Techniques
Physical Sciences →  Computer Science →  Signal Processing
© 2026 ScienceGate Book Chapters — All rights reserved.