An Improved LSTM-PCA Ensemble Classifier for SQL Injection and XSS Attack Detection
Authors:
- Tri Wanda SeptianTSTri Wanda Septian
- Imam Much Ibnu SubrotoISImam Much Ibnu Subroto
- LukmanLULukman
- Rahmat BudiartoRBRahmat Budiarto
Open Access
- 1 January 2023
- journal article
- research article
- Published by Tech Science Press in Computer Systems Science and Engineering
- Vol. 46 (2) , 1759-1774
Abstract
The Repository Mahasiswa (RAMA) is a national repository of research reports in the form of final assignments, student projects, theses, dissertations, and research reports of lecturers or researchers that have not yet been published in journals, conferences, or integrated books from the scientific repository of universities and research institutes in Indonesia. The increasing popularity of the RAMA Repository leads to security issues, including the two most widespread, vulnerable attacks i.e., Structured Query Language (SQL) injection and cross-site scripting (XSS) attacks. An attacker gaining access to data and performing unauthorized data modifications is extremely dangerous. This paper aims to provide an attack detection system for securing the repository portal from the abovementioned attacks. The proposed system combines a Long Short–Term Memory and Principal Component Analysis (LSTM-PCA) model as a classifier. This model can effectively solve the vanishing gradient problem caused by excessive positive samples. The experiment results show that the proposed system achieves an accuracy of 96.85% using an 80%:20% ratio of training data and testing data. The rationale for this best achievement is that the LSTM’s Forget Gate works very well as the PCA supplies only selected features that are significantly relevant to the attacks’ patterns. The Forget Gate in LSTM is responsible for deciding which information should be kept for computing the cell state and which one is not relevant and can be discarded. In addition, the LSTM’s Input Gate assists in finding out crucial information and stores specific relevant data in the memory.Keywords
This publication has 18 references indexed in Scilit:
- Fundamentals of Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) networkPhysica D: Nonlinear Phenomena, 2020
- Detection of SQL injection based on artificial neural networkKnowledge-Based Systems, 2020
- Cross-site scripting (XSS) attacks and mitigation: A surveyComputer Networks, 2020
- SQL Injection Detection for Web Applications Based on Elastic-Pooling CNNIEEE Access, 2019
- CODDLE: Code-Injection Detection With Deep LearningIEEE Access, 2019
- ART4SQLi: The ART of SQL Injection Vulnerability DiscoveryIEEE Transactions on Reliability, 2019
- An ensemble learning approach for XSS attack detection with domain knowledge and threat intelligenceComputers & Security, 2019
- Improved SMOTE Algorithm to Deal with Imbalanced Activity Classes in Smart HomesNeural Processing Letters, 2018
- A novel wavelet sequence based on deep bidirectional LSTM network model for ECG signal classificationComputers in Biology and Medicine, 2018
- Classification of Imbalanced Data by Oversampling in Kernel Space of Support Vector MachinesIEEE Transactions on Neural Networks and Learning Systems, 2017