Authentication method and terminal based on 5G industry private network

By generating and encrypting the user hidden identifier SUCI in the terminal's trusted execution environment, combined with the decryption verification of the authentication token AUTN, the problem of insufficient terminal security in the 5G industry private network is solved and higher authentication security is achieved. and attack resistance.

CN114173327BActive Publication Date: 2024-08-23CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111475908.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-06
Publication Date
2024-08-23
Estimated Expiration
2041-12-06

AI Technical Summary

Technical Problem

It is difficult for existing technologies to effectively improve terminal security in a trusted execution environment. Especially during the authentication process of 5G industry private networks, there are risks of authentication information leakage and man-in-the-middle attacks.

Method used

By obtaining the user permanent identifier SUPI in the trusted execution environment of the terminal, the user hidden identifier SUCI is generated, and the pre-shared encryption algorithm is used to encrypt SQN and SUPI to generate SUCI for authentication of the core network equipment. At the same time, according to the received The received authentication token AUTN is decrypted and verified to ensure the security of two-way authentication.

Benefits of technology

Improves the security of the terminal's trusted execution environment, especially during the authentication process between the core network equipment and the terminal, reduces the risk of AUTN leakage during transmission, enhances resistance to man-in-the-middle attacks, and ensures authentication Process safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114173327B
    Figure CN114173327B
Patent Text Reader

Abstract

The present disclosure relates to an authentication method based on a 5G industry-specific network, a terminal, and a computer-storable medium, and relates to the field of network technology. The authentication method based on a 5G industry-specific network is executed in a trusted execution environment of a terminal, and the trusted execution environment of the terminal is independent of a rich execution environment of the terminal. The authentication method includes: obtaining a user permanent identifier SUPI of the terminal; generating a user hidden identifier SUCI according to the SUPI of the terminal, and the SUCI is used by a core network device to authenticate the trusted execution environment of the terminal; receiving an authentication token AUTN from the core network device, and the AUTN is generated by the core network device when the trusted execution environment of the terminal is successfully authenticated according to the SUCI; and authenticating the core network device according to the AUTN. According to the present disclosure, the security of the trusted execution environment of the terminal can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of network technology, and in particular to an authentication method and terminal based on a 5G industry-specific network, and a computer-storable medium. Background Art

[0002] TEE (Trusted execution environment) is a secure smart terminal operating system proposed by ARM. TEE is a trusted execution environment that is independent of REE (Rich Execution Environment) such as Android system and can run in parallel with REE. TEE is mainly used in security-sensitive production, secure payment and other fields. Applications with high security requirements can be run in the trusted execution environment, and the REE operating environment of insecure components can be separated from the TEE operating environment of secure components. Summary of the invention

[0003] In view of the above application scenarios, the present disclosure proposes a solution that can improve the security of the trusted execution environment of the terminal.

[0004] According to a first aspect of the present disclosure, there is provided an authentication method based on a 5G industry-specific network, which is executed in a trusted execution environment of a terminal, where the trusted execution environment of the terminal is independent of a rich execution environment of the terminal, and the authentication method includes: acquiring a user permanent identifier SUPI of the terminal; generating a user hidden identifier SUCI according to the SUPI of the terminal, where the SUCI is used by a core network device to authenticate the trusted execution environment of the terminal; receiving an authentication token AUTN from the core network device, where the AUTN is generated by the core network device when the trusted execution environment of the terminal is successfully authenticated according to the SUCI; and authenticating the core network device according to the AUTN.

[0005] In some embodiments, a universal subscriber identity module (USIM) card of the terminal is deployed in a trusted execution environment of the terminal, and obtaining a user permanent identifier (SUPI) of the terminal includes: obtaining the SUPI of the terminal from the USIM card.

