A network security management method and related equipment

Through identity authentication and temporary session key negotiation combining device unique identification and digital certificate, the problems of unauthentication and key leakage in information transmission are solved, the reliability and security of information transmission are improved, and the network of the micronet system is optimized. Safety.

CN118573483BActive Publication Date: 2024-11-19QUANZHOU INST OF INFORMATION ENG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411048774.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-11-19
Estimated Expiration
2044-08-01

AI Technical Summary

Technical Problem

The prior art does not authenticate the information source during information transmission, resulting in the transmission of information that does not meet the conditions, reducing the reliability of information transmission. Once the key is leaked, the information is easily cracked, reducing security, especially In the micronet system, the internal network is easily controlled after the firewall is broken, affecting industrial control.

Method used

Identity authentication is performed using a combination of device unique identification and digital certificates, and temporary session key negotiation is carried out during the identity authentication process. Connection priority is generated based on the attribute information and security level information of mobile devices, and design and behavior through encrypted communication protocols. Determine access control, build a secure execution environment, and enhance the inherent security of the network and system.

Benefits of technology

It achieves the reliability and security of information transmission, ensures the security and efficiency of connection between mobile devices and servers, optimizes resource allocation, improves overall network stability and performance, and enhances the protection capabilities of the micronet system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573483B_ABST
    Figure CN118573483B_ABST
Patent Text Reader

Abstract

The present disclosure provides a network security management method and related equipment, which relate to the field of communication technology. The present application obtains digital certificate information, device unique identification information, mobile device random number, mobile device key-share information, attribute information and security level information of the mobile device sent by the mobile device; obtains the target server random number and target server key-share information; generates a pre-master key according to the mobile device key-share information and the target server key-share information; generates a temporary session key according to the mobile device random number, the target server random number and the pre-master key; processes the digital certificate information and the device unique identification information based on the preset pairing rules to generate a processing result; obtains configuration information and generates encrypted configuration information; processes the attribute information and security level information of the mobile device to generate the connection priority of the mobile device; connects with the mobile device based on the connection priority of the mobile device and the encrypted configuration information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a network security management method and related equipment. Background Art

[0002] With the rapid development of Internet technology, the security of information transmission has become particularly important. At present, information transmission platforms usually use symmetric encryption to encrypt information for transmission to improve the security of information transmission.

[0003] However, when the above-mentioned encrypted transmission method is used, the following technical problems usually exist: first, the source of the information is not authenticated, which may result in the transmission of some unqualified information, reducing the reliability of information transmission; second, when symmetric encryption is used, once the encryption key is leaked, the encrypted information can be easily cracked, greatly reducing the security of information transmission.

[0004] At present, the security protection measures taken in microgrid systems are generally to deploy firewalls between the enterprise management layer of the microgrid system and the external network. Due to the lack of protection measures, once the firewall between the enterprise management layer and the external network is breached by attackers, the internal network of the microgrid system can be easily controlled, so that the production data and other data in the microgrid system can be stolen, or the field equipment can be maliciously manipulated, affecting normal industrial control.

[0005] In addition, the microgrid system deploys a large number of intelligent integrated terminals, which are monitored and controlled by microgrid energy controllers. It has the characteristics of large amount of data transmission, diverse data acquisition methods, and high real-time data interaction. It is urgent to improve the network security protection of the microgrid system.

[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0007] The purpose of the present disclosure is to provide a network security management method and related equipment, which at least to some extent overcomes the problems existing in the prior art, uses a combination of device unique identification and digital certificates to complete identity authentication, and negotiates temporary session keys during the identity authentication process, meets the plug-and-play requirements of the end device, and processes based on the attribute information of the mobile device and the security level information to generate the connection priority of the mobile device. Strengthen the inherent security of the network and the system itself, consider improving the security mechanism in the design of the communication protocol, embedding the access control based on behavior judgment, realizing the variable state of the system and network in a virtual heterogeneous manner, and building a secure execution environment.

[0008] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0009] According to one aspect of the present application, a network security management method is provided, comprising: obtaining digital certificate information, device unique identification information, mobile device random number, mobile device key-share information, attribute information and security level information of the mobile device sent by a mobile device; obtaining a target server random number and target server key-share information; generating a pre-master key according to the mobile device key-share information and the target server key-share information; generating a temporary session key according to the mobile device random number, the target server random number and the pre-master key; processing the digital certificate information and the device unique identification information based on a preset pairing rule to generate a processing result; if the processing result is to allow the target server to pair and connect with the mobile device, then obtaining configuration information, the configuration information including a domain name certificate and other target server parameters required to complete a connection establishment process with the mobile device; encrypting the configuration information based on the temporary session key to generate encrypted configuration information, wherein the encrypted configuration information is used for the mobile device to complete a connection establishment process with the target server; processing the attribute information and the security level information of the mobile device to generate a connection priority of the mobile device; connecting with the mobile device based on the connection priority of the mobile device and the encrypted configuration information.

[0010] In one embodiment of the present application, the obtaining of configuration information includes: detecting whether the domain name certificate in the local storage area is in a valid state; if not, sending a certificate loading request to a certificate center; and replacing the domain name certificate in an invalid state with a new domain name certificate obtained from the certificate center.

[0011] In one embodiment of the present application, sending a certificate loading request to a certificate center includes: sending a certificate loading request to the certificate center, wherein the certificate loading request includes identification information, and the identification information is used to identify the processing priority of the certificate loading request in the certificate center: obtaining the domain name certificate returned by the certificate center.

