Intelligent Detection of Injection Attacks via SQL Based on Supervised Machine Learning Models for Enhancing Web Security

Journal of Artificial Intelligence and Big Data, volume 4, issue 2, 2024

11 Pages Posted: 28 May 2025

See all articles by Rahul Vadisetty

Rahul Vadisetty

Wayne State University

Purna Chandra Rao Chinta

Microsoft Corporation

Chethan Moore

Microsoft Corporation - Microsoft EMEA

Laxmana Murthy Karaka

Code Ace Solutions, Inc.

Manikanth Sakuru

JP Morgan Chase & Co.

Varun Bodepudi

Deloitte Consulting LLP

Srinivasa Rao Maka

Northstar Group, Inc

Srikanth Reddy Vangala

University of Bridgeport

Date Written: December 19, 2024

Abstract

The most prevalent technique behind security data breaches exists through SQL Injection Attacks. Organizations and individuals suffer from sensitive information exposure and unauthorized entry when attackers take advantage of SQL injection (SQLi) attack vulnerability's severe risks. Static and heuristic defense methods remain conventional detection tools for previous SQL injection attacks study's foundation is a detection system developed using the Gated Recurrent Unit (GRU) network, which attempts to efficiently identify SQL Injection attacks (SQLIAs). The suggested Gated Recurrent Unit model was trained using an 80:20 train-test split, and the results showed that SQL injection attacks could be accurately identified with a precision rate of 97%, an accuracy rate of 96.65%, a recall rate of 92.5%, and an F1-score of 94%. The experimental results, together with their corresponding confusion matrix analysis and learning curves, demonstrate resilience and outstanding generalization ability. The GRU model outperforms conventional machine learning (ML) models, including K-Nearest Neighbor's (KNN), and Support Vector Machine (SVM), in terms of identifying sequential patterns in SQL query data. Recurrent neural architecture proves effective in the detection of SQLi attacks through its ability to provide secure protection for contemporary web applications.

Keywords: Web Application Security, Cyberattacks, SQL Injection Attacks (SQLIA), Machine Learning (ML), SQL Injection Dataset

Suggested Citation

Vadisetty, Rahul and Chinta, Purna Chandra Rao and Moore, Chethan and Karaka, Laxmana Murthy and Sakuru, Manikanth and Bodepudi, Varun and Maka, Srinivasa Rao and Vangala, Srikanth Reddy, Intelligent Detection of Injection Attacks via SQL Based on Supervised Machine Learning Models for Enhancing Web Security (December 19, 2024). Journal of Artificial Intelligence and Big Data, volume 4, issue 2, 2024, Available at SSRN: https://ssrn.com/abstract=5259493

Rahul Vadisetty

Wayne State University ( email )

Purna Chandra Rao Chinta (Contact Author)

Microsoft Corporation ( email )

One Microsoft Way
Redmond, WA 98052
United States

Chethan Moore

Microsoft Corporation - Microsoft EMEA ( email )

Laxmana Murthy Karaka

Code Ace Solutions, Inc. ( email )

Manikanth Sakuru

JP Morgan Chase & Co.

Varun Bodepudi

Deloitte Consulting LLP ( email )

30 Rockefeller Plaza
41st Floor
New York, NY 10112
United States

Srinivasa Rao Maka

Northstar Group, Inc ( email )

Srikanth Reddy Vangala

University of Bridgeport ( email )

126 Park Avenue
Bridgeport, CT 06601
United States

Do you have a job opening that you would like to promote on SSRN?

Paper statistics

Downloads
7
Abstract Views
31
PlumX Metrics