SQLiShield: A Multi-Layer SQL Injection Detection and Prevention Framework
INTERNATIONAL JOURNAL OF SCIENTIFIC RESEARCH IN ENGINEERING AND MANAGEMENT · 22.04.2026 · 10 (04) · 1-9
DOI: 10.55041/ijsrem60952 ↗Kurz gefasst
Fachartikel in der Zeitschrift INTERNATIONAL JOURNAL OF SCIENTIFIC RESEARCH IN ENGINEERING AND MANAGEMENT, online erschienen am 22.04.2026. Verfasst von Chetan Ravindra Vashiste und 5 weiteren Autor:innen.
Abstract (Originalsprache)
SQL Injection (SQLi) continues to rank among the most exploited vulnerabilities in web applications globally, appearing in the OWASP Top 10 for over two decades. This paper presents SQLiShield, a novel multi-layer detection and prevention middleware engineered for Python/Flask web applications. SQLiShield fuses three hierarchical protection layers: a deterministic engine of 53 pre-compiled regular expression patterns (Layer 1), an adaptive Random Forest ML classifier trained on 6,941 labeled payload samples (Layer 2), and a structural input sanitization fallback (Layer 3). The framework is deployed as a Flask before_request hook, transparently intercepting all GET parameters, POST form fields, JSON bodies, and HTTP cookies before they reach application logic. Empirical evaluation using the Kaggle SQL Injection Dataset demonstrates that the combined multi-layer architecture achieves 99.2% detection accuracy, 99.5% precision, 98.8% recall, and a 0.5% false positive rate — substantially outperforming standalone regex (87.0%, 18% FPR) and standalone ML (97.3%, 1.8% FPR). End-to-end detection latency averages 3.7 ms per request. Automated penetration testing with SQLMap across 100 obfuscated payloads yielded zero successful bypasses. A companion Flask demonstration application exposes four intentionally vulnerable endpoints — authentication bypass, UNION-based extraction, secondorder injection, and a real-time admin dashboard — enabling controlled side-by-side comparison of protected and unprotected execution paths. Keywords: SQL Injection, SQLiShield, Random Forest, Web Application Firewall, Flask Middleware, OWASP, Intrusion Detection, Regex Pattern Matching, Parameterized Queries, Defense-in-Depth, Parul University
Zitieren
APA
Vashiste, C. R., Patel, H., Mehulkumar, P. V., Mehta, R. A., Tiwari, D. V., & Cholkar, D. K. (2026). SQLiShield: A Multi-Layer SQL Injection Detection and Prevention Framework. INTERNATIONAL JOURNAL OF SCIENTIFIC RESEARCH IN ENGINEERING AND MANAGEMENT, 10(04), 1-9. https://doi.org/10.55041/ijsrem60952
Vancouver
Vashiste CR, Patel H, Mehulkumar PV, Mehta RA, Tiwari DV, Cholkar DK. SQLiShield: A Multi-Layer SQL Injection Detection and Prevention Framework. INTERNATIONAL JOURNAL OF SCIENTIFIC RESEARCH IN ENGINEERING AND MANAGEMENT. 2026;10(04):1-9. doi:10.55041/ijsrem60952
BibTeX
@article{Vashiste2026,
author = {Vashiste, Chetan Ravindra and Patel, Heet and Mehulkumar, Patel Vishwa and Mehta, Riddhi Atulkumar and Tiwari, Dr. Vivek and Cholkar, Dinesh Kumar},
title = {SQLiShield: A Multi-Layer SQL Injection Detection and Prevention Framework},
journal = {INTERNATIONAL JOURNAL OF SCIENTIFIC RESEARCH IN ENGINEERING AND MANAGEMENT},
year = {2026},
volume = {10},
number = {04},
pages = {1--9},
doi = {10.55041/ijsrem60952}
}
EUVIMED