[0012] In one embodiment of the present application, after sending the encrypted configuration information to the mobile device to complete the connection establishment process, it also includes: when the target server completes the first handshake request, storing all domain name information supported by the domain name certificate in the first handshake request, cross-domain name reuse information and handshake reuse information associated with the domain name certificate in a mapping table; sending the handshake reuse information to the mobile device; when the mobile device is disconnected from the target server and needs to connect again, completing the handshake request with the mobile device based on the handshake reuse information.

[0013] In one embodiment of the present application, completing the handshake request with the mobile device based on the handshake multiplexing information includes: when the cross-domain name multiplexing information is the cross-domain name multiplexing extension information carried by the ClientHello message sent by the mobile device; obtaining the ClientHello message sent by the mobile device, the ClientHello message including SessionID information: determining the session key based on the session information associated with the SessionID information, and completing the handshake request with the mobile device.

[0014] In one embodiment of the present application, the completing the handshake request with the mobile device based on the handshake multiplexing information also includes: when the cross-domain name multiplexing information is a cross-domain name multiplexing flag carried by a Newsessionticket message sent by the mobile device; obtaining a ClientHello message sent by the mobile device, wherein the ClientHello message includes Sessionticket information; sending verification information to the mobile device, wherein the verification information is information returned after successful verification of the Sessionticket information; determining a session key based on the session information associated with the Sessionticket information, and completing the handshake request with the mobile device.

[0015] In one embodiment of the present application, the attribute information and the security level information of the mobile device are processed to generate a connection priority of the mobile device, including: obtaining real-time load balancing information of the target server and data connection task information within a preset period; processing the target server based on the data connection task information within the preset period to generate preset connection progress information of the target server; processing the attribute information and the security level information of the mobile device to generate target processing progress information, wherein the target processing progress information includes the processing time and connection time of the mobile device; processing the preset connection progress information based on the target processing progress information to generate a connection priority of the mobile device.

[0016] Another aspect of the present application is a network security management device, characterized in that it includes: an acquisition module, which is used to acquire digital certificate information, device unique identification information, mobile device random number, mobile device key-share information, attribute information and security level information of the mobile device sent by the mobile device; acquire the target server random number and target server key-share information; a processing module, which is used to generate a pre-master key according to the mobile device key-share information and the target server key-share information; generate a temporary session key according to the mobile device random number, the target server random number and the pre-master key; process the digital certificate information and the device unique identification information based on a preset pairing rule to generate a processing result; if the processing result is to allow the target server to pair and connect with the mobile device, then obtain configuration information, the configuration information including a domain name certificate and other target server parameters required to complete a connection establishment process with the mobile device; encrypt the configuration information based on the temporary session key to generate encrypted configuration information, wherein the encrypted configuration information is used for the mobile device to complete a connection establishment process with the target server; process the attribute information and the security level information of the mobile device to generate a connection priority of the mobile device; connect with the mobile device based on the connection priority of the mobile device and the encrypted configuration information.

[0017] According to another aspect of the present application, an electronic device is characterized in that it includes: a first processor; and a memory for storing executable instructions of the first processor; wherein the first processor is configured to execute the above-mentioned network security management method by executing the executable instructions.

[0018] According to another aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a second processor, the above-mentioned network security management method is implemented.

[0019] According to another aspect of the present application, a computer program product is provided, including a computer program, characterized in that when the computer program is executed by a third processor, the computer program implements the above-mentioned network security management method.

[0020] The present application provides a network security management method and related equipment, wherein a target server obtains digital certificate information, device unique identification information, mobile device random number, mobile device key-share information, attribute information and security level information of the mobile device sent by a mobile device; obtains the target server random number and target server key-share information; generates a pre-master key according to the mobile device key-share information and the target server key-share information; generates a temporary session key according to the mobile device random number, the target server random number and the pre-master key; processes the digital certificate information and the device unique identification information based on a preset pairing rule to generate a processing result; if the processing result is to allow the target server to pair and connect with the mobile device, then obtains configuration information, the configuration information includes a domain name certificate and other target server parameters required to complete a connection establishment process with the mobile device; encrypts the configuration information based on the temporary session key to generate encrypted configuration information, wherein the encrypted configuration information is used for the mobile device to complete a connection establishment process with the target server; processes the attribute information and security level information of the mobile device to generate a connection priority for the mobile device, and connects with the mobile device based on the connection priority of the mobile device and the encrypted configuration information. The unique device identifier and digital certificate are used to complete identity authentication, and temporary session key negotiation is performed during the identity authentication process to meet the plug-and-play requirements of the end device. The mobile device's attribute information and the security level information are processed to generate the connection priority of the mobile device. The inherent security of the network and system itself is strengthened. In the design of the communication protocol, the security mechanism is improved, the access control based on behavior judgment is embedded, the system and network status are variable in a virtual heterogeneous manner, and a secure execution environment is constructed.

[0021] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0023] Figure 1 A flowchart showing a network security management method provided by an embodiment of the present application is shown;

[0024] Figure 2 A schematic diagram showing the structure of a network security management device provided by an embodiment of the present application is shown;

[0025] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present application is shown;

[0026] Figure 4 A schematic diagram of a storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0027] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0028] Combine the following Figure 1 To describe the network security management method according to the exemplary embodiment of the present application. It should be noted that the following application scenarios are only shown to facilitate understanding of the spirit and principle of the present application, and the implementation of the present application is not limited in this respect. On the contrary, the implementation of the present application can be applied to any applicable scenario.

