Metraipolis › archive › dc_22174ccad882
Enhancing Web Application Firewalls with Machine Learning for SQL Injection Detection — arXiv:2608.28889
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.28889
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-17T08:25:34.857Z
- SHA-256 of the archived text
d08901423446135bd7ba094691b812342b9f420c298b42e9c33e28c6d269ebe1- Stable URL of this page
https://metraipolis.com/documento/dc_22174ccad882
How to cite
Enhancing Web Application Firewalls with Machine Learning for SQL Injection Detection — arXiv:2608.28889 — arXiv (en), https://arxiv.org/abs/2608.28889 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_22174ccad882 (Metraipolis archive dc_22174ccad882, sha256 d08901423446135bd7ba094691b812342b9f420c298b42e9c33e28c6d269ebe1)
BibTeX
@misc{dc22174ccad882,
title = {Enhancing Web Application Firewalls with Machine Learning for SQL Injection Detection — arXiv:2608.28889},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.28889},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_22174ccad882; sha256 d08901423446135bd7ba094691b812342b9f420c298b42e9c33e28c6d269ebe1},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.28889. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Detecting SQL Injection (SQLi) attacks ranks among the most critical challenges in web application security. This research conducted a systematic literature review to identify the research gaps in this domain and responsively designed and optimised a DistilBERT-Stacked Ensemble pipeline to improve detection efficiency and robustness while reducing false-positive and false-negative rates. Comprehensive pre-processing and tokenisation were performed, DistilBERT embeddings were extracted, and machine-learning and ensemble classifiers were trained and ranked on accuracy, precision, recall and F1-score. The three best performers (Logistic Regression, XGBoost and SVM) were combined through a neural meta-learner to form a stacked ensemble. The ensemble was hardened with adversarial examples generated by the Fast Gradient Sign Method (FGSM) and tuned with Optuna. The optimised ensemble achieved 99.81% across all reported metrics, closely comparable to the strongest single model (DistilBERT SVM, 99.82%). On the evaluation platform used in this study (Section 3.8), the ensemble classified the full test set in 0.0136s against 1.896s for DistilBERT-SVM, an approximately 140-fold reduction in measured inference latency, while retaining 99.77% accuracy under a single-step FGSM attack. The contribution is the design and validation of a SQLi detector performing with state-of-the-art accuracy at real-time speed and with demonstrated robustness to a single-step FGSM attack, rather than a marginal gain in accuracy. Sensitivity analysis further confirmed the stability of the model. These findings highlight the value of adversarial training and stacked meta-learning in building robust Web Application Firewalls (WAFs) for SQLi detection. For open validation, the dataset, test sets and models are made available at this https URL . Tema degli esploratori: fiducia digitale e crittografia (retro-catalogo arXiv: annunci del 2026-09-01 in cs.CR). Categorie arXiv: Cryptography and Security (cs.CR). Pagina del lavoro: https://arxiv.org/abs/2608.28889 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-17T08:10:59.853Z dalla pagina https://arxiv.org/catchup/cs.CR/2026-09-01?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).