IGXSS: XSS payload detection model based on inductive GCN
Authors:
- 11 February 2024
- journal article
- research article
- Published by Wiley in International Journal of Network Management
- Vol. 34 (6)
Abstract
To facilitate the management, Internet of Things (IoT) vendors usually apply remote ways such as HTTP services to uniformly manage IoT devices, leading to traditional web application vulnerabilities that also endanger the cloud interfaces of IoT, such as cross‐site scripting (XSS), code injection, and Remote Command/Code Execute (RCE). XSS is one of the most common web application attacks, which allows the attacker to obtain private user information or attack IoT devices and IoT cloud platforms. Most of the existing XSS payload detection models are based on machine learning or deep learning, which usually require a lot of external resources, such as pretrained word vectors, to achieve a better performance on unknown samples. But in the field of XSS payload detection, high‐quality vector representations of samples are often difficult to obtain. In addition, existing models all perform substantially worse when the distribution of XSS payloads and benign samples in the test dataset is extremely unbalanced (e.g., XSS payloads: benign samples = 1: 20). While in the real XSS attack scenario against IoT, an XSS payload is often hidden in a massive amount of normal user requests, indicating that these models are not practical. In response to the above issues, we propose an XSS payload detection model based on inductive graph neural networks, IGXSS (XSS payload detection model based on inductive GCN), to detect XSS payloads targeting IoT. Firstly, we treat the samples and words obtained from segmenting the samples as nodes and attach lines between them in order to form a graph. Then, we obtain the feature matrix of nodes and edges utilizing information between nodes only (instead of external resources such as pretrained word vectors). Finally, we feed the obtained feature matrix into a two‐layer GCN for training and validate the performance of models in several datasets with different sample distributions. Extensive experiments on the real datasets show that IGXSS performs better compared to other models under various sample distributions. In particular, when the sample distribution is extremely unbalanced, the recall and F1 score of IGXSS still reach 1.000 and 0.846, demonstrating that IGXSS is more robust and more suitable for practical scenarios.Keywords
This publication has 16 references indexed in Scilit:
- MNN-XSS: Modular Neural Network Based Approach for XSS Attack DetectionComputers, Materials & Continua, 2022
- Cross-Site Scripting (XSS) and SQL Injection Attacks Multi-classification Using Bidirectional LSTM Recurrent Neural Network2021
- A novel architecture for web-based attack detection using convolutional neural networkComputers & Security, 2021
- The Detecting Cross-Site Scripting (XSS) Using Machine Learning Methods2020
- Detecting malicious JavaScript code based on semantic analysisComputers & Security, 2020
- Adversarial Examples Detection for XSS Attacks Based on Generative Adversarial NetworksIEEE Access, 2020
- Graph Convolutional Networks for Text ClassificationProceedings of the AAAI Conference on Artificial Intelligence, 2019
- MLPXSS: An Integrated XSS-Based Attack Detection Scheme in Web Applications Using Multilayer Perceptron TechniqueIEEE Access, 2019
- Classification of XSS Attacks by Machine Learning with Frequency of Appearance and Co-occurrence2019
- DeepXSS2018