SQL Injection Detection Using Recurrent Neural Networks (RNN)
摘要
Web applications are still at risk from SQL injection (SQLi), which calls for strong detection systems that can recognize nefarious SQL queries. This study investigates the use of two recurrent neural network (RNN) variants-Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU) models-for SQL injection attack detection. In contrast to conventional techniques, LSTM and GRU models are good at identifying long-term patterns and sequential dependencies, which makes them good options for improving SQL injection detection’s efficacy and accuracy. A comprehensive dataset with a variety of legal queries and SQL injection attack cases is used to assess the performance of the LSTM and GRU designs. The results show high levels of sensitivity, specificity, and accuracy, successfully reducing false positives while correctly recognizing possible threats.