UniEmbed: A Novel Approach to Detect XSS and SQL Injection Attacks Leveraging Multiple Feature Fusion with Machine Learning Techniques

被引:0
|
作者
Bakir, Rezan [1 ]
机构
[1] Sivas Univ Sci & Technol, Fac Engn & Nat Sci, Dept Comp Engn, Sivas, Turkiye
关键词
Word2vec; FastText; Universal sentence encoder; NLP; XSS attack; SQL injection attacks; Machine learning;
D O I
10.1007/s13369-024-09916-4
中图分类号
O [数理科学和化学]; P [天文学、地球科学]; Q [生物科学]; N [自然科学总论];
学科分类号
07 ; 0710 ; 09 ;
摘要
Web applications are essential in the digital age, but their security vulnerabilities expose sensitive data and organizational integrity to sophisticated attacks. Among the most prevalent and damaging vulnerabilities in web applications are cross-site scripting (XSS) and SQL injection attacks. In this paper, we introduce UniEmbed, a unified approach for detecting XSS and SQL injection attacks using machine learning classifiers. This novel approach leverages natural language processing techniques, combining features from Word2Vec, the Universal Sentence Encoder (USE), and FastText to extract meaningful data from web applications. Extensive experiments were conducted using various machine learning classifiers on three benchmark datasets to evaluate the performance of the unified detection approach, demonstrating exceptional results. Experimental results demonstrate the superior performance of the MLP classifier. For the XSS attack dataset, the MLP classifier achieved an accuracy of 0.9982 and an F1-score of 0.9983, with minimal false positives and false negatives. Similarly, the hard voting classifier yielded the same outstanding results. For SQL injection attacks, the MLP classifier maintained exceptional performance, achieving an F1-score of 0.9980 and accuracy rates exceeding 0.9980 across two datasets. The classifier effectively minimized false positives and false negatives. The ROC curves further corroborate the effectiveness of the proposed method, indicating high true positive rates and low false positive rates. Furthermore, comparative analysis showed that the UniEmbed method consistently outperformed individual feature extraction methods across all classifiers. These findings indicate that the proposed UniEmbed method, particularly when combined with the MLP classifier, is highly effective in detecting both XSS and SQL injection attacks, making it a promising approach for enhancing web application security.
引用
收藏
页数:14
相关论文
共 18 条
  • [1] An Ensemble Based Deep Learning Framework to Detect and Deceive XSS and SQL Injection Attacks
    Bin Shahid, Waleed
    Aslam, Baber
    Abbas, Haider
    Afzal, Hammad
    Rashid, Imran
    INTELLIGENT INFORMATION AND DATABASE SYSTEMS, ACIIDS 2022, PT I, 2022, 13757 : 183 - 195
  • [2] Detection of SQL Injection Attacks: A Machine Learning Approach
    Hasan, Musaab
    Balbahaith, Zayed
    Tarique, Mohammed
    2019 INTERNATIONAL CONFERENCE ON ELECTRICAL AND COMPUTING TECHNOLOGIES AND APPLICATIONS (ICECTA), 2019,
  • [3] A Novel Approach Exploiting Machine Learning to Detect SQLi Attacks
    Ashlam, Ahmed Abadulla
    Badii, Atta
    Stahl, Frederic
    PROCEEDINGS OF THE 2022 5TH INTERNATIONAL CONFERENCE ON ADVANCED SYSTEMS AND EMERGENT TECHNOLOGIES IC_ASET'2022), 2022, : 513 - 517
  • [4] A Novel Approach to Detect Phishing Attacks using Binary Visualisation and Machine Learning
    Barlow, Luke
    Bendiab, Gueltoum
    Shiaeles, Stavros
    Savage, Nick
    2020 IEEE WORLD CONGRESS ON SERVICES (SERVICES), 2020, : 177 - 182
  • [5] Comparison of Multiple Feature Selection Techniques for Machine Learning-Based Detection of IoT Attacks
    Viet Anh Phan
    Jerabek, Jan
    Malina, Lukas
    19TH INTERNATIONAL CONFERENCE ON AVAILABILITY, RELIABILITY, AND SECURITY, ARES 2024, 2024,
  • [6] A Novel Fusion Approach to Detect Brain Tumor Using Machine Learning for MRI Images
    Kaliannan, Srisabarimani
    Rengaraj, Arthi
    Daniel, Alex Prabhu
    TRAITEMENT DU SIGNAL, 2022, 39 (04) : 1363 - 1370
  • [7] Zoish: A Novel Feature Selection Approach Leveraging Shapley Additive Values for Machine Learning Applications in Healthcare
    Sadaei, Hossein Javedani
    Loguercio, Salvatore
    Neyestanak, Mahdi Shafiei
    Torkamani, Ali
    Prilutsky, Daria
    BIOCOMPUTING 2024, PSB 2024, 2024, : 81 - 95
  • [8] A Novel Approach for Best Parameters Selection and Feature Engineering to Analyze and Detect Diabetes: Machine Learning Insights
    Ali, Md Shahin
    Islam, Md Khairul
    Das, A. Arjan
    Duranta, D. U. S.
    Haque, Mst. Farija
    Rahman, Md Habibur
    BIOMED RESEARCH INTERNATIONAL, 2023, 2023
  • [9] A Multiple Feature Category Data Mining and Machine Learning Approach to Characterize and Detect Health Misinformation on Social Media
    Safarnejad, Lida
    Xu, Qian
    Ge, Yaorong
    Chen, Shi
    IEEE INTERNET COMPUTING, 2021, 25 (05) : 43 - 51
  • [10] A Novel Feature Fusion Approach for Classification of Motor Imagery EEG Based on Hierarchical Extreme Learning Machine
    Duan, Lijuan
    Lian, Zhaoyang
    Qiao, Yuanhua
    Chen, Juncheng
    Miao, Jun
    Li, Mingai
    COGNITIVE COMPUTATION, 2024, 16 (02) : 566 - 580