Power 5G terminal authentication method and authentication system
Through multi-factor identity identification, a digital certificate public-private key pair and a 5G secondary authentication framework is generated, combined with the self-built security authentication gateway of power, the problem of root key leakage and illegal terminal authentication requests in 5G power terminal authentication is solved, and the terminal identity is realized Dual authentication and encryption protection of data transmission improve security and resistance.
Patent Information
- Application Number
- CN202211494345.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-25
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2042-11-25
AI Technical Summary
During the authentication process, 5G power terminals have security risks caused by root key leakage, and the risks caused by illegal terminals or communication terminals to initiate authentication requests to power grid service transmission. Traditional authentication solutions are difficult to effectively prevent information tampering and attacks.
Multi-factor identity identification is used to generate digital certificate public-private key pairs, and the 5G self-built security authentication gateway is used as an authoritative third party. Combined with the 5G secondary authentication framework and user custom authentication, it realizes dual authentication of terminal identity and encryption protection of data transmission. Prevent illegal theft or tampering.
It effectively reduces the risks of terminal identity data leakage, certificate forgery and use, prevents DDOS attacks, improves resistance to replay attacks, and ensures the integrity and security of data transmission.
Smart Images

Figure CN115967941B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of 5G network carrying electric power services, and in particular to an electric power 5G terminal authentication method and authentication system. Background Art
[0002] As 5G networks gradually carry out power services, the types and scale of power 5G terminals will increase dramatically. Power 5G networks need to access different types of terminals, such as precise load control, power distribution automation, and power consumption information collection. 5G faces challenges in a wide variety of heterogeneous access and control. 5G needs to allow vertical industry devices and networks to use their unique access technologies, and terminal access authentication needs to cross the underlying heterogeneous multi-layer wireless access network authentication structure.
[0003] The 5G wireless transmission channel is open, and the terminal can be lured to a fake base station by releasing interference signals, and the identity identification can be forged to achieve a fake terminal. Therefore, the power 5G business is vulnerable to wireless access attacks in the form of information tampering, counterfeiting, middleman forwarding and replay using wireless signals as carriers. Traditional authentication and data integrity protection schemes such as AKA and EPSAKA essentially use identity-indexed keys to tag signaling and data with user identity information. Once the root key is leaked, the authentication parameters will become invalid. Subsequent protection keys can be derived by eavesdropping on the AKA authentication process, threatening network security.
[0004] The USIM card and communication terminal of the power grid may be stolen, which may lead to illegal user access fraud and pose risks to the transmission of power grid services. Therefore, the power 5G network needs to build a unified authentication system to meet the authentication of different access mechanisms and meet the security access requirements of terminals with different security capabilities. Summary of the invention
[0005] In order to solve the problem that the leakage of the above-mentioned root key will be able to derive subsequent protection keys, and that illegal business terminals or communication terminals initiate authentication requests, posing risks to power grid business transmission, the present invention provides a power 5G terminal authentication method and authentication system, which is based on the power 5G self-built security authentication gateway as an authoritative third party, and uses multi-factor identity identification to generate digital certificate public and private key pairs, which can effectively reduce terminal identity data leakage, certificate forgery, impersonation and other security risks; the 5G secondary authentication framework is organically combined with user-defined authentication to form a unified authentication system for massive power business terminals accessing the 5G network, and encryption and integrity protection measures are taken for all data transmission to prevent illegal theft or tampering of data.
[0006] In order to achieve the above object, the present invention provides a power 5G terminal authentication method, which is characterized by comprising the following steps:
[0007] S1. After the 5G communication terminal passes the AKA authentication, the certificate of the 5G communication terminal and the 5G session management function network element and the authentication start instruction are sent to the power business terminal, wherein the certificate includes: a public key and a private key;
[0008] S2. Based on the certificate, digital signature and receiving time value, complete the first legal authentication of the power business terminal, 5G communication terminal, 5G session management function network element and power security authentication gateway in sequence;
[0009] S3. Based on the certificate, digital signature, certificate legal authentication result and random number, complete the secondary legal authentication of the power safety authentication gateway, 5G session management function network element, 5G communication terminal and power business terminal in turn.
[0010] Preferably, the power security authentication gateway generates a corresponding private key based on the identity set of each of the power business terminal, the 5G communication terminal and the 5G session management function network element, obtains the corresponding public key based on the private key calculation, and the certificate is composed of the corresponding private key and public key; the power business terminal, the 5G communication terminal and the 5G session management function network element store their own corresponding certificates, which are respectively Cert EST , Certificate CPE , Certificate SMF .
[0011] Preferably, the step S2 comprises:
[0012] S201. The electric power business terminal generates a random number N EST , and record the time value of receiving the identification start instruction Time EST , the power business terminal will use its own digital signature and certificate Cert EST , random number N EST And receive time value Time EST Through the public key Pub of the 5G communication terminal CPE Encrypting, obtaining first data to be authenticated and sending to the 5G communication terminal;
[0013] S202, the 5G communication terminal uses its own private key Pri CPE Decrypt the first data to be authenticated and generate a random number N CPE , record the receiving time value Time of the first data to be identified CPE , determine whether the first data to be authenticated is legal through the digital signature of the pre-stored power business terminal, and determine the receiving time value Time CPE and receiving time value Time EST Is the difference between the first and second authentication data less than the preset threshold? If the first authentication data is legal and the receiving time value Time CPE and receiving time value Time ESTIf the difference is less than the preset threshold, the power business terminal is identified as a legitimate business terminal, and the 5G communication terminal sends its own digital signature and certificate Cert EST , Certificate CPE , random number N EST , random number N CPE And receive time value Time CPE Through the public key Pub of the 5G session management function network element SMF Encrypting the data to be authenticated to obtain the second data and sending the data to the 5G session management function network element;
[0014] S203, 5G session management function network element through its own private key Pri SMF Decrypt the second data to be authenticated and generate a random number N SMF , record the receiving time value Time of the second data to be identified SMF , determine whether the second data to be authenticated is legitimate through the pre-stored digital signature of the 5G communication terminal, and determine the receiving time value Time SMF and receiving time value Time CPE Is the difference between the two values less than the preset threshold? If the second data to be authenticated is legal and the receiving time value Time SMF and receiving time value Time CPE If the difference is less than the preset threshold, the 5G communication terminal is identified as a legitimate communication terminal, and the 5G session management function network element sends its own digital signature and certificate Cert EST , Certificate CPE , Certificate SMF , random number N EST , random number N CPE , random number N SMF And receive time value Time SMF Public key Pub of the power safety authentication gateway SAG Encrypting, obtaining the third data to be authenticated and sending it to the power safety authentication gateway;
[0015] S204, the power safety authentication gateway uses its own private key Pri SAG Decrypt the third data to be authenticated and record the receiving time value Time of the third data to be authenticated SAG , determine whether the third data to be authenticated is legal through the digital signature of the pre-stored 5G session management function network element, and determine the receiving time value Time SAG and receiving time value Time SMF Is the difference between the two values less than the preset threshold? If the second data to be authenticated is legal and the receiving time value Time SAG and receiving time value Time SMFIf the difference is less than the preset threshold, the 5G session management function network element is identified as a legitimate network element, and the power safety authentication gateway authenticates the certificate Cert EST , Certificate CPE , Certificate SMF The legitimacy of the certificate is determined. If it is legal, a certificate legality identification result is generated. The power safety authentication gateway sends its own digital signature, certificate legality identification result, and random number N EST , random number N CPE and random number N SMF Through the public key Pub of the 5G session management function network element SMF The fourth data to be authenticated is encrypted and sent to the 5G session management function network element, and the first legal authentication is successful.
[0016] Preferably, step S3 comprises:
[0017] S301, 5G session management function network element through its own private key Pri SMF Decrypt the fourth data to be authenticated, determine whether the fourth data to be authenticated is legal through the digital signature of the pre-stored power safety authentication gateway, determine whether the certificate authentication result is legal, and compare the random number N in the fourth data to be authenticated. SMF and the random number N generated in step S203 SMF Are they consistent? If the fourth data to be authenticated is legal, the certificate is legal, the authentication result is legal, and the random number N SMF If they are consistent, the 5G session management function network element will send its own digital signature, certificate legal authentication result, random number N EST , random number N CPE Through the public key Pub of the 5G communication terminal CPE Encrypting, obtaining the fifth data to be authenticated and sending it to the 5G communication terminal;
[0018] S302, the 5G communication terminal decrypts the fifth data to be authenticated by its own private key, determines whether the fifth data to be authenticated is legal by using the digital signature of the pre-stored 5G session management function network element, determines whether the legal authentication result of the certificate is legal, and compares the random number N in the fifth data to be authenticated. CPE and the random number N generated in step S202 CPE Are they consistent? If the fifth data to be authenticated is legal, the certificate is legal, the authentication result is legal, and the random number N CPE If they are consistent, the 5G communication terminal will send its own digital signature, certificate legality authentication result and random number N EST Through the public key Pub of the power business terminal EST Encrypting, obtaining the sixth data to be identified and sending it to the power business terminal;
[0019] S303, private key Pri of the power business terminalEST Decrypt the sixth data to be authenticated, determine whether the sixth data to be authenticated is legal through the pre-stored digital signature of the 5G communication terminal, determine whether the legal authentication result of the certificate is legal, and compare the random number N in the sixth data to be authenticated. EST The random number N generated in step S201 EST Are they consistent? If the fifth data to be authenticated is legal, the certificate is legal, the authentication result is legal, and the random number N CPE If they are consistent, the secondary legal identification is successful.
[0020] The power 5G terminal authentication system includes: power business terminal, 5G communication terminal, 5G session management function network element and power security authentication gateway.
[0021] After the 5G communication terminal passes the AKA authentication, the certificate of the 5G communication terminal and the 5G session management function network element and the authentication start instruction are sent to the power service terminal, wherein the certificate includes: a public key and a private key;
[0022] Based on the certificate, digital signature and receiving time value, the first legal authentication of the 5G communication terminal to the power business terminal, the 5G session management function network element to the 5G communication terminal, the power safety authentication gateway to the 5G session management function network element, and the power safety authentication gateway to the power business terminal, 5G communication terminal, and 5G session management function network element is completed in sequence;
[0023] Based on the certificate, digital signature, certificate legal authentication results and random numbers, the secondary legal authentication of the 5G session management function network element to the power security authentication gateway, the 5G communication terminal to the 5G session management function network element and the power business terminal to the 5G communication terminal are completed in sequence.
[0024] Preferably, the power security authentication gateway generates a corresponding private key based on the identity set of each of the power business terminal, the 5G communication terminal and the 5G session management function network element, obtains the corresponding public key based on the private key calculation, and the certificate is composed of the corresponding private key and public key; the power business terminal, the 5G communication terminal and the 5G session management function network element store their own corresponding certificates, which are respectively Cert EST , Certificate CPE , Certificate SMF .
[0025] Preferably, the power safety authentication gateway is used to store its own digital signature and the public key Pub of the 5G session management function network element. SMF , digital signature and certificate Cert of 5G session management function network element EST , Certificate CPE , Certificate SMF ;
[0026] The power business terminal is used to store its own digital signature, certificate Cert EST , the public key Pub of the 5G communication terminal CPE , the digital signature of the 5G communication terminal is used to generate the random number N EST ;
[0027] The 5G communication terminal is used to store its own digital signature, certificate Cert CPE , the public key Pub of the 5G session management function network element SMF , the digital signature of the 5G session management function network element and the digital signature of the power business terminal are used to generate the random number N CPE ;
[0028] The 5G session management function network element is used to store its own digital signature, certificate Cert SMF , the public key Pub of the power safety authentication gateway SAG , the digital signature of the power safety authentication gateway and the digital signature of the 5G communication terminal are used to generate the random number N SMF .
[0029] Through the above technical scheme, the present invention utilizes multi-factor identity identification to generate a public-private key pair for a digital certificate, which can effectively reduce security risks such as terminal identity data leakage, certificate forgery, and impersonation; initiating an end-to-end security authentication process through the SMF network element can effectively prevent illegal business terminals or CPE communication terminals from frequently initiating authentication requests to the security authentication gateway, consuming authentication computing resources, and preventing DDOS attacks; in the authentication interaction process between devices, encryption and integrity protection measures are taken for all data transmissions, which can prevent illegal theft or tampering of data, and introduce a data reception time and random number comparison mechanism in the authentication interaction process, which greatly improves the ability of the method of the present invention to resist replay attacks.
[0030] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:
[0032] Figure 1 It is a schematic diagram of the method process of the present invention;
[0033] Figure 2 It is a schematic flow diagram of the method of the present invention;
[0034] Figure 3 It is a block diagram of the system of the present invention. DETAILED DESCRIPTION
[0035] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0036] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0037] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0038] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0039] Some block diagrams and / or flow charts are shown in the accompanying drawings. It should be understood that some boxes or combinations thereof in the block diagrams and / or flow charts can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that these instructions can create a device for implementing the functions / operations described in these block diagrams and / or flow charts when executed by the processor. The technology of the present disclosure can be implemented in the form of hardware and / or software (including firmware, microcode, etc.). In addition, the technology of the present disclosure can take the form of a computer program product on a computer-readable storage medium storing instructions, which can be used by an instruction execution system or used in conjunction with an instruction execution system.
[0040] like Figure 1-Figure 2 As shown, the power 5G terminal authentication method is characterized by comprising the following steps:
[0041] S1. After the 5G communication terminal passes the AKA authentication, the certificate of the 5G communication terminal and the 5G session management function network element and the authentication start instruction are sent to the power business terminal, wherein the certificate includes: a public key and a private key;
[0042] S2. Based on the certificate, digital signature and receiving time value, complete the first legal authentication of the power business terminal, 5G communication terminal, 5G session management function network element and power security authentication gateway in sequence;
[0043] S3. Based on the certificate, digital signature, certificate legal authentication result and random number, complete the secondary legal authentication of the power safety authentication gateway, 5G session management function network element, 5G communication terminal and power business terminal in turn.
[0044] On the basis of the prior art, after passing the AKA authentication, in order to prevent the network security risks caused by the root key leakage of the prior art, the present invention designs several certificates, and the certificates include public keys and private keys. Even if one of the public keys, private keys or certificates is leaked in actual applications, it will not affect the security of the overall authentication; the present invention also designs a method for judging the receiving time value, and by judging the time difference between the receiving time values, it is judged whether there are wireless access attacks in the form of information tampering, counterfeiting, middleman forwarding and replay in the middle; secondly, for gateways that are generally unprotected by current technology, the present invention performs additional authentication of the power safety authentication gateway through the certificate legal authentication result and random number, ensuring that the information returned by the power safety authentication gateway is not tampered with or counterfeited in the middle. Through the first legal authentication and the second legal authentication, the power business terminal can legally use the 5G link provided by the 5G communication terminal for data transmission and reception, and then complete the authentication of the entire 5G terminal.
[0045] It should be noted that the technical solution of the present invention is carried out after AKA authentication as mentioned in the present invention. AKA represents an authentication method of using a key based on the 5G communication terminal identity index to label signaling and data with a label containing user identity information. Authentication methods based on this principle include but are not limited to AKA and EPS AKA.
[0046] In order to effectively prevent illegal business terminals or 5G communication terminals from frequently initiating authentication requests to the power safety authentication gateway and consuming authentication computing resources, in all authentication processes, once any link does not match or does not meet the requirements, all authentication processes will be stopped and ended. Therefore, in the examples of the present invention, only the situations where the match is successful or the requirements are met are described.
[0047] Preferably, the power security authentication gateway generates a corresponding private key based on the identity set of each of the power business terminal, the 5G communication terminal and the 5G session management function network element, obtains the corresponding public key based on the private key calculation, and the certificate is composed of the corresponding private key and public key; the power business terminal, the 5G communication terminal and the 5G session management function network element store their own corresponding certificates, which are respectively Cert EST , Certificate CPE , Certificate SMF .
[0048] The power safety authentication gateway generates certificates for power business terminals, 5G communication terminals, and 5G session management function network elements. The certificates contain a pair of public keys Pub and private keys Pri for the equipment. The public and private key generation methods are as follows: First, define the device identity set as: device name, device manufacturer identification, device factory time, device hardware version number, software version number, manufacturing serial number, IMSI, local MAC address, IP address; secondly, use the BASE-64 encoding rule to map each element of the device identity set to binary encoding, and input the device identity binary number into the SHA-256 algorithm to calculate the 256-bit device private key. Finally, define the elliptic curve algorithm reference point G, and calculate the public key as Pub = Pri G.
[0049] The power safety authentication gateway combines the prepared device public key, signature algorithm, certificate validity period, certificate owner, SAG public key, SAG name and other information into a digital signature. The digital certificate produced by the device's own specific identification information can ensure its uniqueness and unforgeability. So far, the power business terminal, 5G communication terminal, and 5G session management function network element have all obtained the certificate Cert issued by the power safety authentication gateway. EST , Certificate CPE , Certificate SMFBefore normal communication, the power business terminal, 5G communication terminal, and 5G session management functional network element all perform two-way authentication to the power security authentication gateway through the authentication channel, thereby determining the legal identity of the power business terminal, 5G communication terminal, and 5G session management functional network element, and effectively avoiding security risks such as counterfeit terminals, tampering with equipment certificates, and counterfeit 5G networks.
[0050] The power business terminal and the 5G communication terminal are interconnected through a local interface. After both are powered on, the 5G communication terminal first searches for the 5G network signal and initiates the attachment process. After the AKA authentication specified by the 5G protocol, the 5G network and the 5G communication terminal mutually determine the legitimacy of each other. The 5G network allocates a 5G session management function network element to the 5G communication terminal to serve it. The 5G communication terminal notifies the power business terminal of the successful network attachment through the local interface, and establishes an authentication channel from the local area and through the 5G session management function network element to the power security authentication gateway.
[0051] Preferably, the step S2 comprises:
[0052] S201. The electric power business terminal generates a random number N EST , and record the time value of receiving the identification start instruction Time EST , the power business terminal will use its own digital signature and certificate Cert EST , random number N EST And receive time value Time EST Through the public key Pub of the 5G communication terminal CPE Encrypting, obtaining first data to be authenticated and sending to the 5G communication terminal;
[0053] S202, the 5G communication terminal uses its own private key Pri CPE Decrypt the first data to be authenticated and generate a random number N CPE , record the receiving time value Time of the first data to be identified CPE , determine whether the first data to be authenticated is legal through the digital signature of the pre-stored power business terminal, and determine the receiving time value Time CPE and receiving time value Time EST Is the difference between the first and second authentication data less than the preset threshold? If the first authentication data is legal and the receiving time value Time CPE and receiving time value Time EST If the difference is less than the preset threshold, the power business terminal is identified as a legitimate business terminal, and the 5G communication terminal sends its own digital signature and certificate Cert EST , Certificate CPE , random number N EST , random number N CPE And receive time value Time CPEThrough the public key Pub of the 5G session management function network element SMF Encrypting the data to be authenticated to obtain the second data and sending the data to the 5G session management function network element;
[0054] S203, 5G session management function network element through its own private key Pri SMF Decrypt the second data to be authenticated and generate a random number N SMF , record the receiving time value Time of the second data to be identified SMF , determine whether the second data to be authenticated is legitimate through the pre-stored digital signature of the 5G communication terminal, and determine the receiving time value Time SMF and receiving time value Time CPE Is the difference between the two values less than the preset threshold? If the second data to be authenticated is legal and the receiving time value Time SMF and receiving time value Time CPE If the difference is less than the preset threshold, the 5G communication terminal is identified as a legitimate communication terminal, and the 5G session management function network element sends its own digital signature and certificate Cert EST , Certificate CPE , Certificate SMF , random number N EST , random number N CPE , random number N SMF And receive time value Time SMF Public key Pub of the power safety authentication gateway SAG Encrypting, obtaining the third data to be authenticated and sending it to the power safety authentication gateway;
[0055] S204, the power safety authentication gateway uses its own private key Pri SAG Decrypt the third data to be authenticated and record the receiving time value Time of the third data to be authenticated SAG , determine whether the third data to be authenticated is legal through the digital signature of the pre-stored 5G session management function network element, and determine the receiving time value Time SAG and receiving time value Time SMF Is the difference between the two values less than the preset threshold? If the second data to be authenticated is legal and the receiving time value Time SAG and receiving time value Time SMF If the difference is less than the preset threshold, the 5G session management function network element is identified as a legitimate network element, and the power safety authentication gateway authenticates the certificate Cert EST , Certificate CPE , Certificate SMF The legitimacy of the certificate is determined. If it is legal, a certificate legality identification result is generated. The power safety authentication gateway sends its own digital signature, certificate legality identification result, and random number N EST, random number N CPE and random number N SMF Through the public key Pub of the 5G session management function network element SMF The fourth data to be authenticated is encrypted and sent to the 5G session management function network element, and the first legal authentication is successful.
[0056] The present invention completes the first legal identification through the above steps S201-S204, wherein the sender encrypts the data with the receiver's public key and decrypts it with the receiver's private key. The present invention encrypts the data with three different public keys and decrypts it with three different private keys. Once one of them is leaked, it will not affect the encryption effect of other items on the information, which solves the problem of the prior art that once the root key is leaked, it will cause serious security risks.
[0057] At the same time, the present invention uses two elements, namely digital signature and receiving time value, to judge the legitimacy of data in the first legal identification. The digital signature information is equivalent to the ID card of the device, which can prove whether the identity of the sender is legal. However, in the frequent sending of digital signatures, it is difficult to ensure that the digital signature will not be leaked, forged, or misused, resulting in the invalidation of the identification of the digital signature. Therefore, the present invention also judges the legitimacy of the data by receiving time value. According to actual conditions, a time difference threshold that conforms to normal data transmission is preset, which can prevent data from being illegally stolen or tampered with during data transmission, thereby improving the ability of the present invention to resist malicious attacks.
[0058] Preferably, step S3 comprises:
[0059] S301, 5G session management function network element through its own private key Pri SMF Decrypt the fourth data to be authenticated, determine whether the fourth data to be authenticated is legal through the digital signature of the pre-stored power safety authentication gateway, determine whether the certificate authentication result is legal, and compare the random number N in the fourth data to be authenticated. SMF and the random number N generated in step S203 SMF Are they consistent? If the fourth data to be authenticated is legal, the certificate is legal, the authentication result is legal, and the random number N SMF If they are consistent, the 5G session management function network element will send its own digital signature, certificate legal authentication result, random number N EST , random number N CPE Through the public key Pub of the 5G communication terminal CPE Encrypting, obtaining the fifth data to be authenticated and sending it to the 5G communication terminal;
[0060] S302, the 5G communication terminal decrypts the fifth data to be authenticated by its own private key, determines whether the fifth data to be authenticated is legal by using the digital signature of the pre-stored 5G session management function network element, determines whether the legal authentication result of the certificate is legal, and compares the random number N in the fifth data to be authenticated. CPE and the random number N generated in step S202 CPE Are they consistent? If the fifth data to be authenticated is legal, the certificate is legal, the authentication result is legal, and the random number N CPE If they are consistent, the 5G communication terminal will send its own digital signature, certificate legality authentication result and random number N EST Through the public key Pub of the power business terminal EST Encrypting, obtaining the sixth data to be identified and sending it to the power business terminal;
[0061] S303, private key Pri of the power business terminal EST Decrypt the sixth data to be authenticated, determine whether the sixth data to be authenticated is legal through the pre-stored digital signature of the 5G communication terminal, determine whether the legal authentication result of the certificate is legal, and compare the random number N in the sixth data to be authenticated. EST The random number N generated in step S201 EST Are they consistent? If the fifth data to be authenticated is legal, the certificate is legal, the authentication result is legal, and the random number N CPE If they are consistent, the secondary legal identification is successful.
[0062] The secondary legal authentication of the present invention is performed through certificates, digital signatures, certificate legal authentication results and random numbers, wherein other devices other than the power safety authentication gateway perform legalization judgment on the certificate legal authentication results to determine the legitimacy of the power safety authentication gateway. Furthermore, by temporarily generating round-trip random number comparisons, it is determined that the data sent by the power safety authentication gateway is the same batch of data sent by the first legal authentication, ensuring that even malicious interception and forged data will be identified during the data transmission process.
[0063] like Figure 3 As shown, the power 5G terminal authentication system includes: power business terminal, 5G communication terminal, 5G session management function network element and power security authentication gateway.
[0064] After the 5G communication terminal passes the AKA authentication, the certificate of the 5G communication terminal and the 5G session management function network element and the authentication start instruction are sent to the power service terminal, wherein the certificate includes: a public key and a private key;
[0065] Based on the certificate, digital signature and receiving time value, the first legal authentication of the 5G communication terminal to the power business terminal, the 5G session management function network element to the 5G communication terminal, the power safety authentication gateway to the 5G session management function network element, and the power safety authentication gateway to the power business terminal, 5G communication terminal, and 5G session management function network element is completed in sequence;
[0066] Based on the certificate, digital signature, certificate legal authentication results and random numbers, the secondary legal authentication of the 5G session management function network element to the power security authentication gateway, the 5G communication terminal to the 5G session management function network element and the power business terminal to the 5G communication terminal are completed in sequence.
[0067] On the basis of the prior art, after passing the AKA authentication, in order to prevent the network security risks caused by the root key leakage of the prior art, the present invention designs several certificates, and the certificates include public keys and private keys. Even if one of the public keys, private keys or certificates is leaked in actual applications, it will not affect the security of the overall authentication; the present invention also designs a method for judging the receiving time value, and by judging the time difference between the receiving time values, it is judged whether there are wireless access attacks in the form of information tampering, counterfeiting, middleman forwarding and replay in the middle; secondly, for gateways that are generally unprotected by current technology, the present invention performs additional authentication of the power safety authentication gateway through the certificate legal authentication result and random number, ensuring that the information returned by the power safety authentication gateway is not tampered with or counterfeited in the middle. Through the first legal authentication and the second legal authentication, the power business terminal can legally use the 5G link provided by the 5G communication terminal for data transmission and reception, and then complete the authentication of the entire 5G terminal.
[0068] It should be noted that the technical solution of the present invention is carried out after AKA authentication as mentioned in the present invention. AKA represents an authentication method of using a key based on the 5G communication terminal identity index to label signaling and data with a label containing user identity information. Authentication methods based on this principle include but are not limited to AKA and EPS AKA.
[0069] In order to effectively prevent illegal business terminals or 5G communication terminals from frequently initiating authentication requests to the power safety authentication gateway and consuming authentication computing resources, in all authentication processes, once any link does not match or does not meet the requirements, all authentication processes will be stopped and ended. Therefore, in the examples of the present invention, only the situations where the match is successful or the requirements are met are described.
[0070] Preferably, the power security authentication gateway generates a corresponding private key based on the identity set of each of the power business terminal, the 5G communication terminal and the 5G session management function network element, obtains the corresponding public key based on the private key calculation, and the certificate is composed of the corresponding private key and public key; the power business terminal, the 5G communication terminal and the 5G session management function network element store their own corresponding certificates, which are respectively Cert EST , Certificate CPE , Certificate SMF .
[0071] The power safety authentication gateway generates certificates for power business terminals, 5G communication terminals, and 5G session management function network elements. The certificates contain a pair of public keys Pub and private keys Pri for the equipment. The public and private key generation methods are as follows: First, define the device identity set as: device name, device manufacturer identification, device factory time, device hardware version number, software version number, manufacturing serial number, IMSI, local MAC address, IP address; secondly, use the BASE-64 encoding rule to map each element of the device identity set to binary encoding, and input the device identity binary number into the SHA-256 algorithm to calculate the 256-bit device private key. Finally, define the elliptic curve algorithm reference point G, and calculate the public key as Pub = Pri G.
[0072] The power safety authentication gateway combines the prepared device public key, signature algorithm, certificate validity period, certificate owner, SAG public key, SAG name and other information into a digital signature. The digital certificate produced by the device's own specific identification information can ensure its uniqueness and unforgeability. So far, the power business terminal, 5G communication terminal, and 5G session management function network element have all obtained the certificate Cert issued by the power safety authentication gateway. EST , Certificate CPE , Certificate SMF Before normal communication, the power business terminal, 5G communication terminal, and 5G session management functional network element all perform two-way authentication to the power security authentication gateway through the authentication channel, thereby determining the legal identity of the power business terminal, 5G communication terminal, and 5G session management functional network element, and effectively avoiding security risks such as counterfeit terminals, tampering with equipment certificates, and counterfeit 5G networks.
[0073] The power business terminal and the 5G communication terminal are interconnected through a local interface. After both are powered on, the 5G communication terminal first searches for the 5G network signal and initiates the attachment process. After the AKA authentication specified by the 5G protocol, the 5G network and the 5G communication terminal mutually determine the legitimacy of each other. The 5G network allocates a 5G session management function network element to the 5G communication terminal to serve it. The 5G communication terminal notifies the power business terminal of the successful network attachment through the local interface, and establishes an authentication channel from the local area and through the 5G session management function network element to the power security authentication gateway.
[0074] Preferably, the power safety authentication gateway is used to store its own digital signature and the public key Pub of the 5G session management function network element. SMF , digital signature and certificate Cert of 5G session management function network element EST , Certificate CPE , Certificate SMF ;
[0075] The power business terminal is used to store its own digital signature, certificate Cert EST , the public key Pub of the 5G communication terminal CPE , the digital signature of the 5G communication terminal is used to generate the random number N EST ;
[0076] The 5G communication terminal is used to store its own digital signature, certificate Cert CPE , the public key Pub of the 5G session management function network element SMF , the digital signature of the 5G session management function network element and the digital signature of the power business terminal are used to generate the random number N CPE ;
[0077] The 5G session management function network element is used to store its own digital signature, certificate Cert SMF , the public key Pub of the power safety authentication gateway SAG , the digital signature of the power safety authentication gateway and the digital signature of the 5G communication terminal are used to generate the random number N SMF .
[0078] The present invention uses the self-built security authentication gateway of the power as an authoritative third party, and uses multi-factor identity identification to generate a public and private key pair of digital certificates, which can effectively reduce the security risks of terminal identity data leakage, certificate forgery, and impersonation. The power 5G terminal authentication method disclosed in the present invention effectively combines the 5G secondary authentication framework with the user-defined authentication to form a unified authentication system for massive power business terminals to access the 5G network. By initiating the end-to-end security authentication process through the 5G session management function network element, it can effectively prevent illegal business terminals or CPE communication terminals from frequently initiating authentication requests to the security authentication gateway, consuming authentication computing resources, and preventing DDOS attacks. In the authentication interaction process between power business terminals, 5G communication terminals, 5G session management function network elements, and power security authentication gateways, encryption and integrity protection measures are taken for all data transmissions, which can prevent illegal theft or tampering of data, and introduce data reception time and random number comparison mechanisms in the authentication interaction process, which greatly improves the ability of the method of the present invention to resist replay attacks. The present invention has the advantages of trusted identity authentication for the entire process and all types of equipment, and has good promotion significance in the increasingly urgent situation of ensuring energy security.
[0079] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0080] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0081] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0082] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0083] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0084] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0085] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0086] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0087] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. The power 5G terminal authentication method is characterized by: The following steps are involved: S1. After the 5G communication terminal passes the AKA authentication, the certificate of the 5G communication terminal and the 5G session management function network element and the authentication start instruction are sent to the power business terminal, wherein the certificate includes: a public key and a private key; S2. Based on the certificate, digital signature and receiving time value, complete the first legal authentication of the power business terminal, 5G communication terminal, 5G session management function network element and power security authentication gateway in sequence; S3. Based on the certificate, digital signature, certificate legal authentication result and random number, complete the secondary legal authentication of the power safety authentication gateway, 5G session management function network element, 5G communication terminal and power business terminal in turn; The power security authentication gateway generates a corresponding private key based on the identity set of the power business terminal, 5G communication terminal and 5G session management function network element, calculates the corresponding public key based on the private key, and forms a certificate with the corresponding private key and public key; the power business terminal, 5G communication terminal and 5G session management function network element store their own corresponding certificates, respectively. EST , Certificate CPE , Certificate SMF ; The step S2 comprises: S201. The electric power business terminal generates a random number N EST , and record the time value of receiving the identification start instruction Time EST , the power business terminal will use its own digital signature and certificate Cert EST , random number N EST And receive time value Time EST Through the public key Pub of the 5G communication terminal CPE Encrypting, obtaining first data to be authenticated and sending to the 5G communication terminal; S202, the 5G communication terminal uses its own private key Pri CPE Decrypt the first data to be authenticated and generate a random number N CPE , record the receiving time value Time of the first data to be identified CPE , determine whether the first data to be authenticated is legal through the digital signature of the pre-stored power business terminal, and determine the receiving time value Time CPE and receiving time value Time EST Is the difference between the first and second data less than the preset threshold? If the first data to be authenticated is legal and the receiving time value Time CPE and receiving time value Time EST If the difference is less than the preset threshold, the power business terminal is identified as a legitimate business terminal, and the 5G communication terminal sends its own digital signature and certificate Cert EST , Certificate CPE , random number N EST , random number N CPE And receive time value Time CPE Through the public key Pub of the 5G session management function network element SMF Encrypting the data to be authenticated to obtain the second data and sending the data to the 5G session management function network element; S203, 5G session management function network element through its own private key Pri SMF Decrypt the second data to be authenticated and generate a random number N SMF , record the receiving time value Time of the second data to be identified SMF , determine whether the second data to be authenticated is legitimate through the pre-stored digital signature of the 5G communication terminal, and determine the receiving time value Time SMF and receiving time value Time CPE Is the difference between the two values less than the preset threshold? If the second data to be authenticated is legal and the receiving time value Time SMF and receiving time value Time CPE If the difference is less than the preset threshold, the 5G communication terminal is identified as a legitimate communication terminal, and the 5G session management function network element sends its own digital signature and certificate Cert EST , Certificate CPE , Certificate SMF , random number N EST , random number N CPE , random number N SMF And receive time value Time SMF Public key Pub of the power safety authentication gateway SAG Encrypting, obtaining the third data to be authenticated and sending it to the power safety authentication gateway; S204, the power safety authentication gateway uses its own private key Pri SAG Decrypt the third data to be authenticated and record the receiving time value Time of the third data to be authenticated SAG , judge whether the third data to be authenticated is legal through the digital signature of the pre-stored 5G session management function network element, and judge the receiving time value Time SAG and receiving time value Time SMF Is the difference between the two values less than the preset threshold? If the second data to be authenticated is legal and the receiving time value Time SAG and receiving time value Time SMF If the difference is less than the preset threshold, the 5G session management function network element is identified as a legitimate network element, and the power safety authentication gateway authenticates the certificate Cert EST , Certificate CPE , Certificate SMF The legitimacy of the certificate is determined. If it is legal, a certificate legality identification result is generated. The power safety authentication gateway sends its own digital signature, certificate legality identification result, and random number N EST , random number N CPE and random number N SMF Through the public key Pub of the 5G session management function network element SMF Encryption is performed to obtain the fourth data to be authenticated and send it to the 5G session management function network element, and the first legal authentication is successful; The step S3 comprises: S301, 5G session management function network element through its own private key Pri SMF Decrypt the fourth data to be authenticated, determine whether the fourth data to be authenticated is legal through the digital signature of the pre-stored power safety authentication gateway, determine whether the certificate authentication result is legal, and compare the random number N in the fourth data to be authenticated. SMF and the random number N generated in step S203 SMF Are they consistent? If the fourth data to be authenticated is legal, the certificate is legal, the authentication result is legal, and the random number N SMF If they are consistent, the 5G session management function network element will send its own digital signature, certificate legal authentication result, random number N EST , random number N CPE Through the public key Pub of the 5G communication terminal CPE Encrypting, obtaining the fifth data to be authenticated and sending it to the 5G communication terminal; S302, the 5G communication terminal decrypts the fifth data to be authenticated by its own private key, determines whether the fifth data to be authenticated is legal by using the digital signature of the pre-stored 5G session management function network element, determines whether the legal authentication result of the certificate is legal, and compares the random number N in the fifth data to be authenticated. CPE The random number N generated in step S202 CPE Are they consistent? If the fifth data to be authenticated is legal, the certificate is legal, the authentication result is legal, and the random number N CPE If they are consistent, the 5G communication terminal will send its own digital signature, certificate legality authentication result and random number N EST Through the public key Pub of the power business terminal EST Encrypting, obtaining the sixth data to be identified and sending it to the power business terminal; S303, private key Pri of the power business terminal EST Decrypt the sixth data to be authenticated, determine whether the sixth data to be authenticated is legal through the pre-stored digital signature of the 5G communication terminal, determine whether the legal authentication result of the certificate is legal, and compare the random number N in the sixth data to be authenticated. EST The random number N generated in step S201 EST Are they consistent? If the fifth data to be authenticated is legal, the certificate is legal, the authentication result is legal, and the random number N CPE If they are consistent, the secondary legal identification is successful.
2. The power 5G terminal authentication system is characterized by: include: Power business terminals, 5G communication terminals, 5G session management function network elements and power security authentication gateways, After the 5G communication terminal passes the AKA authentication, the certificate of the 5G communication terminal and the 5G session management function network element and the authentication start instruction are sent to the power service terminal, wherein the certificate includes: a public key and a private key; Based on the certificate, digital signature and receiving time value, the first legal authentication of the 5G communication terminal to the power business terminal, the 5G session management function network element to the 5G communication terminal, the power safety authentication gateway to the 5G session management function network element, and the power safety authentication gateway to the power business terminal, 5G communication terminal, and 5G session management function network element is completed in sequence; Based on the certificate, digital signature, certificate legal authentication result and random number, the secondary legal authentication of the 5G session management function network element to the power security authentication gateway, the 5G communication terminal to the 5G session management function network element and the power business terminal to the 5G communication terminal is completed in sequence; The power security authentication gateway generates a corresponding private key based on the identity set of the power business terminal, 5G communication terminal and 5G session management function network element, calculates the corresponding public key based on the private key, and forms a certificate with the corresponding private key and public key; the power business terminal, 5G communication terminal and 5G session management function network element store their own corresponding certificates, respectively. EST , Certificate CPE , Certificate SMF ; The power safety authentication gateway is used to store its own digital signature and the public key Pub of the 5G session management function network element. SMF , digital signature and certificate Cert of 5G session management function network element EST , Certificate CPE , Certificate SMF ; The power business terminal is used to store its own digital signature, certificate Cert EST , the public key Pub of the 5G communication terminal CPE , the digital signature of the 5G communication terminal is used to generate the random number N EST ; The 5G communication terminal is used to store its own digital signature, certificate Cert CPE , the public key Pub of the 5G session management function network element SMF , the digital signature of the 5G session management function network element and the digital signature of the power business terminal are used to generate the random number N CPE ; The 5G session management function network element is used to store its own digital signature, certificate Cert SMF , the public key Pub of the power safety authentication gateway SAG , the digital signature of the power safety authentication gateway and the digital signature of the 5G communication terminal are used to generate the random number N SMF ; The power business terminal generates a random number N EST , and record the time value of receiving the identification start instruction Time EST , the power business terminal will use its own digital signature and certificate Cert EST , random number N EST And receive time value Time EST Through the public key Pub of the 5G communication terminal CPE Encrypting, obtaining first data to be authenticated and sending to the 5G communication terminal; The 5G communication terminal uses its own private key Pri CPE Decrypt the first data to be authenticated and generate a random number N CPE , record the receiving time value Time of the first data to be identified CPE , determine whether the first data to be authenticated is legal through the digital signature of the pre-stored power business terminal, and determine the receiving time value Time CPE and receiving time value Time EST Is the difference between the first and second data less than the preset threshold? If the first data to be authenticated is legal and the receiving time value Time CPE and receiving time value Time EST If the difference is less than the preset threshold, the power business terminal is identified as a legitimate business terminal, and the 5G communication terminal sends its own digital signature and certificate Cert EST , Certificate CPE , random number N EST , random number N CPE And receive time value Time CPE Through the public key Pub of the 5G session management function network element SMF Encrypting the data to be authenticated to obtain the second data and sending the data to the 5G session management function network element; The 5G session management function network element uses its own private key Pri SMF Decrypt the second data to be authenticated and generate a random number N SMF , record the receiving time value Time of the second data to be identified SMF , determine whether the second data to be authenticated is legitimate through the pre-stored digital signature of the 5G communication terminal, and determine the receiving time value Time SMF and receiving time value Time CPE Is the difference between the two values less than the preset threshold? If the second data to be authenticated is legal and the receiving time value Time SMF and receiving time value Time CPE If the difference is less than the preset threshold, the 5G communication terminal is identified as a legitimate communication terminal, and the 5G session management function network element sends its own digital signature and certificate Cert EST , Certificate CPE , Certificate SMF , random number N EST , random number N CPE , random number N SMF And receive time value Time SMF Public key Pub of the power safety authentication gateway SAG Encrypting, obtaining the third data to be authenticated and sending it to the power safety authentication gateway; The power safety authentication gateway uses its own private key Pri SAG Decrypt the third data to be authenticated and record the receiving time value Time of the third data to be authenticated SAG , judge whether the third data to be authenticated is legal through the digital signature of the pre-stored 5G session management function network element, and judge the receiving time value Time SAG and receiving time value Time SMF Is the difference between the two values less than the preset threshold? If the second data to be authenticated is legal and the receiving time value Time SAG and receiving time value Time SMF If the difference is less than the preset threshold, the 5G session management function network element is identified as a legitimate network element, and the power safety authentication gateway authenticates the certificate Cert EST , Certificate CPE , Certificate SMF The legitimacy of the certificate is determined. If it is legal, a certificate legality identification result is generated. The power safety authentication gateway sends its own digital signature, certificate legality identification result, and random number N EST , random number N CPE and random number N SMF Through the public key Pub of the 5G session management function network element SMF Encryption is performed to obtain the fourth data to be authenticated and send it to the 5G session management function network element, and the first legal authentication is successful; The 5G session management function network element uses its own private key Pri SMF Decrypt the fourth data to be authenticated, determine whether the fourth data to be authenticated is legal through the digital signature of the pre-stored power safety authentication gateway, determine whether the certificate authentication result is legal, and compare the random number N in the fourth data to be authenticated. SMF and the random number N generated in step S203 SMF Are they consistent? If the fourth data to be authenticated is legal, the certificate is legal, the authentication result is legal, and the random number N SMF If they are consistent, the 5G session management function network element will send its own digital signature, certificate legal authentication result, random number N EST , random number N CPE Through the public key Pub of the 5G communication terminal CPE Encrypting, obtaining the fifth data to be authenticated and sending it to the 5G communication terminal; The 5G communication terminal decrypts the fifth data to be authenticated by its own private key, determines whether the fifth data to be authenticated is legal by using the digital signature of the pre-stored 5G session management function network element, determines whether the legal authentication result of the certificate is legal, and compares the random number N in the fifth data to be authenticated. CPE The random number N generated in step S202 CPE Are they consistent? If the fifth data to be authenticated is legal, the certificate is legal, the authentication result is legal, and the random number N CPE If they are consistent, the 5G communication terminal will send its own digital signature, certificate legality authentication result and random number N EST Through the public key Pub of the power business terminal EST Encrypting, obtaining the sixth data to be identified and sending it to the power business terminal; The private key Pri of the power business terminal EST Decrypt the sixth data to be authenticated, determine whether the sixth data to be authenticated is legal through the pre-stored digital signature of the 5G communication terminal, determine whether the legal authentication result of the certificate is legal, and compare the random number N in the sixth data to be authenticated. EST The random number N generated in step S201 EST Are they consistent? If the fifth data to be authenticated is legal, the certificate is legal, the authentication result is legal, and the random number N CPE If they are consistent, the secondary legal identification is successful.