[0029] It should be noted that the mobile device and the target server can establish communication through a physical port, etc. One or more mobile devices can be deployed in the network system architecture, and the same mobile device can be connected to multiple target servers, and the same target server can also communicate with multiple mobile devices.

[0030] Among them, the mobile device and the target server are not definite hardware products for the entire network system architecture. The same hardware, such as a computer, a target server, etc., may be used as a mobile device in one situation and as a target server in another situation.

[0031] The division of mobile devices and target servers in this application can represent the corresponding relationship in communication mode, for example, one target server can correspond to multiple mobile devices; it can also represent different usage functions, such as mobile devices are used for users, and target servers are used for storing certificates for transfer. In order to facilitate more accurate judgment, in this application, the functions and roles of mobile devices and target servers are not limited. Only those that send connection requests in the communication connection are regarded as mobile devices, and those that obtain connection requests or store certificates are regarded as target servers.

[0032] In one implementation, the present application also proposes a network security management method and related equipment. Figure 1 The following schematically shows a flow chart of a network security management method according to an embodiment of the present application. Figure 1 As shown, the method is applied to a target server and includes:

[0033] S101, obtaining digital certificate information, device unique identification information, mobile device random number, mobile device key-share information, mobile device attribute information and security level information sent by the mobile device.

[0034] In one implementation, the mobile device random number may be 32 bytes generated by a secure random number generator, the device unique identification information may be the MAC address of the mobile device, key_share is the public key corresponding to the elliptic curve type, and the specific presentation form of the key_share information is not repeated here. In addition, the device's processor speed, memory size, storage space, and network connection capabilities are considered to evaluate its ability to process and transmit data, and the device's encryption technology, such as full disk encryption and transmission encryption, is evaluated to ensure data security during transmission. The device's access control mechanism and application permission management are considered to ensure that only authorized applications and services can access the network, and whether the device supports remote management functions, such as remote locking and data clearing, is evaluated, which helps protect data when the device is lost or stolen.

[0035] S102, obtaining a target server random number and target server key-share information.

[0036] S103: Generate a pre-master key according to the key-share information of the mobile device and the key-share information of the target server.

[0037] In one embodiment, the key-share information includes but is not limited to preset parameters for calculating the pre-master key; for example: a mobile device sends a request (ClientHello), the extension part carries the supported elliptic curve type, and calculates the mobile device public key (POINT) for each elliptic curve type supported by itself, and the mobile device public key is placed in the key-share information in the extension information; after the target server selects the elliptic curve parameters, it multiplies the basepoint of the elliptic curve to obtain the target server public key (POINT); then extracts the corresponding mobile device public key in the key_share information in the ClientHello, and calculates the pre-master key; the mobile device calculates the pre-master key after receiving the target server public key (POINT) of the target server.

[0038] S104, generating a temporary session key according to the mobile device random number, the target server random number and the pre-master key.

[0039] In one implementation, the mobile device random number and the mobile device key-share information are generated by the mobile device; the target server random number and the target server key-share information are generated by the target server, and the specific generation method is not limited here. By using the pre-information of the session key transmitted by the mobile device and the target server during the handshake process (connection establishment process), the session key can be quickly determined without affecting the handshake process (connection establishment process), greatly shortening the time for communication between the two ends after the handshake (connection establishment).

[0040] S105: Process the digital certificate information and the device unique identification information based on a preset pairing rule to generate a processing result.

[0041] In one implementation, identity authentication is completed by combining the unique device identifier and digital certificate, and a temporary session key negotiation is performed during the identity authentication process to meet the plug-and-play requirements of the end device. During registration, the sensor device identifier, digital certificate and other information need to be uniquely bound; after registration is completed, when the session link is reestablished, two-way identity authentication is performed based on the digital certificate and SM2 algorithm.

[0042] S106: If the processing result is to allow the target server to be paired with the mobile device, then obtain configuration information.

[0043] In one embodiment, the configuration information includes the domain name certificate and other target server parameters required to complete the connection establishment process with the mobile device. The target server detects whether the domain name certificate in the local storage area is in a valid state; if not, a certificate loading request is sent to the certificate center; and the domain name certificate in an invalid state is replaced with a new domain name certificate obtained from the certificate center. The target server detects whether the domain name certificate in the local storage area is in a valid state. If not, the target server sends a certificate loading request to the certificate center, and replaces the domain name certificate in an invalid state with a new domain name certificate obtained from the certificate center. In this way, the invalid domain name certificate is replaced before the handshake starts, so that the required domain name certificate is directly loaded during the handshake process, reducing the handshake time. A certificate list is set in the target server, and the domain name certificate in the local storage area is recorded in the certificate list, and the domain name certificate is detected by the certificate list. Among them, the local storage area may include a disk storage area and a memory storage area. Files stored in the disk storage area need to consume I / O performance for reading and writing, and files stored in the memory storage area can be read directly.

[0044] In another implementation, a certificate loading request is sent to a certificate center, wherein the certificate loading request includes identification information, and the identification information is used to identify the processing priority of the certificate loading request in the certificate center; and the domain name certificate returned by the certificate center is obtained. The target server sends a certificate loading request to the certificate center, and the request can be made by a python script or other methods. In this application, there is no restriction on the specific request method. The specific form of the identification information can be selected according to the actual situation, and there is no restriction on this in this application. The example is as follows, setting the processing priority to a weight value of 1-25, and the larger the weight value, the higher the priority.

