SQL Injection Detection Based on Lightweight Multi-Head Self-Attention
Applied Sciences · 09.01.2025 · 15 (2) · 571
DOI: 10.3390/app15020571 ↗Kurz gefasst
Fachartikel in der Zeitschrift Applied Sciences, online erschienen am 09.01.2025. Verfasst von Rui-Teng Lo und 2 weiteren Autor:innen. Die Arbeit wurde bisher 15-mal zitiert (Crossref) und nennt 31 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: National Science and Technology Council, Taiwan.
Abstract (Originalsprache)
This paper presents a novel neural network model for the detection of Structured Query Language (SQL) injection attacks for web applications. The model features high detection accuracy, fast inference speed, and low weight size. The model is based on a novel Natural Language Processing (NLP) technique, where a tokenizer for converting SQL queries into tokens is adopted as a pre-processing stage for detection. Only SQL keywords and symbols are considered as tokens for removing noisy information from input queries. Moreover, semantic labels are assigned to tokens for highlighting malicious intentions. For the exploration of correlation among the tokens, a lightweight multi-head self-attention scheme with a position encoder is employed. Experimental results show that the proposed algorithm has high detection performance for SQL injection. In addition, compared to its lightweight NLP counterparts based on self-attention, the proposed algorithm has the lowest weight size and highest inference speed. It consumes only limited computation and storage overhead for web services. In addition, it can even be deployed in the edge devices with low computation capacity for online detection. The proposed algorithm therefore is an effective low-cost solution for SQL injection detection.
Förderung
- National Science and Technology Council, Taiwan
Zitieren
APA
Lo, R., Hwang, W., & Tai, T. (2025). SQL Injection Detection Based on Lightweight Multi-Head Self-Attention. Applied Sciences, 15(2), 571. https://doi.org/10.3390/app15020571
Vancouver
Lo R, Hwang W, Tai T. SQL Injection Detection Based on Lightweight Multi-Head Self-Attention. Applied Sciences. 2025;15(2):571. doi:10.3390/app15020571
BibTeX
@article{Lo2025,
author = {Lo, Rui-Teng and Hwang, Wen-Jyi and Tai, Tsung-Ming},
title = {SQL Injection Detection Based on Lightweight Multi-Head Self-Attention},
journal = {Applied Sciences},
year = {2025},
volume = {15},
number = {2},
pages = {571},
doi = {10.3390/app15020571}
}
EUVIMED