Employing Sequence to Sequence Neural Network Model for XSS Attack Detection

Cross-site scripting (XSS) attacks are considered one of the most prevalent types of attacks and have caused huge damage to individuals and organizations in the form of economic loss and intrusion into privacy. Several detection techniques have been used to find known threats using signatures obtained from network traffic. Researchers have developed many techniques based on machine learning to identify attacks without depending on known signatures of already known attacks. While a number of neural network-based methods to detect XSS attacks have been proposed by security experts, no one has attempted to detect XSS attacks using a sequence neural network model. We have proposed a novel approach called a sequence-to-sequence neural network (seq2seq) model to detect cross-site scripting attacks without depending on signatures of known attacks. Using seq2seq model for XSS detection is based on extracting features from web application code segments, then using them to predict whether a script contains malicious code. The seq2seq model is represented as a two-layer neural network, with the first layer processing the training samples in sequential order and the second layer responsible for the classification of each data sample. This dataset consists of 10100 instances of malicious and benign JavaScript. The Pearson correlation method was used for feature selection. All the experiments were conducted using Tenser flow and Keras. The experimental results that proposed seq2seq achieved an accuracy of 99.8%.

Authors

Institutions

Publication Details

Journal
Journal of King Abdulaziz University-Computing and Information Technology Sciences
Published
2024-08-11
DOI
https://doi.org/10.4197/comp.13-1.4
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Employing Sequence to Sequence Neural Network Model for XSS Attack Detection

Mohammad Eid Alzahrani
Journal of King Abdulaziz University-Computing and Information Technology Sciences
Network Security and Intrusion Detection
article

Employing Sequence to Sequence Neural Network Model for XSS Attack Detection

Mohammad Eid Alzahrani
article en

Abstract

Cross-site scripting (XSS) attacks are considered one of the most prevalent types of attacks and have caused huge damage to individuals and organizations in the form of economic loss and intrusion into privacy. Several detection techniques have been used to find known threats using signatures obtained from network traffic. Researchers have developed many techniques based on machine learning to identify attacks without depending on known signatures of already known attacks. While a number of neural network-based methods to detect XSS attacks have been proposed by security experts, no one has attempted to detect XSS attacks using a sequence neural network model. We have proposed a novel approach called a sequence-to-sequence neural network (seq2seq) model to detect cross-site scripting attacks without depending on signatures of known attacks. Using seq2seq model for XSS detection is based on extracting features from web application code segments, then using them to predict whether a script contains malicious code. The seq2seq model is represented as a two-layer neural network, with the first layer processing the training samples in sequential order and the second layer responsible for the classification of each data sample. This dataset consists of 10100 instances of malicious and benign JavaScript. The Pearson correlation method was used for feature selection. All the experiments were conducted using Tenser flow and Keras. The experimental results that proposed seq2seq achieved an accuracy of 99.8%.

Journal of King Abdulaziz University-Computing and Information Technology SciencesVol. 13(1)
Al Baha University (SA)
Openalex Percentile: Top 68%
Network Security and Intrusion Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Employing Sequence to Sequence Neural Network Model for XSS Attack Detection — Mohammad Eid Alzahrani · Journal of King Abdulaziz University-Computing and Information Technology Sciences (2024) | TGRS Research Map | TGRS