[0045] S107: Encrypt the configuration information based on the temporary session key to generate encrypted configuration information.

[0046] In one implementation, configuration information is encrypted / decrypted using a temporary session key, specifically: when a mobile device sends data, the data is first encrypted using an SM4 algorithm based on a temporary session key and then sent to a target server; when the target server obtains the encrypted data, the data is first decrypted using an SM4 algorithm based on a temporary session key to obtain the corresponding data; similarly, when the target server sends data, the data is first encrypted using an SM4 algorithm based on a temporary session key and then sent to the mobile device; when the mobile device obtains the encrypted data, the data is first decrypted using an SM4 algorithm based on a temporary session key to obtain the corresponding data; the encrypted configuration information is used for the mobile device to complete the connection establishment process with the target server.

[0047] After the target server obtains the CHLO message (initial packet), it replies with a rejection (REJ) message, which contains the configuration information of the target server, and the configuration information includes the corresponding domain name certificate; the mobile device receives the REJ message, extracts and stores the configuration information, and sends a fullclienthello message to the target server to start a formal handshake, which includes the public number selected by the mobile device; at this time, the mobile device can calculate the initial key based on the configuration information obtained and the public number selected by itself; the target server receives the fullclienthello message, and if it agrees to connect, it calculates the initial key based on the public number of the mobile device and replies with a serverhello (SHLO) message, which is encrypted with the initial key and contains a temporary public number selected by the target server; the mobile device receives the reply from the target server, and if it is a SHLO message, it attempts to decrypt it with the initial key and extracts the temporary public number; the mobile device and the target server derive the session key based on the temporary public number and the initial key based on the SHA-256 algorithm; the two parties change to use the session key to communicate, and the initial key is no longer useful at this time, and the handshake process is completed. Its specific handshake process can also be other ways after partial improvement, and this embodiment will not repeat this process.

[0048] S108, processing the attribute information of the mobile device and the security level information to generate a connection priority of the mobile device.

[0049] In one implementation, the real-time load balancing information of the target server and the data connection task information within a preset period are obtained, the load balancing information of the target server is monitored in real time, the current network traffic and resource usage are understood, and the data connection task information within the preset period is collected, including the task type, data volume, and expected completion time. The target server is processed based on the data connection task information within the preset period, and the preset connection progress information of the target server is generated. Based on the collected data connection task information, the connection progress of the target server is predicted, and its processing capacity is evaluated.

[0050] The attribute information and security level information of the mobile device are processed to generate target processing progress information, wherein the target processing progress information includes the processing time and connection time of the mobile device; the attribute information of the mobile device, such as processor speed, memory size and network connection capability, is analyzed; the security level of the mobile device is evaluated; factors such as encryption technology, operating system updates and malware protection are considered; the attributes and security information of the mobile device are integrated to generate target processing progress information, including the estimated processing time and connection time.

[0051] The preset connection progress information is processed based on the target processing progress information to generate the connection priority of the mobile device. The connection priority of each device is evaluated according to the real-time load of the server and the processing progress of the mobile device. A connection priority is generated for each mobile device, giving priority to devices with fast processing speed, high security and urgent connection needs. The connection priority is dynamically adjusted according to the changes in the server load and the actual connection status of the mobile device.

[0052] In addition, the connection priority of the mobile device can be determined based on the size of the data to be transmitted by the mobile device, the transmission time, and the duration of the connection process. The priority is not simply distinguished by the importance of the mobile device, but is determined based on the difficulty and time of data processing.

[0053] S109: Connecting to the mobile device based on the connection priority of the mobile device and the encrypted configuration information.

[0054] In one implementation, connecting to a mobile device based on the connection priority of the mobile device and the encrypted configuration information is a strategy for ensuring network security and optimizing resource allocation. The connection priority of each device is determined based on the attribute information, security level and server load of the mobile device, and the configuration information is encrypted using a strong encryption algorithm to ensure that it is not intercepted or tampered with during transmission. A request for connecting to the mobile device is generated based on the connection priority and the encrypted configuration information, and the encrypted connection request is sent to the target mobile device, waiting for the device to respond. After receiving the connection request, the mobile device verifies the legitimacy of the request and responds.

[0055] The mobile device uses the corresponding decryption key to decrypt the configuration information and obtain the connection parameters. Based on the decrypted configuration information, the mobile device establishes a secure encrypted connection with the server. After receiving the connection request from the mobile device, the server confirms the connection and performs necessary security checks. Once the connection is established, it begins to transmit data securely to ensure the integrity and confidentiality of the data during transmission. It continuously monitors the connection status to ensure the stability of the connection, and promptly identifies and resolves possible problems. It dynamically adjusts the connection priority and optimizes resource allocation based on network conditions and device performance. It conducts regular security audits to check whether the security measures in the connection process are appropriate and whether there are potential security risks. It sends notifications to users when the connection is established and disconnected to improve user experience and transparency. It securely disconnects and cleans up related resources when data transmission is completed or the connection is no longer needed.

[0056] This process ensures that the connection between mobile devices and servers is both secure and efficient, while optimizing the use of network resources and improving overall network stability and performance. This is especially important for enterprise networks that need to handle a large number of mobile device connections.

