Sql Injection Attack Detection using Logistic Regression and TF-IDF Vectorization

SQL injection attacks pose a serious security risk to online applications because they provide hackers access to sensitive data and the ability to manipulate databases using malicious SQL commands. This project uses TF-IDF vectorization and logistic regression to detect SQL injection attacks using a machine learning method. To train the model, a dataset of legitimate and malicious SQL instructions is generated and preprocessed. An intuitive user interface for the realtime detection of SQL injection attempts is provided by the integration of the trained model into a Flask web application. Users can enter attempts at SQL injection into the program. Users can enter SQL instructions into the application to get immediate feedback on whether the command is malicious or genuine. By successfully identifying and mitigating possible SQL injection risks through machine learning, this technology improves the security posture of web applications.

Authors

Publication Details

Journal
International Journal on Science and Technology
Published
2025-05-31
DOI
https://doi.org/10.71097/ijsat.v16.i2.5711
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

Sql Injection Attack Detection using Logistic Regression and TF-IDF Vectorization

K. Harini, Puppala Priyanka, Muhammad Rafli Aditya, N.Dilip
International Journal on Science and Technology
Network Security and Intrusion Detection
article

Sql Injection Attack Detection using Logistic Regression and TF-IDF Vectorization

K. Harini, Puppala Priyanka, Muhammad Rafli Aditya, N.Dilip
article en

Abstract

SQL injection attacks pose a serious security risk to online applications because they provide hackers access to sensitive data and the ability to manipulate databases using malicious SQL commands. This project uses TF-IDF vectorization and logistic regression to detect SQL injection attacks using a machine learning method. To train the model, a dataset of legitimate and malicious SQL instructions is generated and preprocessed. An intuitive user interface for the realtime detection of SQL injection attempts is provided by the integration of the trained model into a Flask web application. Users can enter attempts at SQL injection into the program. Users can enter SQL instructions into the application to get immediate feedback on whether the command is malicious or genuine. By successfully identifying and mitigating possible SQL injection risks through machine learning, this technology improves the security posture of web applications.

International Journal on Science and TechnologyVol. 16(2)
Openalex Percentile: Top 87%
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.

Sql Injection Attack Detection using Logistic Regression and TF-IDF Vectorization — K. Harini, Puppala Priyanka, et al. · International Journal on Science and Technology (2025) | TGRS Research Map | TGRS