Injection attack detection method and device, equipment, storage medium and product
By decrypting the encrypted string of camera information uploaded by the terminal device and performing data integrity verification, it solves the problem that existing technology cannot determine that data has been replaced, and achieves effective prevention of camera video injection attacks and protection of user information.
Patent Information
- Application Number
- CN202410288742.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-13
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing injection attack detection methods cannot effectively determine whether the data passed by the client has been replaced, and cannot prevent camera video injection attacks.
By obtaining the image data to be detected and the encrypted string of camera information uploaded by the terminal device, the public key in the APP camera exclusive key pair is used to decrypt the camera information, and the data integrity is verified to determine the injection attack detection result.
Effectively prevent camera video injection attacks, protect users' personal privacy and sensitive information from malicious attackers, and improve business security.
Smart Images

Figure CN118802283A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information security technology, and in particular to an injection attack detection method, device, equipment, storage medium and computer program product. Background Art
[0002] In recent years, face recognition technology has been rapidly applied in all aspects of society. While face recognition brings convenience, it also poses challenges to information security. At present, the black industry can bypass face liveness detection and other verification mechanisms through camera video injection attacks. That is, the black industry can obtain face videos recorded by real people through network channels, use root or Xposed framework to hook the system camera API to replace the system camera data to bypass face liveness detection and other verification mechanisms.
[0003] The existing security measures to prevent this kind of attack mainly include: 1. Check whether the device is rooted in the APP; 2. Check whether the Xposed framework is running; 3. Check whether dynamic debugging is in progress, so injection. However, the above-mentioned related technologies only provide detection and protection. For attack behaviors that can bypass the above protection measures, it is impossible to determine whether the data sent by the client has been replaced. Summary of the invention
[0004] The main purpose of the present invention is to provide an injection attack detection method, device, equipment, storage medium and computer program product, aiming to solve the technical problem that the existing injection attack detection method only performs detection and protection, and cannot determine whether the data transmitted by the client is the data that has been replaced for the attack behavior that can bypass the above protection measures.
[0005] To achieve the above object, the present invention provides an injection attack detection method, which is applied to a server and includes:
[0006] Obtain the image data to be detected uploaded by the terminal device and the camera information encrypted string corresponding to the image data to be detected;
[0007] Decrypting the camera information encrypted string based on a public key in an APP camera-specific key pair, where the public key in the APP camera-specific key pair is sent in advance by the terminal device;
[0008] When the decryption is successful, data integrity verification is performed based on the information obtained by decryption to obtain the injection attack detection result of the image data to be detected.
[0009] Optionally, when the decryption is successful, performing data integrity verification according to the information obtained by decryption to obtain the injection attack detection result of the image data to be detected includes:
[0010] When decryption is successful, the identification information of the APP, the identification information of the terminal, the scene identification value corresponding to the usage scene, the usage time, the camera hardware encoding information, the camera opening and closing timestamp, the resolution of the camera configuration, the frame rate of the video recording, the file size and the file MD5 are obtained according to the information obtained by decryption;
[0011] Calculate a first verification parameter according to the identification information of the APP, the identification information of the terminal, the scene identification value corresponding to the usage scene, the usage time, the camera hardware encoding information, the camera opening and closing timestamp, the resolution of the camera configuration, the frame rate of the video recording, the file size, and the file MD5;
[0012] Sending an identity authentication request to the terminal device, and receiving a second verification parameter fed back by the terminal device according to the identity authentication request;
[0013] It is determined whether the first verification parameter is equal to the second verification parameter, and an injection attack detection result of the image data to be detected is generated according to the determination result.
[0014] In addition, to achieve the above-mentioned purpose, the present invention also proposes an injection attack detection method, which is applied to a terminal device and includes:
[0015] After receiving a camera permission request initiated by an APP when using the camera function, generate an APP camera-specific key pair according to the authorization information corresponding to the camera permission request;
[0016] Send the public key in the APP camera exclusive key pair to the server;
[0017] When it is detected that the APP uses the camera to shoot, the image data to be detected is obtained, and the usage of the camera is encrypted based on the private key in the APP camera-specific key pair to obtain the camera information encryption string corresponding to the image data to be detected;
[0018] The image data to be detected and the camera information encrypted string corresponding to the image data to be detected are sent to the server, so that the server performs injection attack detection on the detection image data according to the camera information encrypted string and the public key in the APP camera exclusive key pair.
[0019] Optionally, after receiving a camera permission request initiated when the APP uses a camera function, generating an APP camera-specific key pair according to authorization information corresponding to the camera permission request includes:
[0020] After receiving a camera permission request initiated by the APP when using the camera function, parsing the authorization information corresponding to the camera permission request to obtain the usage time and usage scenario of the APP using the camera function;
[0021] Randomly selecting a random number from an elliptic curve of a preset finite field, and calculating an equivalent public parameter based on the random number, a base point of the elliptic curve, the usage time, and a scenario identification value corresponding to the usage scenario;
[0022] Generate an APP camera exclusive key pair according to the equivalent public parameters, the usage time and the scene identification value corresponding to the usage scene.
[0023] Optionally, when detecting that the APP activates the camera for shooting, obtaining the image data to be detected, and encrypting the usage of the camera based on the private key in the APP camera-specific key pair to obtain the camera information encryption string corresponding to the image data to be detected, including:
[0024] When it is detected that the APP has activated the camera to take a photo, the image data to be detected is obtained;
[0025] The camera hardware encoding information when the monitoring app calls up the camera for shooting, the camera opening and closing timestamp, the resolution of the camera configuration, the frame rate of the video recording, the file size and the file MD5;
[0026] When the camera is turned off, the camera hardware encoding information, the camera opening and closing timestamp, the resolution of the camera configuration, the frame rate of the video recording, the file size and the file MD5 are encrypted based on the private key in the APP camera exclusive key pair to obtain the camera information encryption string corresponding to the image data to be detected.
[0027] In addition, to achieve the above-mentioned purpose, the present invention further proposes an injection attack detection device, which is applied to a server and includes:
[0028] An acquisition module, used to acquire the image data to be detected uploaded by the terminal device and the camera information encrypted string corresponding to the image data to be detected;
[0029] A decryption module, used to decrypt the camera information encrypted string based on a public key in an APP camera exclusive key pair, where the public key in the APP camera exclusive key pair is sent in advance by the terminal device;
[0030] The verification module is used to perform data integrity verification based on the information obtained by decryption when the decryption is successful, and obtain the injection attack detection result of the image data to be detected.
[0031] In addition, to achieve the above-mentioned purpose, the present invention further proposes an injection attack detection device, which is applied to a terminal device and includes:
[0032] A generation module, configured to generate an APP camera exclusive key pair according to the authorization information corresponding to the camera permission request after receiving a camera permission request initiated by the APP when using the camera function;
[0033] A sending module, used to send the public key in the APP camera exclusive key pair to the server;
[0034] The encryption module is used to obtain the image data to be detected when it is detected that the APP calls up the camera to shoot, and encrypt the usage of the camera based on the private key in the APP camera-specific key pair to obtain the camera information encryption string corresponding to the image data to be detected;
[0035] The sending module is also used to send the image data to be detected and the camera information encrypted string corresponding to the image data to be detected to the server, so that the server performs injection attack detection on the detection image data according to the camera information encrypted string and the public key in the APP camera exclusive key pair.
[0036] In addition, to achieve the above-mentioned purpose, the present invention also proposes an injection attack detection device, which includes a memory, a processor, and an injection attack detection program stored in the memory and executable on the processor, and the injection attack detection program is configured to implement the injection attack detection method described above.
[0037] In addition, to achieve the above-mentioned purpose, the present invention further proposes a storage medium, on which an injection attack detection program is stored, and when the injection attack detection program is executed by a processor, the injection attack detection method as described above is implemented.
[0038] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer program product, which includes an injection attack detection program, and when the injection attack detection program is executed by a processor, the injection attack detection method as described above is implemented.
[0039] The present invention discloses obtaining the encrypted character string of the image data to be detected uploaded by the terminal device and the camera information corresponding to the image data to be detected, decrypting the encrypted character string of the camera information based on the public key in the APP camera exclusive key pair, wherein the public key in the APP camera exclusive key pair is sent in advance by the terminal device, and when the decryption is successful, performing data integrity verification according to the information obtained by decryption, and obtaining the injection attack detection result of the image data to be detected; since the present invention utilizes the terminal device to encrypt the camera usage information, the server determines whether the camera product has been tampered with according to the encrypted information provided by the terminal device, thereby being able to effectively prevent camera video injection attacks, protect the user's personal privacy and sensitive information from being violated by malicious attackers, and further improve business security. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a structural diagram of an injection attack detection device in a hardware operating environment involved in an embodiment of the present invention;
[0041] Figure 2 This is a flow chart of the first embodiment of the injection attack detection method of the present invention;
[0042] Figure 3 This is a flow chart of a second embodiment of the injection attack detection method of the present invention;
[0043] Figure 4 This is a flow chart of a third embodiment of the injection attack detection method of the present invention;
[0044] Figure 5 This is a flow chart of a fourth embodiment of the injection attack detection method of the present invention;
[0045] Figure 6 This is an interactive diagram of an embodiment of an injection attack detection method of the present invention;
[0046] Figure 7 It is a structural block diagram of an embodiment of an injection attack detection device of the present invention;
[0047] Figure 8 This is a structural block diagram of another embodiment of the injection attack detection device of the present invention.
[0048] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0049] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0050] Reference Figure 1 , Figure 1The figure is a schematic diagram of the structure of an injection attack detection device in a hardware operating environment involved in an embodiment of the present invention.
[0051] like Figure 1 As shown, the injection attack detection device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), and the user interface 1003 may also include a standard wired interface and a wireless interface. The wired interface of the user interface 1003 may be a USB interface in the present invention. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable memory (Non-volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0052] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the injection attack detection device, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.
[0053] like Figure 1 As shown, the memory 1005 identified as a computer storage medium may include an operating system, a network communication module, a user interface module, and an injection attack detection program.
[0054] exist Figure 1 In the injection attack detection device shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the user device; the injection attack detection device calls the injection attack detection program stored in the memory 1005 through the processor 1001, and executes the injection attack detection method provided by the embodiment of the present invention.
[0055] Based on the above hardware structure, an embodiment of the injection attack detection method of the present invention is proposed.
[0056] Reference Figure 2 , Figure 2 The flowchart of the first embodiment of the injection attack detection method of the present invention is shown in FIG.
[0057] In a first embodiment, the injection attack detection method is applied to a server, and the injection attack detection method includes:
[0058] Step S10: Acquire the image data to be detected uploaded by the terminal device and the encrypted character string of camera information corresponding to the image data to be detected.
[0059] It should be noted that the execution subject of this embodiment may be a server with data processing, network communication and program running functions, or other electronic devices that can achieve the same or similar functions, and this embodiment does not impose any restrictions on this.
[0060] It is understandable that after the video or photo is finished, the APP transmits the video / picture (i.e., the image data to be detected) to the server, and at the same time transmits the encrypted string of camera information to the server.
[0061] Step S20: decrypting the camera information encrypted string based on the public key in the APP camera exclusive key pair, where the public key in the APP camera exclusive key pair is sent in advance by the terminal device.
[0062] It should be understood that the server uses the public key to decrypt the camera information encryption string and conducts judgment analysis on the video / picture to determine whether the video / picture has been tampered with.
[0063] Step S30: When the decryption is successful, data integrity verification is performed based on the information obtained by decryption to obtain the injection attack detection result of the image data to be detected.
[0064] It should be understood that after receiving the encrypted string, the server first decrypts the encrypted string based on the pre-stored public key; if the decryption is successful, the data integrity verification is performed in a preset manner. On the contrary, if the decryption using the public key fails, it is considered that the file has been tampered with.
[0065] In this embodiment, the method of obtaining the image data to be detected uploaded by the terminal device and the camera information encrypted string corresponding to the image data to be detected is disclosed, and the camera information encrypted string is decrypted based on the public key in the APP camera exclusive key pair. The public key in the APP camera exclusive key pair is sent in advance by the terminal device. When the decryption is successful, the data integrity verification is performed according to the information obtained by decryption to obtain the injection attack detection result of the image data to be detected. Since the present invention uses the terminal device to encrypt the camera usage information, the server determines whether the camera product has been tampered with according to the encrypted information provided by the terminal device, thereby effectively preventing the camera video injection attack, protecting the user's personal privacy and sensitive information from being violated by malicious attackers, and thus improving business security.
[0066] Reference Figure 3 , Figure 3This is a flow chart of the second embodiment of the injection attack detection method of the present invention. Figure 2 The first embodiment shown provides a second embodiment of the injection attack detection method of the present invention.
[0067] In the second embodiment, the step S30 includes:
[0068] Step S301: When the decryption is successful, obtain the identification information of the APP, the identification information of the terminal, the scene identification value corresponding to the usage scene, the usage time, the camera hardware encoding information, the camera opening and closing timestamp, the resolution of the current camera configuration, the frame rate of the video recording, the file size and the file MD5 according to the information obtained by decryption.
[0069] It should be understood that, in order to improve the accuracy of data integrity verification, in this embodiment, the injection attack detection result of the image data to be detected is generated according to whether the first verification parameter is equal to the second verification parameter.
[0070] Step S302: Calculate the first verification parameter according to the identification information of the APP, the identification information of the terminal, the scene identification value corresponding to the usage scene, the usage time, the camera hardware encoding information, the camera opening and closing timestamp, the resolution of the camera configuration, the frame rate of the video recording, the file size and the file MD5.
[0071] Step S303: Send an identity authentication request to the terminal device, and receive a second verification parameter fed back by the terminal device according to the identity authentication request.
[0072] Step S304: determining whether the first verification parameter is equal to the second verification parameter, and generating an injection attack detection result of the image data to be detected according to the determination result.
[0073] For ease of understanding, the following examples are provided, but are not intended to limit the present invention. In one example, when the encrypted string is successfully decrypted based on the pre-stored public key, the specific method of performing data integrity verification in a preset manner is as follows:
[0074] (1) The server calculates the first verification parameter V1 according to the decrypted information in the following manner:
[0075] λ1=ID APP +M+[MG+R1G](ID terminal *G)+O+PU APP [h1(ID APP ||((U scene ||T)))]
[0076] M=h1(U scene||T)
[0077] O={B,t,Ir,Fr,size,MD5}
[0078] V1=h1(λ1||ID terminal )
[0079] Where V1 is the first verification parameter, ID APP It is the identification information of APP, ID terminal is the identification information of the terminal device, U scene is the scene identification value of the usage scene when the APP uses the camera function, T is the usage time when the APP uses the camera function, R1 is a random number randomly selected from the preset finite field elliptic curve, G is the base point of the elliptic curve, PU APP is the public key in the APP camera exclusive key pair, h1() is the preset hash function, B is the camera hardware encoding information, t is the camera opening and closing timestamp, Ir is the resolution of the camera configuration this time, Fr is the frame rate of the video recording, size is the file size, and MD5 is the file MD5.
[0080] (2) The server sends an identity authentication request to the terminal device. After receiving the identity authentication request, the terminal device calculates the second authentication parameter in the following manner and returns the second authentication parameter to the server:
[0081] λ2=ID terminal +M+[MG+R1G](ID APP *G)+O+PU APP [h1(ID terminal ||((U scene ||T)))]
[0082] M=h1(U scene ||T)
[0083] O={B,t,Ir,Fr,size,MD5}
[0084] V2=h1(λ2||ID APP )
[0085] Where V2 is the second verification parameter, ID APP It is the identification information of the APP, ID terminal is the identification information of the terminal device, U scene is the scene identification value of the usage scene when the APP uses the camera function, T is the usage time when the APP uses the camera function, R1 is a random number randomly selected from the preset finite field elliptic curve, G is the base point of the elliptic curve, PU APPis the public key in the APP camera exclusive key pair, h1() is the preset hash function, B is the camera hardware encoding information, t is the camera opening and closing timestamp, Ir is the resolution of the camera configuration this time, Fr is the frame rate of the video recording, size is the file size, and MD5 is the file MD5.
[0086] (3) After receiving the second verification parameter fed back by the terminal device, the server compares whether the second verification parameter is equal to the first verification parameter.
[0087] (4) When the first verification parameter is equal to the second verification parameter, it means that the video / image has not been tampered with
[0088] In this embodiment, the injection attack detection result of the image data to be detected is generated according to whether the first verification parameter is equal to the second verification parameter, thereby improving the accuracy of data integrity verification.
[0089] In addition, refer to Figure 4 , Figure 4 The flowchart of the third embodiment of the injection attack detection method of the present invention is shown in FIG.
[0090] In a third embodiment, the injection attack detection method is applied to a terminal device, and the injection attack detection method includes:
[0091] Step S01: after receiving a camera permission request initiated by an APP when using a camera function, generate an APP camera-specific key pair according to the authorization information corresponding to the camera permission request.
[0092] It should be noted that the execution subject of this embodiment can be a terminal device with data processing, network communication and program running functions, such as a mobile phone, a computer, etc., or other electronic devices that can achieve the same or similar functions, and this embodiment does not impose any restrictions on this.
[0093] It should be understood that in this embodiment, when the APP uses the camera function, it can send a camera permission application request to the user, wherein the camera permission application request includes the identification information of the APP, and the usage scenario and usage time when the APP uses the camera function. In actual applications, when the APP sends the camera permission application request to the user, it can be sent through a pop-up window or other means.
[0094] After receiving the camera permission application request, the user can view the usage scenarios, usage time and other information when the APP uses the camera function. If the user agrees that the APP uses the camera in accordance with the application usage scenarios and usage time (that is, the authorization information corresponding to the camera permission request), the APP can be authorized to use the camera function. Continuing with the above example, assuming that the APP sends the camera permission application request to the user through a pop-up window, the user can click in the "Agree to Authorization" area of the pop-up window to authorize the APP to use the camera function.
[0095] Step S02: Send the public key in the APP camera-specific key pair to the server.
[0096] It can be understood that when it is monitored that the user agrees to the APP's application for camera permissions, the terminal device will simultaneously create a dedicated key pair for this APP camera in the system key library and return the public key to the APP. The APP will transmit the public key string to the server, and the server will store the public key of this APP.
[0097] Step S03: When it is detected that the APP activates the camera for shooting, the image data to be detected is obtained, and the usage of the camera is encrypted based on the private key in the APP camera-specific key pair to obtain the camera information encryption string corresponding to the image data to be detected.
[0098] It should be understood that when the APP uses the API to call the system camera, the terminal device monitors the usage of the camera, including the camera hardware encoding information, camera opening and closing timestamps, the resolution of the camera configuration, the frame rate of the video recording, the file size, the file MD5, etc. When the camera is turned off, the private key of the APP camera-exclusive key pair is used to encrypt the above information to generate an encrypted string.
[0099] Step S04: Send the image data to be detected and the camera information encrypted string corresponding to the image data to be detected to the server, so that the server performs injection attack detection on the detection image data according to the camera information encrypted string and the public key in the APP camera exclusive key pair.
[0100] It is understandable that after the video or photo is finished, the APP transmits the video / picture to the server, and at the same time transmits the camera information encrypted string to the server. The server uses the public key to decrypt the camera information encrypted string and analyzes the video / picture to determine whether the video / picture has been tampered with.
[0101] In this embodiment, after receiving a camera permission request initiated when an APP uses a camera function, an APP camera-specific key pair is generated according to the authorization information corresponding to the camera permission request, and the public key in the APP camera-specific key pair is sent to the server. When it is detected that the APP calls up the camera for shooting, the image data to be detected is obtained, and the camera usage is encrypted based on the private key in the APP camera-specific key pair to obtain a camera information encryption string corresponding to the image data to be detected, and the image data to be detected and the camera information encryption string corresponding to the image data to be detected are sent to the server, so that the server performs injection attack detection on the detection image data according to the camera information encryption string and the public key in the APP camera-specific key pair; since the present invention uses a terminal device to encrypt camera usage information, the server determines whether the camera product has been tampered with according to the encrypted information provided by the terminal device, thereby effectively preventing camera video injection attacks, protecting users' personal privacy and sensitive information from malicious attackers, and thus improving business security.
[0102] Reference Figure 5 , Figure 5 This is a flow chart of the fourth embodiment of the injection attack detection method of the present invention. Figure 4 The third embodiment shown provides a fourth embodiment of the injection attack detection method of the present invention.
[0103] In the fourth embodiment, the step S01 includes:
[0104] Step S011: After receiving a camera permission request initiated by an APP when using a camera function, the authorization information corresponding to the camera permission request is parsed to obtain the usage time and usage scenario of the APP using the camera function.
[0105] It should be understood that in this embodiment, since the terminal device can randomly select a random number from the preset finite field elliptic curve, and then calculate the equivalent public parameters in a preset manner based on the random number, the base point of the elliptic curve, the usage time, and the scene identification value corresponding to the usage scenario; finally, the APP camera-exclusive key pair is determined based on information such as the equivalent public parameters, usage time, and usage scenario, so that the camera usage can be detected from the system level, and the device information can be encrypting using the device system independent key library, which is safer.
[0106] Step S012: randomly selecting a random number from an elliptic curve of a preset finite field, and calculating equivalent public parameters based on the random number, the base point of the elliptic curve, the usage time, and the scenario identification value corresponding to the usage scenario.
[0107] Step S013: Generate an APP camera exclusive key pair according to the equivalent public parameters, the usage time and the scene identification value corresponding to the usage scene.
[0108] For ease of understanding, the following examples are provided, but the present invention is not limited thereto. In one example, a specific implementation process of creating an exclusive APP camera exclusive key pair for an APP based on the usage scenario, usage time, APP identification information, etc. when the APP uses the camera function is described in detail:
[0109] (1) The terminal device randomly selects a random number R1 from the preset finite field elliptic curve, and then calculates the scene identification value U corresponding to the random number R1, the base point G of the elliptic curve, the usage time T, and the usage scene. scene , calculate the equivalent common parameters as follows:
[0110] γ terminal =R1G+R1(T+U scene )
[0111] In the formula, γ terminal is an equivalent public parameter, R1 is a random number randomly selected from the elliptic curve of the preset finite field, G is the base point of the elliptic curve, T is the usage time when the APP uses the camera function, and U scene It is the scene identification value of the usage scene when the APP uses the camera function.
[0112] In this solution, scene identification values can be mapped to usage scenes in advance according to a preset mapping relationship based on various usage scenes of the camera. For example, assuming the mapping relationship is: the scene identification value of usage scene A is a; the scene identification value of usage scene B is b.
[0113] (2) Determine the APP camera exclusive key pair in the following manner based on the equivalent public parameters, usage time, usage scenario and other information:
[0114] SG APP =h1(U scene ||T)+[(h1(U scene ||T))G·γ terminal +R1G]Pu serminal +R1
[0115] Where, SG APP is the private key in the APP camera exclusive key pair, h1() is the preset hash function, U scene is the scene identification value of the usage scene when the APP uses the camera function, T is the usage time when the APP uses the camera function, R1 is a random number randomly selected from the elliptic curve of the preset finite field, G is the base point of the elliptic curve, Pu serminal is the public key of the terminal device, γ terminal are equivalent public parameters.
[0116] PU APP =SG APP G
[0117] In the formula, PU APP SG is the public key in the APP camera’s exclusive key pair. APP It is the private key in the exclusive key pair of the APP camera, and G is the base point of the elliptic curve.
[0118] In this embodiment, since the terminal device can randomly select a random number from the preset finite field elliptic curve, and then calculate the equivalent public parameters in a preset manner based on the random number, the base point of the elliptic curve, the usage time, and the scene identification value corresponding to the usage scenario; finally, the APP camera-exclusive key pair is determined based on information such as the equivalent public parameters, usage time, and usage scenario, so that the camera usage can be detected from the system level, and the device information can be encrypting using the device system independent key library, which is safer.
[0119] In the fourth embodiment, the step S03 includes:
[0120] Step S031: when it is detected that the APP activates the camera to take a picture, the image data to be detected is obtained.
[0121] It should be understood that in order to improve the security of the camera information encryption string, in this embodiment, the monitoring APP calls up the camera hardware coding information when the camera is shooting, the camera opening and closing timestamp, the resolution of the current camera configuration, the frame rate of the video recording, the file size and the file MD5. When the camera is turned off, the camera hardware coding information, the camera opening and closing timestamp, the resolution of the current camera configuration, the frame rate of the video recording, the file size and the file MD5 are encrypted based on the private key in the APP camera-exclusive key pair to obtain the camera information encryption string corresponding to the image data to be detected.
[0122] Step S032: The monitoring APP calls up the camera hardware encoding information when shooting, the camera opening and closing timestamp, the resolution of the camera configuration, the frame rate of the video recording, the file size and the file MD5.
[0123] Step S033: When the camera is turned off, the camera hardware encoding information, the camera opening and closing timestamp, the resolution of the camera configuration, the frame rate of the video recording, the file size and the file MD5 are encrypted based on the private key in the APP camera exclusive key pair to obtain the camera information encryption string corresponding to the image data to be detected.
[0124] For ease of understanding, the following examples are provided, but the present invention is not limited thereto. In one example, when the APP uses the API to call the system camera, the terminal device monitors the usage of the camera, including the camera hardware encoding information, the camera opening and closing timestamp, the resolution of the camera configuration, the frame rate of the video recording, the file size, the file MD5, etc. When the camera is turned off, the private key of the APP camera exclusive key pair is used to encrypt the above information to generate an encrypted string.
[0125] In this solution, the above information can be encrypted based on the private key of the APP camera's exclusive key pair to generate an encrypted string in the following way:
[0126]
[0127] Where Q is the generated encrypted string, SG APP is the private key in the APP camera's exclusive key pair, B is the camera hardware encoding information, t is the camera opening and closing timestamp, Ir is the resolution of the camera configuration this time, Fr is the frame rate of the video recording, size is the file size (if the camera is used to record video, the file size is the size of the video recorded by the camera; or if the camera is used to take photos, the file size is the size of the photo), and MD5 is the file MD5.
[0128] In this embodiment, the monitoring APP calls up the camera hardware coding information when the camera is used for shooting, the camera opening and closing timestamp, the resolution of the camera configuration this time, the frame rate of the video recording, the file size and the file MD5; when the camera is turned off, the camera hardware coding information, the camera opening and closing timestamp, the resolution of the camera configuration this time, the frame rate of the video recording, the file size and the file MD5 are encrypted based on the private key in the APP camera-exclusive key pair to obtain the camera information encryption string corresponding to the image data to be detected, thereby further improving the security of the camera information encryption string.
[0129] For ease of understanding, refer to Figure 6 This is for illustration only, but not for limitation of the present invention. Figure 6 This is an interactive schematic diagram of an embodiment of an injection attack detection method of the present invention. In the figure, the injection attack detection method includes the following steps:
[0130] Step 1: On the terminal device, the APP needs to apply for camera permission when using the camera function.
[0131] In this solution, when the APP uses the camera function, it can send a camera permission application request to the user, where the camera permission application request includes the identification information of the APP, as well as the usage scenario and usage time of the APP when using the camera function. In actual applications, when the APP sends the camera permission application request to the user, it can be sent through a pop-up window or other means.
[0132] After receiving the camera permission application request, the user can view the usage scenarios, usage time and other information when the APP uses the camera function. If the user agrees that the APP uses the camera according to the requested usage scenarios and usage time, the APP can be authorized to use the camera function. Continuing with the above example, assuming that the APP sends the camera permission application request to the user through a pop-up window, the user can click in the "Agree to Authorization" area of the pop-up window to authorize the APP to use the camera function.
[0133] Step 2: When the user agrees to the APP camera permission application, the terminal device will create a dedicated key pair for the APP camera in the system key library and return the public key to the APP.
[0134] After monitoring that the user agrees to the APP's application for camera permissions, the terminal device parses the camera permission application request sent by the APP to obtain information such as the usage scenarios and usage time when the APP uses the camera function; then, based on the usage scenarios, usage time, APP identification information and other information when the APP uses the camera function, an exclusive APP camera key pair is created for this APP.
[0135] The following is a detailed description of the specific implementation process of the terminal device creating a dedicated APP camera exclusive key pair for this APP based on the usage scenario, usage time, APP identification information, etc. when the APP uses the camera function:
[0136] (1) The terminal device randomly selects a random number R1 from the preset finite field elliptic curve, and then calculates the scene identification value U corresponding to the random number R1, the base point G of the elliptic curve, the usage time T, and the usage scene. scene , calculate the equivalent common parameters as follows:
[0137] γ terminal =R1G+R1(T+U scene )
[0138] In the formula, γ terminal is an equivalent public parameter, R1 is a random number randomly selected from the elliptic curve of the preset finite field, G is the base point of the elliptic curve, T is the usage time when the APP uses the camera function, and U scene It is the scene identification value of the usage scene when the APP uses the camera function.
[0139] In this solution, scene identification values can be mapped to usage scenes in advance according to a preset mapping relationship based on various usage scenes of the camera. For example, assuming the mapping relationship is: the scene identification value of usage scene A is a; the scene identification value of usage scene B is b.
[0140] (2) Determine the APP camera exclusive key pair in the following manner based on the equivalent public parameters, usage time, usage scenario and other information:
[0141] SG APP =h1(U scene ||T)+[(h1(U scene ||T))G·γ terminal +R1G]Pu serminal +R1
[0142] Where, SG APP is the private key in the APP camera exclusive key pair, h1() is the preset hash function, U scene is the scene identification value of the usage scene when the APP uses the camera function, T is the usage time when the APP uses the camera function, R1 is a random number randomly selected from the elliptic curve of the preset finite field, G is the base point of the elliptic curve, Pu serminal is the public key of the terminal device, γ terminal are equivalent public parameters.
[0143] PU APP =SG APP G
[0144] In the formula, PU APP SG is the public key in the APP camera’s exclusive key pair. APP It is the private key in the exclusive key pair of the APP camera, and G is the base point of the elliptic curve.
[0145] Step 3: The APP transmits the public key string to the server (i.e. the backend service in the figure), and the server stores the public key of this APP.
[0146] Step 4: When the APP uses the API to call the system camera, the terminal device monitors the usage of the camera, including the camera hardware encoding information, camera opening and closing timestamps, the resolution of the camera configuration, the frame rate of the video recording, the file size, the file MD5, etc. When the camera is turned off, the private key of the APP camera exclusive key pair is used to encrypt the above information to generate an encrypted string.
[0147] In this solution, the above information can be encrypted based on the private key of the APP camera's exclusive key pair to generate an encrypted string in the following way:
[0148]
[0149] Where Q is the generated encrypted string, SG APPis the private key in the APP camera's exclusive key pair, B is the camera hardware encoding information, t is the camera opening and closing timestamp, Ir is the resolution of the camera configuration this time, Fr is the frame rate of the video recording, size is the file size (if the camera is used to record video, the file size is the size of the video recorded by the camera; or if the camera is used to take photos, the file size is the size of the photo), and MD5 is the file MD5.
[0150] Step 5: After the video or photo is finished, the APP transmits the video / photo to the server and also transmits the encrypted string of camera information to the server.
[0151] Step 6: The server uses the public key to decrypt the encrypted string of camera information and analyzes the video / image to determine whether the video / image has been tampered with.
[0152] After receiving the encrypted string, the server first decrypts the encrypted string based on the pre-stored public key; if the decryption is successful, the data integrity verification is performed in a preset manner. On the contrary, if the decryption using the public key fails, the file is considered to have been tampered with.
[0153] Specifically, when the encrypted string is successfully decrypted based on the pre-stored public key, the specific method of performing data integrity verification in a preset manner is as follows:
[0154] (1) The server calculates the first verification parameter V1 according to the decrypted information in the following manner:
[0155] λ1=ID APP +M+[MG+R1G](ID terminal *G)+O+PU APP [h1(ID APP ||((U scene ||T)))]
[0156] M=h1(U scene ||T)
[0157] O={B,t,Ir,Fr,size,MD5}
[0158] V1=h1(λ1||ID terminal )
[0159] Where V1 is the first verification parameter, ID APP It is the identification information of the APP, ID terminal is the identification information of the terminal device, U sceneis the scene identification value of the usage scene when the APP uses the camera function, T is the usage time when the APP uses the camera function, R1 is a random number randomly selected from the preset finite field elliptic curve, G is the base point of the elliptic curve, PU APP is the public key in the APP camera exclusive key pair, h1() is the preset hash function, B is the camera hardware encoding information, t is the camera opening and closing timestamp, Ir is the resolution of the camera configuration this time, Fr is the frame rate of the video recording, size is the file size, and MD5 is the file MD5.
[0160] (2) The server sends an identity authentication request to the terminal device. After receiving the identity authentication request, the terminal device calculates the second authentication parameter in the following manner and returns the second authentication parameter to the server:
[0161] λ2=ID terminal +M+[MG+R1G](ID APP *G)+O+PU APP [h1(ID terminal ||((U scene ||T)))]
[0162] M=h1(U scene ||T)
[0163] O={B,t,Ir,Fr,size,MD5}
[0164] V2=h1(λ2||ID APP )
[0165] Where V2 is the second verification parameter, ID APP It is the identification information of the APP, ID terminal is the identification information of the terminal device, U scene is the scene identification value of the usage scene when the APP uses the camera function, T is the usage time when the APP uses the camera function, R1 is a random number randomly selected from the preset finite field elliptic curve, G is the base point of the elliptic curve, PU APP is the public key in the APP camera exclusive key pair, h1() is the preset hash function, B is the camera hardware encoding information, t is the camera opening and closing timestamp, Ir is the resolution of the camera configuration this time, Fr is the frame rate of the video recording, size is the file size, and MD5 is the file MD5.
[0166] (3) After receiving the second verification parameter fed back by the terminal device, the server compares whether the second verification parameter is equal to the first verification parameter.
[0167] (4) When the first verification parameter is equal to the second verification parameter, it indicates that the video / image has not been tampered with.
[0168] In addition, refer to Figure 7 The embodiment of the present invention further provides an injection attack detection device, which is applied to a server and includes:
[0169] The acquisition module 10 is used to acquire the image data to be detected uploaded by the terminal device and the camera information encrypted string corresponding to the image data to be detected.
[0170] It is understandable that after the video or photo is finished, the APP transmits the video / picture (i.e., the image data to be detected) to the server, and at the same time transmits the encrypted string of camera information to the server.
[0171] The decryption module 20 is used to decrypt the camera information encrypted string based on the public key in the APP camera exclusive key pair, and the public key in the APP camera exclusive key pair is sent in advance by the terminal device.
[0172] It should be understood that the server uses the public key to decrypt the camera information encryption string and conducts judgment analysis on the video / picture to determine whether the video / picture has been tampered with.
[0173] The verification module 30 is used to perform data integrity verification based on the information obtained by decryption when the decryption is successful, and obtain the injection attack detection result of the image data to be detected.
[0174] It should be understood that after receiving the encrypted string, the server first decrypts the encrypted string based on the pre-stored public key; if the decryption is successful, the data integrity verification is performed in a preset manner. On the contrary, if the decryption using the public key fails, it is considered that the file has been tampered with.
[0175] In this embodiment, the method of obtaining the image data to be detected uploaded by the terminal device and the camera information encrypted string corresponding to the image data to be detected is disclosed, and the camera information encrypted string is decrypted based on the public key in the APP camera exclusive key pair. The public key in the APP camera exclusive key pair is sent in advance by the terminal device. When the decryption is successful, the data integrity verification is performed according to the information obtained by decryption to obtain the injection attack detection result of the image data to be detected. Since the present invention uses the terminal device to encrypt the camera usage information, the server determines whether the camera product has been tampered with according to the encrypted information provided by the terminal device, thereby effectively preventing the camera video injection attack, protecting the user's personal privacy and sensitive information from being violated by malicious attackers, and thus improving business security.
[0176] In one embodiment, the decryption module 20 is also used to obtain the identification information of the APP, the identification information of the terminal, the scene identification value corresponding to the usage scenario, the usage time, the camera hardware encoding information, the camera open and close timestamp, the resolution of the camera configuration, the frame rate of the video recording, the file size and the file MD5 according to the information obtained from the decryption when the decryption is successful; calculate the first verification parameter according to the identification information of the APP, the identification information of the terminal, the scene identification value corresponding to the usage scenario, the usage time, the camera hardware encoding information, the camera open and close timestamp, the resolution of the camera configuration, the frame rate of the video recording, the file size and the file MD5; send an identity authentication request to the terminal device, and receive a second verification parameter fed back by the terminal device according to the identity authentication request; determine whether the first verification parameter is equal to the second verification parameter, and generate the injection attack detection result of the image data to be detected according to the determination result.
[0177] In addition, refer to Figure 8 The embodiment of the present invention further provides an injection attack detection device, which is applied to a terminal device and includes:
[0178] The generating module 10' is used to generate an APP camera exclusive key pair according to the authorization information corresponding to the camera permission request after receiving the camera permission request initiated by the APP when using the camera function.
[0179] It should be understood that in this embodiment, when the APP uses the camera function, it can send a camera permission application request to the user, wherein the camera permission application request includes the identification information of the APP, and the usage scenario and usage time when the APP uses the camera function. In actual applications, when the APP sends the camera permission application request to the user, it can be sent through a pop-up window or other means.
[0180] After receiving the camera permission application request, the user can view the usage scenarios, usage time and other information when the APP uses the camera function. If the user agrees that the APP uses the camera in accordance with the application usage scenarios and usage time (that is, the authorization information corresponding to the camera permission request), the APP can be authorized to use the camera function. Continuing with the above example, assuming that the APP sends the camera permission application request to the user through a pop-up window, the user can click in the "Agree to Authorization" area of the pop-up window to authorize the APP to use the camera function.
[0181] The sending module 20' is used to send the public key in the APP camera exclusive key pair to the server.
[0182] It can be understood that when it is monitored that the user agrees to the APP's application for camera permissions, the terminal device will simultaneously create a dedicated key pair for this APP camera in the system key library and return the public key to the APP. The APP will transmit the public key string to the server, and the server will store the public key of this APP.
[0183] The encryption module 30' is used to obtain the image data to be detected when it is detected that the APP calls up the camera for shooting, and encrypt the usage of the camera based on the private key in the APP camera-specific key pair to obtain the camera information encryption string corresponding to the image data to be detected.
[0184] It should be understood that when the APP uses the API to call the system camera, the terminal device monitors the usage of the camera, including the camera hardware encoding information, camera opening and closing timestamps, the resolution of the camera configuration, the frame rate of the video recording, the file size, the file MD5, etc. When the camera is turned off, the private key of the APP camera-exclusive key pair is used to encrypt the above information to generate an encrypted string.
[0185] The sending module 20' is also used to send the image data to be detected and the camera information encrypted string corresponding to the image data to be detected to the server, so that the server performs injection attack detection on the detection image data according to the camera information encrypted string and the public key in the APP camera exclusive key pair.
[0186] It is understandable that after the video or photo is finished, the APP transmits the video / picture to the server, and at the same time transmits the camera information encrypted string to the server. The server uses the public key to decrypt the camera information encrypted string and analyzes the video / picture to determine whether the video / picture has been tampered with.
[0187] In this embodiment, after receiving a camera permission request initiated when an APP uses a camera function, an APP camera-specific key pair is generated according to the authorization information corresponding to the camera permission request, and the public key in the APP camera-specific key pair is sent to the server. When it is detected that the APP calls up the camera for shooting, the image data to be detected is obtained, and the camera usage is encrypted based on the private key in the APP camera-specific key pair to obtain a camera information encryption string corresponding to the image data to be detected, and the image data to be detected and the camera information encryption string corresponding to the image data to be detected are sent to the server, so that the server performs injection attack detection on the detection image data according to the camera information encryption string and the public key in the APP camera-specific key pair; since the present invention uses a terminal device to encrypt camera usage information, the server determines whether the camera product has been tampered with according to the encrypted information provided by the terminal device, thereby effectively preventing camera video injection attacks, protecting users' personal privacy and sensitive information from malicious attackers, and thus improving business security.
[0188] In one embodiment, the generation module 10' is also used to parse the authorization information corresponding to the camera permission request after receiving the camera permission request initiated when the APP uses the camera function, and obtain the usage time and usage scenario of the APP using the camera function; randomly select a random number from an elliptic curve of a preset finite field, and calculate equivalent public parameters based on the random number, the base point of the elliptic curve, the usage time and the scene identification value corresponding to the usage scenario; generate an APP camera-specific key pair according to the equivalent public parameters, the usage time and the scene identification value corresponding to the usage scenario.
[0189] In one embodiment, the encryption module 30' is also used to obtain the image data to be detected when it is detected that the APP calls up the camera for shooting; monitor the camera hardware coding information, camera opening and closing timestamps, the resolution of the current camera configuration, the frame rate of the video recording, the file size and the file MD5 when the APP calls up the camera for shooting; when the camera is turned off, the camera hardware coding information, the camera opening and closing timestamps, the resolution of the current camera configuration, the frame rate of the video recording, the file size and the file MD5 are encrypting based on the private key in the APP camera-specific key pair to obtain the camera information encryption string corresponding to the image data to be detected.
[0190] Other embodiments or specific implementations of the password-free login device of the present invention can refer to the above-mentioned method embodiments and will not be described in detail here.
[0191] In addition, an embodiment of the present invention further provides a storage medium, on which an injection attack detection program is stored. When the injection attack detection program is executed by a processor, the injection attack detection method described above is implemented.
[0192] In addition, an embodiment of the present invention further provides a computer program product, including an injection attack detection program, and when the injection attack detection program is executed by a processor, the injection attack detection method as described above is implemented.
[0193] The specific implementation manner of the computer program product of the present invention is basically the same as the embodiments of the injection attack detection method described above, and will not be described in detail here.
[0194] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0195] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0196] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory image (ROM) / random access memory (RAM), a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0197] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for detecting injection attacks, characterized in that: The injection attack detection method is applied to a server, and the injection attack detection method comprises: Obtain the image data to be detected uploaded by the terminal device and the camera information encrypted string corresponding to the image data to be detected; Decrypting the camera information encrypted string based on a public key in an APP camera-specific key pair, where the public key in the APP camera-specific key pair is sent in advance by the terminal device; When the decryption is successful, data integrity verification is performed based on the information obtained by decryption to obtain the injection attack detection result of the image data to be detected.
2. The injection attack detection method according to claim 1, characterized in that: When the decryption is successful, data integrity verification is performed according to the information obtained by decryption to obtain the injection attack detection result of the image data to be detected, including: When decryption is successful, the identification information of the APP, the identification information of the terminal, the scene identification value corresponding to the usage scene, the usage time, the camera hardware encoding information, the camera opening and closing timestamp, the resolution of the camera configuration, the frame rate of the video recording, the file size and the file MD5 are obtained according to the information obtained by decryption; Calculate a first verification parameter according to the identification information of the APP, the identification information of the terminal, the scene identification value corresponding to the usage scene, the usage time, the camera hardware encoding information, the camera opening and closing timestamp, the resolution of the camera configuration, the frame rate of the video recording, the file size, and the file MD5; Sending an identity authentication request to the terminal device, and receiving a second verification parameter fed back by the terminal device according to the identity authentication request; It is determined whether the first verification parameter is equal to the second verification parameter, and an injection attack detection result of the image data to be detected is generated according to the determination result.
3. A method for detecting injection attacks, characterized in that: The injection attack detection method is applied to a terminal device, and the injection attack detection method comprises: After receiving a camera permission request initiated by an APP when using the camera function, generate an APP camera-specific key pair according to the authorization information corresponding to the camera permission request; Send the public key in the APP camera exclusive key pair to the server; When it is detected that the APP uses the camera to shoot, the image data to be detected is obtained, and the usage of the camera is encrypted based on the private key in the APP camera-specific key pair to obtain the camera information encryption string corresponding to the image data to be detected; The image data to be detected and the camera information encrypted string corresponding to the image data to be detected are sent to the server, so that the server performs injection attack detection on the detection image data according to the camera information encrypted string and the public key in the APP camera exclusive key pair.
4. The injection attack detection method according to claim 3, characterized in that: After receiving a camera permission request initiated by an APP when using a camera function, generating an APP camera exclusive key pair according to authorization information corresponding to the camera permission request, including: After receiving a camera permission request initiated by the APP when using the camera function, parsing the authorization information corresponding to the camera permission request to obtain the usage time and usage scenario of the APP using the camera function; Randomly selecting a random number from an elliptic curve of a preset finite field, and calculating an equivalent public parameter based on the random number, a base point of the elliptic curve, the usage time, and a scenario identification value corresponding to the usage scenario; Generate an APP camera exclusive key pair according to the equivalent public parameters, the usage time and the scene identification value corresponding to the usage scene.
5. The injection attack detection method according to claim 3, characterized in that: When it is detected that the APP calls up the camera to shoot, the image data to be detected is obtained, and the usage of the camera is encrypted based on the private key in the APP camera-specific key pair to obtain the camera information encryption string corresponding to the image data to be detected, including: When it is detected that the APP has activated the camera to take a photo, the image data to be detected is obtained; The camera hardware encoding information when the monitoring app calls up the camera for shooting, the camera opening and closing timestamp, the resolution of the camera configuration, the frame rate of the video recording, the file size and the file MD5; When the camera is turned off, the camera hardware encoding information, the camera opening and closing timestamp, the resolution of the camera configuration, the frame rate of the video recording, the file size and the file MD5 are encrypted based on the private key in the APP camera exclusive key pair to obtain the camera information encryption string corresponding to the image data to be detected.
6. An injection attack detection device, characterized in that: The injection attack detection device is applied to a server, and the injection attack detection device comprises: An acquisition module, used to acquire the image data to be detected uploaded by the terminal device and the camera information encrypted string corresponding to the image data to be detected; A decryption module, used to decrypt the camera information encrypted string based on a public key in an APP camera exclusive key pair, where the public key in the APP camera exclusive key pair is sent in advance by the terminal device; The verification module is used to perform data integrity verification based on the information obtained by decryption when the decryption is successful, and obtain the injection attack detection result of the image data to be detected.
7. An injection attack detection device, characterized in that: The injection attack detection device is applied to a terminal device, and the injection attack detection device comprises: A generation module, configured to generate an APP camera exclusive key pair according to the authorization information corresponding to the camera permission request after receiving a camera permission request initiated by the APP when using the camera function; A sending module, used to send the public key in the APP camera exclusive key pair to the server; The encryption module is used to obtain the image data to be detected when it is detected that the APP calls up the camera to shoot, and encrypt the usage of the camera based on the private key in the APP camera-specific key pair to obtain the camera information encryption string corresponding to the image data to be detected; The sending module is also used to send the image data to be detected and the camera information encrypted string corresponding to the image data to be detected to the server, so that the server performs injection attack detection on the detection image data according to the camera information encrypted string and the public key in the APP camera exclusive key pair.
8. An injection attack detection device, characterized in that: The injection attack detection device includes: a memory, a processor, and an injection attack detection program stored in the memory and executable on the processor. When the injection attack detection program is executed by the processor, the injection attack detection method according to any one of claims 1 to 2 or 3 to 5 is implemented.
9. A storage medium, characterized in that: The storage medium stores an injection attack detection program, and when the injection attack detection program is executed by the processor, the injection attack detection method according to any one of claims 1 to 2 or 3 to 5 is implemented.
10. A computer program product, characterized in that The computer program product comprises an injection attack detection program, and when the injection attack detection program is executed by a processor, the injection attack detection method according to any one of claims 1 to 2 or 3 to 5 is implemented.
Citation Information
Patent Citations
Security verification and request sending method and device
CN110545173A
Face data acquisition and verification method, equipment and system
CN113726526A
Remote identity authentication method and device, equipment and storage medium
CN115150158A