[0057] In the present application, digital certificate information, device unique identification information, mobile device random number, mobile device key-share information, attribute information and security level information of the mobile device sent by the mobile device are obtained; the target server random number and target server key-share information are obtained; a pre-master key is generated according to the mobile device key-share information and the target server key-share information; a temporary session key is generated according to the mobile device random number, the target server random number and the pre-master key; the digital certificate information and the device unique identification information are processed based on a preset pairing rule to generate a processing result; if the processing result is to allow the target server to pair and connect with the mobile device, configuration information is obtained, and the configuration information includes the domain name certificate and other target server parameters required to complete the connection establishment process with the mobile device; the configuration information is encrypted based on the temporary session key to generate encrypted configuration information, wherein the encrypted configuration information is used for the mobile device to complete the connection establishment process with the target server; the attribute information and security level information of the mobile device are processed to generate a connection priority for the mobile device; and the mobile device is connected based on the connection priority of the mobile device and the encrypted configuration information. The unique device identifier and digital certificate are used to complete identity authentication, and temporary session key negotiation is performed during the identity authentication process to meet the plug-and-play requirements of the end device. The mobile device's attribute information and the security level information are processed to generate the connection priority of the mobile device. The inherent security of the network and system itself is strengthened. In the design of the communication protocol, the security mechanism is improved, the access control based on behavior judgment is embedded, the system and network status are variable in a virtual heterogeneous manner, and a secure execution environment is constructed.

[0058] Optionally, in another embodiment of the method of the present application, after sending the encrypted configuration information to the mobile device to complete the connection establishment process, the method further includes:

[0059] Obtaining an encryption request message sent by a mobile device, wherein the encryption request message includes first national secret information;

[0060] Selecting second national secret information from the first national secret information, and sending an encrypted confirmation message to the mobile device, wherein the encrypted confirmation message includes the second national secret information;

[0061] Determine the national secret certificate based on the preset encryption rule, and sign the national secret certificate using the signature algorithm in the second national secret information to generate encrypted verification information;

[0062] sending the encrypted verification information to the mobile device;

[0063] When data is interacted with the terminal, encryption / decryption is performed using the SM4 algorithm in the second national secret information.

[0064] In one implementation, if it is determined that the ClientHello message carries SNI extension information, the domain name information in the SNI extension information is extracted, and the national secret certificate corresponding to the domain name information is used as the national secret certificate, and / or if it is determined that the ClientHello message does not carry SNI extension information, the default national secret certificate is used as the national secret certificate. When the mobile device sends data, the data is encrypted using the SM4 algorithm based on the second national secret information and then sent to the target server. When the target server obtains the encrypted data, the data is first decrypted using the SM4 algorithm based on the second national secret information to obtain the corresponding data; similarly, when the target server sends data, the data is first encrypted using the SM4 algorithm based on the second national secret information and then sent to the mobile device. When the mobile device obtains the encrypted data, the data is first decrypted using the SM4 algorithm based on the second national secret information to obtain the corresponding data.

[0065] Optionally, in another embodiment of the method of the present application, after sending the encrypted configuration information to the mobile device to complete the connection establishment process, the method further includes:

[0066] When the target server completes the first handshake request, all domain name information supported by the domain name certificate in the first handshake request, cross-domain name reuse information, and handshake reuse information associated with the domain name certificate are stored in the mapping table;

[0067] Sending handshake multiplexing information to the mobile device;

[0068] When the mobile device is disconnected from the target server and needs to be reconnected, a handshake request is completed with the mobile device based on the handshake multiplexing information.

[0069] In one implementation, the target server extracts all domain name information supported by the certificate; obtains SESSIONID information, or obtains SESSIONticket encrypted information sent by the edge node; associates all domain name information with SESSIONID information, or associates all domain name information with SESSIONticket encrypted information.

[0070] In another implementation, when the cross-domain reuse information is the cross-domain reuse extension information carried by the ClientHello message sent by the mobile device; obtain the ClientHello message sent by the mobile device, the ClientHello message includes SessionID information; determine the session key according to the session information associated with the SessionID information, and complete the handshake request with the mobile device. For example, a normal user requests the original request https: / / a.example.com / url1, the mobile device DNS resolves a.example.com to obtain the corresponding IP, performs a TLS handshake, the target server returns the handshake information, and the handshake information contains a flag or extension information for cross-domain handshake reuse, and the target server saves the relevant handshake session information. The mobile device parses the handshake information, obtains the cross-domain reuse identifier, extracts all the domain name information of the certificate, caches the relevant handshake information, and the extracted domain names can share this handshake information. (For example, the certificate supports *.example.com) After the handshake is successful, a request is initiated to obtain a content completion request. A normal user requests https: / / b.example.com / url2. The mobile device DNS resolves b.example.com to obtain the corresponding IP address. The mobile device searches the handshake cache and finds that this domain name can share the previous handshake information of a.example.com. It uses this handshake information to complete the reused handshake with the new target server.

[0071] In another implementation, when the cross-domain reuse information is a cross-domain reuse flag carried by a Newsessionticket message sent by a mobile device; obtain a ClientHello message sent by the mobile device, wherein the ClientHello message includes Sessionticket information; send verification information to the mobile device, wherein the verification information is information returned after successful verification of the Sessionticket information; determine the session key based on the session information associated with the Sessionticket information, and complete the handshake request with the mobile device.

