Detecting SQL injection attacks by binary gray wolf optimizer and machine learning algorithms

被引:10
作者
Arasteh, Bahman [1 ,6 ]
Aghaei, Babak [2 ]
Farzad, Behnoud [3 ]
Arasteh, Keyvan [1 ]
Kiani, Farzad [4 ]
Torkamanian-Afshar, Mahsa [5 ]
机构
[1] Istinye Univ, Fac Engn & Nat Sci, Dept Software Engn, Istanbul, Turkiye
[2] Islamic Azad Univ, Malekan Branch, Dept Comp Engn, Malekan, Iran
[3] Seraj Inst, Dept Comp Engn, Tabriz, Azarbaijan, Iran
[4] Fatih Sultan Mehmet Vakif Univ, Data Sci Res & Applicat Ctr VEBIM, Istanbul, Turkiye
[5] Istanbul Topkapi Univ, Fac Engn, Comp Engn Dept, TR-34087 Istanbul, Turkiye
[6] Appl Sci Private Univ, Appl Sci Res Ctr, Amman, Jordan
关键词
Software security; SQL injection attacks; Artificial neural network; Feature selection; Binary gray wolf optimization algorithm; Accuracy;
D O I
10.1007/s00521-024-09429-z
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
SQL injection is one of the important security issues in web applications because it allows an attacker to interact with the application's database. SQL injection attacks can be detected using machine learning algorithms. The effective features should be employed in the training stage to develop an optimal classifier with optimal accuracy. Identifying the most effective features is an NP-complete combinatorial optimization problem. Feature selection is the process of selecting the training dataset's smallest and most effective features. The main objective of this study is to enhance the accuracy, precision, and sensitivity of the SQLi detection method. In this study, an effective method to detect SQL injection attacks has been proposed. In the first stage, a specific training dataset consisting of 13 features was prepared. In the second stage, two different binary versions of the Gray-Wolf algorithm were developed to select the most effective features of the dataset. The created optimal datasets were used by different machine learning algorithms. Creating a new SQLi training dataset with 13 numeric features, developing two different binary versions of the gray wolf optimizer to optimally select the features of the dataset, and creating an effective and efficient classifier to detect SQLi attacks are the main contributions of this study. The results of the conducted tests indicate that the proposed SQL injection detector obtain 99.68% accuracy, 99.40% precision, and 98.72% sensitivity. The proposed method increases the efficiency of attack detection methods by selecting 20% of the most effective features.
引用
收藏
页码:6771 / 6792
页数:22
相关论文
共 29 条
  • [21] Mendonca YVS., 2022, Emerg Sci J, DOI [10.28991/ESJ-2022-SIED-020, DOI 10.28991/ESJ-2022-SIED-020]
  • [22] Grey Wolf Optimizer
    Mirjalili, Seyedali
    Mirjalili, Seyed Mohammad
    Lewis, Andrew
    [J]. ADVANCES IN ENGINEERING SOFTWARE, 2014, 69 : 46 - 61
  • [23] Parvez M, 2015, INT CONF INTERNET, P186, DOI 10.1109/ICITST.2015.7412085
  • [24] Thomas S., 2007, 3rd International Workshop on software engineering for secure systems, P9
  • [25] Tian Wei, 2012, Proceedings of the 2012 IEEE 36th IEEE Annual Computer Software and Applications Conference Workshops (COMPSACW), P589, DOI 10.1109/COMPSACW.2012.108
  • [26] Valeur F, 2005, LECT NOTES COMPUT SC, V3548, P123
  • [27] Wassermann G, SAVCBS 2004 SPECIF V, P70
  • [28] William WG, 2005, P 20 IEEEACM INT C A
  • [29] A pattern-oriented and web-based architecture to support mobile learning software development
    ZadahmadJafarlou, Manouchehr
    Arasteh, Bahman
    YousefzadehFard, Parisa
    [J]. WORLD CONFERENCE ON EDUCATIONAL TECHNOLOGY RESEARCHES-2011, 2011, 28