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
- K. Harini (ORCID: https://orcid.org/0000-0002-7792-2922)
- Puppala Priyanka
- Muhammad Rafli Aditya
- N.Dilip
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