[0072] By applying the above technical solution, the target server obtains the digital certificate information, device unique identification information, mobile device random number and mobile device key-share information sent by the mobile device; obtains the target server random number and target server key-share information; generates a pre-master key according to the mobile device key-share information and the target server key-share information; generates a temporary session key according to the mobile device random number, the target server random number and the pre-master key; processes the digital certificate information and the device unique identification information based on the preset pairing rule to generate a processing result; if the processing result is to allow the target server to pair with the mobile device, obtain configuration information, the configuration information includes the domain name certificate and other target server parameters required to complete the connection establishment process with the mobile device; detects whether the domain name certificate in the local storage area is in a valid state; if not, sends a certificate loading request to the certificate center, wherein the certificate loading request includes identification information, and the identification information is used to identify the processing priority of the certificate loading request in the certificate center; obtains the domain name certificate returned by the certificate center; replaces the domain name certificate in an invalid state with the new domain name certificate obtained from the certificate center; encrypts the configuration information based on the temporary session key to generate encrypted configuration information; and sends the encrypted configuration information to the mobile device to complete the connection establishment process.

[0073] In addition, the target server will also obtain an encryption request message sent by the mobile device, which includes the first national secret information; select the second national secret information from the first national secret information, and send an encryption confirmation message to the mobile device, which includes the second national secret information; determine the national secret certificate based on the preset encryption rules, and sign the national secret certificate through the signature algorithm in the second national secret information to generate encryption verification information; send the encryption verification information to the mobile device; and encrypt / decrypt through the SM4 algorithm in the second national secret information when interacting with the terminal.

[0074] When the target server completes the first handshake request, it stores all domain name information, cross-domain reuse information, and handshake reuse information associated with the domain name certificate supported by the domain name certificate in the first handshake request in the mapping table; sends the handshake reuse information to the mobile device; when the mobile device is disconnected from the target server and needs to reconnect, when the cross-domain reuse information is the cross-domain reuse extension information carried by the ClientHello message sent by the mobile device; obtains the ClientHello message sent by the mobile device, and the ClientHello message includes SessionID information; determines the session key according to the session information associated with the SessionID information, and completes the handshake request with the mobile device. When the cross-domain reuse information is the cross-domain reuse flag carried by the Newsessionticket message sent by the mobile device; obtains the ClientHello message sent by the mobile device, and the ClientHello message includes Sessionticket information; sends verification information to the mobile device, wherein the verification information is the information returned after the Sessionticket information is successfully verified; determines the session key according to the session information associated with the Sessionticket information, and completes the handshake request with the mobile device. The unique device identifier and digital certificate are combined to complete identity authentication, and temporary session key negotiation is performed during the identity authentication process to meet the plug-and-play requirements of the end device. Strengthen the inherent security of the network and system itself, and consider improving the security mechanism, embedding access control based on behavior judgment, realizing system and network state changes in a virtual heterogeneous manner, and building a secure execution environment in the design of the communication protocol. Build an integrated security architecture in which "external protection + native security" interact and complement each other. On the one hand, relying on the existing external security protection technology, targeted isolation, filtering, detection and other defense measures are implemented for the risk points that may exist in the system architecture of smart fusion terminals, microgrid energy controllers, etc., to resist potential network attack security threats; on the other hand, strengthen the inherent security of the network and system itself, such as considering improving the security mechanism, embedding access control based on behavior judgment, realizing system and network state changes in a virtual heterogeneous manner, and building a secure execution environment in the design of the communication protocol.

[0075] In one embodiment, if Figure 2 As shown, the present application also provides a network security management device, including:

[0076] The acquisition module 201 is used to acquire the digital certificate information, device unique identification information, mobile device random number, mobile device key-share information, mobile device attribute information and security level information sent by the mobile device; acquire the target server random number and target server key-share information;

[0077] The processing module 202 is used to generate a pre-master key based on the key-share information of the mobile device and the key-share information of the target server; generate a temporary session key based on the random number of the mobile device, the random number of the target server and the pre-master key; process the digital certificate information and the device unique identification information based on a preset pairing rule to generate a processing result; if the processing result is to allow the target server to pair and connect with the mobile device, obtain configuration information, the configuration information including the domain name certificate and other target server parameters required to complete the connection establishment process with the mobile device; encrypt the configuration information based on the temporary session key to generate encrypted configuration information, wherein the encrypted configuration information is used for the mobile device to complete the connection establishment process with the target server; process the attribute information and the security level information of the mobile device to generate a connection priority for the mobile device; and connect to the mobile device based on the connection priority of the mobile device and the encrypted configuration information.

[0078] In this application, the target server obtains the digital certificate information, device unique identification information, mobile device random number, mobile device key-share information, attribute information and security level information of the mobile device sent by the mobile device; obtains the target server random number and target server key-share information; generates a pre-master key according to the mobile device key-share information and the target server key-share information; generates a temporary session key according to the mobile device random number, the target server random number and the pre-master key; processes the digital certificate information and the device unique identification information based on the preset pairing rule to generate a processing result; if the processing result is to allow the target server to pair and connect with the mobile device, then obtain the configuration information, which includes the domain name certificate and other target server parameters required to complete the connection establishment process with the mobile device; encrypts the configuration information based on the temporary session key to generate the encrypted configuration information, wherein the encrypted configuration information is used for the mobile device to complete the connection establishment process with the target server; processes the attribute information and security level information of the mobile device to generate the connection priority of the mobile device; connects with the mobile device based on the connection priority of the mobile device and the encrypted configuration information. Identity authentication is completed by combining the device unique identification and digital certificate, and a temporary session key negotiation is performed during the identity authentication process to meet the plug-and-play requirements of the terminal device. Strengthen the inherent security of the network and the system itself, consider improving the security mechanism in the design of the communication protocol, embedding access control based on behavior judgment, realizing the variability of the system and network status in a virtual heterogeneous manner, and building a secure execution environment.

