An AI-based Intrusion Detection System for SQL Injection Attacks in Smart Home IoT Networks
DOI:
https://doi.org/10.14738/tmlai.1305.19509Keywords:
Deep Learning, Ensemble Methods, Machine Learning, Smart Home IoT, SQL Injection AttacksAbstract
The widespread adoption of Internet of Things (IoT) technologies has transformed smart home environments by enhancing automation, connectivity, and user-centric functionality. However, the advancements also introduce different security vulnerabilities, among which SQL injection attack has become notably pervasive and damaging. The attack involves adversaries injecting or manipulating SQL queries through insecure IoT device interfaces, corrupting databases or exfiltrating data, which lead to unauthorized access, data leakage, device control compromise, and cascading effects across connected systems. In response to this attack, this study proposes an Intrusion Detection System (IDS) to detect and mitigate SQL injection attacks in IoT-based smart home networks. To ensure resilience and performance, the proposed IDS framework integrates three principal categories of artificial intelligence algorithms based on their distinct methodological advantages: first, traditional machine learning techniques, which provide foundational classification and clustering capabilities with interpretable decision boundaries and efficient performance on structured data; second, boosting-based ensemble methods, which contribute enhanced predictive accuracy and robustness through iterative refinement and sensitivity to complex feature interactions; and third, deep learning architectures, which further enrich the system by enabling hierarchical feature extraction and temporal pattern modeling, particularly suited to high-dimensional and sequential intrusion data. The strategic integration of these algorithmic classes allows the IDS to leverage complementary strengths, resulting in improved detection accuracy and adaptability across diverse threat environments.
References
Magara T, Zhou Y. Internet of Things (IoT) of Smart Homes: Privacy and Security. J. Electr. Comput. Eng. 2024 Apr; 2024:1-17. https://doi.org/10.1155/2024/7716956.
Merino-Campos C. The Impact of Artificial Intelligence on Personalized Learning in Higher Education: A Systematic Review. Trends High. Educ. 2025 Mar; 4(2): 1-15. https://doi.org/10.3390/higheredu4020017.
Canavese D, Mannella L, Regano L, Basile C. Security at the Edge for Resource-Limited IoT Devices. Sens. 2024 Jan; 24(2):1-16. https://doi.org/10.3390/s24020590.
Noman HA, Abu-sharkh OMF. Code Injection Attacks in Wireless-Based Internet of Things (IoT): A Comprehensive Review and Practical Implementations. Sens. 2023 Jun; 23(13):1-53. https://doi.org/10.3390/s23136067.
Caballero-Gil C, Álvarez R, Hernández-Goya C, Molina-Gil J. Research on smart-locks cybersecurity and vulnerabilities. Wirel. Networks, 2023 Agu; 30:1-13. https://doi.org/10.1007/s11276-023-03376-8.
Diana L, Dini P, Paolini D. Overview on Intrusion Detection Systems for Computers Networking Security. Comput. 2025 Mar; 14(3):1-44. https://doi.org/10.3390/computers14030087.
Ghaffari A, Jelodari N, Pouralish S, Derakhshanfard N, Arasteh B. Securing internet of things using machine and deep learning methods: a survey. Cluster Comput. 2024 Oct; 27:9065-9089. https://doi.org/10.1007/s10586-024-04509-0.
Singh R, Kumar H, Singla RK. An intrusion detection system using network traffic profiling and online sequential extreme learning machine. Expert Syst. Appl. 2015 Dec; 42(22):8609-8624. https://doi.org/10.1016/j.eswa.2015.07.015.
Cai Z, Wu Q, Huang D, Ding L, Yu B, Huang J, Fu S. Cognitive state recognition using wavelet singular entropy and ARMA entropy with AFPA optimized GP classification. Neurocomput. 2016 Jul; 197:29-44. https://doi.org/10.1016/j.neucom.2016.01.054.
Kabir E, Hu J, Wang H, Zhuo G. A novel statistical technique for intrusion detection systems. Futur. Gener. Comput. Syst. 2017 Jan; 79. https://doi.org/10.1016/j.future.2017.01.029.
Wu Z, Wang J, Hu L, Zhang Z, and Wu H. A network intrusion detection method based on semantic Reencoding and deep learning. J. Netw. Comput. App. 2020 Aug; 164:102688. https://doi.org/10.1016/j.jnca.2020.102688.
Thakur S, Chakraborty A, De R, Kumar N, Sarkar R. Intrusion detection in cyber-physical systems using a generic and domain specific deep autoencoder model. Comput. Electr. Eng. 2021 May; 91:107044. https://doi.org/10.1016/j.compeleceng.2021.107044.
Khanday S, Fatima H, Rakesh N. Implementation of intrusion detection model for DDoS attacks in Lightweight IoT Networks. Expert Syst. Appl. 2022 Nov; 215:119330. https://doi.org/10.1016/j.eswa.2022.119330.
Xu H, Sun Z, Cao C, Bilal H. A data-driven approach for intrusion and anomaly detection using automated machine learning for the Internet of Things. Soft Comput. 2023 Jul. https://doi.org/10.1007/s00500-023-09037-4.
Viegas EK, Santin AO, Tedeschi P. Toward a Reliable Evaluation of Machine Learning Schemes for Network-Based Intrusion Detection. IEEE Inter. Thin. Mag. 2023 Jun; 6(2):70–75. https://doi.org/10.1109/IOTM.001.2300106.
Xu B, Sun L, Mao X Ding R, Liu C. IoT Intrusion Detection System Based on Machine Learning. Electro. 2023 Oct; 12(20):1-21. https://doi.org/10.3390/electronics12204289.
Vishwakarma M, Kesswani N. A new two-phase intrusion detection system with Naïve Bayes machine learning for data classification and elliptic envelop method for anomaly detection. Decis. Anal. J. 2023 Jun; 7:100233. https://doi.org/10.1016/j.dajour.2023.100233.
Rangelov D, Lämmel P, Brunzel L, Borgert S, Darius P, Tcholtchev N, Boerger M. Towards an Integrated Methodology and Toolchain for Machine Learning-Based Intrusion Detection in Urban IoT Networks and Platforms. Fut. Internet. 2023 Fab; 15(3):1-20. https://doi.org/10.3390/fi15030098.
Maddu M, Rao PN. Network intrusion detection and mitigation in SDN using deep learning models. Int. J. Inf. Secur. 2023 Oct; 24:1-14. https://doi.org/10.1007/s10207-023-00771-2.
Barragán-Escandón A, Jara-Nieves D, Romero-Fajardo I, Zalamea-Leon EF, Serrano-Guerrero X. Barriers to renewable energy expansion: Ecuador as a case study. Energy Strateg. Rev. 2022 Sep; 43:100903. https://doi.org/10.1016/j.esr.2022.100903.
Wadate AJ, Deshpande SP. Edge-Based Intrusion Detection using Machine Learning Over the IoT Network. 11th International Conference on Emerging Trends in Engineering & Technology - Signal and Information Processing (ICETET - SIP). 2023 Jun; 1-6. https://doi.org/10.1109/ICETET-SIP58143.2023.10151535.
Talukder MA, Hasan KF, Islam MM, Uddin MA, Akhter A, Yousuf MA, Alharbi F, Moni MA. A dependable hybrid machine learning model for network intrusion detection. J. Info. Sec. Appl. 2023 Fab;72. https://doi.org/10.1016/j.jisa.2022.103405.
Zakariah M, AlQahtani SA, Al-Rakhami MS. Machine Learning-Based Adaptive Synthetic Sampling Technique for Intrusion Detection. Appl. Sci. 2023 May; 13(11)1-31. https://doi.org/10.3390/app13116504.
Hnamte V, Najar Nguyen AH, Hussain J, Naik MS. DDoS attack detection and mitigation using deep neural network in SDN environment. Comput. Secur. 2023 Dec; 138:10366. https://doi.org/10.1016/j.cose.2023.103661.
Ngo VD, Vuong TC, Luong TV, Tran H. Machine learning-based intrusion detection: feature selection versus feature extraction. Cluster Comput. 2024 Jun; 27(3):2365–2379. https://doi.org/10.1007/s10586-023-04089-5.
Sajid576. SQL Injection Dataset. 2021. Available online: https://www.kaggle.com/datasets/sajid576/sqlinjection-dataset (Accessed on 02 September 2025).
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Mina Malekzadeh, Dheyaa Mohammed Ali Al_Akabi

This work is licensed under a Creative Commons Attribution 4.0 International License.