A Method of SQL Injection Attack Detection Based on Large Language Models
SQL injection attacks are a serious threat to the security of cyberspace. In view of the problems with traditional SQL injection attack detection methods, such as high false positive rates and insufficient generalization, this paper proposes a new detection method based on large language models (LLMs). Through prompt engineering and instruction tuning technologies, a dedicated large language model for SQL injection attack detection is constructed. The experimental results show that the proposed method achieves an accuracy of 99.85% and a false positive rate of 0.26% on general benchmark datasets, which verifies the effectiveness of large language models in the field of SQL injection attack detection.
Authors
- Shenghan Lou (ORCID: https://orcid.org/0000-0001-8826-3160)
- Yingying Zhang (ORCID: https://orcid.org/0000-0002-6950-0906)
- Zutao Jiang (ORCID: https://orcid.org/0000-0002-6787-5499)
- Zhuang Tian (ORCID: https://orcid.org/0000-0002-5689-714X)
- Han Wu (ORCID: https://orcid.org/0009-0003-0884-9041)
- Xingkai Cheng (ORCID: https://orcid.org/0000-0002-6889-611X)
Institutions
- National Computer Network Emergency Response Technical Team/Coordination Center of Chinar (CN)
Publication Details
- Published
- 2024-12-06
- DOI
- https://doi.org/10.1109/cnteie66268.2024.00035
- Primary Topic
- Network Security and Intrusion Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00