ASID: Confidence-Aware Decision Intelligence for Adaptive Detection and Distributed Mitigation of Advanced SQL Injection Attacks in SDN

Authors

  • Marwa M. Khashaba Faculty of Computer Studies, Arab Open University, Cairo, Egypt Author https://orcid.org/0000-0003-2397-1419
  • Ameer El-Sayed Department of Information Technology, Faculty of Computers and Informatics, Zagazig University, Zagazig 44519, Egypt Author https://orcid.org/0000-0003-3305-5844
  • Wael Said 1) Computer Science Department, Faculty of Computers and Informatics, Zagazig University, Zagazig 44511, Egypt; 2) Computer Science Department, College of Computer Science and Engineering, Taibah University, Medina 42353, Saudi Arabia Author https://orcid.org/0000-0001-8623-6847
  • Hossam Diab 1) Math and computer science Department, Faculty of Science, Menoufia University, Menoufia, Egypt; 2) Cybersecurity Department, College of Computer Science and Engineering, Taibah University, Medina 42353, Saudi Arabia Author https://orcid.org/0000-0002-6986-5171

DOI:

https://doi.org/10.31181/jscda412026111

Keywords:

Decision Intelligence, Confidence-Aware Decision-Making, Soft Computing, Ensemble Learning, Software-Defined Networking, SQL Injection, P4, Cyber-Risk Analytics, Adaptive Mitigation, Distributed Decision-Making

Abstract

The increasing sophistication of SQL injection (SQLi) attacks requires network defenses integrating behavioral monitoring, detection confidence, and adaptive mitigation. This paper proposes ASID, a confidence-aware decision-intelligence framework for real-time SQLi detection and mitigation in Software-Defined Networking (SDN) environments. ASID integrates three components. First, a P4-assisted traffic-engineering mechanism monitors 20 packet-, flow-, and session-level features, combining programmable data-plane operations with controller-based processing. Second, a Confidence-Aware Adaptive Weighted Ensemble (CAAWE) integrates K-Nearest Neighbors, Decision Tree, Random Forest, and Support Vector Machine classifiers using calibrated probabilities and dynamically adjusted confidence- and precision-based weights. Third, a Distributed Multi-Controller Mitigation (DMCM) mechanism coordinates adaptive responses across ONOS controllers according to attack behaviors and detection confidence. The framework is evaluated using SDN-ID, InSDN, CICIoT2023, and the proposed P4-Assisted SQLi Dataset (PASD), alongside seven operational scenarios. CAAWE achieves up to 98.95% accuracy, 97.94% precision, 99.34% recall, and 0.99 AUC, with detection latency of 1.3 seconds on PASD. Across four datasets, accuracy exceeds that of LightGBM by 2.08–3.62 percentage points, with five-run statistical analysis supporting consistent improvements. DMCM achieves 82.3–99.7% mitigation success, containment latency of 18–89 milliseconds, and coordination delays below 23 milliseconds. These results demonstrate that integrating programmable behavioral monitoring, confidence-aware classification, and distributed mitigation improves detection reliability, response efficiency, and adaptive security decision-making against evolving SQLi threats. 

Downloads

Download data is not yet available.

References

Yegnidemir, E., & Khondoker, R. (2024). SPSDN: A security platform for SDN networks with an AI-based SQL injection attack detection and mitigation as an example service. In 2024 IEEE International Conference on Machine Learning for Communication and Networking (ICMLCN) (pp. 1–2). IEEE. https://doi.org/10.1109/ICMLCN59089.2024.10624751

El-Sayed, A., Toony, A. A., Alqahtani, F., Alginahi, Y., & Said, W. (2025). CO-STOP: A robust P4-powered adaptive framework for comprehensive detection and mitigation of coordinated and multi-faceted attacks in SD-IoT networks. Computers & Security, 151, 104349. https://doi.org/10.1016/j.cose.2025.104349

Paul, A., Sharma, V., & Olukoya, O. (2024). SQL injection attack: Detection, prioritization & prevention. Journal of Information Security and Applications, 85, 103871. https://doi.org/10.1016/j.jisa.2024.103871

IBM. (2025). IBM X-Force 2025 Threat Intelligence Index. https://www.ibm.com/thought-leadership/institute-business-value/en-us/report/2025-threat-intelligence-index