[0006] In some embodiments, the trusted execution environment of the terminal is deployed with an industry-specific network terminal database, and the industry-specific network terminal database stores relevant data required for the authentication process. Generating a user hidden identifier SUCI according to the SUPI of the terminal includes: acquiring a serial number SQN of the terminal from the industry-specific network terminal database; and generating the SUCI according to the SQN and the SUPI.

[0007] In some embodiments, generating the SUCI according to the SQN and the SUPI includes: encrypting the SQN and the SUPI using an encryption algorithm pre-shared by the trusted execution environment of the terminal and the core network device to generate the SUCI.

[0008] In some embodiments, encrypting the SQN and the SUPI to generate the SUCI includes: combining the SQN and the SUPI to obtain a composite field; and encrypting the composite field using the encryption algorithm to obtain the SUCI.

[0009] In some embodiments, the SUPI is in an International Mobile Subscriber Identity (IMSI) format or a Network Access Identifier (NAI) format.

[0010] In some embodiments, the AUTN is an encrypted AUTN, the encrypted AUTN includes an updated SQN, and authenticating the core network device according to the AUTN includes: decrypting the encrypted AUTN according to a preset encryption and decryption strategy shared by the trusted execution environment of the terminal and the core network device to obtain a decrypted AUTN; verifying whether the decrypted AUTN is valid, wherein, when the decrypted AUTN is valid, the authentication of the core network device by the trusted execution environment of the terminal is successful.

[0011] In some embodiments, the preset encryption and decryption strategy includes: generating a target key based on the SQN before updating, the SUPI of the terminal and the preset initial key, and the target key is used for the core network device to encrypt the AUTN and the trusted execution environment of the terminal to decrypt the encrypted AUTN.

[0012] In some embodiments, the authentication method further includes: when the trusted execution environment of the terminal successfully authenticates the core network device, obtaining the updated SQN based on the decrypted AUTN; deleting the SQN before the update; and storing the updated SQN in the industry-specific network terminal database.

[0013] According to a second aspect of the present disclosure, a terminal based on a 5G industry-specific network is provided, comprising: a trusted execution environment and a rich execution environment that are relatively independent of each other, the trusted execution environment comprising: an acquisition module, configured to acquire a user permanent identifier SUPI of the terminal; a generation module, configured to generate a user hidden identifier SUCI according to the SUPI of the terminal, the SUCI being used by a core network device to authenticate the trusted execution environment of the terminal; a receiving module, configured to receive an authentication token AUTN from the core network device, the AUTN being generated by the core network device when the trusted execution environment of the terminal is successfully authenticated according to the SUCI; and an authentication module, configured to authenticate the core network device according to the AUTN.

[0014] In some embodiments, the trusted execution environment further includes: a universal subscriber identity module (USIM) card configured to store the SUPI of the terminal, and the acquisition module is further configured to acquire the SUPI of the terminal from the USIM card.

[0015] In some embodiments, the trusted execution environment also includes: an industry-specific network terminal database, configured to store relevant data required for the authentication process, the relevant data including the SQN of the terminal; the generation module is also configured to: obtain the serial number SQN of the terminal from the industry-specific network terminal database; and generate the SUCI based on the SQN and the SUPI.

[0016] According to the third aspect of the present disclosure, a terminal based on a 5G industry private network is provided, comprising: a memory; and a processor coupled to the memory, the processor being configured to execute the authentication method based on the 5G industry private network described in any of the above embodiments based on instructions stored in the memory.

[0017] According to a fourth aspect of the present disclosure, a computer-storable medium is provided, on which computer program instructions are stored. When the instructions are executed by a processor, the authentication method based on the 5G industry-specific network described in any of the above embodiments is implemented.

[0018] In the above embodiments, the security of the trusted execution environment of the terminal can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0020] The present disclosure may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:

[0021] Figure 1is a flow chart illustrating an authentication method according to some embodiments of the present disclosure;

[0022] Figure 2a is a schematic diagram showing the structure of IMSI in some embodiments of the present disclosure;

