arrow
返回

Enhanced SQL injection detection using chi-square feature selection and machine learning classifiers

使用卡方特征选择和机器学习分类器增强SQL注入检测

delete2025-11-19
delete1
delete
OA
AI
E
Emanuel Casmiry *
N
Neema Mduma
R
Ramadhani Sinde
DOI:10.3389/fdata.2025.1686479delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
In the face of increasing cyberattacks, Structured Query Language (SQL) injection remains one of the most common and damaging types of web threats, accounting for over 20% of global cyberattack costs. However, due to its dynamic and variable nature, the current detection methods often suffer from high false positive rates and lower accuracy. This study proposes an enhanced SQL injection detection using Chi-square feature selection (FS) and machine learning models. A combined dataset was assembled by merging a custom dataset with the SQLiV3.csv file from the Kaggle repository. A Jensen-Shannon Divergence (JSD) analysis revealed moderate domain variation (overall JSD = 0.5775), with class-wise divergence of 0.1340 for SQLi and 0.5320 for benign queries. Term Frequency-Inverse Document Frequency (TF-IDF) was used to convert SQL queries into feature vectors, followed by the Chi-square feature selection to retain the most statistically significant features. Five classifiers, namely multinomial Na & iuml;ve Bayes, support vector machine, logistic regression, decision tree, and K-nearest neighbor, were tested before and after feature selection. The results reveal that Chi-square feature selection improves classification performance across all models by reducing noise and eliminating redundant features. Notably, Decision Tree and K-Nearest Neighbors (KNN) models, which initially performed poorly, showed substantial improvements after feature selection. The Decision Tree improved from being the second-worst performer before feature selection to the best classifier afterward, achieving the highest accuracy of 99.73%, precision of 99.72%, recall of 99.70%, F1-score of 99.71%, a false positive rate (FPR) of 0.25%, and a misclassification rate of 0.27%. These findings highlight the crucial role of feature selection in high-dimensional data environments. Future research will investigate how feature selection impacts deep learning architectures, adaptive feature selection, incremental learning approaches, robustness against adversarial attacks, and evaluate model transferability across production web environments to ensure real-time detection reliability, establishing feature selection as a vital step in developing reliable SQL injection detection systems.
Keyword:
cyberattacks
machine learning
feature selection
SQL injection
high-dimensional data
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

err分享
err收藏
ModSec-AdvLearn: Countering Adversarial SQL Injections With Robust Machine LearningModSec-AdvLearn:用鲁棒机器学习对抗恶意SQL注入
err2025-01-01
err0
PREAI
errGiuseppe Floris; Christian Scano; Biagio Montaruli; Luca Demetrio; Andrea Valenza; Luca Compagna; Davide Ariu; Luca Piras; Davide Balzarotti; Battista Biggio
err分享
err收藏
err分享
err收藏
err分享
err收藏

期刊

F
Frontiers in Big Data
IF:
2.3
论文数:
84
被引数:
1.6K

机构

暂无机构信息
引用论文

引用论文

Deep Neural Network-Based SQL Injection Detection Method
err2022-03-24
err0
PREAI
errWei Zhang; Yueqin Li; Xiaofeng Li; Minggang Shao; Yajie Mi; Hongli Zhang; Guoqing Zhi
err分享
err收藏
学者 查看更多内容