A SDP client security authentication system
By using temporary keys and public keys in the SDP client security authentication system for encryption verification and risk assessment, the problem of low security during the communication process is solved, data security is ensured and leakage is prevented, and terminal-enterprise inter-enterprise communication is realized. secure network communications.
Patent Information
- Application Number
- CN202311073091.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-24
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2043-08-24
AI Technical Summary
The SDP client security authentication system is easily attacked during the communication process, resulting in data leakage and low security.
An SDP client security authentication system including a request unit, an authentication unit and an establishment unit is designed. By using temporary private keys and public keys to generate keys, the encryption and decryption data packets are verified, the communication risk level coefficient is calculated, and When the risk level exceeds the threshold, communication is disconnected and an alarm signal is sent, and periodic changes are made based on the use evaluation of the key.
It greatly improves the security of the authentication system, ensures the security of communication between the client and the gateway, prevents data leakage, prevents man-in-the-middle attacks through periodic key changes, and realizes secure network communication between terminal enterprises.
Smart Images

Figure CN117240510B_ABST
Abstract
Description
Background Art
[0002] SDP (Software Defined Perimeter) is a security framework developed by the Cloud Security Alliance (CSA). As an extension of the zero-trust concept, SDP can suppress threats and reduce the attack surface, preventing network-based attacks and attacks that exploit application vulnerabilities. The main components of SDP usually include SDP clients, servers, and SDP control platforms that include SDP controllers. The connection between SDP clients and servers is controlled through the interaction between the SDP controller and the security control channel.
[0003] In the prior art, each step of the SDP client security authentication system requires verification. After verification, the communication between the client and the SDP gateway is established. During the communication process, it is easy to be attacked and data is leaked, and the security is low. Therefore, improving the security of the authentication system during the communication process is a technical problem that needs to be solved. Summary of the invention
[0004] The present invention provides an SDP client security authentication system to solve the technical problem that the SDP client security authentication system is easily attacked during the communication process, thereby leaking data and having low security. The system is applied to the client, controller and gateway, and includes:
[0005] A request unit, configured to obtain a first key and an encrypted data packet according to a first temporary private key of the client and a public key of the controller, and send an authentication request to the controller according to the first key and the encrypted data packet;
[0006] An authentication unit, configured to receive an authentication request, obtain a second key and a decrypted data packet according to a private key of the controller and a first temporary public key of the client, perform authentication according to the second key and the decrypted data packet, and obtain an authentication result, wherein the authentication result includes authentication success and authentication failure;
[0007] The establishment unit is used to establish communication between the client and the gateway and calculate the risk level coefficient of the communication when the authentication result is successful. If the risk level coefficient of the communication is greater than a preset risk level coefficient threshold, the communication between the client and the gateway is disconnected and an alarm signal is sent.
[0008] In some embodiments of the present application, the encrypted data packet includes device environment information, user information, ID information, and a first temporary public key and a second temporary public key of the client.
[0009] In some embodiments of the present application, authentication is performed according to the second key and the decrypted data packet to obtain an authentication result, including:
[0010] The authentication unit is used to compare the device environment information, user information, ID information and the first temporary public key and the second temporary public key of the client in the decrypted data packet one by one according to the stored data in the preset data packet. If one of the items fails to match the stored data, the current authentication request is rejected and the authentication fails. If each item matches the stored data, the authentication is successful.
[0011] In some embodiments of the present application, it is characterized in that establishing communication between the client and the gateway and calculating the risk level coefficient of the communication includes:
[0012] Obtaining the historical device environment and historical usage behavior of the client;
[0013] Analyze the historical device environment and historical usage behavior of the client, determine the first historical abnormal number of the historical device environment and historical usage behavior of the client, and generate a first risk set;
[0014] Obtaining the historical device environment and historical usage behavior of the gateway;
[0015] Analyze the historical device environment and historical usage behavior of the gateway, determine the second historical abnormal number of the historical device environment and historical usage behavior of the gateway, and generate a second risk set;
[0016] Obtain the current device environment and usage behavior of the client, determine a first matching degree and a first abnormal number according to the first risk set, obtain the current device environment and usage behavior of the gateway, and determine a second matching degree and a second abnormal number according to the second risk set;
[0017] The risk level coefficient of the communication is calculated according to the first matching degree, the first abnormal number, the second matching degree and the second abnormal number.
[0018] In some embodiments of the present application, the first matching degree is matched according to the current device environment and usage behavior of the client with the historical device environment and historical usage behavior to obtain a first environment matching coefficient a1 and a first behavior matching coefficient b1, and a calculation formula for the first matching degree is determined according to the relationship between the first environment matching coefficient a1 and the first behavior matching coefficient b1;
[0019] The calculation formula of the first matching degree is:
[0020] When a1×v1<a0 and b1×v2>b0 or a1×v1<b1×v2 and b1×v2>b0, the first matching degree calculation formula is: K1=b1×v2;
[0021] When b1×v2<b0 and a1×v1>a0 or b1×v2<a1×v1 and a1×v1>a0, the first matching degree calculation formula is K1=a1×v1;
[0022] Wherein, K1 is the first matching degree, v1 is the influence coefficient of the first environment matching coefficient on the first matching degree, v2 is the influence coefficient of the first behavior matching coefficient on the first matching degree, a0 is the preset first environment matching coefficient, and b0 is the preset first behavior matching coefficient;
[0023] The second matching degree is matched according to the current device environment and usage behavior of the gateway with the historical device environment and historical usage behavior to obtain a second environment matching coefficient a2 and a second behavior matching coefficient b2, and a calculation formula for the second matching degree is determined according to the relationship between the second environment matching coefficient a2 and the second behavior matching coefficient b2;
[0024] The calculation formula of the second matching degree is:
[0025] When a2×n1<ai and b2×n2>bi or a2×n1<b2×n2 and b2×n2>bi, the second matching degree calculation formula is: K2=b2×n2;
[0026] When b2×n2<bi and a2×n1>ai or b2×n2<a2×n1 and a2×n1>ai, the second matching degree calculation formula is K2=a2×n1;
[0027] Among them, K2 is the second matching degree, n1 is the influence coefficient of the second environment matching coefficient on the second matching degree, n2 is the influence coefficient of the second behavior matching coefficient on the second matching degree, ai is the preset second environment matching coefficient, and bi is the preset second behavior matching coefficient.
[0028] In some embodiments of the present application, calculating the risk level coefficient of communication according to the first matching degree, the first abnormal number, the second matching degree, and the second abnormal number includes:
[0029] The calculation formula of the risk level coefficient of the communication is:
[0030] ;
[0031] Wherein, H is the risk level coefficient of the communication, L1 is the first abnormal number corresponding to the first matching degree, L2 is the second abnormal number corresponding to the second matching degree, K3 is the unpredictable risk, and x is a preset constant;
[0032] If the risk level coefficient H of the communication is greater than the preset risk level coefficient threshold, the controller disconnects the communication between the client and the gateway and sends an alarm signal, and determines the cause of the abnormality according to the first matching degree, the first abnormal number and the second matching degree, the second abnormal number.
[0033] In some embodiments of the present application, the establishment unit is also used to send the public key of the gateway to the client when the authentication result is successful authentication, send the second temporary public key of the client to the gateway, obtain a third key based on the second temporary private key of the client and the public key of the gateway, encrypt the data packet based on the third key and send it to the gateway, obtain a fourth key based on the private key of the gateway and the second temporary public key of the client and decrypt the data packet, wherein the third key is a temporary key and changes according to a preset period, and the preset period is set according to the current usage evaluation of the third key.
[0034] In some embodiments of the present application, the security level, application duration, and system importance of the current third key are obtained, the security level and system importance are converted into corresponding security scores and system importance scores, and the use evaluation degree of the current third key is calculated according to the security score, application duration score, and system importance score;
[0035] The calculation formula for the usage evaluation of the third key is:
[0036] ;
[0037] Among them, F is the usage evaluation degree of the third key, c1 is the weight coefficient corresponding to the security score, Q1 is the security score, c2 is the weight coefficient corresponding to the system importance score, Q2 is the system importance score, c3 is the weight coefficient corresponding to the application duration, and t is the application duration of the third key.
[0038] In some embodiments of the present application, the preset period is set according to the usage evaluation of the current third key, including:
[0039] The establishing unit is further used to pre-set a first preset usage evaluation interval, a second preset usage evaluation interval and a third preset usage evaluation interval, and also pre-set a first preset period, a second preset period, a third preset period and a fourth preset period;
[0040] When the usage evaluation degree of the third key is less than the first preset usage evaluation degree interval, directly changing the current third key;
[0041] When the usage evaluation degree of the third key is within the first preset usage evaluation degree interval, selecting the first preset period as the preset period to change the current third key;
[0042] When the usage evaluation degree of the third key is within the second preset usage evaluation degree interval, selecting the second preset period as the preset period to change the current third key;
[0043] When the usage evaluation degree of the third key is within a third preset usage evaluation degree interval, selecting a third preset period as a preset period to change the current third key;
[0044] When the usage evaluation degree of the third key is greater than the third preset usage evaluation degree interval, the fourth preset period is selected as the preset period to change the current third key.
[0045] The embodiment of the present application provides a SDP client security authentication system, which brings the following beneficial effects compared with the prior art:
[0046] Send an authentication request to the controller according to the first key and the encrypted data packet, obtain the second key and the decrypted data packet according to the private key of the controller and the first temporary public key of the client, perform authentication according to the second key and the decrypted data packet, obtain the authentication result, verify the contents in the data packet one by one, ensure the secure access of the network between the clients, and greatly improve the security of the authentication system access;
[0047] When the authentication result is successful, the data packet is encrypted according to the third key and sent to the gateway, communication between the client and the gateway is established and the risk level coefficient of the communication is calculated. If the risk level coefficient of the communication is greater than the preset risk level coefficient threshold, the communication between the client and the gateway is disconnected and an alarm signal is sent. The third key is changed at a preset period selected according to the usage evaluation of the third key, which solves the technical problem of being easily attacked and leaking data during the communication process and having low security, ensures that data is not leaked, and safely realizes network communication between terminal enterprises. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0049] Figure 1 It is a schematic diagram of an SDP client security authentication system in an embodiment of the present invention. DETAILED DESCRIPTION
[0050] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0051] In the description of the present application, it should be understood that the terms "center", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0052] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.
[0053] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a communication between the inner sides of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0054] like Figure 1 As shown, an SDP client security authentication system according to an embodiment of the present invention is applied to a client, a controller and a gateway, and includes:
[0055] A request unit, configured to obtain a first key and an encrypted data packet according to a first temporary private key of the client and a public key of the controller, and send an authentication request to the controller according to the first key and the encrypted data packet;
[0056] An authentication unit, configured to receive an authentication request, obtain a second key and a decrypted data packet according to a private key of the controller and a first temporary public key of the client, perform authentication according to the second key and the decrypted data packet, and obtain an authentication result, wherein the authentication result includes authentication success and authentication failure;
[0057] The establishment unit is used to establish communication between the client and the gateway and calculate the risk level coefficient of the communication when the authentication result is successful. If the risk level coefficient of the communication is greater than a preset risk level coefficient threshold, the communication between the client and the gateway is disconnected and an alarm signal is sent.
[0058] In this embodiment, the client has a built-in public key of the controller. When the client starts, it randomly generates two pairs of temporary public keys and private keys according to the ECC elliptic curve algorithm (asymmetric encryption uses national secret SM2), which are the first temporary private key, the first temporary public key and the second temporary private key, and the second temporary public key. One pair is used to knock on the door with the controller, and the other pair is used to knock on the door with the gateway. The client uses the first temporary private key and the public key of the controller to calculate the first key, that is, the shared key (asymmetric encryption uses national secret SM2), and encrypts the data packet (symmetric encryption uses national secret SM4, and the summary uses national secret SM3). The content of the encrypted data packet includes device environment information, user information, enterprise ID, and two temporary public keys of the client, etc. The controller uses its own private key The second key, i.e., the shared key, is calculated with the first temporary public key of the client (asymmetric encryption uses the national secret SM2), the data packet is decrypted (using the national secret SM4, SM3), the device environment information, user information, etc. are obtained, and verification is performed one by one. If one item is illegal, the request is discarded. After verification, the controller sends the public key of the gateway to the client, and the controller sends the second temporary public key of the client to the gateway. The client uses the second temporary private key and the public key of the gateway to calculate the third key, i.e., the shared key (using SM2), and uses the third key to encrypt the data packet and send it to the gateway (using SM4, SM3). The gateway uses its own private key and the second temporary public key of the client to calculate the fourth key, i.e., the shared key, and decrypt the data packet. The shared key is a temporary key and will change periodically to prevent man-in-the-middle attacks. The tunnel has anti-replay factors such as timestamps to prevent replay attacks. The client continuously and dynamically reports information such as the device environment and usage behavior to the controller. If the device or behavior is abnormal, the controller will disconnect the connection between the client and the gateway.
[0059] In some embodiments of the present application, the encrypted data packet includes device environment information, user information, ID information, and a first temporary public key and a second temporary public key of the client.
[0060] In some embodiments of the present application, authentication is performed according to the second key and the decrypted data packet to obtain an authentication result, including:
[0061] The authentication unit is used to compare the device environment information, user information, ID information and the first temporary public key and the second temporary public key of the client in the decrypted data packet one by one according to the stored data in the preset data packet. If one of the items fails to match the stored data, the current authentication request is rejected and the authentication fails. If each item matches the stored data, the authentication is successful.
[0062] In some embodiments of the present application, it is characterized in that establishing communication between the client and the gateway and calculating the risk level coefficient of the communication includes:
[0063] Obtaining the historical device environment and historical usage behavior of the client;
[0064] Analyze the historical device environment and historical usage behavior of the client, determine the first historical abnormal number of the historical device environment and historical usage behavior of the client, and generate a first risk set;
[0065] Obtaining the historical device environment and historical usage behavior of the gateway;
[0066] Analyze the historical device environment and historical usage behavior of the gateway, determine the second historical abnormal number of the historical device environment and historical usage behavior of the gateway, and generate a second risk set;
[0067] Obtain the current device environment and usage behavior of the client, determine a first matching degree and a first abnormal number according to the first risk set, obtain the current device environment and usage behavior of the gateway, and determine a second matching degree and a second abnormal number according to the second risk set;
[0068] The risk level coefficient of the communication is calculated according to the first matching degree, the first abnormal number, the second matching degree and the second abnormal number.
[0069] In this embodiment, the first historical anomaly number is the historical anomaly number corresponding to the first matching degree between the client's historical device environment and the historical usage behavior, and the second historical anomaly number is the historical anomaly number corresponding to the second matching degree between the gateway's historical device environment and the historical usage behavior. The risk level coefficient of communication is calculated by the first matching degree, the first anomaly number, the second matching degree and the second anomaly number, thereby providing a reliable security prompt for the communication between the client and the gateway, thereby ensuring the communication security between the client and the gateway.
[0070] In some embodiments of the present application, the first matching degree is matched according to the current device environment and usage behavior of the client with the historical device environment and historical usage behavior to obtain a first environment matching coefficient a1 and a first behavior matching coefficient b1, and a calculation formula for the first matching degree is determined according to the relationship between the first environment matching coefficient a1 and the first behavior matching coefficient b1;
[0071] The calculation formula of the first matching degree is:
[0072] When a1×v1<a0 and b1×v2>b0 or a1×v1<b1×v2 and b1×v2>b0, the first matching degree calculation formula is: K1=b1×v2;
[0073] When b1×v2<b0 and a1×v1>a0 or b1×v2<a1×v1 and a1×v1>a0, the first matching degree calculation formula is K1=a1×v1;
[0074] Wherein, K1 is the first matching degree, v1 is the influence coefficient of the first environment matching coefficient on the first matching degree, v2 is the influence coefficient of the first behavior matching coefficient on the first matching degree, a0 is the preset first environment matching coefficient, and b0 is the preset first behavior matching coefficient;
[0075] The second matching degree is matched according to the current device environment and usage behavior of the gateway with the historical device environment and historical usage behavior to obtain a second environment matching coefficient a2 and a second behavior matching coefficient b2, and a calculation formula for the second matching degree is determined according to the relationship between the second environment matching coefficient a2 and the second behavior matching coefficient b2;
[0076] The calculation formula of the second matching degree is:
[0077] When a2×n1<ai and b2×n2>bi or a2×n1<b2×n2 and b2×n2>bi, the second matching degree calculation formula is: K2=b2×n2;
[0078] When b2×n2<bi and a2×n1>ai or b2×n2<a2×n1 and a2×n1>ai, the second matching degree calculation formula is K2=a2×n1;
[0079] Among them, K2 is the second matching degree, n1 is the influence coefficient of the second environment matching coefficient on the second matching degree, n2 is the influence coefficient of the second behavior matching coefficient on the second matching degree, ai is the preset second environment matching coefficient, and bi is the preset second behavior matching coefficient.
[0080] In some embodiments of the present application, calculating the risk level coefficient of communication according to the first matching degree, the first abnormal number, the second matching degree, and the second abnormal number includes:
[0081] The calculation formula of the risk level coefficient of the communication is:
[0082] ;
[0083] Wherein, H is the risk level coefficient of the communication, L1 is the first abnormal number corresponding to the first matching degree, L2 is the second abnormal number corresponding to the second matching degree, K3 is the unpredictable risk, and x is a preset constant;
[0084] If the risk level coefficient H of the communication is greater than the preset risk level coefficient threshold, the controller disconnects the communication between the client and the gateway and sends an alarm signal, and determines the cause of the abnormality according to the first matching degree, the first abnormal number and the second matching degree, the second abnormal number.
[0085] In some embodiments of the present application, the establishment unit is also used to send the public key of the gateway to the client when the authentication result is successful authentication, send the second temporary public key of the client to the gateway, obtain a third key based on the second temporary private key of the client and the public key of the gateway, encrypt the data packet based on the third key and send it to the gateway, obtain a fourth key based on the private key of the gateway and the second temporary public key of the client and decrypt the data packet, wherein the third key is a temporary key and changes according to a preset period, and the preset period is set according to the current usage evaluation of the third key.
[0086] In some embodiments of the present application, the security level, application duration, and system importance of the current third key are obtained, the security level and system importance are converted into corresponding security scores and system importance scores, and the use evaluation degree of the current third key is calculated according to the security score, application duration score, and system importance score;
[0087] The calculation formula for the usage evaluation of the third key is:
[0088] ;
[0089] Among them, F is the usage evaluation degree of the third key, c1 is the weight coefficient corresponding to the security score, Q1 is the security score, c2 is the weight coefficient corresponding to the system importance score, Q2 is the system importance score, c3 is the weight coefficient corresponding to the application duration, and t is the application duration of the third key.
[0090] In this embodiment, the security level is determined based on the data value of the third key, the data security period, the attacker's resources and the development of the encryption algorithm.
[0091] In some embodiments of the present application, the preset period is set according to the usage evaluation of the current third key, including:
[0092] The establishing unit is further used to pre-set a first preset usage evaluation interval, a second preset usage evaluation interval and a third preset usage evaluation interval, and also pre-set a first preset period, a second preset period, a third preset period and a fourth preset period;
[0093] When the usage evaluation degree of the third key is less than the first preset usage evaluation degree interval, directly changing the current third key;
[0094] When the usage evaluation degree of the third key is within the first preset usage evaluation degree interval, selecting the first preset period as the preset period to change the current third key;
[0095] When the usage evaluation degree of the third key is within the second preset usage evaluation degree interval, selecting the second preset period as the preset period to change the current third key;
[0096] When the usage evaluation degree of the third key is within a third preset usage evaluation degree interval, selecting a third preset period as a preset period to change the current third key;
[0097] When the usage evaluation degree of the third key is greater than the third preset usage evaluation degree interval, the fourth preset period is selected as the preset period to change the current third key.
[0098] The present invention provides a SDP client security authentication system, which includes a request unit, which is used to obtain a first key and an encrypted data packet according to a first temporary private key of a client and a public key of a controller, and send an authentication request to the controller according to the first key and the encrypted data packet; an authentication unit, which is used to receive the authentication request, obtain a second key and a decrypted data packet according to a private key of the controller and a first temporary public key of the client, perform authentication according to the second key and the decrypted data packet, and obtain an authentication result, wherein the authentication result includes authentication success and authentication failure; and an establishment unit, which is used to establish communication between the client and the gateway and calculate the risk level coefficient of the communication when the authentication result is authentication success, and if the risk level coefficient of the communication is greater than a preset risk level coefficient threshold, disconnect the communication between the client and the gateway and send an alarm signal.
[0099] According to the first concept of the present application, an authentication request is sent to the controller according to the first key and the encrypted data packet, a second key and a decrypted data packet are obtained according to the private key of the controller and the first temporary public key of the client, authentication is performed according to the second key and the decrypted data packet, an authentication result is obtained, and the contents in the data packet are verified one by one to ensure secure access to the network between clients, which greatly improves the security of the authentication system when accessing;
[0100] According to the second concept of the present application, when the authentication result is successful, the data packet is encrypted according to the third key and sent to the gateway, communication between the client and the gateway is established and the risk level coefficient of the communication is calculated. If the risk level coefficient of the communication is greater than the preset risk level coefficient threshold, the communication between the client and the gateway is disconnected and an alarm signal is sent. The third key is changed at a preset period selected according to the usage evaluation of the third key, which solves the technical problem of being easily attacked and leaking data during the communication process and having low security, ensures that data is not leaked, and safely realizes network communication between terminal enterprises.
[0101] The above is only an example of implementation of the present invention, but it cannot be used to limit the scope of the present invention. Any structural changes made according to the present invention should be regarded as falling within the protection scope of the present invention and subject to restrictions as long as they do not lose the essence of the present invention.
[0102] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process and related instructions of the system described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0103] Those skilled in the art should be able to appreciate that the modules and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two, and the programs corresponding to the software modules and method steps can be placed in random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or any other form of storage medium known in the technical field. In order to clearly illustrate the interchangeability of electronic hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in electronic hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0104] The term "comprise" or any other similar term is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus / device that includes a list of elements includes not only those elements but also other elements not expressly listed, or also includes elements inherent to such process, method, article, or apparatus / device.
[0105] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
[0106] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention.
Claims
1. A SDP client security authentication system, applied to the client, controller and gateway, characterized in that: include: A request unit, configured to obtain a first key and an encrypted data packet according to a first temporary private key of the client and a public key of the controller, and send an authentication request to the controller according to the first key and the encrypted data packet; An authentication unit, configured to receive an authentication request, obtain a second key and a decrypted data packet according to a private key of the controller and a first temporary public key of the client, perform authentication according to the second key and the decrypted data packet, and obtain an authentication result, wherein the authentication result includes authentication success and authentication failure; An establishing unit, used for establishing communication between the client and the gateway and calculating the risk level coefficient of the communication when the authentication result is successful authentication, and if the risk level coefficient of the communication is greater than a preset risk level coefficient threshold, disconnecting the communication between the client and the gateway and sending an alarm signal; Establish communication between the client and the gateway and calculate the risk level coefficient of the communication, including: Obtaining the historical device environment and historical usage behavior of the client; Analyze the historical device environment and historical usage behavior of the client, determine the first historical abnormal number of the historical device environment and historical usage behavior of the client, and generate a first risk set; Obtaining the historical device environment and historical usage behavior of the gateway; Analyze the historical device environment and historical usage behavior of the gateway, determine the second historical abnormal number of the historical device environment and historical usage behavior of the gateway, and generate a second risk set; Obtain the current device environment and usage behavior of the client, determine a first matching degree and a first abnormal number according to the first risk set, obtain the current device environment and usage behavior of the gateway, and determine a second matching degree and a second abnormal number according to the second risk set; Calculating a risk level coefficient of the communication according to the first matching degree, the first number of abnormalities, the second matching degree, and the second number of abnormalities; The first matching degree is matched according to the current device environment and usage behavior of the client with the historical device environment and historical usage behavior to obtain a first environment matching coefficient a1 and a first behavior matching coefficient b1, and a calculation formula for the first matching degree is determined according to the relationship between the first environment matching coefficient a1 and the first behavior matching coefficient b1; The calculation formula of the first matching degree is: When a1×v1<a0 and b1×v2>b0 or a1×v1<b1×v2 and b1×v2>b0, the first matching degree calculation formula is: K1=b1×v2; When b1×v2<b0 and a1×v1>a0 or b1×v2<a1×v1 and a1×v1>a0, the first matching degree calculation formula is K1=a1×v1; Wherein, K1 is the first matching degree, v1 is the influence coefficient of the first environment matching coefficient on the first matching degree, v2 is the influence coefficient of the first behavior matching coefficient on the first matching degree, a0 is the preset first environment matching coefficient, and b0 is the preset first behavior matching coefficient; The second matching degree is matched according to the current device environment and usage behavior of the gateway with the historical device environment and historical usage behavior to obtain a second environment matching coefficient a2 and a second behavior matching coefficient b2, and a calculation formula for the second matching degree is determined according to the relationship between the second environment matching coefficient a2 and the second behavior matching coefficient b2; The calculation formula of the second matching degree is: When a2×n1<ai and b2×n2>bi or a2×n1<b2×n2 and b2×n2>bi, the second matching degree calculation formula is: K2=b2×n2; When b2×n2<bi and a2×n1>ai or b2×n2<a2×n1 and a2×n1>ai, the second matching degree calculation formula is K2=a2×n1; Wherein, K2 is the second matching degree, n1 is the influence coefficient of the second environment matching coefficient on the second matching degree, n2 is the influence coefficient of the second behavior matching coefficient on the second matching degree, ai is the preset second environment matching coefficient, and bi is the preset second behavior matching coefficient; Calculating a risk level coefficient of communication according to the first matching degree, the first abnormal number, the second matching degree, and the second abnormal number includes: The calculation formula of the risk level coefficient of the communication is: ; Wherein, H is the risk level coefficient of the communication, L1 is the first abnormal number corresponding to the first matching degree, L2 is the second abnormal number corresponding to the second matching degree, K3 is the unpredictable risk, and x is a preset constant; If the risk level coefficient H of the communication is greater than the preset risk level coefficient threshold, the controller disconnects the communication between the client and the gateway and sends an alarm signal, and determines the cause of the abnormality according to the first matching degree, the first abnormal number and the second matching degree, the second abnormal number.
2. The SDP client security authentication system according to claim 1, characterized in that: The encrypted data packet includes device environment information, user information, ID information, and a first temporary public key and a second temporary public key of the client.
3. The SDP client security authentication system according to claim 2, characterized in that: Authentication is performed according to the second key and the decrypted data packet to obtain an authentication result, including: The authentication unit is used to compare the device environment information, user information, ID information and the first temporary public key and the second temporary public key of the client in the decrypted data packet one by one according to the stored data in the preset data packet. If one of the items fails to match the stored data, the current authentication request is rejected and the authentication fails. If each item matches the stored data, the authentication is successful.
4. The SDP client security authentication system according to claim 1, characterized in that: The establishment unit is also used to send the public key of the gateway to the client when the authentication result is successful authentication, send the second temporary public key of the client to the gateway, obtain a third key based on the second temporary private key of the client and the public key of the gateway, encrypt the data packet based on the third key and send it to the gateway, obtain a fourth key based on the private key of the gateway and the second temporary public key of the client and decrypt the data packet, wherein the third key is a temporary key and changes according to a preset period, and the preset period is set according to the current usage evaluation of the third key.
5. The SDP client security authentication system according to claim 4, characterized in that: Obtaining the security level, application duration, and system importance of the current third key, converting the security level and system importance into corresponding security scores and system importance scores, and calculating the use evaluation of the current third key according to the security score, application duration score, and system importance score; The calculation formula for the usage evaluation of the third key is: ; Among them, F is the usage evaluation degree of the third key, c1 is the weight coefficient corresponding to the security score, Q1 is the security score, c2 is the weight coefficient corresponding to the system importance score, Q2 is the system importance score, c3 is the weight coefficient corresponding to the application duration, and t is the application duration of the third key.
6. The SDP client security authentication system according to claim 5, characterized in that: The preset period is set according to the current usage evaluation of the third key, including: The establishing unit is further used to pre-set a first preset usage evaluation interval, a second preset usage evaluation interval and a third preset usage evaluation interval, and also pre-set a first preset period, a second preset period, a third preset period and a fourth preset period; When the usage evaluation degree of the third key is less than the first preset usage evaluation degree interval, directly changing the current third key; When the usage evaluation degree of the third key is within the first preset usage evaluation degree interval, selecting the first preset period as the preset period to change the current third key; When the usage evaluation degree of the third key is within the second preset usage evaluation degree interval, selecting the second preset period as the preset period to change the current third key; When the usage evaluation degree of the third key is within a third preset usage evaluation degree interval, selecting a third preset period as a preset period to change the current third key; When the usage evaluation degree of the third key is greater than the third preset usage evaluation degree interval, the fourth preset period is selected as the preset period to change the current third key.