[0023] Figure 2b is a schematic diagram showing the structure of a composite field IMSI' in some embodiments of the present disclosure;

[0024] Figure 2c is a schematic diagram showing the structure of SUCI of some embodiments of the present disclosure;

[0025] Figure 3 is a block diagram illustrating a terminal according to some embodiments of the present disclosure;

[0026] Figure 4 is a block diagram showing a terminal according to some other embodiments of the present disclosure;

[0027] Figure 5 is a block diagram showing a terminal according to some further embodiments of the present disclosure;

[0028] Figure 6 is a block diagram illustrating a computer system for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0029] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.

[0030] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0031] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.

[0032] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.

[0033] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0034] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0035] Figure 1 is a flow chart illustrating an authentication method according to some embodiments of the present disclosure.

[0036] like Figure 1 As shown, the authentication method based on the 5G industry private network includes steps S1 to S4. The authentication method is executed in the trusted execution environment of the terminal, and the trusted execution environment of the terminal is independent of the rich execution environment of the terminal.

[0037] In step S1, the SUPI (Subscription Permanent Identifier) ​​of the terminal is obtained.

[0038] In some embodiments, the USIM (Universal Subscriber Identity Module) card of the terminal is deployed in the trusted execution environment of the terminal, and the SUPI of the terminal can be obtained from the USIM card. By deploying the USIM card in the trusted execution environment of the terminal, the process of obtaining the SUPI of the terminal is completely performed in the trusted execution environment, which can further improve the security of the trusted execution environment of the terminal.

[0039] In some embodiments, the SUPI is in IMSI (International Mobile Subscriber Identity) format or NAI (Network Access Identifier) ​​format.

[0040] In step S2, a SUCI (Subscription Concealed Identifier) ​​is generated according to the SUPI of the terminal. The SUCI is used by the core network device to authenticate the trusted execution environment of the terminal.

[0041] In some embodiments, the trusted execution environment of the terminal is deployed with an industry-specific network terminal database, and the industry-specific network terminal database stores relevant data required for the authentication process. In this case, the serial number SQN of the terminal can be obtained from the industry-specific network terminal database; and SUCI is generated based on SQN and SUPI. In combination with the 5G AKA authentication mechanism, it can be seen that SQN is different in different authentication processes, that is, SQN is variable. By generating SUCI based on the variable SQN, random disturbances are added to SUCI in each authentication process, thereby further improving the security of the trusted execution environment of the terminal, especially improving the security of the core network equipment's authentication process for the terminal.

[0042] In some embodiments, the SQN and SUPI may be encrypted using an encryption algorithm pre-shared between the trusted execution environment of the terminal and the core network device to generate SUCI. The pre-shared encryption algorithm is also used by the core network device to decrypt the SUCI to complete the authentication of the terminal by the core network device.

[0043] In some embodiments, the SQN and SUPI may be encrypted to generate the SUCI in the following manner.

[0044] First, SQN and SUPI are combined to obtain a composite field.

[0045] Figure 2a It is a schematic diagram showing the structure of IMSI in some embodiments of the present disclosure.

[0046] Take SUPI in IMSI format as an example. Figure 2a As shown, the SUPI in IMSI format includes the MCC (Mobile Country Code) field, the MNC (Mobile Network Code) field, and the MSIN (Mobile Subscriber Identification Number) field. The MCC field and the MNC field are network and routing information, and the MSIN field is used to identify user information. When generating SUCI, the MSIN field will be encrypted for protection.

[0047] Figure 2b It is a schematic diagram showing the structure of the composite field IMSI' in some embodiments of the present disclosure.

[0048] like Figure 2b As shown, the composite field includes Figure 2a In addition to the three fields shown, the SQN is also included, which is incorporated into the MSIN field and is represented as SQN1. For example, the composite field is marked as IMSI'.