[0079] In another embodiment of the present application, the processing module 202 is configured to obtain the configuration information, including:

[0080] Check whether the domain name certificate in the local storage area is valid;

[0081] If not, a certificate loading request is sent to the certificate authority;

[0082] The domain name certificate in an expired state is replaced with a new domain name certificate obtained from the certificate center.

[0083] In another embodiment of the present application, the processing module 202 is configured to send the certificate loading request to the certificate center, including:

[0084] Sending a certificate loading request to the certificate center, wherein the certificate loading request includes identification information, and the identification information is used to identify the processing priority of the certificate loading request in the certificate center;

[0085] Obtain the domain name certificate returned by the certificate center.

[0086] In another embodiment of the present application, the processing module 202 is configured to, after sending the encrypted configuration information to the mobile device to complete the connection establishment process, further include:

[0087] When the target server completes the first handshake request, all domain name information supported by the domain name certificate in the first handshake request, cross-domain name reuse information, and handshake reuse information associated with the domain name certificate are stored in the mapping table;

[0088] Sending handshake multiplexing information to the mobile device;

[0089] When the mobile device is disconnected from the target server and needs to be reconnected, a handshake request is completed with the mobile device based on the handshake multiplexing information.

[0090] In another embodiment of the present application, the processing module 202 is configured to complete the handshake request with the mobile device based on the handshake multiplexing information, including:

[0091] When the cross-domain multiplexing information is cross-domain multiplexing extension information carried by the ClientHello message sent by the mobile device;

[0092] Obtaining a ClientHello message sent by the mobile device, wherein the ClientHello message includes the SessionID information;

[0093] A session key is determined according to the session information associated with the SessionID information, and a handshake request with the mobile device is completed.

[0094] In another embodiment of the present application, the processing module 202 is configured to complete the handshake request with the mobile device based on the handshake multiplexing information, and further includes:

[0095] When the cross-domain name multiplexing information is a cross-domain name multiplexing flag bit carried in a Newsessionticket message sent by the mobile device;

[0096] Obtaining a ClientHello message sent by the mobile device, wherein the ClientHello message includes Sessionticket information;

[0097] Send verification information to the mobile device, wherein the verification information is information returned after successful verification of the SessionTicket information;

[0098] A session key is determined according to the session information associated with the SessionTicket information, and a handshake request with the mobile device is completed.

[0099] In another embodiment of the present application, the processing module 202 is configured to process the attribute information of the mobile device and the security level information to generate a connection priority of the mobile device, including:

[0100] Obtain the target server's real-time load balancing information and data connection task information within a preset period;

[0101] Processing the target server based on the data connection task information within the preset period to generate preset connection progress information of the target server;

[0102] Processing the attribute information of the mobile device and the security level information to generate target processing progress information, wherein the target processing progress information includes a processing time and a connection time of the mobile device;

[0103] The preset connection progress information is processed based on the target processing progress information to generate a connection priority of the mobile device.

[0104] The present application embodiment provides an electronic device, such as Figure 3As shown, the electronic device 3 includes a first processor 300, a memory 301, a bus 302 and a communication interface 303, and the first processor 300, the communication interface 303 and the memory 301 are connected via the bus 302; the memory 301 stores a computer program that can be run on the first processor 300, and when the first processor 300 runs the computer program, it executes the network security management method provided in any of the aforementioned embodiments of the present application.

[0105] The memory 301 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 303 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0106] The bus 302 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 301 is used to store programs, and the first processor 300 executes the programs after acquiring the execution instructions. The network security management method disclosed in any implementation of the embodiment of the present application may be applied to the first processor 300, or implemented by the first processor 300.

[0107] The first processor 300 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the first processor 300. The above-mentioned first processor 300 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a readily available programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be embodied as being executed by a hardware decoding processor, or by a combination of hardware and software modules in a decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 301, and the first processor 300 reads the information in the memory 301 and completes the steps of the above method in combination with its hardware.

[0108] The electronic device provided by the above-mentioned embodiments of the present application and the network security management method provided by the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.

[0109] The present application embodiment provides a computer-readable storage medium, such as Figure 4 As shown, the computer-readable storage medium stores 401 a computer program, and when the computer program is read and executed by the second processor 402, the aforementioned network security management method is implemented.

[0110] The technical solution of the embodiment of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device (which may be an air conditioner, a refrigeration device, a personal computer, a target server, or a network device, etc.) or a processor to execute all or part of the steps of the method described in the embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

[0111] The computer-readable storage medium provided in the above-mentioned embodiments of the present application and the network security management method provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.

[0112] An embodiment of the present application provides a computer program product, including a computer program, wherein the computer program is executed by a third processor to implement the method described above.

[0113] The computer program product provided by the above-mentioned embodiments of the present application and the network security management method provided by the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.

[0114] It should be noted that, in this application, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or still includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0115] Each embodiment in the present application is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the management method, electronic device, electronic device, and readable storage medium embodiment for evaluating network security, since they are basically similar to the network security management method embodiment described above, the description is relatively simple, and the relevant parts can be referred to the partial description of the network security management method embodiment described above.

