Enhancing the Performance of SQL Injection Attack Detection through Probabilistic Neural Networks
Source abstract
Abstract
SQL injection attack is considered one of the most dangerous vulnerabilities exploited to leak sensitive information, gain unauthorized access, and cause financial loss to individuals and organizations. Conventional defense approaches use static and heuristic methods to detect previously known SQL injection attacks. Existing research uses machine learning techniques that have the capability of detecting previously unknown and novel attack types. Taking advantage of deep learning to improve detection accuracy, we propose using a probabilistic neural network (PNN) to detect SQL injection attacks. To achieve the best value in selecting a smoothing parament, we employed the BAT algorithm, a metaheuristic algorithm for optimization. In this study, a dataset consisting of 6000 SQL injections and 3500 normal queries was used. Features were extracted based on tokenizing and a regular expression and were selected using Chi-Square testing. The features used in this study were collected from the network traffic and SQL queries. The experiment results show that our proposed PNN achieved an accuracy of 99.19% with a precision of 0.995%, a recall of 0.981%, and an F-Measure of 0.928% when employing a 10-fold cross-validation compared to other classifiers in different scenarios.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Web Application Security Vulnerabilities · Advanced Malware Detection Techniques · Network Security and Intrusion Detection
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Management Information Systems, School of Business, King Faisal University, Al-Ahsa 31982, Saudi Arabia
Faculty of Computer Science & Information Technology, AlBaha Al-Baha University, Al-Baha 65779, Saudi Arabia
Funding
King Faisal University
References (35)
Show source-provided references
1. Defending Malicious Script Attacks Using Machine Learning Classifiers10.1155/2017/5360472 ↗
2. (2023, March 01). OWASP: Top 10 Web Application Security Risks. Available online: https://owasp.org/www-project-top-ten/.
3. (2023, March 01). SQL Injection Attacks Rise Over 300% in 10 Years, Imperva. Available online: https://www.imperva.com/blog/sql-injection-attacks-rise-over-300-in-10-years/.
4. Khan, N., Abdullah, J., and Khan, A.S. (2015, January 4–5). Towards vulnerability prevention model for web browser using interceptor approach. Proceedings of the 2015 9th International Conference on IT in Asia (CITA), Sarawak, Malaysia.10.1109/CITA.2015.7349842 ↗
5. Jain, V., Gaur, M.S., Laxmi, V., and Mosbah, M. (2016, January 16–20). Detection of SQLite Database Vulnerabilities in Android Apps. Proceedings of the Information Systems Security: 12th International Conference, ICISS 2016, Jaipur, India.10.1007/978-3-319-49806-5_31 ↗
6. SQL Injection Attacks Prevention System Technology: Review
7. Aldhyani, T.H.H., and Alkahtani, H. (2023). Cyber Security for Detecting Distributed Denial of Service Attacks in Agriculture 4.0: Deep Learning Model. Mathematics, 11.10.3390/math11010233 ↗
8. Aldhyani, T.H.H., and Alkahtani, H. (2022). Artificial Intelligence Algorithm-Based Economic Denial of Sustainability Attack Detection Systems: Cloud Computing Environments. Sensors, 22.10.3390/s22134685 ↗
9. Su, G., Wang, F., and Li, Q. (2018, January 23–25). Research on SQL Injection Vulnerability Attack model. Proceedings of the 5th IEEE International Conference on Cloud Computing and Intelligence Systems (CCIS), Nanjing, China.10.1109/CCIS.2018.8691148 ↗
10. A novel method for SQL injection attack detection based on removing SQL query attribute values10.1016/j.mcm.2011.01.050 ↗
11. Deep learning in drug discovery: Opportunities, challenges and future prospects10.1016/j.drudis.2019.07.006 ↗
12. Machine learning techniques applied to cybersecurity10.1007/s13042-018-00906-1 ↗
13. Alkahtani, H., and Aldhyani, T.H.H. (2022). Artificial Intelligence Algorithms for Malware Detection in Android-Operated Mobile Devices. Sensors, 22.10.3390/s22062268 ↗
14. Yavanoglu, O., and Aydos, M. (2017, January 11–14). A review on cyber security datasets for machine learning algorithms. Proceedings of the 2017 IEEE International Conference on Big Data (Big Data), Boston, MA, USA.10.1109/BigData.2017.8258167 ↗
15. Hybrid Feature Classification Approach for Malicious JavaScript Attack Detection using Deep Learning
16. MNN-XSS: Modular Neural Network Based Approach for XSS Attack Detection
17. A Dynamic Method of Detecting Malicious Scripts Using Classifiers10.1166/asl.2017.7374 ↗
18. Alkahtani, H., and Aldhyani, T.H.H. (2022). Developing Cybersecurity Systems Based on Machine Learning and Deep Learning Algorithms for Protecting Food Security Systems: Industrial Control Systems. Electronics, 11.10.3390/electronics11111717 ↗
19. A Taxonomy Study of XSS Vulnerabilities
20. Detection of structure query language injection vulnerability in web driven database application10.1002/cpe.5936 ↗
21. Joshi, A., and Geetha, V. (2014, January 10–11). SQL Injection detection using machine learning. Proceedings of the 2014 International Conference on Control, Instrumentation, Communication and Computational Technologies (ICCICCT), Kanyakumari District, India.10.1109/ICCICCT.2014.6993127 ↗
22. Kamtuo, K., and Soomlek, C. (July, January 29). Machine Learning for SQL injection prevention on server-side scripting. Proceedings of the 2016 International Computer Science and Engineering Conference (ICSEC), London, UK.10.1109/ICSEC.2016.7859950 ↗
23. SQL injection detection using REGEX classifier
24. A deep learning approach for detecting malicious JavaScript code10.1002/sec.1441 ↗
25. CODDLE: Code-Injection Detection With Deep Learning10.1109/ACCESS.2019.2939870 ↗
26. Probabilistic neural network training procedure based on Q(0)-learning algorithm in medical data classification10.1007/s10489-014-0562-9 ↗
27. (2023, January 05). Libinjection-Python. Available online: https://pypi.org/project/libinjection-python/.
28. (2023, January 05). Regular Expression Operations. Available online: https://docs.python.org/3/library/re.html.
29. Competitive probabilistic neural network10.3233/ICA-170540 ↗
30. Chang, D.T. (2021). Probabilistic Deep Learning with Probabilistic Neural Networks and Deep Probabilistic Models. arXiv.
31. Fault diagnosis approach for photovoltaic arrays based on unsupervised sample clustering and probabilistic neural network model10.1016/j.solener.2018.10.054 ↗
32. Yang, X.S. (2010). Nature Inspired Cooperative Strategies for Optimization, Springer.
33. Estimation of the Smoothing Parameter in Probabilistic Neural Network Using Evolutionary Algorithms10.1007/s13369-019-04227-5 ↗
34. Zhang, M., Cui, Z., Chang, Y., Ren, Y., Cai, X., and Wang, H. (2018). International Conference on Intelligence Science, Springer.
35. (2023, January 05). PyTorch Machine Learning Framework. Available online: https://pytorch.org.