[0049] Then, the composite field is encrypted using an encryption algorithm to obtain SUCI. In some embodiments, the encryption algorithm is an ECC (Elliptic Curve Cryptography) algorithm.

[0050] Figure 2c is a schematic diagram showing the structure of SUCI according to some embodiments of the present disclosure.

[0051] like Figure 2c As shown in FIG. 1 , SUCI includes SUPI type, home network identifier, routing identifier, protection algorithm ID, home network public key, and SUPI ciphertext (Schema Output). Figure 2bThe MSIN and SQN in the SUPI are encrypted and stored in the SUPI ciphertext field.

[0052] Taking SUPI in NAI format as an example, NAI and SQN can be concatenated and then the concatenated result is encrypted to obtain SUCI.

[0053] return Figure 1 , in step S3, an AUTN (Authentication Token) is received from the core network device. AUTN is generated by the core network device when the trusted execution environment of the terminal is successfully authenticated according to SUCI. In some embodiments, AUTN is an encrypted AUTN of the core network device, and the encrypted AUTN includes an updated SQN. For example, the core network device first generates the original AUTN, represented by AUTN1. Then, the core network device encrypts AUTN1 to obtain an encrypted AUTN, represented by AUTN2. Based on the 5G AKA mechanism, those skilled in the art should understand that after the core network device successfully authenticates the trusted execution environment of the terminal, it will update the SQN corresponding to the trusted execution environment of the terminal and encapsulate it in the AUTN, which will not be repeated here. In addition, in addition to the updated SQN encapsulated in the AUTN, other information such as AK used to authenticate the core network is also encapsulated. This is what can be achieved by those skilled in the art based on the 5G AKA authentication mechanism, and will not be repeated here.

[0054] In step S4, the core network device is authenticated according to AUTN.

[0055] For example, taking the encrypted AUTN including the updated SQN as an example, the above step S4 can be implemented in the following manner.

[0056] First, according to the preset encryption and decryption strategy shared by the trusted execution environment of the terminal and the core network device, the encrypted AUTN is decrypted to obtain the decrypted AUTN. For example, AUTN2 is decrypted to obtain AUTN1.

[0057] In some embodiments, the preset encryption and decryption strategy includes: generating a target key according to the SQN before the update, the SUPI of the terminal and the preset initial key (for example, represented as K), and the target key is used for the core network device to encrypt the AUTN and the trusted execution environment of the terminal to decrypt the encrypted AUTN. The target key for encrypting and decrypting the AUTN is generated based on the variable SQN, so that random perturbations are added to the target key, and the target key is different in each authentication process, thereby further improving the security of the trusted execution environment of the terminal, especially further improving the security of the authentication process of the trusted execution environment of the terminal to the core network device.

[0058] In some embodiments, an XOR operation is first performed on the SUPI and the initial key; then a concatenation operation is performed on the result of the XOR operation and the SQN before the update to obtain the target key.

[0059] For example, the target key is represented as Key Autn Taking the initial key as K and the terminal's SQN value before update as SQN1 as an example, the target key can be calculated by the following formula:

[0060]

[0061] Then, verify whether the decrypted AUTN is valid. When the decrypted AUTN is valid, the authentication of the core network device by the trusted execution environment of the terminal is successful. For example, authentication is performed based on key information such as AK obtained from the decrypted AUTN. In some embodiments, it is determined whether the decrypted AUTN is a valid AUTN. When the decrypted AUTN is a valid AUTN, the authentication is successful, and the response RES* needs to be calculated (here is the existing mechanism of 5G AKA, which will not be repeated here). When the decrypted AUTN is an invalid AUTN, it is judged as an invalid authentication, which may be a man-in-the-middle attack.

[0062] In the above embodiment, by authenticating the core network device through the trusted execution environment of the terminal based on the encrypted AUTN, it is possible to avoid leakage of information closely related to authentication and authorization during the transmission of AUTN to a certain extent, thereby further improving the security of the trusted execution environment of the terminal, and especially further improving the security of the authentication process of the trusted execution environment of the terminal to the core network device.

