Skip to content
Open access

Self-Lightweight Machine Learning Model for XSS Attack Detection in Web Forms

2026 · ITEGAM- Journal of Engineering and Technology for Industrial Applications (ITEGAM-JETIA) · Vol 12, pp. 1071-1081 · 0 citations

TL;DR

A lightweight machine learning approach designed to instantly detect XSS attacks originating from web forms, capable of operating independently without relying on external resources or systems (such as cloud services or large detection engines).

Abstract

Cross-Site Scripting (XSS) attacks remain one of the most impactful attacks and a major threat to web applications, especially when malicious payloads are stuffed via email input. Although advanced learning solutions have achieved significant detection, their computational and time-consuming heuristics often prevent their deployment in resource-limited environments, such as shared hosting or edge sites. This paper presents a lightweight machine learning approach designed to instantly detect XSS attacks originating from web forms. The model is capable of operating independently without relying on external resources or systems (such as cloud services or large detection engines). The proposed solution focuses on a combined feature set consisting of fast-to-calculate syntactic and lexical indicators (such as tag count, suspicious token frequency, coding markup, and entropy). Simple and well-established classifiers—logistic regression, random forest, and LightGBM—were used, focusing on detection effectiveness (precision, recall, F1, and AUC) and operational constraints (inference time per sample and model size). To reflect real-world conditions, the experiments combine generic XSS payloads, benign sample templates, and synthetically modified payloads that mimic the obfuscation and encryption techniques used by attackers. The results are lightweight, low-effort, and highly accurate, and they compete with heavier competitors, with significantly lower semantic and memory footprint costs.

Read PDF

Similar papers

Open access Aug 2026

A High-Precision Machine Learning Algorithm for Detecting DDoS Attacks in a Cloud Computing Environment

A machine learning-based approach for DDoS attack detection in cloud computing environments using Random Forest and K-Nearest Neighbors and compared based on classification performance and computational efficiency shows that the Random Forest classifier achieved the best performance.

Noor Takla, M. Mohamed · 0 citations
Open access Aug 2026

ZeroProbe: An Intelligent Web-Based Vulnerability Scanner Integrating Automated Detection and AI-Based Analysis

The findings confirm that an accessible, accurate, and AI-augmented vulnerability scanner can be constructed for educational and entry-level use within a deliberately bounded scope, lowering the expertise barrier for web application security assessment.

Dah Berrou, Zaenal Alamsyah, Nugraha Nugraha · 0 citations
Open access Aug 2026

LLM-WAF: An Intelligent Web Application Firewall Powered by Large Language Models for Advanced Threat Detection

LLM-WAF is introduced, a new intelligent firewall architecture that uses Large Language Models (LLMs) to analyze HTTP traffic contextually and semantically to identify malicious payloads through natural language processing capabilities rather than static rule matching.

Y. Khalaf · 0 citations
Open access Jul 2026

Predictive Web Application Security Using Intelligent SQL Injection Detection

This work presents an intelligent approach for improving web application security through the prediction and detection of SQL injection attacks using machine learning techniques, enabling faster, more reliable, and automated detection of SQL injection vulnerabilities.

D. A. Reddy, G.Rajini · 0 citations
Open access Aug 2026

Browser-based phishing detection system using modern web technologies

A hybrid browser-resident phishing detection framework that combines three complementary detection mechanisms: a locally executed Random Forest model using URL lexical features, lightweight real-time DOM structure analysis, and VirusTotal’s multi-engine reputation service is proposed.

Muhammad Arshad, Beena Sherin Kuriakose, C. W. Onn et al. · 0 citations
Open access Jul 2026

Real Time Malicious Webpage Detection Using Hybrid CNN-LSTM Model

Experimental evaluation demonstrates that the Hybrid CNN–LSTM model effectively classifies webpages as Safe, Suspicious, or Malicious, providing improved detection accuracy and faster prediction compared with conventional machine learning approaches.

Sinchana and Dr. Kruthi R · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.