journal article·2025Open access

Research on SQL Injection Detection Technology Based on Content Matching and Deep Learning

Yuqi Chen, Guangjun Liang, Qun Wang

Computers, Materials & Continua· Volume 84· Issue 1

Abstract

Structured Query Language (SQL) injection attacks have become the most common means of attacking Web applications due to their simple implementation and high degree of harm. Traditional injection attack detection techniques struggle to accurately identify various types of SQL injection attacks. This paper presents an enhanced SQL injection detection method that utilizes content matching technology to improve the accuracy and efficiency of detection. Features are extracted through content matching, effectively avoiding the loss of valid information, and an improved deep learning model is employed to enhance the detection effect of SQL injections. Considering that grammar parsing and word embedding may conceal key features and introduce noise, we propose training the transformed data vectors by preprocessing the data in the dataset and post-processing the word segmentation based on content matching. We optimized and adjusted the traditional Convolutional Neural Network (CNN) model, trained normal data, SQL injection data, and XSS data, and used these three deep learning models for attack detection. The experimental results show that the accuracy rate reaches 98.35%, achieving excellent detection results.
Source: openalex_inverted_index · Quality: baseline

Research context

OpenAlex topics: Web Data Mining and Analysis · Web Application Security Vulnerabilities · Scientific Computing and Data Management

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

References (27)

Show source-provided references
1. Depth-wise separable convolutions and multi-level pooling for an efficient spatial CNN-based steganalysis10.1109/TIFS.2019.2936913 ↗
2. Research on a high robust detection model for malicious software
3. A diligent survey of SQL injection attacks, detection and evaluation of mitigation techniques
4. Mitigation of SQL injection attacks through machine learning classifier
5. Shielding web data: mitigating SQL injection threats via hashing strategies
6. Securing web applications against SQL injection attacks—a Parameterised Query perspective
7. Detection and analysis of port scanning and SQL injection vulnerabilities with correlating factors in web applications to enhance secure data transmission
8. Feature fusion-based detection of SQL injection and XSS attacks
9. A deep learning method to detect web attacks using a specially designed CNN
10. A CNN-BiLSTM based approach for detection of SQL injection attacks
11. Automatic protection of web applications against SQL injections: an approach based on acunetix, burp suite and SQLMAP
12. Defining code-injection attacks10.1145/2103621.2103678 ↗
13. LsSQLIDP: literature survey on SQL injection detection and prevention techniques
14. AE-net: novel autoencoder-based deep features for SQL injection attack detection10.1109/ACCESS.2023.3337645 ↗
15. Cao X. Research on SQL injection detection based on deep learning [dissertation]. Nanning, China: Guangxi University; 2020. (In Chinese).
16. LSTM-based SQL injection detection method for intelligent transportation system
17. A deep learning approach based on multi-view consensus for SQL injection detection10.1007/s10207-023-00791-y ↗
18. Deep learning in cybersecurity: a hybrid BERT-LSTM network for SQL injection attack detection10.1049/2024/5565950 ↗
19. An effective SQL injection detection model using LSTM for imbalanced datasets10.1016/j.cose.2025.104391 ↗
20. Enhancing machine learning based SQL injection detection using contextualized word embedding
21. Combining regular expressions and machine learning for SQL injection detection in urban computing10.5753/jisa.2024.3799 ↗
22. Detecting SQL injection attack using natural language processing
23. Causal tracing to identify hacking knowledge in large language models
24. A large language model based SQL injection attack detection method
25. A tale of two epidemics: contextual Word2Vec for classifying twitter streams during outbreaks10.1016/j.ipm.2018.10.010 ↗
26. Deep Neural Network-Based SQL injection detection method
27. Zheng · TensorFlow: practical google deep learning framework · 2017 · 141