Application verification method and device
By adopting the trusted application group verification method on the certification server, multiple trusted applications are classified into the same group and a unified identity certificate is issued, which solves the trust problem between multiple trusted applications and realizes the trust in business scenarios. Secure communication and collaboration.
Patent Information
- Application Number
- CN202410874061.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-01
AI Technical Summary
Existing TEE solutions are difficult to solve the mutual trust problem between multiple trusted applications in remote certification, especially in business scenarios that require multiple applications to cooperate.
By proving that the server uses trusted application group verification, multiple associated trusted applications are grouped into the same group, and identity credentials in a unified format are issued for identity authentication and communication between trusted applications in the group. .
It achieves mutual trust between multiple trusted applications and ensures secure communication and collaboration between multiple applications in business scenarios.
Smart Images

Figure CN118410469B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of this specification relate to the field of computer technology, and in particular, to an application verification method and device. Background Art
[0002] Remote attestation is a common way to verify the identity of a trusted application (TA), but the remote attestation capabilities of various TEE (Trusted Execution Environment) solutions are currently limited to solving the trust problem of a specific application. However, in actual business scenarios, multiple trusted applications are often required to work together to meet business needs.
[0003] Therefore, a reasonable and reliable solution is needed to solve the problem of mutual trust between multiple associated trusted applications. Summary of the invention
[0004] The embodiments of this specification provide an application verification method and device, so that the certification server adopts a trusted application group verification method, can classify multiple related trusted applications into the same group, and issue identity credentials in a unified format to the trusted applications in the same group for use in identity authentication when the trusted applications in the same group communicate with each other. This can solve the problem of mutual trust between multiple related trusted applications.
[0005] In a first aspect, an embodiment of the present specification provides an application verification method, which is executed by a certification server, comprising: receiving a first request for obtaining an identity credential sent by any first application in a target group; wherein the target group includes multiple associated trusted applications, and the first request for obtaining an identity credential includes an application identity credential of the first application; verifying the application identity credential using an application verification rule of the first application in a pre-stored group verification rule of the target group; generating and returning a first identity credential in response to the application identity credential passing the verification, the first identity credential including a group identifier of the target group and at least part of the information in the application identity credential, for identity authentication when the first application communicates with other applications in the target group.
[0006] In some embodiments, before receiving a first request for identity credentials sent by any first application in the target group, it also includes: receiving an administrator user's creation request for the target group, which includes attribute information and application verification rules of multiple associated applications, and the multiple applications include the multiple trusted applications; assigning the group identifier to the target group; generating and storing the group verification rules, which include the group identifier and the attribute information and application verification rules of the multiple applications.
[0007] In some embodiments, the method further includes: generating a first key for the target group, the first key being used to establish a secure channel when applications in the target group communicate with each other; and associating the first key with the group identifier for storage.
[0008] In some embodiments, the method further includes: generating a second key corresponding to the developer of each application in the target group, the second key being used to establish a secure channel when applications developed by the developer in the target group communicate with each other; and associating the second key with the group identifier and the developer for storage.
[0009] In some embodiments, the multiple trusted applications are distributed across multiple trusted execution environment (TEE) platforms.
[0010] In some embodiments, the target group also includes several non-trusted applications associated with the plurality of trusted applications.
[0011] In some embodiments, when the first application is a trusted application, the application identity certification includes a remote certification report; when the first application is an untrusted application, the application identity certification includes a certificate in X.509 format.
[0012] In some embodiments, the format of the first identity credential is any one of the following: X.509 format, JWT format.
[0013] In some embodiments, the application verification rule of the first application includes a real application fingerprint, and the application identity certificate includes an application fingerprint to be verified; and the verifying of the application identity certificate includes: comparing the real application fingerprint and the application fingerprint to be verified.
[0014] In some embodiments, the application identity certification also includes at least one of the following items to be verified: application version number, application developer signature.
[0015] In some embodiments, returning the first identity credential includes: adding a signature to the first identity credential, and returning the first identity credential with the signature added.
[0016] In some embodiments, the first acquisition request and the first identity credential further include a first public key of the first application; the first public key in the first identity credential is used to establish a secure channel when the first application communicates with the other application.
[0017] In some embodiments, the target group is configured with a first key; while returning the first identity credential, it also includes: returning the first key for establishing a secure channel when the first application communicates with the other application.
[0018] In some embodiments, each application in the target group has a corresponding second key to its developer; while returning the first identity credential, it also includes: returning the second key corresponding to the developer of the first application, so as to establish a secure channel when the first application communicates with other applications developed by the developer in the target group.
[0019] In some embodiments, the method further includes: receiving a second acquisition request for a group authentication report for the target group sent by a device of the challenging party; in response to the second acquisition request, acquiring identity information of each application in the target group, wherein the identity information is determined based on the application identity certification of the corresponding application; generating and returning a group authentication report, which includes the identity information of each application, for verifying each application.
[0020] In some embodiments, the group authentication report also includes identity information of the attestation server for verifying the attestation server.
[0021] In a second aspect, an embodiment of the present specification provides an application verification method, which is executed by any first application in a target group, and the target group includes multiple associated trusted applications. The method includes: sending a first request for obtaining an identity credential to an attestation server, including an application identity certificate of the first application; receiving a first identity credential returned by the attestation server, which is generated by the attestation server after the application identity certificate is verified using an application verification rule of the first application, and the application verification rule is included in the group verification rule of the target group pre-stored by the attestation server; the first identity credential includes the group identifier of the target group and at least part of the information in the application identity certificate, which is used for identity authentication when the first application communicates with other applications in the target group.
[0022] In some embodiments, the first acquisition request and the first identity credential also include a first public key of the first application; the method also includes: sending an acquisition request for the first data to the second application in the target group, including the first identity credential; receiving the ciphertext first data and the second identity credential of the second application returned by the second application, the ciphertext first data being obtained by the second application encrypting the first data using the first public key after the first identity credential is verified; after the second identity credential is verified, the ciphertext first data is decrypted using the first private key of the first application.
[0023] In some embodiments, the method also includes: receiving the first key of the target group returned by the certification server; sending a request to obtain first data to a second application in the target group, which includes the first identity credential; receiving the ciphertext first data and the second identity credential returned by the second application, the ciphertext first data being obtained by the second application encrypting the first data using the first key on the second application side after the first identity credential is verified; after the second identity credential is verified, decrypting the ciphertext first data using the first key.
[0024] In some embodiments, the method also includes: receiving a second key corresponding to the developer of the first application returned by the certification server; sending a request for obtaining second data to a third application developed by the developer in the target group, which includes the first identity credential; receiving ciphertext second data returned by the third application and a third identity credential of the third application, the ciphertext second data being obtained by the third application encrypting the second data using the second key on the third application side after the first identity credential is verified; after the third identity credential is verified, decrypting the ciphertext second data using the second key.
[0025] On the third aspect, an embodiment of the present specification provides an application verification device, which is applied to an authentication server, including: a receiving unit, configured to receive a first request for obtaining an identity credential sent by any first application in a target group; wherein the target group includes multiple associated trusted applications, and the first acquisition request includes an application identity certificate of the first application; a verification unit, configured to verify the application identity certificate by using an application verification rule of the first application in a pre-stored group verification rule of the target group; a generating unit, configured to generate and return a first identity credential in response to the application identity certificate passing the verification, the first identity credential including the group identifier of the target group and at least part of the information in the application identity certificate, which is used for identity authentication when the first application communicates with other applications in the target group.
[0026] In a fourth aspect, an embodiment of the present specification provides an application verification device, which is applied to any first application in a target group, wherein the target group includes multiple associated trusted applications, and the device includes: a sending unit, configured to send a first request for obtaining an identity credential to an attestation server, including an application identity certificate of the first application; a receiving unit, configured to receive a first identity credential returned by the attestation server, which is generated by the attestation server after the application identity certificate is verified using an application verification rule of the first application, and the application verification rule is included in the group verification rule of the target group pre-stored by the attestation server; the first identity credential includes the group identifier of the target group and at least part of the information in the application identity certificate, and is used for identity authentication when the first application communicates with other applications in the target group.
[0027] In a fifth aspect, an embodiment of the present specification provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed in a computer, the computer is caused to execute the method described in any implementation of the first aspect and the second aspect.
[0028] In a sixth aspect, an embodiment of the present specification provides a computing device, comprising a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method described in any one of the implementation modes of the first aspect and the second aspect is implemented.
[0029] In a seventh aspect, an embodiment of the present specification provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the method described in any one of the implementation modes of the first aspect and the second aspect.
[0030] The above-mentioned embodiment of the present specification provides a scheme, in which the proof server receives a first request for obtaining an identity certificate sent by any first application in the target group; wherein the target group includes multiple associated trusted applications, and the first request includes the application identity certificate of the first application. Then, the proof server uses the application verification rule of the first application in the group verification rule of the pre-stored target group, and after the application identity certificate is verified, it generates and returns a first identity certificate, which includes the group identifier of the target group and at least part of the information in the application identity certificate, and is used for identity authentication when the first application communicates with other applications in the target group. As a result, the scheme enables the proof server to adopt the method of trusted application group verification, and can classify multiple associated trusted applications into the same group, and issue identity certificates of a unified format to the trusted applications in the same group, so as to be used for identity authentication when the trusted applications in the same group communicate with each other, so as to solve the problem of mutual trust between multiple associated trusted applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions of the multiple embodiments disclosed in this specification, the drawings required for the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only the multiple embodiments disclosed in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0032] Figure 1 It is a schematic diagram of an application scenario in which the embodiments of this specification can be applied;
[0033] Figure 2 is a flowchart of a process for creating a target group in an embodiment of this specification;
[0034] Figure 3 is a timing diagram of an application verification method in an embodiment of this specification;
[0035] Figure 4 is a timing diagram of a process of generating a group authentication report of a target group in an embodiment of this specification;
[0036] Figure 5 It is a schematic diagram of the structure of the application verification device in the embodiment of this specification;
[0037] Figure 6 It is a schematic diagram of the structure of the application verification device in the embodiment of this specification. DETAILED DESCRIPTION
[0038] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. The described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of this application.
[0039] It should be noted that, for the convenience of description, only the parts related to the invention are shown in the drawings. The embodiments and features in the embodiments in this specification can be combined with each other without conflict. In addition, the words "first", "second", "third" and the like in the embodiments of this specification are only used for information distinction and do not play any limiting role.
[0040] As mentioned above, remote attestation is a common way to verify the identity of trusted applications, but the remote attestation capabilities of various TEE solutions are currently limited to solving the trust problem of specified applications. However, in actual business scenarios, multiple trusted applications are often required to work together to meet business needs.
[0041] The embodiments of this specification provide an application verification scheme, so that the certification server adopts a trusted application group verification method, can classify multiple related trusted applications into the same group, and issue identity credentials in a unified format to the trusted applications in the same group for use in identity authentication when the trusted applications in the same group communicate with each other. This can solve the problem of mutual trust between multiple related trusted applications.
[0042] Figure 1 1 is a schematic diagram of an application scenario in which the embodiments of this specification can be applied. The application scenario involves an attestation server 101, a device 102 used by an administrator user of the attestation server 101, and multiple associated trusted applications (such as Figure 1 The trusted applications TA1, TA2, ...TAn shown in the figure, and the device 103 used by the challenger. Among them, the attestation server 101 can be a remote attestation agent service of a third party, and the remote attestation agent service can be called a unified attestation service (UAS). The multiple trusted applications correspond to the same business scenario, and the multiple trusted applications need to work together to meet the business needs in the same business scenario. The same business scenario can be any scenario, for example, it can be a scenario such as data sharing or privacy computing, which is not specifically limited here. The challenger can be, for example, an institution (such as an enterprise) that has the business need.
[0043] In practice, the above multiple trusted applications can be distributed in multiple TEE platforms. Specifically, any one of the multiple TEE platforms can be deployed with one or more of the above multiple trusted applications. In addition, the SDK (Software Development Kit) of the certification server 101 can be run on the multiple TEE platforms, and the heterogeneous compatibility and interconnection of the multiple TEE platforms can be achieved based on the SDK.
[0044] In order to enable the above multiple trusted applications to trust each other, the administrator user of the attestation server 101 can classify the above multiple trusted applications into a target group, and send a creation request for the target group to the attestation server 101 through the device 102, including the attribute information and application verification rules of the associated trusted applications TA1, TA2, ..., TAn. Afterwards, the attestation server 101 can generate and store the group verification rules of the target group according to the creation request.
[0045] Next, combine Figure 2 , introduces the specific process of creating target groups. Among them, Figure 2 1 is a flowchart of a process of creating a target group in an embodiment of the present specification. The process of creating a target group is performed by the certification server 101 and includes steps S201-S205 as shown below.
[0046] like Figure 2 As shown, in step S201, a creation request for a target group is received from an administrator user, which includes attribute information and application verification rules of respective associated multiple applications, and the multiple applications include multiple trusted applications.
[0047] Among them, the attribute information of the application may include but is not limited to the application name. The application verification rule may include the real application fingerprint. Further, the application verification rule may also include the real application version number and / or the application developer signature, etc. It should be noted that the application fingerprint can uniquely indicate the corresponding application. In one example, the application fingerprint can be calculated based on the program code of the corresponding application.
[0048] In practice, the same business scenario as described above may also involve several untrusted applications, and in the same business scenario, the above multiple trusted applications and the several untrusted applications may need to work together to meet business needs. In this case, the above multiple applications may also include the several untrusted applications. Thus, group management can support not only the management of trusted applications, but also the management of untrusted applications.
[0049] Next, in step S203, a group identifier is allocated to the target group.
[0050] The proof server 101 may be deployed with an identifier generation algorithm for generating a group identifier. The proof server 101 may use the identifier generation algorithm to generate a unique identifier and use the identifier as the group identifier of the target group.
[0051] It should be noted that by having the certification server 101 assign a group identifier to the target group instead of having the administrator user specify a group identifier for the target group, it can be ensured that the administrator user cannot repeatedly create a malicious configuration group with the same identifier.
[0052] Next, in step S205, a group verification rule of the target group is generated and stored, which includes the group identifier of the target group and the attribute information and application verification rule of each of the above-mentioned multiple applications.
[0053] In one example, the creation request may further include the group name of the target group. In this case, the group verification rule of the target group may further include the group name.
[0054] In actual applications, it is possible to support the establishment of secure channels between applications in a target group based on different trust dimensions. A single trust dimension may be, for example, a group identifier, an application name, or a developer.
[0055] As an example, when supporting the establishment of a secure channel between applications in a target group based on a group identifier, each application in the target group can share the same key. Specifically, the certification server 101 can generate a first key for the target group, and store the first key in association with the group identifier of the target group. The first key is used to establish a secure channel when applications in the target group communicate.
[0056] When supporting the establishment of a secure channel between applications in the target group based on the developer, the applications developed by the same developer in the target group can share the same key. Specifically, for the respective developers of the applications in the target group, the certification server 101 can generate a second key corresponding to the developer, and store the second key in association with the group identifier of the target group and the developer. The second key is used to establish a secure channel when the applications developed by the developer in the target group communicate with each other.
[0057] When supporting the establishment of a secure channel between applications in a target group based on the application name, any two applications in the target group that need to communicate can establish a secure channel using the public key of the other party.
[0058] Figure 2The solution provided by the corresponding embodiment allows the administrator user to register the group verification rule of the target group to the certification server 101 by creating the target group in the certification server 101. Subsequently, the certification server 101 can implement the trusted application group verification based on the group verification rule.
[0059] Continue to view Figure 1 , any application in the target group can be Figure 1 As shown in , the application identity certificate is provided to the certification server 101 so that the certification server 101 issues an identity certificate. The certification server 101 can generate and return an identity certificate after the application identity certificate is verified by the application verification rule of the arbitrary application in the group verification rule of the target group, so that the identity certificate is used for identity authentication when the arbitrary application communicates with other applications in the target group.
[0060] Next, combine Figure 3 , introduces the process of issuing identity credentials. Among them, Figure 3 1 is a timing diagram of the application verification method in the embodiment of this specification. The method includes steps S301-S307 as shown below.
[0061] like Figure 3 As shown, in step S301, any first application in the target group sends a first acquisition request for identity credentials to the certification server 101; wherein the target group includes multiple associated trusted applications, and the first acquisition request includes the application identity certification of the first application.
[0062] Among them, the first acquisition request may also include the first public key of the first application. Further, the first acquisition request may include the public key certificate of the first application, and the first public key is included in the public key certificate. The application identity certificate of the first application may include several application verification attributes. The application verification attribute can be understood as the attribute of the application to be verified. The several application verification attributes may include the application fingerprint to be verified. Further, the several application verification attributes may also include the application version number to be verified and / or the application developer signature, etc.
[0063] It should be noted that, when the target group also includes several untrusted applications as mentioned above, the first application is a trusted application or an untrusted application. When the first application is a trusted application, the application identity proof of the first application may include a remote attestation report (RAR). When the first application is an untrusted application, the application identity proof of the first application may include a certificate in the X.509 format. In practice, a remote attestation report is a report used to verify the security and credibility of a remote system in a network environment. X.509 is a widely used digital certificate standard used to verify the identity of an entity on the Internet. Since remote attestation reports and X.509 certificate formats are well known technologies in the art, they will not be introduced in detail here.
[0064] Next, in step S303, the certification server 101 uses the application verification rule of the first application in the pre-stored group verification rule of the target group to verify the application identity certification.
[0065] Specifically, the application verification rules of the first application can be used to verify each application verification attribute in the application identity certificate of the first application. It should be noted that in order to facilitate the verification operation, the application identity certificate of the first application can be parsed first to obtain a parsing result, and then the parsing result can be verified using the application verification rules of the first application, such as verifying each application verification attribute in the parsing result.
[0066] In the process of verifying the application identity certificate of the first application, when the application verification rule of the first application includes a real application fingerprint and the application identity certificate includes the application fingerprint to be verified, the real application fingerprint and the application fingerprint to be verified can be compared. Further, when the application verification rule also includes the real application version number and the application identity certificate also includes the application version number to be verified, the real application version number and the application version number to be verified can be compared; and / or, when the application verification rule also includes the real application developer signature and the application identity certificate also includes the application developer signature to be verified, the real application developer signature and the application developer signature to be verified can be compared.
[0067] After all application verification attributes in the application identity certificate of the first application are verified, it can be determined that the application identity certificate verification is passed, and then step S305 is executed. If one or more of the application verification attributes fail to be verified, it can be determined that the application identity certificate verification fails, and then a verification failure message is returned to the first application.
[0068] Furthermore, in order to facilitate the challenger to collectively verify the applications in the target group, after determining that the application identity verification of the first application has passed, the application identity or the result of the analysis of the application identity can be stored as the identity information of the first application to generate a group authentication report of the target group. In this way, the challenger can collectively verify the applications according to the identity information of each application in the group authentication report.
[0069] In step S305, in response to the application identity certificate passing the verification, the certification server 101 generates a first identity credential, the first identity credential including the group identifier of the target group and at least part of the information in the application identity certificate, and is used for identity authentication when the first application communicates with other applications in the target group.
[0070] Among them, at least part of the information may include verification attributes of each application. The first identity credential may also include application authentication time, etc. It should be noted that when the first acquisition request also includes the first public key of the first application, the first identity credential may also include the first public key. Further, in the case where the first acquisition request includes a public key certificate containing the first public key, the first identity credential may include the public key certificate. In an example, the first public key in the first identity credential can be used to establish a secure channel when the first application communicates with other applications in the target group. For example, when supporting the establishment of a secure channel based on the application name between applications in the target group, the first public key in the first identity credential is used to establish a secure channel when the first application communicates with other applications in the target group. In addition, when supporting the establishment of a secure channel based on the developer between applications in the target group, but not supporting the establishment of a secure channel based on the group identifier, since the applications developed by the same developer in the target group can share the same key, while the applications developed by different developers do not share the same key, the first public key in the first identity credential can be used to establish a secure channel when the first application communicates with other applications in the target group that have different developers from the first application.
[0071] The format of the first identity credential may be X.509 format or JWT (JSON Web Token) format, etc. JWT is an open standard that defines a compact and self-contained way to securely transmit information between parties in the form of a JSON object. It should be noted that the identity credential format of each application in the target group is unified. By issuing identity credentials in a unified format to each application, the applications can trust each other and communicate securely.
[0072] Next, in step S307, the authentication server 101 returns the first identity credential to the first application.
[0073] Specifically, the proof server 101 can add a signature to the first identity credential, such as using its own private key to add a signature to the first identity credential, and then return the first identity credential with the signature added to the first application. After receiving the first identity credential with the signature added, the first application can verify the first identity credential. For example, the first application can verify the signature of the first identity credential, such as using the public key of the proof server 101 to verify the signature of the first identity credential. In one example, the first application pre-stores the public key, and the first application can use the pre-stored public key to verify the signature of the first identity credential. In another example, the proof server 101 can return the public key while returning the first identity credential to the first application, so that the first application uses the public key to verify the signature of the first identity credential. Further, the proof server 101 can return a remote proof report of the proof server 101 itself while returning the first identity credential to the first application, and the public key is included in the remote proof report. The first application may store locally the verification rules of the certification server 101. After the remote certification report is verified by the verification rules, the first application may verify the signature of the first identity certificate by using the public key in the remote certification report. If the signature verification of the first identity certificate is passed, the first application can know that the first identity certificate has not been tampered with and is credible, so that the first identity certificate can be used to communicate with other applications in the target group.
[0074] According to the description in the foregoing, it is possible to support the establishment of a secure channel between applications in the target group based on the group identifier, application name or developer. Among them, when supporting the establishment of a secure channel between applications in the target group based on the group identifier, the proof server 101 can return the first identity credential to the first application while also returning the first key of the target group, so as to establish a secure channel when the first application communicates with other applications in the target group. When supporting the establishment of a secure channel between applications in the target group based on the developer, the proof server 101 can return the first identity credential to the first application while also returning the second key corresponding to the developer of the first application, so as to establish a secure channel when the first application communicates with other applications developed by the developer in the target group.
[0075] The following is an example of establishing a secure channel.
[0076] In one example, the first identity credential of the first application includes the first public key of the first application. When the first application needs to obtain the first data from the second application in the target group, the first application can send a request to obtain the first data to the second application, which includes but is not limited to the first identity credential. Afterwards, the first application can receive the ciphertext first data returned by the second application and the second identity credential of the second application, and the ciphertext first data is obtained by the second application encrypting the first data using the first public key after the first identity credential is verified. Among them, when the second application verifies the first identity credential, for example, it can verify the group identifier in the first identity credential, and / or verify the signature when a signature is added to the first identity credential. Then, after the first application verifies the second identity credential, it can use its own first private key to decrypt the ciphertext first data.
[0077] It should be noted that when the second application generates a signature for the ciphertext first data, such as using the second private key of the second application to generate a signature for the ciphertext first data, and returns the signature to the first application, the first application also needs to verify the signature, such as using the second public key of the second application included in the second identity credential to verify the signature. After the first application verifies both the second identity credential and the signature, it can use its own first private key to decrypt the ciphertext first data.
[0078] In another example, the first application receives the first identity credential and the first key of the target group returned by the certification server 101. When the first application needs to obtain the first data from the second application in the target group, the first application can send a request to obtain the first data to the second application, which includes but is not limited to the first identity credential. After that, the first application can receive the ciphertext first data returned by the second application and the second identity credential of the second application. The ciphertext first data is obtained by the second application encrypting the first data using the first key on the second application side after the first identity credential is verified. Then, after the first application verifies the second identity credential, it can decrypt the ciphertext first data using the first key.
[0079] In another example, the first application receives the first identity credential returned by the certification server 101 and the second key corresponding to the developer of the first application. When the first application needs to obtain the second data from the third application developed by the developer in the target group, the first application can send a request to obtain the second data to the third application, which includes but is not limited to the first identity credential. After that, the first application can receive the ciphertext second data returned by the third application and the third identity credential of the third application. The ciphertext second data is obtained by the third application encrypting the second data using the second key on the third application side after the first identity credential is verified. Then, after the first application verifies the third identity credential, it can decrypt the ciphertext second data using the second key.
[0080] It should be noted that the first data and the second data mentioned in the foregoing may be any data required by the first application in the same business scenario as described above, and the contents of the first data and the second data are not specifically limited herein.
[0081] Figure 3 The solution provided by the corresponding embodiment enables the certification server 101 to adopt a trusted application group verification method, which can classify multiple related trusted applications into the same group, and issue identity credentials in a unified format to the trusted applications in the same group for use in identity authentication when communicating between trusted applications in the same group. This can solve the problem of mutual trust between multiple related trusted applications.
[0082] In addition, as mentioned above, the above-mentioned multiple trusted applications can be distributed in multiple TEE platforms, and the SDK of the certification server 101 can be run on the multiple TEE platforms. In this case, Figure 3 The solution provided by the corresponding embodiment can realize the heterogeneous compatibility and interconnection of the multiple TEE platforms based on the SDK, and can also enable the certification server 101 to verify the application identity certification (such as remote certification report) of the trusted applications running on different TEE platforms.
[0083] Continue to view Figure 1 , which shows that the challenger can collectively verify each application in the target group. Specifically, Figure 1 As shown in , the challenger can send a request to obtain the group authentication report of the target group to the proof server 101 through the device 103. After that, the proof server 101 can generate and return the group authentication report of the target group, which includes the identity information of each application in the target group. Therefore, on the challenger side, the applications in the target group can be collectively verified simply according to the group authentication report.
[0084] Next, combine Figure 4 , further explains the generation process of the group authentication report. Figure 4 It is a timing diagram of the process of generating a group authentication report of a target group in the embodiment of this specification. The generation process includes steps S401-S407 as shown below.
[0085] like Figure 4 As shown, in step S401 , the device 103 of the challenger sends a second acquisition request for a group authentication report of a target group to the attestation server 101 .
[0086] The second acquisition request includes but is not limited to the group identifier of the target group.
[0087] Next, in step S403, the certification server 101 obtains the identity information of each application in the target group in response to the second acquisition request, and the identity information is determined based on the application identity certification of the corresponding application.
[0088] According to the description above, for any application in the target group, the identity information of the any application can be the application identity certificate of the any application or the parsing result of the application identity certificate, and the certification server 101 can store the identity information after the application identity certificate is verified. Based on this, the certification server 101 can obtain the identity information of each application in the target group stored locally.
[0089] Next, in step S405, a group authentication report is generated, which includes the identity information of each application in the target group, so as to be used for verifying each application.
[0090] In practice, the challenger can also be supported to verify the attestation server 101. Based on this, the group authentication report can also include the identity information of the attestation server 101. The identity information can be a remote attestation report of the attestation server 101, or a parsed result of the remote attestation report. Furthermore, the group authentication report can also include other information to be verified bound to the target group (such as group shared key and certificate information, authorized user identity information, etc.). In addition, the group authentication report can be encapsulated and obtained in the manner proposed based on the RATS (Remote ATtestation procedureS) Composite device model.
[0091] Next, in step S407 , the certification server 101 returns a group authentication report to the device 103 .
[0092] After device 103 receives the group authentication report of the target group, the challenger can use device 103 to collectively verify the applications in the target group according to the group authentication report. As an example, device 103 can store the verification rules negotiated by the challenger and the organization to which the applications in the target group belong, and the verification rules can be used to verify the identity information of each application in the group authentication report. Furthermore, device 103 can also store the verification rules negotiated by the challenger and the organization to which the certification server 101 belongs, and when the group authentication report also includes the identity information of the certification server 101, the verification rules can be used to verify the identity information.
[0093] The challenger can achieve full coverage of each application in the target group by verifying the group authentication report of the target group. After the challenger has verified the certification server 101 and each application in the target group, it can trust the certification server 101 and each application in the target group. The certification server 101 that has passed the verification can verify each application according to the application verification rules that each application has been verified, thereby achieving the trust chain from the certification server 101 to each application in the target group.
[0094] Figure 5 It is a structural diagram of the application verification device in the embodiment of this specification. The device can be applied to the certification server. The device includes: a receiving unit 501, configured to receive a first acquisition request for an identity credential sent by any first application in a target group; wherein the target group includes multiple associated trusted applications, and the first acquisition request includes an application identity certificate of the first application; a verification unit 502, configured to verify the application identity certificate using an application verification rule of the first application in a pre-stored group verification rule of the target group; a generation unit 503, configured to generate and return a first identity credential in response to the application identity certificate passing the verification, the first identity credential including the group identifier of the target group and at least part of the information in the application identity certificate, which is used for identity authentication when the first application communicates with other applications in the target group.
[0095] In one embodiment, the receiving unit 501 can also be configured to: receive an administrator user's request to create a target group, which includes the attribute information and application verification rules of each of the associated multiple applications, and the multiple applications include the above-mentioned multiple trusted applications; the generating unit 503 can also be configured to: assign the above-mentioned group identifier to the target group, generate and store the above-mentioned group verification rules, which include the above-mentioned group identifier and the attribute information and application verification rules of each of the multiple applications.
[0096] In one implementation, the generating unit 503 may also be configured to: generate a first key for the target group, the first key being used to establish a secure channel when applications in the target group communicate with each other; and associate the first key with the group identifier for storage.
[0097] In one embodiment, the generation unit 503 can also be configured to: generate a second key corresponding to the developer of each application in the target group, and use the second key to establish a secure channel when applications developed by the developer in the target group communicate with each other; associate the second key with the above-mentioned group identifier and the developer for storage.
[0098] In one embodiment, the above-mentioned multiple trusted applications are distributed in multiple TEE platforms.
[0099] In one implementation, the target group also includes several untrusted applications associated with the plurality of trusted applications.
[0100] In one implementation, when the first application is a trusted application, the application identity certification includes a remote certification report; when the first application is an untrusted application, the application identity certification includes a certificate in an X.509 format.
[0101] In one implementation, the format of the first identity credential is any one of the following: X.509 format, JWT format, etc.
[0102] In one implementation, the application verification rule of the first application includes a real application fingerprint, and the application identity certificate includes the application fingerprint to be verified; the verification unit 502 may be further configured to: compare the real application fingerprint with the application fingerprint to be verified.
[0103] In one implementation, the above application identity certificate also includes at least one of the following items to be verified: application version number, application developer signature, etc.
[0104] In one implementation, the generating unit 503 may be further configured to: add a signature to the first identity credential, and return the first identity credential with the signature added.
[0105] In one implementation, the first acquisition request and the first identity credential further include a first public key of the first application; the first public key in the first identity credential is used to establish a secure channel when the first application communicates with the other applications.
[0106] In one implementation, the target group is configured with a first key; the generating unit 503 may also be configured to return the first key while returning the first identity credential, so as to establish a secure channel when the first application communicates with the other applications.
[0107] In one embodiment, each application in the target group has a corresponding second key to its developer; the generation unit 503 can also be configured to: return the second key corresponding to the developer of the first application while returning the first identity credential, so as to establish a secure channel when the first application communicates with other applications developed by the developer in the target group.
[0108] In one embodiment, the receiving unit 501 can also be configured to: receive a second acquisition request for a group authentication report of a target group sent by a device of the challenging party; the generating unit 503 can also be configured to: obtain, in response to the second acquisition request, the identity information of each application in the target group, the identity information being determined based on the application identity certification of the corresponding application; generate and return a group authentication report, including the identity information of each application, for verifying each application.
[0109] In one embodiment, the group authentication report further includes identity information of the certification server, so as to verify the certification server.
[0110] Figure 6 It is a structural diagram of an application verification device in an embodiment of this specification. The device can be applied to any first application in a target group, and the target group includes multiple associated trusted applications. The device includes: a sending unit 601, which is configured to send a first acquisition request for an identity credential to a certification server, including an application identity certificate of the first application; a receiving unit 602, which is configured to receive a first identity credential returned by the certification server, which is generated by the certification server after the application identity certificate is verified by the application verification rule of the first application, and the application verification rule is included in the group verification rule of the target group pre-stored by the certification server; the first identity credential includes the group identifier of the target group and at least part of the information in the application identity certificate, which is used for identity authentication when the first application communicates with other applications in the target group.
[0111] In one embodiment, the first acquisition request and the first identity credential also include the first public key of the first application; the sending unit 601 can also be configured to: send an acquisition request for the first data to the second application in the target group, including the first identity credential; the receiving unit 602 can also be configured to: receive the ciphertext first data returned by the second application and the second identity credential of the second application, the ciphertext first data being obtained by the second application encrypting the first data using the first public key after the first identity credential is verified; the above-mentioned device can also include: a decryption unit (not shown in the figure), which is configured to decrypt the ciphertext first data using the first private key of the first application after the second identity credential is verified.
[0112] In one embodiment, the receiving unit 602 can also be configured to: receive the first key of the target group returned by the certification server; the sending unit 601 can also be configured to: send a request to obtain the first data to the second application in the target group, which includes the first identity credential; the receiving unit 602 can also be configured to: receive the ciphertext first data returned by the second application and the second identity credential of the second application, the ciphertext first data is obtained by the second application after the first identity credential is verified by the second application, by encrypting the first data using the first key on the second application side; the above-mentioned device can also include: a decryption unit (not shown in the figure), which is configured to decrypt the ciphertext first data using the first key after the second identity credential is verified.
[0113] In one embodiment, the receiving unit 602 can also be configured to: receive the second key corresponding to the developer of the first application returned by the certification server; the sending unit 601 can also be configured to: send a request for obtaining the second data to the third application developed by the developer in the target group, which includes the first identity credential; the receiving unit 602 can also be configured to: receive the ciphertext second data returned by the third application and the third identity credential of the third application, the ciphertext second data is obtained by the third application after the first identity credential is verified by the third application, by encrypting the second data using the second key on the third application side; the above-mentioned device can also include: a decryption unit (not shown in the figure), which is configured to decrypt the ciphertext second data using the second key after the third identity credential is verified.
[0114] The present specification also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed in a computer, the computer is caused to execute the following Figures 2 to 4 Describe the method.
[0115] The embodiment of the present specification also provides a computing device, including a memory and a processor, wherein the memory stores an executable code, and when the processor executes the executable code, the following is implemented: Figures 2 to 4 Describe the method.
[0116] The embodiments of the present specification also provide a computer program product, including a computer program / instruction, which is executed by a processor to implement the following Figures 2 to 4 Describe the method.
[0117] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the multiple embodiments disclosed in this specification can be implemented by hardware, software, firmware, or any combination thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.
[0118] In some cases, the actions or steps described in the claims may be performed in a different order than 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 sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0119] The specific implementation methods described above further illustrate in detail the purposes, technical solutions and beneficial effects of the multiple embodiments disclosed in this specification. It should be understood that the above description is only the specific implementation methods of the multiple embodiments disclosed in this specification, and is not used to limit the protection scope of the multiple embodiments disclosed in this specification. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the multiple embodiments disclosed in this specification should be included in the protection scope of the multiple embodiments disclosed in this specification.
Claims
1. An application verification method, performed by a certification server, comprising: Receiving a first acquisition request for identity credentials sent by any first application in a target group; wherein the target group includes a plurality of associated trusted applications, and the first acquisition request includes an application identity certificate of the first application; Verifying the application identity certificate by using an application verification rule of the first application in a pre-stored group verification rule of the target group; In response to the application identity certificate passing the verification, a first identity credential is generated and returned, wherein the first identity credential includes the group identifier of the target group and at least part of the information in the application identity certificate, and is used for identity authentication when the first application communicates with other applications in the target group.
2. The method according to claim 1, wherein: Before receiving a first request for obtaining an identity credential sent by any first application in the target group, the method further includes: receiving a creation request for the target group from an administrator user, which includes attribute information and application verification rules of respective associated multiple applications, wherein the multiple applications include the multiple trusted applications; assigning the group identifier to the target group; The group verification rule is generated and stored, including the group identifier and the attribute information and application verification rule of each of the multiple applications.
3. The method according to claim 2, further comprising: generating a first key for the target group, wherein the first key is used to establish a secure channel when applications in the target group communicate with each other; The first key is associated with the group identifier for storage.
4. The method according to claim 2, further comprising: For each developer of each application in the target group, generating a second key corresponding to the developer, wherein the second key is used to establish a secure channel when the applications developed by the developer in the target group communicate with each other; The second key is associated with the group identifier and the developer for storage.
5. The method according to claim 1, wherein: The multiple trusted applications are distributed in multiple trusted execution environment TEE platforms.
6. The method according to claim 1, wherein: The target group also includes a number of non-trusted applications associated with the plurality of trusted applications.
7. The method according to claim 6, wherein: When the first application is a trusted application, the application identity certification includes a remote certification report; when the first application is an untrusted application, the application identity certification includes a certificate in an X.509 format.
8. The method according to claim 1, wherein: The format of the first identity credential is any one of the following: X.509 format, JWT format.
9. The method according to claim 1, wherein: The application verification rule of the first application includes a real application fingerprint, and the application identity certificate includes the application fingerprint to be verified; The verifying the application identity certificate includes: The real application fingerprint is compared with the application fingerprint to be verified.
10. The method according to claim 9, wherein: The application identity certificate also includes at least one of the following items to be verified: application version number, application developer signature.
11. The method according to claim 1, wherein: The returning of the first identity credential includes: Add a signature to the first identity credential, and return the first identity credential with the signature added.
12. The method according to claim 1, wherein: The first acquisition request and the first identity credential also include a first public key of the first application; the first public key in the first identity credential is used to establish a secure channel when the first application communicates with the other application.
13. The method according to claim 1, wherein: The target group is configured with a first key; When returning the first identity credential, it also includes: The first key is returned for use in establishing a secure channel when the first application communicates with the other application.
14. The method according to claim 1, wherein: The developer of each application in the target group corresponds to a second key; When returning the first identity credential, it also includes: A second key corresponding to the developer of the first application is returned, so as to be used for establishing a secure channel when the first application communicates with other applications developed by the developer in the target group.
15. The method according to claim 1, further comprising: Receiving a second acquisition request for a group authentication report of the target group sent by a device of a challenging party; In response to the second acquisition request, acquiring identity information of each application in the target group, wherein the identity information is determined based on an application identity certificate of the corresponding application; Generate and return a group authentication report, which includes the identity information of each application, so as to verify each application.
16. The method according to claim 15, wherein: The group authentication report also includes identity information of the certification server for verifying the certification server.
17. An application verification method, performed by any first application in a target group, the target group including a plurality of associated trusted applications, the method comprising: Sending a first request for obtaining identity credentials to an authentication server, including the application identity certificate of the first application; receiving a first identity credential returned by the attestation server, which is generated by the attestation server after the application identity credential is verified by using an application verification rule of the first application, wherein the application verification rule is included in a group verification rule of the target group pre-stored by the attestation server; The first identity credential includes the group identifier of the target group and at least part of the information in the application identity certificate, and is used for identity authentication when the first application communicates with other applications in the target group.
18. The method according to claim 17, wherein: The first acquisition request and the first identity credential further include a first public key of the first application; The method further comprises: Sending a request for obtaining first data to a second application in the target group, wherein the request includes the first identity credential; receiving the encrypted first data returned by the second application and the second identity credential of the second application, wherein the encrypted first data is obtained by encrypting the first data by using the first public key after the second application verifies the first identity credential; After the second identity credential is verified, the ciphertext first data is decrypted using the first private key of the first application.
19. The method according to claim 17, further comprising: Receiving the first key of the target group returned by the certification server; Sending a request for obtaining first data to a second application in the target group, wherein the request includes the first identity credential; receiving the ciphertext first data returned by the second application and the second identity credential of the second application, wherein the ciphertext first data is obtained by encrypting the first data by using the first key of the second application side after the second application verifies the first identity credential; After the second identity credential is verified, the ciphertext first data is decrypted using the first key.
20. The method of claim 17, further comprising: Receiving a second key corresponding to the developer of the first application returned by the certification server; Sending a request for obtaining second data to a third application developed by the developer in the target group, wherein the request includes the first identity credential; receiving the ciphertext second data returned by the third application and the third identity credential of the third application, wherein the ciphertext second data is obtained by the third application encrypting the second data using the second key of the third application side after the third application verifies the first identity credential; After the third identity credential is verified, the ciphertext second data is decrypted using the second key.
21. An application verification device, applied to a certification server, comprising: A receiving unit, configured to receive a first acquisition request for identity credentials sent by any first application in a target group; wherein the target group includes a plurality of associated trusted applications, and the first acquisition request includes an application identity certificate of the first application; a verification unit configured to verify the application identity certificate by using an application verification rule of the first application in a pre-stored group verification rule of the target group; A generating unit is configured to generate and return a first identity credential in response to the application identity certificate passing verification, wherein the first identity credential includes a group identifier of the target group and at least part of the information in the application identity certificate, and is used for identity authentication when the first application communicates with other applications in the target group.
22. An application verification device, applied to any first application in a target group, the target group including a plurality of associated trusted applications, the device comprising: A sending unit is configured to send a first request for obtaining identity credentials to a certification server, wherein the request includes an application identity certificate of the first application; a receiving unit, configured to receive a first identity credential returned by the certification server, which is generated by the certification server after the application identity certification is verified by using an application verification rule of the first application, wherein the application verification rule is included in a group verification rule of the target group pre-stored by the certification server; The first identity credential includes the group identifier of the target group and at least part of the information in the application identity certificate, and is used for identity authentication when the first application communicates with other applications in the target group.
23. A computer-readable storage medium having a computer program stored thereon, wherein: When the computer program is executed in a computer, the computer is caused to execute the method according to any one of claims 1 to 20.
24. A computing device comprising a memory and a processor, wherein: The memory stores executable codes, and when the processor executes the executable codes, the method according to any one of claims 1 to 20 is implemented.
Citation Information
Patent Citations
Application program authorization method, terminal, and server
CN108476226A
Identity authentication method and device, key equipment and storage medium
CN110532742A
Service certificate management method, terminal, and server
CN111066284A
Real-name login method and device
CN112543166A
Business data access method, device and equipment and computer storage medium
CN114745145A
