User identity authentication method and device based on trusted equipment
Through a user identity authentication method based on trusted devices, using asymmetric cryptography and a trusted execution environment, the problem of insufficient security of username-password authentication in the existing technology is solved, and a balance between higher security and user experience is achieved. .
Patent Information
- Application Number
- CN202311047835.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-21
- Publication Date
- 2024-10-18
AI Technical Summary
The existing user identity authentication method is based on username and password, which has security risks and multi-factor authentication affects the user experience, making it difficult to provide sufficient security without degrading the user experience.
Adopt a user identity authentication method based on trusted devices, digitally sign through the asymmetric cryptography key pair of device characteristic values and user identity authentication materials, use the trusted execution environment to ensure the security of the private key, and complete the pre-process of the device and user Registration and association provide a more secure identity authentication process.
It achieves higher-security user identity authentication without degrading the user experience. Through the combination of asymmetric cryptography and a trusted execution environment, it ensures the security of the device and user identity, and reduces the risk of account theft. risk.
Smart Images

Figure CN118797590A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of computer technology and information security, and in particular to a user identity authentication method and device based on a trusted device. Background Art
[0002] With the development of computer technology and Internet technology, the relationship between personal life, work and the Internet is becoming increasingly close. While enjoying the convenience brought by the Internet, the security threats from the Internet are also gradually increasing.
[0003] In recent years, there have been numerous incidents of Internet accounts being lost or stolen, largely because the current mainstream user identity authentication method is still based on username-password authentication. Users use weak passwords, reuse single passwords, and individual Internet companies are breached and leaked username-password information, causing users' Internet accounts to face severe security risks at all times.
[0004] Although some Internet companies use multi-factor authentication (MFA) to protect user account information and reduce the security risks faced by users, the introduction of additional verification processes has a great impact on user experience.
[0005] Based on this, a user identity authentication method is needed that can provide sufficient security without reducing the user experience. Summary of the invention
[0006] One or more embodiments of the present specification implement a user identity authentication method and apparatus based on a trusted device, providing a more secure and convenient user identity authentication solution.
[0007] One or more embodiments of this specification provide a user identity authentication method based on a trusted device, the method comprising: (1) Determine whether the current device has been registered as a trusted device with the authentication service; if not, follow the steps below to complete the registration of the trusted device: (i) Calculate device feature values based on device hardware parameters and generate device identity authentication materials; (ii) Interact with the authentication service and submit the generated device identity authentication materials and device feature values; (iii) The authentication service saves the device feature value and device identity authentication materials, generates a unique device identifier and returns it to the device; (iv) The current device receives the unique device identifier and saves it in the local storage area of the device; (2) Determine whether there is a user authentication key pair on the current device and the result is yes; if not, execute the user association trusted device process; (3) Interact with the authentication service to obtain identity authentication parameters; (4) The user completes local authentication on the device and the result is yes; if it is no, the entire authentication process ends; (5) Calculate user authentication credentials; (6) Interact with the authentication service and submit the user authentication credentials to the authentication service; (7). The authentication service verifies the user's identity authentication credentials and returns the verification result.
[0008] In some implementations, the trusted device is characterized by: (1) A hardware computing module that can provide a trusted execution environment isolated from the real-time execution environment; (2) The device can generate key pairs for asymmetric cryptography completely randomly, and use security mechanisms to ensure that the private keys cannot leave the device's trusted execution environment; (3) The device has completed the trusted device registration pre-process.
[0009] In some implementations, the authentication service is characterized by: a group of logical services physically isolated from the trusted device, communicating with the trusted device through a network.
[0010] In some embodiments, the identity authentication credentials are characterized by: a set of data structures for user identity authentication, which at least includes a digital signature value corresponding to the authentication parameters calculated using user identity authentication materials.
[0011] In some implementations, determining whether the current device and user have completed the pre-process comprises the following steps: (1) Determine whether there is a device identity authentication key pair on the current device and the result is yes; if not, execute the trusted device registration process; (2) Determine whether there is a user authentication key pair on the current device and the result is yes; if not, execute the user association trusted device process.
[0012] In some implementations, the trusted device registration process includes the following steps: (1) Calculate the device characteristic value based on the device hardware parameters and generate device identity authentication materials; (2) Interact with the authentication service and submit the generated device identity authentication materials; (3) The authentication service stores device feature values and device identity authentication materials.
[0013] In some embodiments, the identity authentication material is characterized by: a key pair generated by asymmetric cryptography, wherein the public key can be exported from the device and submitted to the authentication service for identity authentication, and the private key cannot be exported from the device and is used for trusted devices or users to calculate authentication credentials.
[0014] In some implementations, the user-associated trusted device process includes the following steps: (1) The trusted device collects the user's ID information and face image; (2). Receive and save local identity authentication materials entered by the user and generate user identity authentication materials; (3) Interact with the authentication service and submit the collected user ID information, user face image and user identity authentication materials; (4) The authentication service parses the user's ID information and compares the collected user's face image with the ID portrait to determine whether the similarity is higher than the preset threshold and the result is yes; if not, the user association trusted device process is terminated; (5) The authentication service stores the association between the trusted device and the user's identity authentication materials.
[0015] In some embodiments, the local identity verification material is characterized by being a personal identification number (PIN) input by the user or a biometric identifier of the user, and the local identity verification material is only stored in a dedicated area inside the trusted device.
[0016] One or more embodiments of this specification provide a user identity authentication device based on a trusted device, comprising the following modules: (1) Certificate information collection module: provides user certificate information collection function for trusted devices; (2) Face image acquisition module: provides user face image acquisition function for trusted devices; (3) Device key management module: provides trusted devices with functions such as key generation, use, and export for asymmetric cryptography; (4) Device management module: provides functions such as device physical information collection and device characteristic value calculation for trusted devices; (5) Local authentication module: provides the functions of collecting and saving local authentication materials and local authentication for trusted devices and users; (6) Network communication module: provides network communication functions for trusted devices and authentication services; (7) Trusted device management module: provides functions of trusted device registration, authentication, and user association with trusted devices for authentication services; (8) User authentication management module: provides authentication services with functions of parsing user ID information, portrait comparison, and identity authentication. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A schematic diagram of the overall process of a user identity authentication method based on a trusted device provided in an embodiment of the present application.
[0018] Figure 2 A schematic diagram of a process flow of executing a pre-process by a device provided in an embodiment of the present application.
[0019] Figure 3 A schematic diagram of a process flow for a user to perform a pre-process provided in an embodiment of the present application.
[0020] Figure 4 A flowchart of the first authentication method provided in the embodiment of the present application.
[0021] Figure 5 A flowchart of the second authentication method provided in the embodiment of the present application.
[0022] Figure 6 A schematic diagram of the structure of a user identity authentication device based on a trusted device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0024] Exemplarily, the embodiment of the present application completes the description and implementation of the overall technical solution through a client / server architecture. The client is installed and deployed in the trusted device in the form of an application. The server is deployed in a cloud server physically isolated from the trusted device in the form of an application, and receives the client's interaction request through a network interface.
[0025] Figure 1 The overall flow chart of the user identity authentication method based on a trusted device provided in the embodiment of the present application is as follows. Figure 1 As shown, the method comprises the following steps.
[0026] S101: Determine whether the device and the user have completed the pre-process.
[0027] The client determines whether the current device and the associated user have completed the pre-authentication process by judging whether the device hardware information meets the authentication process requirements and whether the corresponding authentication materials exist in the device.
[0028] The pre-process of identity authentication is critical to the entire authentication process. Trusted devices and users complete the generation of identity authentication materials for devices and users by executing the pre-process, and submit the publicly available parts to the authentication service for storage to support subsequent user identity authentication operations.
[0029] S102: The device and the user execute the pre-process.
[0030] After the client determines that the current device or user has not completed the pre-process, it enters this step. The pre-process described in this step is divided into two sub-processes according to the main participants: (1) Trusted device registration process: the process of registering the current device as a trusted device. The main features are submitting the device feature value and the identity authentication materials used for device identity authentication to the authentication service and obtaining the unique identifier of the device from the authentication service. (2) User association trusted device process: The process of associating the current user with the current trusted device. The main feature is that the identity authentication materials for user identity authentication are submitted to the authentication service and the user's real-name identity is determined.
[0031] S103: Interact with the authentication service to obtain identity authentication parameters.
[0032] The client interacts with the authentication service through the network and requests to obtain identity authentication parameters.
[0033] After receiving the request to obtain the authentication parameters, the authentication service randomly generates a byte stream with a length greater than 16 bytes and less than 128 bytes as the authentication parameters and returns it to the client.
[0034] For example, in order to ensure the usability of the overall solution, the authentication parameters are encoded as a hexadecimal string during network transmission; after receiving the authentication parameters, the client needs to perform a reverse encoding operation to restore the data to the original byte stream.
[0035] S104: The user completes local identity authentication on the device.
[0036] After the client obtains the authentication parameters, it requires the user to provide the local authentication materials set when the user associates the trusted device process in step S102. This step verifies the authentication materials provided by the user in the previous process, determines the user's operation rights on the trusted device, and provides user authorization support for subsequent processes. If the user cannot provide valid authentication materials to pass the local authentication, the subsequent authentication process will be terminated.
[0037] S105: Calculate user identity authentication credentials.
[0038] The client obtains the user authentication material and the device authentication material through the trusted device interface, and uses the private key therein to digitally sign the authentication parameters obtained in step S103, respectively, to obtain the user authentication signature and the device authentication signature. Exemplarily, the digital signature algorithm used in one or more embodiments of this specification is the ECDSAWithSHA256 algorithm. The client calculates the device feature value, and assembles the user authentication signature and the device authentication signature as the user authentication credential.
[0039] S106: Interact with the authentication service and submit user identity authentication credentials.
[0040] The client submits the user identity authentication credentials to the authentication service through network communication. In order to ensure the security of the transmission process and the confidentiality of the data, illustratively, the network transmission process mentioned in one or more embodiments of this specification is based on the Transport Layer Security Transport Protocol version 1.3 (TLS1.3).
[0041] S107: The authentication service verifies the user's identity authentication credentials and returns a verification result.
[0042] After the authentication service receives the user authentication credentials, it uses the device and user authentication materials submitted in the trusted device registration process and the user trusted device association process in step S102 to verify the digital signature in the user authentication credentials, and performs an "AND" operation on the verification results of the two digital signatures to obtain the final user authentication result.
[0043] Figure 2 A schematic diagram of the process flow of the device executing the pre-process provided in the embodiment of the present application. The process describes in more detail how the device determines whether the pre-process is completed and how the device is registered as a trusted device. The trusted device registration process is one of the key pre-processes. Only after the device is registered as a trusted device with the authentication service can it interact with the authentication service in the subsequent steps. Figure 2 As shown, the process includes the following steps.
[0044] S201: Determine whether the device operating environment meets the trusted device requirements.
[0045] Exemplarily, the client collects hardware and system information of the device, confirms the type, category and model of the device, and verifies that the current device does not exist in a preset device blacklist.
[0046] Exemplarily, the client generates an asymmetric encryption key for testing through a system interface, and confirms that its private key portion cannot be exported, thereby verifying that the trusted execution environment of the device is normal and available.
[0047] Exemplarily, the client verifies whether the system is currently in an abnormal use state by reading the operating system information. Exemplarily, the abnormal use state means that the current device is not in the ideal use state described by the device manufacturer, and a typical scenario includes the system being "rooted" or "jailbroken".
[0048] Exemplarily, when the client verifies that the current device is not on the preset blacklist, the trusted execution environment is available normally, and the current device is not in an abnormal usage state, it is considered that the current device meets the trusted device requirements and subsequent steps can be performed; when any of the verifications fails, the current process and the execution of subsequent steps are terminated and exited.
[0049] S202: Determine whether device identity authentication materials exist locally.
[0050] The client verifies whether the current device has device identity authentication materials through the device interface. When the device identity authentication materials exist, the current process is terminated and the next process is executed; when the device identity authentication materials do not exist, the next step is continued.
[0051] S203: Calculate device feature values and generate device identity authentication materials.
[0052] The client randomly generates device identity authentication materials through the device interface. Exemplarily, the device identity authentication materials are a pair of public and private keys generated using the ECDSA algorithm, where the private key is stored in an independent storage area controlled by the trusted execution environment, and the public key can be exported.
[0053] The client calculates the device characteristic value through the device's hardware information, system information and the client's own information.
[0054] Exemplarily, the method for calculating the device characteristic value is: (1) Concatenate the device's hardware information, system information, and client information in sequence to obtain a device information string; (2) The client generates a unified unique identifier (UUID) and concatenates it with the device information string to obtain the device unique information string; (3) The client uses the SM3 hash algorithm to calculate the hash value of the unique information string, and encodes it using Base64 encoding to obtain the corresponding string as the device feature value.
[0055] S204: Use the private key information of the device identity authentication material to digitally sign the device characteristic value.
[0056] Exemplarily, the client uses the private key portion of the device identity authentication material generated in step S203 through the device interface to perform an ECDSAWithSHA256 digital signature on the device characteristic value to obtain a device characteristic value signature.
[0057] Exemplarily, the intention of this step is to avoid the device identity authentication materials being intercepted and replaced by a third party when they are subsequently submitted to the authentication service, resulting in a logical separation of the device identity authentication materials and the device characteristic values, thereby causing security risks. Therefore, before subsequently interacting with the authentication service to obtain the trusted device registration parameters, the digital signature corresponding to the device characteristic value is calculated and generated, and the binding relationship between the device characteristic value and the device identity authentication material is fixed by cryptographic means.
[0058] S205: Interact with the authentication service to obtain trusted device registration parameters.
[0059] The client submits the device characteristic value and the device characteristic value signature obtained in step S203 and step 204 to the authentication service through network communication. The authentication service saves the device characteristic value and the device characteristic value signature, and randomly generates a trusted device registration parameter and returns it to the client.
[0060] Exemplarily, the method for generating the trusted device registration parameters is: (1) The authentication service randomly generates a byte stream greater than 16 bytes and less than 256 bytes as the authentication parameter byte stream; (2) Encode the authentication parameter byte stream into a hexadecimal string as the authentication parameter.
[0061] S206: Calculate the trusted device registration credential.
[0062] Exemplarily, the client uses the private key portion of the device identity authentication material generated in step S203 through the device interface to perform an ECDSAWithSHA256 digital signature on the authentication parameters to obtain a trusted device authentication signature.
[0063] Exemplarily, the client exports the public key portion of the device identity authentication material generated in step S203 through the device interface and encodes it as public key information through Abstract Syntax Notation 1 (ASN.1), assembles the public key information and the trusted device authentication signature, and obtains the trusted device registration credential.
[0064] Exemplarily, since the authentication parameter obtained in step S205 is a hexadecimal string, after the client receives the authentication parameter, it needs to decode the hexadecimal string to obtain the original authentication parameter byte stream before it can be used.
[0065] S207: Interact with the authentication service to submit and verify the trusted device registration credentials.
[0066] The client submits the trusted device registration credentials obtained in step S206 to the authentication service through network communication.
[0067] After receiving the trusted device registration credentials, the authentication service parses the trusted device registration credentials and verifies whether the registration credentials are valid. The verification method is as follows: (1) Extract the device public key information from the trusted device registration credential; (2) Use the device public key to verify the device feature value signature submitted by the client in step S205, and the verification is successful; (3) Use the device public key to verify the trusted device authentication signature in the trusted device registration credential, and the verification is successful.
[0068] Exemplarily, if the trusted device registration authentication credentials submitted by the client do not pass the verification method, the current step and subsequent processes are terminated.
[0069] S208: The authentication service establishes a binding relationship between the device characteristic value and the device identity authentication material.
[0070] The authentication service extracts the device public key information from the trusted device registration credentials and saves the binding relationship between the device public key and the device characteristic value.
[0071] Figure 3 A flowchart of a user executing a pre-process provided in an embodiment of the present application. This process describes in more detail how to determine whether the user has completed the pre-process and how the user associates with a trusted device. The user association trusted device process is one of the key pre-processes. Only after the user establishes an association with the trusted device can subsequent interactions with the authentication service occur to provide identity authentication services for the user. Figure 3 As shown, the process includes the following steps.
[0072] S301: Determine whether user identity authentication materials exist locally.
[0073] The client verifies whether the current device has user authentication materials through the device interface. When the user authentication materials exist, the current process is terminated and the next process is executed; when the device authentication materials do not exist, the next step is continued.
[0074] S302: Collect user ID information and facial image information.
[0075] For example, the client requires the user to provide his / her personal ID card and reads the ID card through the field communication technology (NFC) or character recognition technology (OCR). After reading the ID card, the client collects the user's facial image information through the device interface.
[0076] S303: Interact with the authentication service to submit and verify the user's ID information and face image information.
[0077] The client submits the user certificate information and user facial image information collected in step S302 to the authentication service via network communication.
[0078] Exemplarily, the authentication service parses the user ID information submitted by the client, extracts the ID portrait in the user ID information, compares it with the collected user facial image information submitted by the client, and determines whether the similarity between the two is not less than 70%. If it is less than 70%, it is considered that the user currently performing the operation does not match the provided ID, and the current process and subsequent steps are terminated and exited.
[0079] S304: The authentication service randomly generates user-associated trusted device authentication parameters.
[0080] The authentication service randomly generates a byte stream with a length greater than 16 bytes and less than 128 bytes as the authentication parameter and returns it to the client. For example, in order to ensure the ease of use of the overall solution, the authentication parameter is encoded as a hexadecimal string during network transmission; after receiving the authentication parameter, the client needs to perform a reverse encoding operation to restore the data to the original byte stream.
[0081] Exemplarily, the method for generating user-associated trusted device authentication parameters is: (1) The authentication service randomly generates a byte stream greater than 16 bytes and less than 256 bytes as the authentication parameter byte stream; (2) Encode the authentication parameter byte stream into a hexadecimal string as the authentication parameter.
[0082] S305: Require the user to input local identity authentication materials, and generate corresponding user identity authentication materials.
[0083] Exemplarily, the client requires the user to provide at least one local identity authentication material, which may be a personal identification number (PIN) or biometric information (fingerprint, facial feature).
[0084] Exemplarily, each time a user provides a local identity authentication material, the client generates corresponding user identity authentication material for the user through the device interface, and sets the private key of the user identity authentication material so that it can only be used after passing the corresponding local identity authentication; the user identity authentication material is a pair of public and private keys generated using the ECDSA algorithm, wherein the private key part is stored in an independent storage area controlled by the trusted execution environment, and the public key can be exported.
[0085] S306: Calculate the user-associated trusted device authentication credentials.
[0086] Exemplarily, the client uses the private key part of the user identity authentication material generated in step S305 through the device interface to perform ECDSAWithSHA256 digital signature on the authentication parameters to obtain the user-associated trusted device authentication signature; and uses the private key part of the device authentication material to perform ECDSAWithSHA256 digital signature on the authentication parameters to obtain the device authentication signature.
[0087] Exemplarily, the client exports the public key portion of the user identity authentication material generated in step S305 through the device interface and encodes it as public key information through Abstract Syntax Notation 1 (ASN.1), assembles the public key information, the device authentication signature and the user-associated trusted device authentication signature, and obtains the user-associated trusted device authentication credential.
[0088] Exemplarily, since the authentication parameter obtained in step S304 is a hexadecimal string, after the client receives the authentication parameter, it needs to decode the hexadecimal string to obtain the original authentication parameter byte stream before it can be used.
[0089] S307: Interact with the authentication server to submit and verify the user-associated trusted device authentication credentials.
[0090] The client submits the user-associated trusted device authentication credentials obtained through network communication to the authentication service.
[0091] After receiving the trusted device registration credentials, the authentication service parses the trusted device registration credentials and verifies whether the registration credentials are valid. The verification method is as follows: (1) Use the device public key to verify the device authentication signature in the user-associated trusted device authentication credential, and the verification is successful; (2) Extract the user's public key information from the user's associated trusted device authentication credentials; (3) Use the user public key to verify the user-associated trusted device authentication signature in the user-associated trusted device authentication credential, and the verification is successful.
[0092] Exemplarily, if the user-associated trusted device authentication credentials submitted by the client do not pass the verification method, the current process and subsequent steps are terminated and exited.
[0093] S308: The authentication service establishes a relationship between the user and the trusted device and saves the user identity authentication material.
[0094] The authentication service extracts the device public key information from the user-associated trusted device authentication credentials and saves the binding relationship between the public key of the user authentication material and the trusted device.
[0095] Figure 4 The flowchart of the first authentication method provided in the embodiment of the present application is as follows. The flowchart describes a user identity authentication process actively initiated by a trusted device in one or more embodiments provided in this specification. For example, the flowchart is generally applied to the user account login scenario. Figure 4 As shown, the process includes the following steps.
[0096] S401: Interact with the authentication service to obtain identity authentication parameters.
[0097] The client calculates the device characteristic value, assembles the device characteristic value and the public key characteristic value of the device identity authentication material as the identity authentication request information, and submits it to the authentication service through network communication.
[0098] S402: The authentication service randomly generates identity authentication parameters.
[0099] The authentication service parses the identity authentication request information and verifies the binding relationship between the device characteristic value and the public key information of the device identity authentication material. If the verification fails, the current step and subsequent processes are terminated.
[0100] The authentication service randomly generates a byte stream with a length greater than 16 bytes and less than 128 bytes as the authentication parameter and returns it to the client. For example, in order to ensure the ease of use of the overall solution, the authentication parameter is encoded as a hexadecimal string during network transmission; after receiving the authentication parameter, the client needs to perform a reverse encoding operation to restore the data to the original byte stream.
[0101] Exemplarily, the method for generating user-associated trusted device authentication parameters is: (1) The authentication service randomly generates a byte stream greater than 16 bytes and less than 256 bytes as the authentication parameter byte stream; (2) Encode the authentication parameter byte stream into a hexadecimal string as the authentication parameter.
[0102] S403: Verify the local identity authentication material provided by the user.
[0103] The client requires the user to provide any local user identity verification material entered and saved in the process of associating the user with a trusted device for local identity verification. After the user provides the local identity verification material, the client determines whether the user has passed the verification. If not, the client terminates the current process and subsequent steps and exits.
[0104] S404: Calculate user identity authentication credentials.
[0105] For example, after the user passes the local identity authentication, the client uses the private key of the user identity authentication material corresponding to the local identity authentication to perform ECDSAWithSHA256 digital signature on the identity authentication parameters through the device interface to obtain the user identity authentication signature; and uses the private key of the device identity authentication material to perform ECDSAWithSHA256 digital signature on the identity authentication parameters to obtain the device identity authentication signature. The device characteristic value, user identity authentication signature and device identity authentication signature are assembled to obtain the user identity authentication credential.
[0106] S405: Interact with the authentication service to submit and verify the identity authentication credentials.
[0107] The client submits user authentication credentials to the authentication service through network communication.
[0108] After receiving the authentication credentials, the authentication service parses and verifies whether the authentication credentials are valid. The verification method is as follows: (1) Use the device public key to verify the device authentication signature in the authentication credential, and the verification is successful; (2) Extract the stored user public key information based on the device feature value; (3) Use the user public key to verify the user authentication signature in the authentication credential, and the verification is successful.
[0109] Exemplarily, after the user identity authentication credentials are verified, the authentication service returns the verification result to the client; when the verification result is passed, the authentication service also returns the user's corresponding identity identifier to the client.
[0110] Figure 5 The flowchart of the second authentication method provided in the embodiment of the present application is as follows. The flowchart describes a user identity authentication process actively initiated by the authentication service in one or more embodiments provided in this specification. Exemplarily, the flowchart is generally applied to scenarios requiring asynchronous authentication authorization by users. Figure 5 As shown, the process includes the following steps.
[0111] S501: The authentication service randomly generates identity authentication parameters.
[0112] The authentication service randomly generates a byte stream with a length greater than 16 bytes and less than 128 bytes as the authentication parameter and returns it to the client. For example, in order to ensure the ease of use of the overall solution, the authentication parameter is encoded as a hexadecimal string during network transmission; after receiving the authentication parameter, the client needs to perform a reverse encoding operation to restore the data to the original byte stream.
[0113] Exemplarily, the method for generating user-associated trusted device authentication parameters is: (1) The authentication service randomly generates a byte stream greater than 16 bytes and less than 256 bytes as the authentication parameter byte stream; (2) Encode the authentication parameter byte stream into a hexadecimal string as the authentication parameter.
[0114] S502: Interact with a trusted device and send identity authentication parameters.
[0115] The authentication service determines the trusted device associated with the user based on the user authorization request provided externally. The authentication service interacts with the trusted device and sends the identity authentication parameters to the trusted device.
[0116] For example, since it is very costly to maintain a persistent and reliable network connection between the authentication service and the client, for a smart phone device, this step is usually implemented by pushing a message to the phone. The implementation process includes: (1) Send a push message to the specified device, which contains the unique identifier of this identity authentication; (2) After receiving the push information, the device queries the identity authentication request through the unique identifier.
[0117] For example, for non-smartphone devices, this step is usually implemented by scheduled task polling, and the implementation process includes: (1) The client uses the device characteristic value as a parameter to request the message notification interface provided by the authentication service to obtain its unprocessed message list; (2) After the client obtains the list of unreceived messages, it requests the message processing interface provided by the authentication service to mark the message received this time; (3) The client parses the messages one by one and queries the identity authentication request using the unique identifier carried in the message.
[0118] S503: Verify the local identity authentication material provided by the user.
[0119] The client requires the user to provide any local user identity verification material entered and saved in the process of associating the user with a trusted device for local identity verification. After the user provides the local identity verification material, the client determines whether the user has passed the verification. If not, the client terminates the current process and subsequent steps and exits.
[0120] S504: Calculate user identity authentication credentials.
[0121] For example, after the user passes the local identity authentication, the client uses the private key of the user identity authentication material corresponding to the local identity authentication to perform ECDSAWithSHA256 digital signature on the identity authentication parameters through the device interface to obtain the user identity authentication signature; and uses the private key of the device identity authentication material to perform ECDSAWithSHA256 digital signature on the identity authentication parameters to obtain the device identity authentication signature. The device characteristic value, user identity authentication signature and device identity authentication signature are assembled to obtain the user identity authentication credential.
[0122] S505: Interact with the authentication service to submit and verify the identity authentication credentials.
[0123] The client submits user authentication credentials to the authentication service through network communication.
[0124] After receiving the authentication credentials, the authentication service parses and verifies whether the authentication credentials are valid. The verification method is as follows: (1) Use the device public key to verify the device authentication signature in the authentication credential, and the verification is successful; (2) Extract the stored user public key information based on the device feature value; (3) Use the user public key to verify the user authentication signature in the authentication credential, and the verification is successful.
[0125] Exemplarily, after the user identity authentication credentials are verified, the authentication service returns the verification result to the client; when the verification result is passed, the authentication service also returns the user's corresponding identity identifier to the client.
[0126] Figure 6 This is a schematic diagram of the structure of a user identity authentication device based on a trusted device provided in an embodiment of the present application. Figure 6 As shown, the device includes the following modules.
[0127] P101: Certificate information collection module: This module is located in the trusted device and provides the trusted device with user certificate information collection function.
[0128] P102: Face image acquisition module: This module is located in the trusted device and provides the trusted device with user face image acquisition function.
[0129] P103: Device key management module: This module is located in the trusted device and provides trusted devices with functions such as key generation, use, and export for asymmetric cryptography.
[0130] P104: Device management module: This module is located in the trusted device and provides functions such as device physical information collection and device characteristic value calculation for the trusted device.
[0131] P105: Local authentication module: This module is located in the trusted device and provides the functions of collecting and storing local authentication materials and local authentication for trusted devices and users.
[0132] P106: Network communication module: This module is located in the trusted device and authentication service.
[0133] P107: Trusted device management module: This module is located in the authentication service and provides network communication functions for trusted devices and authentication services.
[0134] P108: User authentication management module: This module is located in the authentication service and provides the authentication service with functions of parsing user certificate information, portrait comparison, and identity authentication.
Claims
1. A user identity authentication method based on a trusted device, comprising the following steps: (1) Determine whether the device identity authentication key pair and device unique identifier exist on the current device; if not, follow the steps below to complete the registration of the trusted device: (i) Calculate device feature values based on device hardware parameters and generate device identity authentication materials; (ii) Interact with the authentication service and submit the generated device identity authentication materials and device feature values; (iii) The authentication service saves the device feature value and device identity authentication materials, generates a unique device identifier and returns it to the device; (iv) The current device receives the unique device identifier and saves it in the local storage area of the device; (2) Determine whether a user authentication key pair exists on the current device and the result is yes; If no, execute the user association trusted device process; (3) Interact with the authentication service to obtain identity authentication parameters; (4) The user completes local authentication on the device and the result is yes; If no, the entire authentication process ends; (5) Calculate user authentication credentials; (6) Interact with the authentication service and submit the user authentication credentials to the authentication service; (7). The authentication service verifies the user's identity authentication credentials and returns the verification result.
2. The method according to claim 1, wherein the trusted device is characterized by: (1) A hardware computing module that can provide a trusted execution environment isolated from the real-time execution environment; (2) The device can randomly generate key pairs for asymmetric cryptography and use security mechanisms to ensure that the private keys cannot leave the device's trusted execution environment; (3) The device has completed the trusted device registration pre-process.
3. The method according to claim 1, wherein the authentication service is characterized by: A group of logical services physically isolated from the trusted device communicate with the trusted device through a network.
4. According to the method described in claim 1, the identity authentication credentials are characterized by: a set of data structures used for identity authentication, which at least includes a digital signature value corresponding to the authentication parameters calculated using user identity authentication materials.
5. In the process as described in claim 4, the identity authentication material is characterized by: a key pair generated by asymmetric cryptography, wherein the public key can be exported from the device and submitted to the authentication service for identity authentication, and the private key cannot be exported from the device and is used for trusted devices or users to calculate identity authentication credentials.
6. The process of associating a user with a trusted device as claimed in claim 1, comprising the following steps: (1) The trusted device collects the user's ID information and face image; (2). Receive and save local identity authentication materials entered by the user and generate user identity authentication materials; (3) Interact with the authentication service and submit the collected user ID information, user face image and user identity authentication materials; (4) The authentication service parses the user's ID information and compares the collected user's face image with the ID photo to determine whether the similarity is higher than the preset threshold and the result is yes; If no, the process of associating the user with the trusted device is terminated; (5) The authentication service stores the association between the trusted device and the user’s identity authentication materials.
7. The process as claimed in claim 6, wherein the local identity verification material is characterized by: It is a personal identification number (PIN) entered by the user or the user's own biometric identification. The local authentication material is only stored in a dedicated area inside the trusted device.
8. A user identity authentication device based on a trusted device, comprising the following modules: (1) Certificate information collection module: provides user certificate information collection function for trusted devices; (2) Face image acquisition module: provides user face image acquisition function for trusted devices; (3) Device key management module: provides trusted devices with functions such as key generation, use, and export for asymmetric cryptography; (4) Device management module: provides functions such as device physical information collection and device characteristic value calculation for trusted devices; (5) Local authentication module: provides the functions of collecting and saving local authentication materials and local authentication for trusted devices and users; (6) Network communication module: provides network communication functions for trusted devices and authentication services; (7) Trusted device management module: provides functions of trusted device registration, authentication, and user association with trusted devices for authentication services; (8) User authentication management module: provides authentication services with functions of parsing user ID information, portrait comparison, and identity authentication.