El-Sayed, A., Hemdan, M. N., Abdelkarim, N., Rushdy, E., & Hamza, H. M. (2026). AMCS: Adaptive Multi-Controller SDN Security with Stateful Traffic Intelligence for Fast and Accurate Multi-Vector Attack Detection. International Journal of Advanced Computer Science and Applications, 17(2). https://doi.org/10.14569/IJACSA.2026.0170255

Verizon. (2025). 2025 Data Breach Investigations Report. https://www.verizon.com/business/resources/reports/dbir/

Boakye, D., Sarpong, D., Meissner, D., & Ofosu, G. (2024). How TalkTalk did the walk-walk: Strategic reputational repair in a cyber-attack. Information Technology & People, 37, 1642–1673. https://doi.org/10.1108/ITP-08-2022-0589

El-Sayed, A., Toony, A. A., Tolba, A., Alqahtani, F., Alginahi, Y., & Said, W. (2025). Deception and cloud integration: A multi-layered approach for DDoS detection, mitigation, and attack surface minimization in SD-IoT networks. Computers and Electrical Engineering, 126, 110543. https://doi.org/10.1016/j.compeleceng.2025.110543

El-Sayed, A., Hemdan, M. N., Rushdy, E., & Hamza, H. M. (2026). PISMA: Programmable In-Switch Telemetry and Multi-Stage Adaptive Deep Learning for Threat Mitigation in SD-IoT. Computer and Decision Making: An International Journal, 3, 1054–1076. https://doi.org/10.59543/comdem.v3i.18489

Alyanbaawi, A., Hassan, A., Khashaba, M. M., Elkomy, O., Rushdy, E., & El-Sayed, A. (2026). APATCP: Programmable multi-controller framework for real-time detection and mitigation of complex TCP flooding attacks in SD-IoT networks. Scientific Reports, 16, 24005. https://doi.org/10.1038/s41598-026-62233-8

Zhang, W., Li, Y., Li, X., Shao, M., Mi, Y., Zhang, H., et al. (2022). Deep neural network-based SQL injection detection method. Security and Communication Networks, 2022, Article 4836289. https://doi.org/10.1155/2022/4836289

Zhang, P., Yu, Y., Tan, L., He, S., Wang, J., & El-Sayed, A. (2026). Cascading failure dynamics and edge-intelligent defense in space-air-ground integrated networks for Internet of Things. Computers, Materials and Continua, 88(2), Article 33. https://doi.org/10.32604/cmc.2026.081224

El-Sayed, A., Ramadan, H., Mohamed, E. R., & Elkomy, O. M. (2025). SFARP: A multi-layered real-time security framework for hybrid ARP and DDoS attack defense in SD-IoT networks. Scientific Reports, 15, 43479. https://doi.org/10.1038/s41598-025-28830-9

Khedr, W. I., Gouda, A. E., & Mohamed, E. R. (2023). FMDADM: A multi-layer DDoS attack detection and mitigation framework using machine learning for stateful SDN-based IoT networks. IEEE Access, 11, 28934–28954. https://doi.org/10.1109/ACCESS.2023.3260256

El-Sayed, A., Said, W., Tolba, A., Alginahi, Y., & Toony, A. A. (2024). LBTMA: An integrated P4-enabled framework for optimized traffic management in SD-IoT networks. Internet of Things, 28, 101432. https://doi.org/10.1016/j.iot.2024.101432

Nasereddin, M., ALKhamaiseh, A., Qasaimeh, M., & Al-Qassas, R. (2023). A systematic review of detection and prevention techniques of SQL injection attacks. Information Security Journal: A Global Perspective, 32, 252–265. https://doi.org/10.1080/19393555.2021.1995537

Khedr, W. I., Gouda, A. E., & Mohamed, E. R. (2023). P4-HLDMC: A novel framework for DDoS and ARP attack detection and mitigation in SD-IoT networks using machine learning, stateful P4, and distributed multi-controller architecture. Mathematics, 11, 3552. https://doi.org/10.3390/math11163552

Alghawazi, M., Alghazzawi, D., & Alarifi, S. (2022). Detection of SQL injection attack using machine learning techniques: A systematic literature review. Journal of Cybersecurity and Privacy, 2, 764–777. https://doi.org/10.3390/jcp2040039

El-Sayed, A., Said, W., Tolba, A., Alginahi, Y., & Toony, A. A. (2024). MP-GUARD: A novel multi-pronged intrusion detection and mitigation framework for scalable SD-IoT networks using cooperative monitoring, ensemble learning, and new P4-extracted feature set. Computers and Electrical Engineering, 118, 109484. https://doi.org/10.1016/j.compeleceng.2024.109484

