SQL injection detection algorithm based on a fusion network of syntax and semantic features

In the age of the Internet of Things (IoT), SQL injection (SQLi) attacks have become a major security risk for IoT devices. Traditional SQLi detection methods primarily rely on manually crafted rules, while deep learning-based approaches often solely focus on the semantic features of SQLi, rendering them ineffective against zero-day attacks or disguised SQLi attacks. This paper proposes a method that integrates both semantic and syntax features to detect SQLi. It employs BERT (Bidirectional Encoder Representations from Transformers) to capture semantic features, employs prompt engineering for syntax feature extraction, and adopts a cross-attention mechanism to weightedly fuse these features. Experimental results demonstrate that this method exhibits remarkable superiority in detecting SQLi attacks, achieving an accuracy and F1-Weighted score of 0.999, far surpassing other benchmark methods and showcasing immense potential for practical applications.

Authors

Institutions

Publication Details

Published
2025-05-19
DOI
https://doi.org/10.1117/12.3056913
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

SQL injection detection algorithm based on a fusion network of syntax and semantic features

Baozhan Chen, Huan Ma, Wan Zhang, Dalong Zhang
Network Security and Intrusion Detection
article

SQL injection detection algorithm based on a fusion network of syntax and semantic features

Baozhan Chen, Huan Ma, Wan Zhang, Dalong Zhang
article en

Abstract

In the age of the Internet of Things (IoT), SQL injection (SQLi) attacks have become a major security risk for IoT devices. Traditional SQLi detection methods primarily rely on manually crafted rules, while deep learning-based approaches often solely focus on the semantic features of SQLi, rendering them ineffective against zero-day attacks or disguised SQLi attacks. This paper proposes a method that integrates both semantic and syntax features to detect SQLi. It employs BERT (Bidirectional Encoder Representations from Transformers) to capture semantic features, employs prompt engineering for syntax feature extraction, and adopts a cross-attention mechanism to weightedly fuse these features. Experimental results demonstrate that this method exhibits remarkable superiority in detecting SQLi attacks, achieving an accuracy and F1-Weighted score of 0.999, far surpassing other benchmark methods and showcasing immense potential for practical applications.

Zhengzhou University of Light Industry (CN), Zhengzhou University (CN), First Affiliated Hospital of Zhengzhou University (CN)
Openalex Percentile: Top 89%
Network Security and Intrusion Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.