[0063] In some embodiments, when the trusted execution environment of the terminal successfully authenticates the core network device, the updated SQN is obtained according to the decrypted AUTN; the SQN before the update is deleted; and the updated SQN is stored in the industry-specific network terminal database. The updated SQN can also be used for the next authentication process, which again reflects the variability of the SQN, thereby further explaining that adding a variable SQN to the SUCI can improve the security of the trusted execution environment of the terminal.

[0064] In the above embodiments, the trusted execution environment is enhanced by implementing two-way authentication between the trusted execution environment of the terminal and the core network device based on the 5G AKA (Authentication and Key Agreement) authentication mechanism in the trusted execution environment of the terminal of the 5G industry private network, thereby improving the security of the trusted execution environment of the terminal.

[0065] Figure 3is a block diagram illustrating a terminal according to some embodiments of the present disclosure.

[0066] like Figure 3 As shown, the terminal 3 based on the 5G industry private network includes a trusted execution environment 31 and a rich execution environment 32. The trusted execution environment 31 and the rich execution environment 32 are relatively independent of each other.

[0067] The trusted execution environment 31 includes an acquisition module 311 , a generation module 312 , a receiving module 313 and an authentication module 314 .

[0068] The acquisition module 311 is configured to acquire the user permanent identifier SUPI of the terminal, for example, by executing the following steps: Figure 1 Step S1 is shown.

[0069] The generating module 312 is configured to generate a hidden user identifier SUCI according to the SUPI of the terminal, and the SUCI is used by the core network device to authenticate the trusted execution environment of the terminal, for example, to perform the following steps: Figure 1 Step S2 is shown.

[0070] The receiving module 313 is configured to receive an authentication token AUTN from the core network device, wherein the AUTN is generated by the core network device when the trusted execution environment of the terminal is successfully authenticated according to the SUCI, for example, by executing Figure 1 Step S3 shown.

[0071] The authentication module 314 is configured to authenticate the core network device according to the AUTN, for example, by performing the following steps: Figure 1 Step S4 is shown.

[0072] In some embodiments, the trusted execution environment 31 further includes a USIM card 315. The USIM card 315 is configured to store the SUPI of the terminal. The acquisition module 311 is further configured to acquire the SUPI of the terminal from the USIM card 315.

[0073] In some embodiments, the trusted execution environment 31 further includes an industry-specific network terminal database 316. The industry-specific network terminal database 316 is configured to store relevant data required for the authentication process, including the SQN of the terminal. The generation module 312 is further configured to obtain the serial number SQN of the terminal from the industry-specific network terminal database; and generate SUCI according to the SQN and SUPI.

[0074] Figure 4 is a block diagram showing a terminal according to some other embodiments of the present disclosure.

[0075] like Figure 4As shown, the terminal 4 based on the 5G industry private network includes a trusted execution environment 41 and a rich execution environment 42. The trusted execution environment 41 and the rich execution environment 42 are relatively independent of each other.

[0076] The trusted execution environment 41 includes a TEE user layer 411 , a TEE internal API (Application Programming Interface) 412 , a TEE system kernel 413 and trusted peripherals 414 .

[0077] The TEE user layer 411 includes one or more trusted applications 4111. The TEE internal API 412 is used for communication interaction between the TEE user layer 411 and the TEE system kernel 413.

[0078] The TEE system kernel 413 includes a 5G industry private network authentication and authorization control unit 4131, an industry private network terminal database 4132, an AUTN decryption engine 4133, a SUPI encryption engine 4134, and a key generator 4135.

[0079] The trusted peripheral 414 includes a 5G module 4141 and a USIM card 4142. The USIM card 4142 is configured to store the SUPI of the terminal.