El-Sayed, A., Tolba, A., Alalwan, N., Alginahi, Y., & Said, W. (2026). CATOR: A confidence-adaptive dual-plane in-switch orchestrated resilience framework for multi-vector DDoS defense in software-defined IoT. Computers and Electrical Engineering, 130, 110894. https://doi.org/10.1016/j.compeleceng.2025.110894

Rosca, C.-M., Stancu, A., & Popescu, C. (2025). Machine learning models for SQL injection detection. Electronics, 14, 3420. https://doi.org/10.3390/electronics14173420

Fathi, K. S., Barakat, S., & Rezk, A. (2025). An effective SQL injection detection model using LSTM for imbalanced datasets. Computers & Security, 153, 104391. https://doi.org/10.1016/j.cose.2025.104391

Qin, Q., Li, Y., Mi, Y., Shen, J., Wu, K., & Wang, Z. (2025). SQL injection detection algorithm based on Bi-LSTM and integrated feature selection. The Journal of Supercomputing, 81, 1–32. https://doi.org/10.1007/s11227-025-07109-w

Nguyen, D.-C., Ha, M.-H., Do, M.-T., & Chen, O. T.-C. (2025). Towards lightweight model using non-local-based graph convolution neural network for SQL injection detection. Egyptian Informatics Journal, 30, 100684. https://doi.org/10.1016/j.eij.2025.100684

Ajasa, A. D., Chizari, H., & Alam, A. (2025). Database security and performance: A case of SQL injection attacks using Docker-based virtualisation and its effect on performance. Future Internet, 17, 156. https://doi.org/10.3390/fi17040156

Bakır, R. (2025). UniEmbed: A novel approach to detect XSS and SQL injection attacks leveraging multiple feature fusion with machine learning techniques. Arabian Journal for Science and Engineering, 50, 15591–15604. https://doi.org/10.1007/s13369-024-09916-4

Al-olaqi, M., Al-gailani, A., & Rahman, M. H. (2025). Comprehensive study of SQL injection attacks mitigation methods and future directions. Journal of Cyber Security and Risk Auditing, 2025, 347–365. https://doi.org/10.63180/jcsra.thestap.2025.4.11

Alotaibi, F. M., & Vassilakis, V. G. (2023). Toward an SDN-based web application firewall: Defending against SQL injection attacks. Future Internet, 15, 170. https://doi.org/10.3390/fi15050170

Mathew, R. R., & Vidhate, A. (2025). Deep learning prediction model for DoS and SQL injection attack in SDN. International Journal of Information and Computer Security, 28, 327–347. https://doi.org/10.1504/IJICS.2025.149446

Muduli, D., Shookdeb, S., Zamani, A. T., Saxena, S., Kanade, A. S., Parveen, N., et al. (2024). SIDNet: A SQL injection detection network for enhancing cybersecurity. IEEE Access, 12, 176511–176526. https://doi.org/10.1109/ACCESS.2024.3502293

El-Sayed, A. (2026). ASID: A confidence-aware multi-controller framework for detecting and mitigating advanced SQL injection attacks in SDN. https://github.com/SD-IoT-AE/ASID

Cop, C. (2024). SDN intrusion detection dataset. https://www.kaggle.com/datasets/subhajournal/sdn-intrusion-detection

Elsayed, M. S., Le-Khac, N.-A., & Jurcut, A. D. (2020). InSDN: A novel SDN intrusion dataset. IEEE Access, 8, 165263–165284. https://doi.org/10.1109/ACCESS.2020.3022633

Neto, E. C. P., Dadkhah, S., Ferreira, R., Zohourian, A., Lu, R., & Ghorbani, A. A. (2023). CICIoT2023: A real-time dataset and benchmark for large-scale attacks in IoT environment. Sensors, 23, 5941. https://doi.org/10.3390/s23135941

Published

2026-11-23

How to Cite

M. Khashaba, M., El-Sayed, A., Said, W., & Diab, H. (2026). ASID: Confidence-Aware Decision Intelligence for Adaptive Detection and Distributed Mitigation of Advanced SQL Injection Attacks in SDN. Journal of Soft Computing and Decision Analytics, 4(1), 290-328. https://doi.org/10.31181/jscda412026111