Classification of SQL Injection Attacks using ensemble learning SVM and Naïve Bayes
Authors:
- 9 August 2023
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 230-236
Abstract
The escalation in website usage has brought forth a concurrent surge in cybercrime threats, with SQL Injection representing one of the most prevalent and detrimental forms of injection attacks plaguing systems and websites. SQL Injection attacks manifest in various types, each potentially yielding distinct repercussions contingent on the injected query’s impact on the targeted systems or websites. In this research endeavor, we harnessed machine learning algorithms, specifically the Support Vector Machine (SVM) and Naïve Bayes, to discern and thwart SQL injection attempts. Our dataset amalgamated two primary sources of data: one was culled from Kaggle, while the other consisted of payloads employed in penetration testing, thoughtfully annotated across five classes encompassing error-based, union-based, Boolean-based, time-based, and benign injections. The results gleaned from our experiments showcased the Support Vector Machine’s remarkable performance, boasting an impressive accuracy rate of 93.98%. In contrast, the Naïve Bayes algorithm, while still effective, registered a somewhat lower accuracy of 73.50%. However, the real breakthrough emerged when we employed ensemble learning, skillfully amalgamating both SVM and Naïve Bayes methods, resulting in a notably enhanced accuracy rate of 92.9%. This achievement underscores the significance of utilizing diverse machine learning techniques in tandem to fortify our defenses against the multifaceted and ever-evolving landscape of SQL Injection attacks, ultimately fortifying the security of websites and systems in the face of mounting cyber threats.Keywords
This publication has 12 references indexed in Scilit:
- A systematic review of detection and prevention techniques of SQL injection attacksInformation Security Journal: A Global Perspective, 2021
- Content-based fake news classification through modified voting ensembleJournal of Information and Telecommunication, 2021
- SQL Injection Attacks Prevention System Technology: ReviewAsian Journal of Research in Computer Science, 2021
- An ensemble classification-based approach to detect attack level of SQL injectionsJournal of Information Security and Applications, 2021
- SQL Injection: Classification and Prevention2021
- Machine Learning Applications based on SVM Classification A ReviewQubahan Academic Journal, 2021
- Hybrid method integrating SQL-IF and Naïve Bayes for SQL injection attack avoidanceJournal of Engineering and Applied Technology, 2021
- Genetic Algorithm and Ensemble Learning Aided Text Classification using Support Vector MachinesInternational Journal of Advanced Computer Science and Applications, 2021
- A novel technique to prevent SQL injection and cross-site scripting attacks using Knuth-Morris-Pratt string match algorithmEURASIP Journal on Information Security, 2020
- Kernel Functions of SVM: A Comparison and Optimal Solution2018