[0116] Although the present application is disclosed as above, the present application is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application. Therefore, the protection scope of the present application shall be subject to the scope defined by the claims.

Claims

1. A network security management method, characterized in that: The method comprises: Obtain digital certificate information, device unique identification information, mobile device random number, mobile device key-share information, mobile device attribute information and security level information sent by the mobile device; Get the target server random number and target server key-share information; Generate a pre-master key according to the mobile device key-share information and the target server key-share information; generating a temporary session key based on the mobile device random number, the target server random number and the pre-master key; Processing the digital certificate information and the device unique identification information based on a preset pairing rule to generate a processing result; If the processing result is to allow the target server to pair with the mobile device, then obtaining configuration information, the configuration information including the domain name certificate and other target server parameters required to complete the connection establishment process with the mobile device; Encrypting the configuration information based on the temporary session key to generate encrypted configuration information, wherein the encrypted configuration information is used for the mobile device to complete a connection establishment process with a target server; Processing the attribute information of the mobile device and the security level information to generate a connection priority of the mobile device; connecting with the mobile device based on the connection priority of the mobile device and the encrypted configuration information; Processing the attribute information of the mobile device and the security level information to generate a connection priority of the mobile device includes: Obtain the target server's real-time load balancing information and data connection task information within a preset period; Processing the target server based on the data connection task information within the preset period to generate preset connection progress information of the target server; Processing the attribute information of the mobile device and the security level information to generate target processing progress information, wherein the target processing progress information includes a processing time and a connection time of the mobile device; The preset connection progress information is processed based on the target processing progress information to generate a connection priority of the mobile device.

2. The method according to claim 1, characterized in that: The obtaining of configuration information includes: Check whether the domain name certificate in the local storage area is valid; If not, a certificate loading request is sent to the certificate authority; The domain name certificate in an expired state is replaced with a new domain name certificate obtained from the certificate center.

3. The method according to claim 2, characterized in that The sending of the certificate loading request to the certificate center includes: Sending a certificate loading request to the certificate center, wherein the certificate loading request includes identification information, and the identification information is used to identify the processing priority of the certificate loading request in the certificate center; Obtain the domain name certificate returned by the certificate center.

4. The method according to claim 1, characterized in that After connecting with the mobile device based on the connection priority of the mobile device and the encrypted configuration information, the method further includes: Sending the encrypted configuration information to the mobile device to complete the connection establishment process; When the target server completes the first handshake request, all domain name information supported by the domain name certificate in the first handshake request, cross-domain name reuse information, and handshake reuse information associated with the domain name certificate are stored in the mapping table; Sending handshake multiplexing information to the mobile device; When the mobile device is disconnected from the target server and needs to be reconnected, a handshake request is completed with the mobile device based on the handshake multiplexing information.

5. The method according to claim 4, characterized in that The completing the handshake request with the mobile device based on the handshake multiplexing information includes: When the cross-domain multiplexing information is cross-domain multiplexing extension information carried by a Client Hello message sent by the mobile device; Obtaining a Client Hello message sent by the mobile device, wherein the Client Hello message includes SessionID information; A session key is determined according to the session information associated with the Session ID information, and a handshake request with the mobile device is completed.

6. The method according to claim 4, characterized in that The completing the handshake request with the mobile device based on the handshake multiplexing information also includes: When the cross-domain name multiplexing information is a cross-domain name multiplexing flag bit carried in a New session ticket message sent by the mobile device; Obtaining a Client Hello message sent by the mobile device, wherein the Client Hello message includes SessionTicket information; Sending verification information to the mobile device, wherein the verification information is information returned after successful verification of the session ticket information; A session key is determined according to the session information associated with the Session ticket information, and a handshake request with the mobile device is completed.

7. A network security management device, characterized in that: include: The acquisition module is used to acquire the digital certificate information, device unique identification information, mobile device random number, mobile device key-share information, mobile device attribute information and security level information sent by the mobile device; acquire the target server random number and target server key-share information; A processing module, configured to generate a pre-master key according to the mobile device key-share information and the target server key-share information; generating a temporary session key based on the mobile device random number, the target server random number and the pre-master key; Processing the digital certificate information and the device unique identification information based on a preset pairing rule to generate a processing result; if the processing result is to allow the target server to pair and connect with the mobile device, obtaining configuration information, the configuration information including the domain name certificate and other target server parameters required to complete the connection establishment process with the mobile device; The configuration information is encrypted based on the temporary session key to generate encrypted configuration information, wherein the encrypted configuration information is used for the mobile device to complete the connection establishment process with the target server; the attribute information of the mobile device and the security level information are processed to generate a connection priority of the mobile device; the mobile device is connected based on the connection priority of the mobile device and the encrypted configuration information; the attribute information of the mobile device and the security level information are processed to generate a connection priority of the mobile device, including: obtaining real-time load balancing information of the target server and data connection task information within a preset period; the target server is processed based on the data connection task information within the preset period to generate preset connection progress information of the target server; the attribute information of the mobile device and the security level information are processed to generate target processing progress information, wherein the target processing progress information includes the processing time and connection time of the mobile device; the preset connection progress information is processed based on the target processing progress information to generate a connection priority of the mobile device.

8. An electronic device, characterized in that: include: a first processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the network security management method according to any one of claims 1 to 6 by executing the executable instructions.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the second processor, the network security management method according to any one of claims 1 to 6 is implemented.