[0080] The trusted application 4111 of the TEE user layer 411 triggers the 5G industry private network authentication and authorization control unit 4131 through the TEE internal API 412 to perform the authentication process in the 5G network through the 5G module 4141 and the 5G core network equipment.

[0081] The 5G industry-specific network authentication control unit 4131 notifies the SUPI encryption engine module 4134 to generate SUCI. In response to receiving the notification of generating SUCI, the SUPI encryption engine module 4134 obtains SUPI from the USIM card 4142, obtains the SQN of the terminal from the industry-specific network terminal database 4132 through the 5G industry-specific network authentication control unit 4131, and encrypts the SQN and SUPI to obtain SUCI. The SUPI encryption engine module 4134 sends the SUCI to the 5G industry-specific network authentication control unit 4131. The 5G industry-specific network authentication control unit 4131 sends the SUCI to the core network device through the 5G module 4141.

[0082] The 5G industry private network authentication control unit 4131 also receives the encrypted AUTN from the core network device through the 5G module 4141, and sends the encrypted AUTN to the AUTN decryption engine 4133. The AUTN decryption engine 4133 notifies the key generator 4135 to generate a target key for decrypting the AUTN.

[0083] The key generator 4135 generates a target key and sends the target key to the AUTN decryption engine 4133. The specific generation of the target key can be achieved by the method steps described in the above embodiments, which will not be repeated here.

[0084] The AUTN decryption engine 4133 uses the target key to decrypt the encrypted AUTN and sends the decrypted AUTN to the 5G industry private network authentication and authorization control unit 4131.

[0085] The 5G industry private network authentication and authorization control unit 4131 authenticates the core network device according to the decrypted AUTN. The authentication process can be implemented, for example, by the method steps described in the above embodiment, which will not be repeated here.

[0086] In some embodiments, the TEE system kernel 413 also includes a TEE trust module 4136 .

[0087] The rich execution environment 42 includes a REE user layer 421 , a TEE client API 422 , a REE system kernel 423 , and common peripherals 424 .

[0088] The REE user layer 421 includes one or more 5G industry applications 4211 and one or more common applications 4212.

[0089] The REE system kernel 423 includes a hardware driver 4231 , a network protocol stack 4232 and a TEE driver 4233 .

[0090] The hardware driver 4231 and the network protocol stack 4232 are configured to provide driver resources and network resources for the REE user layer 421. The general peripherals 424 are configured to provide hardware support for the REE user layer 421 and the REE system kernel 423.

[0091] For example, when a user starts a 5G industry application 4211 of the REE user layer 421, the 5G industry application 4211 triggers the TEE driver 4233 through the TEE client API 422 to switch to the TEE trust module 4136 through the secure monitor module 43 of the terminal 4, and then the TEE trust module 4136 passes through the 5G industry private network authentication and authorization control unit 4131, and through the TEE internal API 412 to trigger the trusted application 4111 through the TEE internal API 412 to trigger the 5G industry private network authentication and authorization control unit 4131 and the 5G core network device to perform the authentication process in the 5G network.

[0092] In the above embodiment, the common peripherals 424 and the trusted peripherals 412 together constitute the hardware platform of the terminal 4. Figure 4 Shown as dotted box.

[0093] Figure 5 is a block diagram illustrating a terminal according to still other embodiments of the present disclosure.

[0094] like Figure 5 As shown, the terminal 5 based on the 5G industry private network includes a memory 51; and a processor 52 coupled to the memory 51. The memory 51 is used to store instructions for executing the corresponding embodiment of the authentication method based on the 5G industry private network. The processor 52 is configured to execute the authentication method based on the 5G industry private network in any of the embodiments of the present disclosure based on the instructions stored in the memory 51.

[0095] Figure 6 is a block diagram illustrating a computer system for implementing some embodiments of the present disclosure.

[0096] like Figure 6 As shown, the computer system 60 may be embodied in the form of a general purpose computing device. The computer system 60 includes a memory 610, a processor 620, and a bus 600 that connects the various system components.

[0097] The memory 610 may include, for example, a system memory, a non-volatile storage medium, and the like. The system memory may store, for example, an operating system, an application, a boot loader, and other programs. The system memory may include a volatile storage medium, such as a random access memory (RAM) and / or a cache memory. The non-volatile storage medium may store, for example, instructions for executing at least one of the corresponding embodiments of the authentication method based on the 5G industry private network. The non-volatile storage medium includes, but is not limited to, a disk storage, an optical storage, a flash memory, and the like.

[0098] The processor 620 can be implemented by a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistors, etc. Discrete hardware components. Accordingly, each module such as the judgment module and the determination module can be implemented by a central processing unit (CPU) running instructions in a memory that execute corresponding steps, or can be implemented by a dedicated circuit that executes corresponding steps.

[0099] The bus 600 may use any of a variety of bus architectures, including, but not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, and a Peripheral Component Interconnect (PCI) bus.

[0100] The computer system 60 may also include an input / output interface 630, a network interface 640, a storage interface 650, etc. These interfaces 630, 640, 650, the memory 610, and the processor 620 may be connected via a bus 600. The input / output interface 630 may provide a connection interface for input / output devices such as a display, a mouse, and a keyboard. The network interface 640 may provide a connection interface for various networked devices. The storage interface 650 may provide a connection interface for external storage devices such as a floppy disk, a USB flash drive, and an SD card.

[0101] Here, various aspects of the present disclosure are described with reference to flowcharts and / or block diagrams of methods, devices, and computer program products according to embodiments of the present disclosure. It should be understood that each frame of the flowchart and / or block diagram and the combination of frames can be implemented by computer-readable program instructions.

[0102] These computer-readable program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable device to produce a machine, so that the processor executes the instructions to produce means for implementing the functions specified in one or more blocks in the flowchart and / or block diagram.

[0103] These computer-readable program instructions may also be stored in a computer-readable memory, which cause the computer to work in a specific manner to produce an article of manufacture, including instructions for implementing the functions specified in one or more blocks in the flowchart and / or block diagram.

[0104] The present disclosure can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects.

[0105] Through the authentication method based on 5G industry private network, terminal, and computer storable medium in the above-mentioned embodiments, the security of the trusted execution environment of the terminal can be improved.

[0106] So far, the authentication method based on the 5G industry private network and the terminal and computer storable medium according to the present disclosure have been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed here.

Claims

1. An authentication method based on a 5G industry-specific network is executed in a trusted execution environment of a terminal, where the trusted execution environment of the terminal is independent of the rich execution environment of the terminal. include: Obtaining a user permanent identifier SUPI of the terminal; Generating a hidden user identifier SUCI according to the SUPI of the terminal, comprising: generating the SUCI according to the serial number SQN of the terminal and the SUPI, wherein the SUCI is used by a core network device to authenticate a trusted execution environment of the terminal; receiving an authentication token AUTN from the core network device, where the AUTN is generated by the core network device when the trusted execution environment of the terminal is successfully authenticated according to the SUCI, and the AUTN is an encrypted AUTN, and the encrypted AUTN includes an updated SQN; Authenticating the core network device according to the AUTN includes: Decrypting the encrypted AUTN according to a preset encryption and decryption strategy shared by the trusted execution environment of the terminal and the core network device to obtain the decrypted AUTN, including: performing an XOR operation on the SUPI of the terminal and an initial key, performing a concatenation operation on the result of the XOR operation and the SQN before the update to obtain a target key, wherein the target key is used for the core network device to encrypt the AUTN and the trusted execution environment of the terminal to decrypt the encrypted AUTN; Verify whether the decrypted AUTN is valid, wherein, if the decrypted AUTN is valid, the authentication of the core network device by the trusted execution environment of the terminal is successful.

