Remote authentication system and method based on distributed trusted execution environment application
By using the private key of the second application node to update the authentication report and generate the negotiation key in a distributed trusted execution environment, the problem of man-in-the-middle attack during the remote authentication process is solved and the security of data transmission is improved.
Patent Information
- Application Number
- CN202410648650.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-05-23
AI Technical Summary
In a trusted execution environment, the remote authentication process is vulnerable to man-in-the-middle attacks, leading to data leakage, and the existing technology's remote authentication security is low.
By performing authentication between the first application node and the second application node in a distributed trusted execution environment, the private key of the second application node is used to update the initial application authentication report to generate a target application authentication report, and the target application authentication report is generated after the authentication is passed. The negotiation key is then generated for encrypting data transmission to ensure the security of data transmission.
It effectively prevents man-in-the-middle attacks, improves the security of remote authentication, and uses the negotiated key to encrypt data during subsequent data transmission, ensuring the security of data transmission.
Smart Images

Figure CN118233218B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a remote authentication system based on a distributed trusted execution environment application. The present invention also relates to a remote authentication method based on a distributed trusted execution environment application, a computing device, a computer-readable storage medium, and a computer program product. Background Art
[0002] Remote Attestation (RA) is an important means of establishing trust in the Trusted Execution Environment (TEE) technology solution. Before users access applications running in the TEE, they need to perform remote authentication on each application running in the TEE to ensure data security during subsequent user access to each application and data transmission.
[0003] In current practical applications, other applications running in a trusted execution environment are often authenticated through a main application or management application running in a trusted execution environment. During the authentication process, it is easy to be attacked by a middleman, resulting in user programs being tampered with and data leakage. Summary of the invention
[0004] In view of this, the embodiments of this specification provide a remote authentication system based on a distributed trusted execution environment application. One or more embodiments of this specification also relate to a remote authentication method based on a distributed trusted execution environment application, a computing device, a computer-readable storage medium, and a computer program product to solve the technical defects existing in the prior art.
[0005] According to a first aspect of an embodiment of this specification, there is provided a remote authentication system based on a distributed trusted execution environment application, the remote authentication system comprising a first application node, at least one second application node and a verification party, the first application node and each second application node running in different trusted execution environments;
[0006] The target second application node among the at least one second application node is configured to generate an initial application authentication report in response to the application authentication request submitted by the first application node, update the initial application authentication report to a target application authentication report based on the private key of the target second application node, and send the report to the first application node;
[0007] The first application node is configured to, if the target application authentication report is verified to be passed, generate a target negotiation key corresponding to the target second application node, and send the target negotiation key to the target second application node; if the verification party has a communication requirement with the target second application node, generate a remote authentication report carrying the target negotiation key in response to a remote authentication request submitted by the verification party, and send the remote authentication report to the verification party;
[0008] The verification party is configured to extract the target negotiation key from the remote authentication report if the remote authentication report is verified to be successful, and communicate with the target second application node according to the target negotiation key.
[0009] According to a second aspect of an embodiment of this specification, a remote authentication method based on a distributed trusted execution environment application is provided, which is applied to a remote authentication system, wherein the remote authentication system includes a first application node, at least one second application node, and a verification party, wherein the first application node and each second application node run in different trusted execution environments; the method includes:
[0010] The target second application node among the at least one second application node generates an initial application authentication report in response to the application authentication request submitted by the first application node, updates the initial application authentication report to a target application authentication report based on the private key of the target second application node, and sends the report to the first application node;
[0011] The first application node, when the target application authentication report is verified to be successful, generates a target negotiation key corresponding to the target second application node, and sends the target negotiation key to the target second application node; when the verification party has a communication requirement with the target second application node, generates a remote authentication report carrying the target negotiation key in response to a remote authentication request submitted by the verification party, and sends the remote authentication report to the verification party;
[0012] The verifier, when verifying the remote authentication report, extracts the target negotiation key from the remote authentication report and communicates with the target second application node according to the target negotiation key.
[0013] According to a third aspect of an embodiment of this specification, a computing device is provided, including:
[0014] Memory and processor;
[0015] The memory is used to store computer programs or instructions, and the processor is used to execute the computer programs or instructions. When the computer program or instructions are executed by the processor, the steps of the remote authentication method based on the distributed trusted execution environment application are implemented.
[0016] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores a computer program or instruction, and when the computer program or instruction is executed by a processor, the steps of the remote authentication method based on a distributed trusted execution environment application are implemented.
[0017] According to a fifth aspect of the embodiments of this specification, a computer program product is provided, including a computer program or instructions, which, when executed by a processor, implement the steps of the above-mentioned remote authentication method based on a distributed trusted execution environment application.
[0018] An embodiment of the present specification realizes that, during the authentication process between the first application node and each second application node, a step of updating the initial application authentication report to the target application authentication report based on the private key of the second application node is added to prevent the program data of the second application node from being attacked by a middleman, resulting in data leakage; and after the authentication between the first application node and each second application node is passed, a negotiation key is generated between the first application node and each second application node to encrypt the data to be transmitted in the subsequent communication process between the verification party and the second application node. Since the negotiation key is only known to the first application node and the corresponding second application node, the use of the negotiation key to encrypt the data to be transmitted can ensure the security of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 This is a schematic diagram of the architecture of a remote authentication system based on a distributed trusted execution environment application provided by an embodiment of this specification;
[0020] Figure 2 It is a process flow chart of a remote authentication system based on a distributed trusted execution environment application provided by an embodiment of this specification;
[0021] Figure 3 It is a flowchart of a remote authentication method based on a distributed trusted execution environment application provided by an embodiment of this specification;
[0022] Figure 4 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION
[0023] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.
[0024] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
[0025] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0026] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0027] First, the terms involved in one or more embodiments of this specification are explained.
[0028] Trusted Execution Environment: Trusted Execution Environment, or TEE for short, is a hardware-based security technology that provides an independent operating environment isolated from the device's main operating system (Rich Operating System, such as Android, iOS, etc.). This environment is designed to protect the processing of data and code, prevent malicious attacks and unauthorized access by external software, and ensure the security of sensitive information even when the device's operating system is threatened.
[0029] Remote authentication is an important means of establishing trust in the trusted execution environment technology solution. Before users access applications running in the trusted execution environment, they need to remotely authenticate each application running in the trusted execution environment to determine that each application running in the trusted execution environment is trustworthy, thereby avoiding data leakage when users subsequently access and use applications in the trusted execution environment. However, in current practical applications, applications need to transmit authentication reports during remote authentication. These authentication reports are easily hijacked by man-in-the-middle attacks during transmission, resulting in tampering of the application and data leakage. The security of remote authentication is relatively low.
[0030] In this specification, a remote authentication system based on a distributed trusted execution environment application is provided. This specification also involves a remote authentication method based on a distributed trusted execution environment application, a computing device, a computer-readable storage medium, and a computer program product, which are described in detail one by one in the following embodiments.
[0031] See also Figure 1 , Figure 1 A schematic diagram of the architecture of a remote authentication system based on a distributed trusted execution environment application provided according to an embodiment of the present specification is shown.
[0032] The remote authentication system based on the distributed trusted execution environment application includes a first application node 102, at least one second application node 104 and a verifier 106, wherein the first application node 102 and each second application node 104 run in different trusted execution environments;
[0033] The target second application node 104 in the at least one second application node is configured to generate an initial application authentication report in response to the application authentication request submitted by the first application node 102, update the initial application authentication report to a target application authentication report based on the private key of the target second application node 104, and send the report to the first application node 102;
[0034] The first application node 102 is configured to generate a target negotiation key corresponding to the target second application node 104 when the target application authentication report is verified, and send the target negotiation key to the target second application node 104; and generate a remote authentication report carrying the target negotiation key in response to a remote authentication request submitted by the verification party 106 when the verification party 106 needs to communicate with the target second application node 104, and send the remote authentication report to the verification party 106;
[0035] The verifier 106 is configured to extract the target negotiation key from the remote authentication report when the remote authentication report is verified to be successful, and communicate with the target second application node 104 according to the target negotiation key.
[0036] Among them, the first application node refers to a master node or a control node used to remotely authenticate the second application node. The first application node is deployed with a main application or a management application running in a trusted execution environment. The second application node refers to a subnode or a computing node that needs to be remotely authenticated. The second application node is deployed with a business application or a business application component running in a trusted execution environment. The first application node and each second application node run in a different trusted execution environment. In actual applications, the first application node can be a master node or a control node with higher management authority than each second application node, or it can be a first application node pre-set in each second application node, that is, among the second application nodes with the same management authority, one of them is selected as the first application node for remote authentication of other second application nodes. The specific method of determining the first application node can be determined according to the actual application, and this specification does not limit it here.
[0037] An application authentication request refers to a request generated by a first application node for remote authentication of the credibility of a second application node. An initial application authentication report refers to an application authentication report used to verify the credibility of a business application or business application component deployed in the second application node. The initial application authentication report may include the application code of the business application or business application component, the hash value of the application code, and other relevant application status information. A target second application node refers to any one of the second application nodes in the remote authentication system. The private key of the target second application node refers to the private key in the first asymmetric key generated by the target second application node. A target application authentication report refers to an application authentication report that is signed using the private key of the target second application node and carries the public key of the target second application node.
[0038] In actual applications, after the target second application node generates the initial application authentication report, it needs to send the initial application authentication report to the first application node for remote authentication. However, if the initial application authentication report is sent directly to the first application node for remote authentication, during the process of sending the initial application authentication report, the initial application authentication report is prone to man-in-the-middle hijacking attacks.
[0039] Based on this, in a specific implementation provided in this specification, the target second application node is further configured to generate a first public key and a first private key for the initial application authentication report in response to the application authentication request; sign the initial application authentication report based on the first private key to obtain an intermediate application authentication report; and use the intermediate application authentication report carrying the first public key as the target application authentication report.
[0040] To avoid a man-in-the-middle hijacking attack during the process of sending the initial application authentication report to the first application node, the target second application node can encrypt the initial application authentication report based on the first asymmetric key for the initial application authentication report before sending the generated initial application authentication report to the first application node, and send the encrypted initial application authentication report to the first application node to improve the security of the initial application authentication report and avoid a man-in-the-middle hijacking attack during the process of sending the initial application authentication report to the first application node.
[0041] Among them, the first asymmetric key generated by the target second application node includes a first public key and a first private key, and the first asymmetric key is generated by the target second application node in the trusted execution environment in which the target second application node runs. The intermediate application authentication report refers to the application authentication report after the initial application authentication report is signed with the first private key. The intermediate application authentication report may specifically include the application code of the business application or business application component, the hash value of the application code, other relevant application status information, and the first private key signature of the initial application authentication report. The target application authentication report may specifically include the application code of the business application or business application component, the hash value of the application code, other relevant application status information, the first private key signature of the initial application authentication report, and the first public key.
[0042] Specifically, the first application node submits an application authentication request to the target second application node. After receiving the application authentication request submitted by the first application node, the target second application node generates an initial application authentication report. In order to improve the security of the initial application authentication report in the process of sending the initial application authentication report to the first application node, the target second application node generates a first asymmetric key, that is, a first public key and a first private key, and signs the initial application authentication report based on the first private key to obtain an intermediate application authentication report. In order to facilitate the subsequent secure communication between the first application node and the target second application node, the generated first public key is carried in the intermediate application authentication report to generate a target application authentication report. In order to further ensure the security of the first asymmetric key during transmission, the private key of the root certificate can also be used to sign the first public key, so that the first application node can verify the target application authentication report in the subsequent process to determine the security of the target application authentication report.
[0043] After generating the target application authentication report, the target second application node sends the target application authentication report to the first application node, so that the first application node verifies the target application authentication report, thereby determining whether the business application or business application component deployed in the target second application node is credible. The implementation method of the first application node verifying the target application authentication report is as follows:
[0044] In a specific implementation provided in this specification, the first application node is further configured to obtain a root certificate, query the root certificate for a target public key corresponding to a private key signature of the target second application node; and verify the target application authentication report based on the target public key.
[0045] The target public key refers to the public key in the root certificate used to verify the private key signature of the target second application node.
[0046] Specifically, the root certificate is obtained, and the target public key used to verify the private key signature of the target second application node is queried in the root certificate to verify the target application authentication report according to the target public key. Furthermore, in actual applications, there may be an intermediate certificate between the target application authentication report and the root certificate. Therefore, after obtaining the root certificate, it is necessary to obtain the intermediate certificate between the root certificate and the target application authentication report from the root certificate. The number of intermediate certificates may be one or more. The root certificate, the intermediate certificate and the target application authentication report constitute a certificate chain. To verify the target application authentication report, it is necessary to obtain the public key of the upper-level certificate of the target application authentication report to verify the private key signature in the target application authentication report. After the verification is passed, the other certificates in the certificate chain are recursively verified in turn until the obtained root certificate is verified. If the certificates at each level are verified, the target application authentication report is verified, that is, the remote authentication of the target second application node is passed, the identity of the target second application node is credible, and the business application or business application component deployed in the target second application node is credible.
[0047] According to the above-mentioned remote authentication method for the target second application node, remote authentication is performed on other second application nodes in the remote authentication system, which will not be described in detail in this specification.
[0048] Since the second application node will communicate and interact with the verification party (that is, the data party) after the remote authentication is passed, in order to avoid the leakage of the interactive data, the data that needs to be interacted is often encrypted. In one or more embodiments provided in this specification, in order to further improve the security of encrypting the data that needs to be interacted, the interactive data can be encrypted by generating a negotiation key. In actual applications, the negotiation key is generated by the communicating parties after interacting through a key negotiation algorithm. Therefore, the negotiation key is only known to the communicating parties. Encrypting the interactive data according to the negotiation key can improve the security of encrypting the interactive data and prevent the interactive data from being leaked.
[0049] In a specific implementation manner provided in this specification, the first application node is further configured to encrypt the target negotiation key based on the first public key; and send the encrypted target negotiation key to the target second application node.
[0050] The target negotiation key refers to a negotiation key generated by the first application node for the target second application node. The target negotiation key is generated based on a key negotiation algorithm.
[0051] Specifically, after the first application node verifies the target application authentication report, it generates a target negotiation key for the target second application node. To prevent the target negotiation key from being lost during transmission to the target second application node, the target negotiation key can be further encrypted. Specifically, the target negotiation key can be encrypted based on the first public key carried in the target application authentication report, and then the target negotiation key encrypted based on the first public key is sent to the target second application node. Since the first private key corresponding to the first public key is only held by the target second application node, the encrypted target negotiation key can only be decrypted and obtained by the target second application node.
[0052] Furthermore, in actual applications, after the first application node verifies the target application authentication report, that is, after remotely authenticating the target second application node, it can also establish an encrypted communication channel with the target second application node based on the first public key carried in the target application authentication report, generate a target negotiation key for the target second application node in the encrypted communication channel, and send the target negotiation key to the target second application node through the encrypted communication channel.
[0053] Furthermore, after establishing an encrypted communication channel with the target second application node based on the first public key, the first application node can also generate a target negotiation key for the target second application node in the encrypted communication channel, and use the first public key to encrypt the target negotiation key, and send the encrypted target negotiation key to the target second application node through the encrypted communication channel.
[0054] In one embodiment provided in the present specification, based on the first asymmetric key generated by the target second application node, namely, the first public key and the first private key, the first application node generates a target negotiation key for the target second application node, so as to encrypt the target negotiation key based on the first public key, thereby improving the security of the target negotiation key transmission.
[0055] After the first application node has verified the application authentication report corresponding to each second application node, it means that the identity of each second application node in the remote authentication system is credible, and the business application or business application component deployed in each second application node is credible. At this time, each second application node in the remote authentication system can be used to communicate with the verification party. Since the above-mentioned remote authentication process for the second application node is a verification between the first application node and each second application node, it does not involve the verification party. Therefore, if the verification party has a need to communicate with the second application node, the verification party also needs to verify with the second application node. Since multiple second application nodes are deployed in the remote authentication system, when the verification party needs to communicate with multiple second application nodes, the verification party also needs to perform remote authentication with each second application node respectively.
[0056] Based on this, in one or more embodiments provided in this specification, after the first application node verifies the target application authentication report corresponding to each second application node, the application code hash value of the business application or business application component deployed in each second application node can be embedded into the application code of the business application or business application component of the first application node, so that, in the subsequent process, the verification party only needs to remotely authenticate the first application node. If the first application node is verified, it means that all the second application nodes in the remote authentication system are verified. By embedding the application code hash value corresponding to the second application node into the application code corresponding to the first application node, the verification party can remotely authenticate each second application node by remotely authenticating the first application node, so that there is no need to verify each second application node one by one, thereby improving the efficiency of remote authentication.
[0057] Specifically, after the application code hash value corresponding to each second application node is embedded in the application code corresponding to the first application node, if the verification party has a need to communicate with the target second application node, the verification party can send a remote authentication request to the first application node, so that the first application node generates a remote authentication report carrying the target negotiation key in response to the remote authentication request submitted by the verification party, and sends the remote authentication report carrying the target negotiation key to the verification party, so that the verification party can determine whether the target second application node has been verified based on the remote authentication report, and whether it can communicate with the target second application node. Furthermore, the implementation process of remote authentication between the verification party and the first application node is as follows:
[0058] In a specific implementation manner provided in the present specification, the first application node is further configured to generate an initial remote authentication report and a second public key and a second private key for the initial remote authentication report in response to the remote authentication request; sign the initial remote authentication report based on the second private key to obtain an intermediate remote authentication report; and use the intermediate remote authentication report carrying the second public key and the target negotiated key as a remote authentication report.
[0059] The remote authentication request refers to a request generated by the verification party for remote authentication of the credibility of the target second application node. The initial remote authentication report refers to a remote authentication report used to verify the credibility of the business application or business application component deployed in the target second application node. The initial remote authentication report may specifically include the application code corresponding to the first application node and other related application status information, and the application code corresponding to the first application node is embedded with the application code hash value corresponding to each second application node.
[0060] The second public key and the second private key refer to the second asymmetric key generated by the first application node, the second asymmetric key includes the second public key and the second private key, and the second asymmetric key is generated by the first application node in the trusted execution environment where the first application node runs. The intermediate remote authentication report refers to the remote authentication report after the initial remote authentication report is signed with the second private key. The intermediate remote authentication report may specifically include the application code corresponding to the first application node, other relevant application status information, and the second private key signature of the initial remote authentication report. The remote authentication report refers to the authentication report generated by carrying the second public key and the target negotiation key into the intermediate remote authentication report. The remote authentication report may specifically include the application code corresponding to the first application node, other relevant application status information, the second private key signature of the initial remote authentication report, the second public key, and the target negotiation key.
[0061] Specifically, when the verification party has a need to communicate with the target second application node, the verification party submits a remote authentication request to the first application node. After receiving the remote authentication request submitted by the verification party, the first application node responds to the remote authentication request and generates an initial remote authentication report, as well as a second asymmetric key for encrypting the initial remote authentication report, namely, a second public key and a second private key. The generated initial remote authentication report is signed using the second private key to obtain an intermediate remote authentication report. In order to ensure the security of communication between the verification party and the first application node, the second public key is carried in the intermediate remote report. Since the verification party needs to use the target negotiation key to encrypt the interactive data during the communication with the target second application node, it is also necessary to carry the target negotiation key in the intermediate remote report, so that the second public key and the target negotiation key are carried in the intermediate remote authentication report to generate a remote authentication report. And the generated remote authentication report is sent to the verification party, so that the verification party determines whether the target second application node is credible according to the remote authentication report, and whether to communicate with the target second application node in the future.
[0062] Since in the trusted execution environment, each second application node will also have business applications or business application components running in the ordinary execution environment, that is, each second application node has an ordinary application part, which is used to forward messages between the verification party and the first application node, or the verification party and the target second application node. Based on this, when the verification party sends a remote authentication request to the first application node, the remote authentication request can be specifically sent to the ordinary application, and the ordinary application generates a remote authentication report request in response to the remote authentication request and sends it to the first application node. After receiving the remote authentication report request, the first application node responds to the remote authentication report request and generates an initial remote authentication report, as well as a second asymmetric key for encrypting the initial remote authentication report, that is, a second public key and a second private key. The first application node uses the second private key to sign the generated initial remote authentication report, obtain an intermediate remote authentication report, and carry the second public key and the target negotiation key in the intermediate remote authentication report to generate a remote authentication report, and send the generated remote authentication report to the ordinary application. The ordinary application forwards the remote authentication report to the verification party.
[0063] It should be noted that the target negotiation key can be generated in advance and saved in the first application node and the target second application node respectively after being generated, so that when the verification party performs remote authentication with the first application node, it can directly obtain the target negotiation key from the first application node and use it for subsequent communication with the target second application node. Since the target negotiation key is generated in advance and the target negotiation key is a symmetric key in actual application, the use of the target negotiation key for the verification party to communicate with the target second application node can improve the encryption and decryption efficiency and communication efficiency between the verification party and the target second application node.
[0064] A plurality of second application nodes are deployed in the remote authentication system, and each second application node corresponds to a negotiation key. In actual applications, the negotiation keys of each second application node may be the same or different. In the case where the negotiation keys of each second application node are different, that is, in the same time interval, each second application node corresponds to a unique negotiation key. In this case, the remote authentication request sent from the verification direction to the first application node will carry the node identifier of the target second application node, so that the first application node determines the target negotiation key according to the node identifier, and carries the target negotiation key to the remote authentication report and sends it to the verification party. In the case where the negotiation keys of each second application node are the same, the first application node can directly determine the target negotiation key, and carry it to the remote authentication report and send it to the verification party.
[0065] Furthermore, the target negotiation key can also be generated in real time, that is, when the verification party has a need to communicate with the target second application node, the first application node and the target second application node perform remote authentication, and after the verification is passed, the target negotiation key is generated, and the target negotiation key is sent to the target second application node, and the target negotiation key is carried in the remote authentication report and sent to the verification party. In the case where the negotiation key is generated in real time, the negotiation keys corresponding to each second application node can also be the same or different. At this time, the method for the verification party to obtain the negotiation key is the same as the above case, and this specification will not be repeated here.
[0066] After obtaining the remote authentication report returned by the first application node, the verifier needs to verify the remote authentication report to determine whether the target second application node is credible, thereby determining whether communication with the target second application node is possible.
[0067] Based on this, in a specific implementation manner provided in this specification, the system further includes an authentication server;
[0068] The verification party is further configured to send the remote authentication report to the authentication server;
[0069] The authentication server is configured to verify the remote authentication report and return a remote authentication result for the remote authentication report.
[0070] Among them, the authentication server refers to a server used to verify the remote authentication report. Specifically, after receiving the remote authentication report sent by the first application node, the verification party sends the remote authentication report to the authentication server. The authentication server verifies the remote authentication report to determine whether the target second application node is trustworthy. The authentication server can specifically verify by verifying the second private key signature in the remote authentication report, and by determining whether the hash value in the application code corresponding to the first application node is consistent with the hash value in the remote authentication report. After verifying the remote authentication report, the authentication server sends the remote authentication result of the generated remote authentication report to the verification party.
[0071] If the remote authentication result received by the verification party for the remote authentication report is authentication passed, it means that the target second application node is credible and the verification party can communicate with the target second application node; if the remote authentication result received by the verification party is authentication failed, it means that the target second application node is not credible and the verification party will not communicate with the target second application node. The implementation process of the verification party communicating with the target second application node is as follows:
[0072] In a specific implementation provided in this specification, the verification party is further configured to obtain the task data to be processed; encrypt the task data to be processed based on the target negotiated key to obtain encrypted task data; and send the encrypted task data to the target second application node.
[0073] The task data to be processed refers to the data that the verification party needs to communicate and interact with the target second application node. The encrypted task data refers to the data encrypted using the target negotiated key.
[0074] Specifically, if the remote authentication result of the remote authentication report is passed, it means that the target second application node is credible and the verification party can communicate with the target second application node. At this time, the verification party can extract the target negotiation key from the remote authentication report, and after obtaining the task data to be processed, use the target negotiation key to encrypt the task data to be processed, obtain the encrypted task data, and send the encrypted task data to the target second application node to achieve communication with the target second application node.
[0075] In actual applications, after generating the encrypted task data, the verifier may send the encrypted task data to a common application, and the common application sends the encrypted task data to the target second application node.
[0076] Furthermore, in a specific implementation provided in the present specification, the target second application node is further configured to decrypt the encrypted task data based on the target negotiated key to obtain the task data to be processed, wherein the task data to be processed is used for data query.
[0077] After receiving the encrypted task data sent by the verifying party, the target second application node uses the target negotiated key sent by the first application node to decrypt the encrypted task data, thereby obtaining the task data to be processed, and performs data processing on the task data to be processed.
[0078] Specifically, the task data to be processed obtained by decryption can be used for data query. For example, after the target second application node obtains the task data to be processed by decryption, it can perform data query in the preset database according to the task data to be processed, and after querying the corresponding target data, it feeds back the target data to the verification party. In order to prevent the target data from being intercepted during the transmission process, the target data can be encrypted using the target negotiation key to obtain the target encrypted data, and the target encrypted data can be sent to the verification party.
[0079] In a specific implementation provided in the present specification, the target second application node is further configured to query the target data corresponding to the task data to be processed in the information database according to the task data to be processed; encrypt the target data based on the target negotiated key to obtain target encrypted data; and send the target encrypted data to the verification party.
[0080] For example, the target second application node decrypts the task data to be processed to obtain the identity information of user A. User A wants to know his corresponding bank flow information. Then the target second application node can query the bank flow information corresponding to user A in the information database according to the identity information of user A. After encrypting the bank flow information of user A using the target negotiated key, the encrypted bank flow information is sent to the verification party.
[0081] The remote authentication system provided in this specification can, after the verification party verifies the remote authentication report of the first application node, encrypt the task data to be processed based on the target negotiation key carried in the remote authentication report, and after sending the encrypted task data to the target second application node, the target second application node can decrypt the encrypted task data through the target negotiation key to obtain the task data to be processed. Since the target negotiation key is encrypted and transmitted during the process of being sent from the first application node to the target second application node and during the process of being sent from the first application node to the verification party, the target negotiation key is difficult to be intercepted by a middleman, thereby improving the security of the communication between the verification party and the target second application node. Since the target negotiation key is a symmetric key, the efficiency of communication and encryption and decryption between the verification party and the target second application node can be further improved.
[0082] The present specification provides a remote authentication system based on a distributed trusted execution environment application, the remote authentication system comprising a first application node, at least one second application node and a verification party, wherein the first application node and each second application node run in different trusted execution environments; the target second application node in the at least one second application node is configured to generate an initial application authentication report in response to an application authentication request submitted by the first application node, update the initial application authentication report to a target application authentication report based on a private key of the target second application node, and send the report to the first application node; the first application node is configured to generate a target negotiation key corresponding to the target second application node when the target application authentication report is verified to be successful, and send the target negotiation key to the target second application node; when the verification party has a need to communicate with the target second application node, generate a remote authentication report carrying the target negotiation key in response to a remote authentication request submitted by the verification party, and send the report to the verification party; the verification party is configured to extract the target negotiation key from the remote authentication report when the remote authentication report is verified to be successful, and communicate with the target second application node according to the target negotiation key.
[0083] An embodiment of the present specification realizes that an initial application authentication report is encrypted and transmitted by generating a first asymmetric key, thereby reducing the possibility of the application authentication report being hijacked by a middleman during the remote authentication process between the first application node and each second application node, and improving the security of the remote authentication between the first application node and each second application node; using the negotiated key generated during the remote authentication process between the first application node and each second application node, the pending task data in the subsequent data transmission process between the verification party and the target second application node is encrypted and decrypted, thereby improving the efficiency of encrypting and decrypting the pending task data on the basis of improving the security of data transmission.
[0084] The following combination Figure 2 , further describes the remote authentication system based on the distributed trusted execution environment application. Figure 2 FIG. 1 shows a process flow chart of a remote authentication system based on a distributed trusted execution environment application according to an embodiment of the present specification. Figure 2 As shown, after receiving the application authentication request submitted by the first TEE application node, the target second TEE application node (any one of the second TEE application nodes) generates an initial application authentication report and a first asymmetric key, and the first asymmetric key is generated by the target second TEE application node in the TEE run by the target second TEE application node. The initial application authentication report is signed using the first private key in the first asymmetric key to obtain an intermediate application authentication report, the first public key in the first asymmetric key is carried in the intermediate application authentication report, and the target application authentication report is generated and sent to the first TEE application node. Further, in order to ensure the security of the first asymmetric key during transmission, the first public key can be signed using the private key of the root certificate so that the first TEE application node verifies the target application authentication report and determines the security of the target application authentication report. The first TEE application node verifies the target application authentication report sent to the target second TEE application node. If the target application authentication report is verified, the target negotiation key is generated through the key negotiation algorithm, and the target negotiation key is encrypted using the first public key carried in the target application authentication report, and the encrypted target negotiation key is sent to the target second TEE application node. When there is a need to communicate with the target second TEE application node, the verification party sends a remote authentication request for the target second TEE application node to the ordinary application. The ordinary application generates a remote authentication report request in response to the remote authentication request, and sends the remote authentication report request to the first TEE application node. After receiving the remote authentication report request, the first TEE application node generates an initial remote authentication report and a second asymmetric key, and the second asymmetric key is generated by the first TEE application node in the TEE run by the first TEE application node. The initial remote authentication report is signed using the second private key in the second asymmetric key to obtain an intermediate remote authentication report, the second public key in the second asymmetric key and the target negotiation key are carried in the intermediate remote authentication report, and a remote authentication report is generated and sent to the ordinary application. After receiving the remote authentication report, the ordinary application sends the remote authentication report to the verification party. After receiving the remote authentication report, the verification party can specifically send the remote authentication report to the authentication server ( Figure 2(not shown in the figure), the remote authentication report is verified by the authentication server. In the case where the remote authentication report is verified, the verification party can extract the target negotiation key from the remote authentication report, and after obtaining the task data to be processed, use the target negotiation key to encrypt the task data to be processed, obtain the encrypted task data, and send the encrypted task data to the target second TEE application node through the ordinary application. Thus, after receiving the encrypted task data sent by the verification party, the target second TEE application node uses the target negotiation key to decrypt the encrypted task data and obtain the task data to be processed, so as to perform data processing on the task data to be processed.
[0085] An embodiment of the present specification realizes that an initial application authentication report is encrypted and transmitted by generating a first asymmetric key, thereby reducing the possibility of the application authentication report being hijacked by a middleman during the remote authentication between the first TEE application node and each second TEE application node, and improving the security of the remote authentication between the first TEE application node and each second TEE application node; using the negotiated key generated during the remote authentication between the first TEE application node and each second TEE application node, the pending task data in the subsequent data transmission process between the verification party and the target second TEE application node is encrypted and decrypted, thereby improving the efficiency of encryption and decryption of the pending task data on the basis of improving the security of data transmission.
[0086] See also Figure 3 , Figure 3 A flowchart of a remote authentication method based on a distributed trusted execution environment application provided according to an embodiment of this specification is shown, which specifically includes the following steps:
[0087] Step 302: A target second application node among the at least one second application node generates an initial application authentication report in response to an application authentication request submitted by the first application node, updates the initial application authentication report to a target application authentication report based on a private key of the target second application node, and sends the report to the first application node.
[0088] Among them, the remote authentication method based on distributed trusted execution environment application is applied to the above-mentioned remote authentication system, and the remote authentication system includes a first application node, at least one second application node and a verification party, and the first application node and each second application node run in different trusted execution environments.
[0089] Specifically, after receiving the application authentication request submitted by the first application node, the target second application node generates an initial application authentication report, updates the initial application authentication report based on the private key of the target second application node, obtains the target application authentication report, and sends the target application authentication report to the first application node.
[0090] Step 304: When the target application authentication report is verified to be successful, the first application node generates a target negotiation key corresponding to the target second application node, and sends the target negotiation key to the target second application node. When the verification party needs to communicate with the target second application node, a remote authentication report carrying the target negotiation key is generated in response to a remote authentication request submitted by the verification party, and the remote authentication report is sent to the verification party.
[0091] Specifically, after the first application node receives the target application authentication report, it verifies the target application authentication report. If the target application authentication report is verified, it generates a target negotiation key corresponding to the target second application node, and uses the public key of the target second application node to encrypt the target negotiation key, and sends the encrypted target negotiation key to the target second application node.
[0092] If the verification party needs to communicate with the target second application node, the verification party can submit a remote authentication request to the first application node, so that the first application node responds to the remote authentication request, generates a remote authentication report carrying the target negotiated key, and sends the remote authentication report to the verification party.
[0093] Step 306: When the remote authentication report is verified to be successful, the verifier extracts the target negotiation key from the remote authentication report and communicates with the target second application node according to the target negotiation key.
[0094] Specifically, after receiving the remote authentication report, the verification party can send the remote authentication report to the authentication server to verify the remote authentication report. If the remote authentication report is verified, the target negotiation key is extracted from the remote authentication report, and the target negotiation key is used to encrypt the task data to be processed, generate encrypted task data, and send the encrypted task data to the target second application node. The target second application node can use the target negotiation key obtained from the first application node to decrypt the encrypted task data and obtain the task data to be processed.
[0095] In an optional implementation provided in the present specification, the initial application authentication report is updated to a target application authentication report based on the private key of the target second application node, including: the target second application node generates a first public key and a first private key for the initial application authentication report in response to the application authentication request; signs the initial application authentication report based on the first private key to obtain an intermediate application authentication report; and uses the intermediate application authentication report carrying the first public key as the target application authentication report.
[0096] In an optional implementation provided in the present specification, sending the target negotiation key to the target second application node includes: the first application node encrypting the target negotiation key based on the first public key; and sending the encrypted target negotiation key to the target second application node.
[0097] In an optional implementation provided in this specification, the method also includes: the first application node obtains a root certificate, and queries the root certificate for a target public key corresponding to a private key signature of the target second application node; and verifies the target application authentication report based on the target public key.
[0098] In an optional implementation provided in the present specification, the remote authentication report carrying the target negotiated key is generated in response to the remote authentication request submitted by the verification party, including: the first application node generates an initial remote authentication report and a second public key and a second private key for the initial remote authentication report in response to the remote authentication request; signs the initial remote authentication report based on the second private key to obtain an intermediate remote authentication report; and uses the intermediate remote authentication report carrying the second public key and the target negotiated key as a remote authentication report.
[0099] In an optional implementation manner provided in this specification, the system further includes an authentication server; and the method further includes:
[0100] The verification party sends the remote authentication report to the authentication server;
[0101] The authentication server verifies the remote authentication report and returns a remote authentication result for the remote authentication report.
[0102] In an optional implementation provided in the present specification, the communication with the target second application node according to the target negotiated key includes: the verification party obtains the task data to be processed; encrypts the task data to be processed based on the target negotiated key to obtain encrypted task data; and sends the encrypted task data to the target second application node.
[0103] In an optional implementation provided in the present specification, the method further includes: the target second application node decrypts the encrypted task data based on the target negotiated key to obtain the task data to be processed, wherein the task data to be processed is used for data query.
[0104] The remote authentication method based on a distributed trusted execution environment application provided in this specification is applied to a remote authentication system, wherein the remote authentication system includes a first application node, at least one second application node and a verification party, wherein the first application node and each second application node run in different trusted execution environments; the method includes: a target second application node among the at least one second application node generates an initial application authentication report in response to an application authentication request submitted by the first application node, updates the initial application authentication report to a target application authentication report based on a private key of the target second application node, and sends the report to the first application node; the first application node, when the target application authentication report is verified to be successful, generates a target negotiation key corresponding to the target second application node, and sends the target negotiation key to the target second application node; when the verification party has a need to communicate with the target second application node, generates a remote authentication report carrying the target negotiation key in response to a remote authentication request submitted by the verification party, and sends the report to the verification party; the verification party, when the remote authentication report is verified to be successful, extracts the target negotiation key from the remote authentication report, and communicates with the target second application node based on the target negotiation key.
[0105] An embodiment of the present specification realizes that, during the authentication process between the first application node and each second application node, a step of updating the initial application authentication report to the target application authentication report based on the private key of the second application node is added to prevent the program data of the second application node from being attacked by a middleman, resulting in data leakage; and after the authentication between the first application node and each second application node is passed, a negotiation key is generated between the first application node and each second application node to encrypt the data to be transmitted in the subsequent communication process between the verification party and the second application node. Since the negotiation key is only known to the first application node and the corresponding second application node, the use of the negotiation key to encrypt the data to be transmitted can ensure the security of data transmission.
[0106] Figure 4 The structure block diagram of a computing device 400 provided according to an embodiment of the present specification is shown. The components of the computing device 400 include but are not limited to a memory 410 and a processor 420. The processor 420 is connected to the memory 410 via a bus 430, and the database 450 is used to store data.
[0107] The computing device 400 also includes an access device 440 that enables the computing device 400 to communicate via one or more networks 460. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 440 may include one or more of any type of network interface (e.g., a network interface card (NIC)) of wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.
[0108] In one embodiment of the present specification, the above components of the computing device 400 and Figure 4 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 4 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
[0109] The computing device 400 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 400 may also be a mobile or stationary server.
[0110] When the processor 420 executes the computer program or instruction, the steps of the remote authentication method based on the distributed trusted execution environment application are implemented.
[0111] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the remote authentication method based on the distributed trusted execution environment application described above belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be found in the description of the technical scheme of the remote authentication method based on the distributed trusted execution environment application described above.
[0112] An embodiment of the present specification also provides a computer-readable storage medium storing a computer program or instruction. When the computer program or instruction is executed by a processor, the steps of the remote authentication method based on the distributed trusted execution environment application as described above are implemented.
[0113] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the remote authentication method based on the distributed trusted execution environment application described above belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the remote authentication method based on the distributed trusted execution environment application described above.
[0114] An embodiment of the present specification also provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the steps of the above-mentioned remote authentication method based on a distributed trusted execution environment application.
[0115] The above is a schematic scheme of a computer program product of this embodiment. It should be noted that the technical scheme of the computer program product and the technical scheme of the remote authentication method based on the distributed trusted execution environment application described above belong to the same concept, and the details not described in detail in the technical scheme of the computer program product can be found in the description of the technical scheme of the remote authentication method based on the distributed trusted execution environment application described above.
[0116] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0117] The computer program or instruction includes a computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0118] It should be noted that, for the convenience of description, the aforementioned method embodiments are all described as a series of action combinations, but those skilled in the art should be aware that this specification is not limited by the order of the actions described, because according to this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this specification.
[0119] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0120] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is limited only by the claims and their full scope and equivalents.
Claims
1. A remote authentication system based on a distributed trusted execution environment application, characterized in that: The remote authentication system includes a first application node, at least one second application node and a verifier, wherein the first application node and each second application node run in different trusted execution environments; The target second application node among the at least one second application node is configured to generate an initial application authentication report in response to the application authentication request submitted by the first application node, update the initial application authentication report to a target application authentication report based on the private key of the target second application node, and send the report to the first application node, wherein the target second application node is further configured to generate a first public key and a first private key for the initial application authentication report in response to the application authentication request, sign the initial application authentication report based on the first private key, obtain an intermediate application authentication report, and use the intermediate application authentication report carrying the first public key as the target application authentication report; The first application node is configured to, if the target application authentication report is verified to be passed, generate a target negotiation key corresponding to the target second application node, and send the target negotiation key to the target second application node; if the verification party has a communication requirement with the target second application node, generate a remote authentication report carrying the target negotiation key in response to a remote authentication request submitted by the verification party, and send the remote authentication report to the verification party; The verification party is configured to extract the target negotiation key from the remote authentication report if the remote authentication report is verified to be successful, and communicate with the target second application node according to the target negotiation key.
2. The system according to claim 1, characterized in that The first application node is further configured to encrypt the target negotiation key based on the first public key; and send the encrypted target negotiation key to the target second application node.
3. The system according to claim 1, characterized in that The first application node is further configured to obtain a root certificate, query the root certificate for a target public key corresponding to the private key signature of the target second application node; and verify the target application authentication report according to the target public key.
4. The system according to claim 1, characterized in that The first application node is further configured to generate an initial remote authentication report and a second public key and a second private key for the initial remote authentication report in response to the remote authentication request; sign the initial remote authentication report based on the second private key to obtain an intermediate remote authentication report; and use the intermediate remote authentication report carrying the second public key and the target negotiated key as the remote authentication report.
5. The system according to claim 1, wherein: The system also includes an authentication server; The verification party is further configured to send the remote authentication report to the authentication server; The authentication server is configured to verify the remote authentication report and return a remote authentication result for the remote authentication report.
6. The system according to claim 1, wherein: The verification party is further configured to obtain task data to be processed; encrypt the task data to be processed based on the target negotiated key to obtain encrypted task data; The encrypted task data is sent to the target second application node.
7. The system according to claim 6, characterized in that The target second application node is further configured to decrypt the encrypted task data based on the target negotiated key to obtain the task data to be processed, wherein the task data to be processed is used for data query.
8. A remote authentication method based on a distributed trusted execution environment application, characterized in that: Applied to a remote authentication system, the remote authentication system includes a first application node, at least one second application node and a verifier, the first application node and each second application node run in different trusted execution environments; the method includes: The target second application node among the at least one second application node generates an initial application authentication report in response to the application authentication request submitted by the first application node, updates the initial application authentication report to a target application authentication report based on the private key of the target second application node, and sends the report to the first application node, wherein the updating of the initial application authentication report to a target application authentication report based on the private key of the target second application node includes generating a first public key and a first private key for the initial application authentication report in response to the application authentication request, signing the initial application authentication report based on the first private key, obtaining an intermediate application authentication report, and using the intermediate application authentication report carrying the first public key as the target application authentication report; The first application node, when the target application authentication report is verified to be successful, generates a target negotiation key corresponding to the target second application node, and sends the target negotiation key to the target second application node; when the verification party has a communication requirement with the target second application node, generates a remote authentication report carrying the target negotiation key in response to a remote authentication request submitted by the verification party, and sends the remote authentication report to the verification party; The verifier, when verifying the remote authentication report, extracts the target negotiation key from the remote authentication report and communicates with the target second application node according to the target negotiation key.
9. A computing device comprising: Memory and processor; The memory is used to store computer programs or instructions, and the processor is used to execute the computer programs or instructions. It is characterized in that when the computer program or instructions are executed by the processor, the steps of the method according to claim 8 are implemented.
10. A computer-readable storage medium storing a computer program or instruction, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to claim 8 are implemented.
11. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method according to claim 8 are implemented.
Citation Information
Patent Citations
Authentication key negotiation method and device, storage medium and equipment
CN110890962A
Key generation method and device, equipment and medium
CN111490878A
Authentication and key agreement method, device and system
CN112437068A
Trusted computing program calling method and device, electronic equipment and storage medium
CN112948810A
Rapid authentication method and system for trusted execution environment
CN113329012A
