Netinfo Security ›› 2021, Vol. 21 ›› Issue (7): 43-53.doi: 10.3969/j.issn.1671-1122.2021.07.006

Previous Articles     Next Articles

Research on SQL Injection Attacks Detection Method Based on the Truncated Key Payload

GUO Chun1,2, CAI Wenyan1,2, SHEN Guowei1,2(), ZHOU Xuemei1,2   

  1. 1. College of Computer Science and Technology, Guizhou University, Guiyang 550025, China
    2. Guizhou Provincial Key Laboratory of Software Engineering and Information Security, Guiyang 550025, China
  • Received:2021-03-31 Online:2021-07-10 Published:2021-07-23
  • Contact: SHEN Guowei E-mail:gwshen@gzu.edu.cn

Abstract:

SQL injection attack is one of the common methods used by hackers to attack the database, which poses a great threat to the security of current Web applications. Considering that there are a lot of the same strings between the SQL injection and the normal HTTP statements, it will decrease the discrimination results of these statements. With the analysis of the difference between the SQL injection and the normal HTTP statements, this paper proposes a key payload truncating method based on keyword pairs. This method can truncate the key payloads from SQL injection statements to decrease the number of the same strings with the SQL injection attacks statements. Integrate with natural language processing technology, the truncated payloads, word2vec, and a classification algorithm, this paper constructs a SQL injection attacks detection method based on the truncated key payloads(SDMTKP), and constructs a Web system to test this method. The experimental results show that SDMTKP is better than the method based on the complete statements and word2vec in terms of detection accuracy and detection efficiency.

Key words: SQL injection, truncated key payloads, machine learning

CLC Number: