SQL detection method and system based on neural network model and Hash matching
A neural network model and detection method technology, applied in the field of SQL detection method and system based on neural network model and hash matching, to achieve the effect of accurate abnormal SQL detection effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0032] Embodiments of the present invention provide a SQL detection method based on a neural network model and hash match, such as figure 1 As shown, including:
[0033] Step S1: Transform the acquired SQL statement into the SQL statement template, extract the feature vector with the preset feature to extract the characteristic vector, which is used to characterize the SQL template statement normally or abnormally, input the feature vector into the nerve. Training it in the network model will be used as a SQL detection model to identify whether the SQL statement is abnormal. The label can be 0 or 1, which can be used to represent normal, 1 means an abnormality, and the preset feature extraction model can be a phrase model (Bag of Words, BOW), only as an example, not limited, or For other feature extraction model, the embodiment of the present invention is illustrated as a phrase model.
[0034] The process of converting the SQL statement into a statement template, for example:
[...
Embodiment 2
[0074] Embodiments of the present invention provide a SQL detection system based on neural network model and haveh matches, such as Figure 5 As shown, including:
[0075] Model Training Module 1, for converting the acquired SQL statement into a SQL statement template, extracting a feature vector with a set of marked SQL statement template collections by preset feature, which is used to characterize normal or abnormalities of SQL template statements. Vector input to the neural network model, which will be trained, and the training good neural network model is used as the SQL detection model for identifying whether the SQL statement is abnormal; this module performs the method described in Example 1, Take it again.
[0076] Hash Table Building Module 2, used to build a hash table with a set of marking SQL statement template set, the key value in the hash table is used to characterize the SQL statement template is normal or exception; the module performs the steps in Example 1 The me...
Embodiment 3
[0080] The embodiment of the present invention provides a computer device, such as Figure 6 As shown,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, The communication bus 402 is used to implement connection communication between these components. The communication interface 403 can include a display, a keyboard (Keyboard), and optional communication interface 403 can also include a standard wired interface, a wireless interface. Memory 404 can be a high speed RAM memory (Ramdom Access Memory, volatile random access memory), or a non-Volatile Memory, such as at least one disk memory. Memory 404 may also be at least one storage device located away from the processor 401. The processor 401 can perform the SQL detection method based on the neural network model and the hash matched SQL detection. The memory 404 stores a set of program code, and the processor 401 calls the program code stored in the memory 404 for performing the SQL detection method ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