2. The authentication method according to claim 1, in, The universal user identity module (USIM) card of the terminal is deployed in a trusted execution environment of the terminal, and obtaining the user permanent identifier (SUPI) of the terminal includes: Obtain the SUPI of the terminal from the USIM card.

3. The authentication method according to claim 1 or 2, in, The trusted execution environment of the terminal is deployed with an industry-specific network terminal database, and the industry-specific network terminal database stores relevant data required for the authentication process. According to the serial number SQN of the terminal and the SUPI, generating the SUCI includes: Obtaining the SQN of the terminal from the industry-specific network terminal database; The SUCI is generated according to the SQN and the SUPI.

4. The authentication method according to claim 3, in, Generating the SUCI according to the SQN and the SUPI includes: The SQN and the SUPI are encrypted by using an encryption algorithm pre-shared by the trusted execution environment of the terminal and the core network device to generate the SUCI.

5. The authentication method according to claim 4, in, Encrypting the SQN and the SUPI to generate the SUCI includes: Combining the SQN and the SUPI to obtain a composite field; The composite field is encrypted using the encryption algorithm to obtain the SUCI.

6. The authentication method according to claim 1, in, The SUPI is in the format of an International Mobile Subscriber Identity (IMSI) or a Network Access Identifier (NAI).

7. The authentication method according to claim 3, further comprising: include: When the trusted execution environment of the terminal successfully authenticates the core network device, obtaining the updated SQN according to the decrypted AUTN; Delete the SQN before the update; The updated SQN is stored in the industry-specific network terminal database.

8. A terminal based on 5G industry private network, include: A trusted execution environment and a rich execution environment that are relatively independent of each other, the trusted execution environment comprising: An acquisition module, configured to acquire a user permanent identifier SUPI of the terminal; A generating module is configured to generate a hidden user identifier SUCI according to the SUPI of the terminal, including: generating the SUCI according to the serial number SQN of the terminal and the SUPI, wherein the SUCI is used by a core network device to authenticate a trusted execution environment of the terminal; a receiving module configured to receive an authentication token AUTN from the core network device, wherein the AUTN is generated by the core network device when the trusted execution environment of the terminal is successfully authenticated according to the SUCI, and the AUTN is an encrypted AUTN, and the encrypted AUTN includes an updated SQN; The authentication module is configured to authenticate the core network device according to the AUTN, including: Decrypting the encrypted AUTN according to a preset encryption and decryption strategy shared by the trusted execution environment of the terminal and the core network device to obtain the decrypted AUTN, including: performing an XOR operation on the SUPI of the terminal and an initial key, performing a concatenation operation on the result of the XOR operation and the SQN before the update to obtain a target key, wherein the target key is used for the core network device to encrypt the AUTN and the trusted execution environment of the terminal to decrypt the encrypted AUTN; Verify whether the decrypted AUTN is valid, wherein, if the decrypted AUTN is valid, the authentication of the core network device by the trusted execution environment of the terminal is successful.

9. The terminal according to claim 8, in, The trusted execution environment also includes: a Universal Subscriber Identity Module (USIM) card, configured to store the SUPI of the terminal, The acquisition module is further configured to acquire the SUPI of the terminal from the USIM card.

10. The terminal according to claim 8 or 9, in, The trusted execution environment also includes: An industry-specific network terminal database, configured to store relevant data required for the authentication process, the relevant data including the SQN of the terminal; The generating module is further configured to: obtain the serial number SQN of the terminal from the industry-specific network terminal database; and generate the SUCI according to the SQN and the SUPI.

11. A terminal based on 5G industry private network, include: Memory; as well as A processor coupled to the memory, the processor being configured to execute the 5G industry-specific network-based authentication method as described in any one of claims 1 to 7 based on instructions stored in the memory.

12. A computer-storable medium having computer program instructions stored thereon, which, when executed by a processor, implement the authentication method based on the 5G industry-specific network as described in any one of claims 1 to 7.