Chaos-based shuffled frog-leaping and machine learning approach for SQL injection detection in web applications
SQL injection (SQLi) attacks are a serious security threat that allow unauthorized access to application databases, expose sensitive information, and modify stored data. Identifying a compact and informative feature subset remains a challenging combinatorial optimization problem, despite the widespread application of machine learning (ML) methods for SQLi detection. In this paper, we propose an improved chaos-based binary Shuffled Frog-Leaping Algorithm (bSFLA) for feature selection. The method uses chaotic search, local memeplex evolution, and periodic information exchange to balance exploration and exploitation. ANN, KNN, SVM and DT classifiers were trained using the selected features. The framework was tested on two SQLi datasets with 1,027 and 30,919 queries, respectively. Each query was represented by 12 input features and one class label. The average accuracy, sensitivity, precision, and F1-score on Dataset 1 increased from 95.64%, 96.99%, 94.24%, and 95.41% to 98.32%, 98.35%, 97.58%, and 97.89%, respectively, after the inclusion of bSFLA. In Dataset 2, the proposed framework achieved an average accuracy, sensitivity, precision, and F1-score of 99.47%, 98.95%, 99.61%, and 99.28%, respectively. The ROC analysis yielded an average AUC of 0.9988. Overall, the selection of about 30% of the original features improved the predictive performance and reduced the feature-processing requirements, which demonstrated the effectiveness and potential deployment suitability of the proposed SQLi detection framework.
Authors
- Bahman Arasteh (ORCID: https://orcid.org/0000-0001-5202-6315)
- Hüseyin Kusetoğulları (ORCID: https://orcid.org/0000-0001-5762-6678)
- Keyvan Arasteh (ORCID: https://orcid.org/0000-0002-2041-6439)
Institutions
- Khazar University (AZ)
- Islamic Azad University of Tabriz (IR)
- Istinye University (TR)
- Blekinge Institute of Technology (SE)
Publication Details
- Journal
- Discover Internet of Things
- Published
- 2026-11-26
- DOI
- https://doi.org/10.1007/s43926-026-00494-5
- Primary Topic
- Web Application Security Vulnerabilities
- Type
- article
- Field-Weighted Citation Impact
- 0.00