Application security verification method and device, storage medium and electronic equipment

By directly receiving and verifying signature information and certificate chains between terminal devices, it solves the security communication problem caused by the inability of terminal devices to connect to the server, and improves the security and business experience of security verification.

CN118540703APending Publication Date: 2024-08-23GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310156350.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-22
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

When the terminal device is temporarily unable to connect to the server, it cannot obtain the server signature in time, resulting in failure to complete synchronization and affecting the business experience.

Method used

By directly receiving and verifying application signature information, device signature information, account signature information and certificate chains between terminal devices, there is no need to go through the server for verification to trust the terminal device.

Benefits of technology

It realizes secure communication between terminal devices, improves the security of security verification, and avoids the impact on business experience caused by connection problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540703A
    Figure CN118540703A
Patent Text Reader

Abstract

The invention relates to the technical field of security verification, in particular to an application security verification method and device based on a terminal, a computer readable storage medium and electronic equipment. The method comprises the following steps: receiving first application signature information, first equipment signature information, first account signature information, a first equipment certificate chain and a first user account certificate chain corresponding to a first terminal; verifying the first application signature information by using the first application public key to obtain a first verification result; verifying the first equipment certificate chain and the first user account certificate chain to obtain a second verification result; verifying the first account signature information by using the first account public key to obtain a third verification result; verifying the first equipment signature information by using the first equipment public key to obtain a fourth verification result; verifying the first user account ID to obtain a fifth verification result; and if the first verification result, the second verification result, the third verification result, the fourth verification result and the fifth verification result are passed, trying the first terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] In the business scenario of terminal interconnection, secure communication between different terminal devices bound to the same user account is often involved. Generally, multiple types of terminal devices are involved, such as mobile phones, tablets, watches, TVs, smart speakers, etc.

[0003] Secure communication between terminal devices is generally based on an asymmetric public-private key pair between the two parties. Both parties need to securely obtain each other's public key and confirm the legitimacy of the other party's public key. However, existing verification methods all rely on the server. If the terminal cannot connect to the server temporarily, the server signature cannot be obtained in time, resulting in failure to complete synchronization. The terminal devices cannot communicate securely in time, affecting the service experience.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The purpose of the present disclosure is to provide a terminal-based application security verification method, a terminal-based application security verification device, a computer-readable medium and an electronic device, thereby at least to a certain extent overcoming the problem that the terminal is temporarily unable to connect to the server, resulting in the inability to conduct secure communications in a timely manner, affecting the business experience.

[0006] According to a first aspect of the present disclosure, a terminal-based application security verification method is provided, wherein a target application is installed on a terminal device respectively, and the terminal device includes a first terminal and a second terminal, and includes: receiving first application signature information, first device signature information, first account signature information, first device certificate chain and first user account certificate chain corresponding to the first terminal sent by the first terminal; using the first application public key in the first application signature information to verify the first application signature information to obtain a first verification result; verifying the first device certificate chain and the first user account certificate chain to obtain a second verification result; using the first account public key to verify the first account signature information to obtain a third verification result; using the first device public key to verify the first device signature information to obtain a fourth verification result; verifying the first user account ID to obtain a fifth verification result; in response to the first verification result, the second verification result, the third verification result, the fourth verification result and the fifth verification result being passed, trusting the first terminal; wherein the first device certificate chain includes a first device data certificate, and the first user account certificate chain includes a first account data certificate; the first device data certificate includes a first device public key, and the first account data certificate includes a user account ID and a first account public key.

[0007] According to a second aspect of the present disclosure, a terminal-based application security verification device is provided, including: an information receiving module, configured to receive first application signature information, first device signature information, first account signature information, first device certificate chain, and first user account certificate chain corresponding to the first terminal, which are sent by a first terminal; a first verification module, configured to verify the first application signature information using the first application public key in the first application signature information to obtain a first verification result; a second verification module, configured to verify the first device certificate chain and the first user account certificate chain to obtain a second verification result; a third verification module, configured to verify the first account signature information using the first account public key to obtain a third verification result; a fourth verification module, configured to verify the first device signature information using the first device public key to obtain a fourth verification result; a fifth verification module, configured to verify the first user account ID to obtain a fifth verification result; a result verification module, in response to the first verification result, the second verification result, the third verification result, the fourth verification result, and the fifth verification result being all passed, trusting the first terminal; wherein the first device certificate chain includes a first device data certificate, and the first user account certificate chain includes a first account data certificate; the first device data certificate includes a first device public key, and the first account data certificate includes a user account ID and a first account public key.

[0008] According to a third aspect of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented.

[0009] According to a fourth aspect of the present disclosure, an electronic device is provided, characterized in that it includes: one or more processors; and a memory for storing one or more programs, which enables the one or more processors to implement the above method when the one or more programs are executed by the one or more processors.

[0010] In a terminal-based application security verification method provided by an embodiment of the present disclosure, the second terminal directly receives the first application signature information, the first device signature information, the first account signature information, the first device certificate chain, and the first user account certificate chain corresponding to the first terminal and sends them, and verifies them without going through the server, thereby overcoming the problem that the terminal cannot connect to the server temporarily, and cannot obtain the server signature in time, resulting in failure to complete synchronization, and the terminal devices cannot communicate securely in time, affecting the business experience. Furthermore, the first application signature information, the first device signature information, the first account signature information, the first device certificate chain, and the first user account certificate chain are all verified, and the first terminal is trusted only when the verification results are all passed, thereby improving the security of security verification.

[0011] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0013] Figure 1 A flowchart schematically illustrates a terminal-based application security verification method in an exemplary embodiment of the present disclosure;

[0014] Figure 2 A flowchart for initializing a first terminal in an exemplary embodiment of the present disclosure is schematically shown;

[0015] Figure 3 A data structure diagram schematically illustrating a first device certificate chain and a first user account certificate chain in an exemplary embodiment of the present disclosure;

[0016] Figure 4 Schematically illustrating a flow chart of a first terminal verifying a second terminal in an exemplary embodiment of the present disclosure;

[0017] Figure 5 A flowchart of initializing a second terminal in an exemplary embodiment of the present disclosure is schematically shown;

[0018] Figure 6 Schematically illustrates a data structure diagram of a second device certificate chain and a second user account certificate chain in an exemplary embodiment of the present disclosure;

[0019] Figure 7 A flowchart schematically illustrates another terminal-based application security verification method in an exemplary embodiment of the present disclosure;

[0020] Figure 8 A schematic diagram schematically shows the composition of a terminal-based application security verification device in an exemplary embodiment of the present disclosure;

[0021] Fig. 9 A schematic diagram of an electronic device to which the embodiments of the present disclosure can be applied is shown. DETAILED DESCRIPTION

[0022] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0023] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0024] In related technologies, when different terminals communicate, the authentication of both parties is based on the trust chain of the device certificate by default, without any association with account information. The other party can only identify that the device certificate belongs to a certain device, and cannot be sure that the information comes from a secure account.

[0025] For account-related services, the application on the first terminal needs to further associate the information of the bound account, and the terminal must communicate with the background server to obtain the signature authentication from the background server. The application on the second terminal verifies the signature of the first terminal based on the background server, and then trusts that the application public key from the first terminal belongs to the user. If the terminal cannot connect to the server temporarily, it cannot obtain the server signature in time, resulting in the inability to complete synchronization, and the terminal devices cannot communicate securely in time, affecting the service experience.

[0026] Based on the above shortcomings, the present disclosure provides a terminal-based application security verification method. Figure 1 The terminal-based application security verification method in this exemplary embodiment is described. Figure 1 An exemplary process of the terminal-based application security verification method is shown, which may include:

[0027] Step S110, receiving first application signature information, first device signature information, first account signature information, first device certificate chain, and first user account certificate chain corresponding to the first terminal and sent by the first terminal;

[0028] Step S120, using the first application public key in the first application signature information to verify the first application signature information to obtain a first verification result;

[0029] Step S130, verifying the first device certificate chain and the first user account certificate chain to obtain a second verification result;

[0030] Step S140, using the first account public key to verify the first account signature information to obtain a third verification result;

[0031] Step S150, using the first device public key to verify the first device signature information to obtain a fourth verification result;

[0032] Step S160, verifying the first user account ID to obtain a fifth verification result;

[0033] Step S170, in response to the first verification result, the second verification result, the third verification result, the fourth verification result and the fifth verification result all being passed, trusting the first terminal;

[0034] Among them, the first device certificate chain includes a first device data certificate, and the first user account certificate chain includes a first account data certificate; the first device data certificate includes a first device public key, and the first account data certificate includes a user account ID and a first account public key.

[0035] Based on the above method, the second terminal directly receives the first application signature information, the first device signature information, the first account signature information, the first device certificate chain and the first user account certificate chain corresponding to the first terminal sent by the first terminal and verifies them without going through the server, thus overcoming the problem that the terminal cannot connect to the server temporarily, and cannot obtain the server signature in time, resulting in the inability to complete synchronization, and the terminal devices cannot communicate securely in time, affecting the business experience. Furthermore, the first application signature information, the first device signature information, the first account signature information, the first device certificate chain and the first user account certificate chain are all verified, and the first terminal is trusted only when the verification results are all passed, thereby improving the security of security verification.

[0036] Below Figure 1 Each step in the procedure is described in detail.

[0037] refer to Figure 1 In step S110, first application signature information, first device signature information, first account signature information, first device certificate chain, and first user account certificate chain corresponding to the first terminal and sent by the first terminal are received.

[0038] In an example implementation of the present disclosure, a second terminal may receive first application signature information, first device signature information, first account signature information, first device certificate chain, and first user account certificate chain corresponding to the first terminal and sent by the first terminal, wherein the first application signature information, first device signature information, first account signature information, first device certificate chain, and first user account certificate chain may be obtained by initializing the first terminal.

[0039] In this example implementation, refer to Figure 2 As shown, initializing the first terminal may include steps S210 to S260.

[0040] In step S210, the first device certificate chain, the first device public key, and the first device private key are obtained.

[0041] In this example implementation, when the first terminal is manufactured, it will be equipped with a related first device certificate chain, which may specifically include a first root CA certificate, a first intermediate device CA certificate, and a first device data certificate, wherein the above-mentioned device certificates may include a first device ID, a first device public key, and a first device private key.

[0042] Reference Figure 3 As shown, the first root CA certificate, the first intermediate device CA certificate and the first device data certificate are then used as the first device certificate chain.

[0043] In step S220, in response to the user account logging into the first terminal, the first user account public key, the first account private key and the first user account certificate chain are obtained.

[0044] In this example implementation, when a user logs in to the first terminal, the user will log in to the corresponding first user account on the first terminal, and the encryption module of the first terminal can generate a first account private key and a first account public key according to the first user group account. The first terminal configures a first intermediate account CA certificate for the first user account. Then, a first account data certificate can be generated based on the first account public key and the ID of the first user account.

[0045] In this example real-time mode, refer to Figure 3 As shown, the first root CA certificate, the first intermediate account CA certificate and the first account data certificate may be used as the first account certificate chain.

[0046] In step S230, in response to the target application being installed in the first terminal, a first application public key and a first application private key of the target application are obtained.

[0047] In this example implementation, when the target application is installed in the first terminal, the encryption module of the first terminal may generate a first application public key and a first application private key of the target application.

[0048] In step S240, the target application uses the first application private key to digitally sign the identity identification number and application public key of the target application to obtain first application signature information.

[0049] In an example implementation, the target application can call the application public key function interface in the system of the first terminal, and use the first application private key to digitally sign the identity identification number and the application public key of the target application to obtain the first application signature information. For example, A_Private_Key1 (first application private key) is used to digitally sign {A_ID (identity identification number), A_Public_Key (application public key)} to obtain the first application signature information, which is recorded as A_Sig1.

[0050] In an example implementation of the present disclosure, when using the above-mentioned first application private key for signing, at least one other data interface can be configured for the above-mentioned target application. For example, A_Private_Key1 (first application private key) is used to digitally sign {A_ID (identity identification number), A_Public_Key (application public key), A_Other_Info (other data interface)} to obtain the first application signature information, which is recorded as A_Sig1.

[0051] In step S250, the target application digitally signs the identity identification number and the public key of the target application based on the first device private key to obtain first device signature information.

[0052] In an example implementation, the target application can call the application device certificate function interface in the system of the first terminal, and use the first device private key to digitally sign the identity identification number and application public key of the target application to obtain the first application signature information. For example, D_Private_Key1 (first device private key) is used to digitally sign {A_ID (identity identification number), A_Public_Key (application public key)} to obtain the first device signature information, which is recorded as D_Sig1.

[0053] In an example implementation of the present disclosure, when using the first device private key for signing, at least one other data interface can be configured for the target application. For example, D_Private_Key1 (first device private key) is used to digitally sign {A_ID (identity identification number), A_Public_Key (application public key), A_Other_Info (other data interface)} to obtain the first device signature information, recorded as D_Sig1.

[0054] In step S260, the target application digitally signs the identity identification number and the public key of the target application based on the first account private key to obtain the first account signature information.

[0055] In an example implementation, the target application can call the application account certificate function interface in the system of the first terminal, and use the first device private key to digitally sign the identity identification number and application public key of the target application to obtain the first application signature information. For example, the first account signature information is obtained by digitally signing {A_ID (identity identification number), A_Public_Key (application public key)} using U_Private_Key1 (first account private key), which is recorded as U_Sig1.

[0056] In an example implementation of the present disclosure, when using the above-mentioned first device private key for signing, at least one other data interface can be configured for the above-mentioned target application. For example, U_Private_Key1 (first account private key) is used to digitally sign {A_ID (identity identification number), A_Public_Key (application public key), A_Other_Info (other data interface)} to obtain the first account signature information, which is recorded as U_Sig1.

[0057] In step S120, the first application signature information is verified using the first application public key in the first application signature information to obtain a first verification result;

[0058] In this example implementation, the second terminal uses the first application public key in the first application signature information transmitted by the first terminal to verify the first application signature information. For example, A_Public_Key1 (first application public key) verifies A_Sig1 (first application signature information) against [A_ID, A_Public_Key, A_Other_Info]. A first verification result is obtained. If the first verification result is a failure, the second terminal believes that the first terminal cannot prove that it owns A_Private_Key1 (first application public key) and ends the communication.

[0059] Step S130: Verify the first device certificate chain and the first user account certificate chain to obtain a second verification result.

[0060] In this example implementation, the second terminal can verify the first device certificate chain and the first user account certificate chain to obtain a second verification result. When the second verification result is failure, the second terminal believes that the first terminal cannot prove that it is a legitimate terminal device or the user account is a legitimate user account, and then directly terminates the communication.

[0061] Step S140: Use the first account public key to verify the first account signature information to obtain a third verification result.

[0062] In this example implementation, the second terminal uses the first account public key transmitted by the first terminal to verify the first account signature information to obtain a third verification result. For example, U_Public_Key1 (first account public key) is used to verify U_Sig1 (first account signature information) against [A_ID, A_Public_Key, A_Other_Info]. If the third verification result is a failure, the second terminal believes that the first terminal cannot prove that A_Public_Key (first application public key) comes from a confirmed and legal terminal device, and ends the communication.

[0063] Step S150: Use the first device public key to verify the first device signature information to obtain a fourth verification result.

[0064] In this example implementation, the second terminal uses the first device public key and the first device signature information transmitted by the first terminal to verify and obtain a fourth verification result. For example, D_Public_Key1 (first device public key) is used to verify D_Sig1 (first device signature information) against [A_ID, A_Public_Key, A_Other_Info]. If the fourth verification result is failure, the second terminal believes that the first terminal cannot prove that A_Public_Key (first application public key) comes from a confirmed legitimate user account and ends the communication.

[0065] Step S160: verify the first user account ID to obtain a fifth verification result.

[0066] In this example implementation, the second terminal can extract the first user account ID from the first account data certificate, and perform a verification based on the second user account ID on the second terminal. Specifically, it is determined whether the first account ID is the same as the second account ID of the second terminal, or whether the first account ID and the second account ID belong to the same preset ID group. If they are the same or belong to the same group, the fifth verification result is passed, otherwise, it is failed and the communication is ended.

[0067] Step S170: In response to the first verification result, the second verification result, the third verification result, the fourth verification result and the fifth verification result all being passed, the first terminal is trusted.

[0068] In this example implementation, when the first verification result, the second verification result, the third verification result, the fourth verification result and the fifth verification result are all passed, the second terminal trusts the first terminal and the second terminal receives other data information sent by the first terminal.

[0069] In an exemplary embodiment of the present disclosure, referring to Figure 4 As shown, the above method also includes step S410 to step S420.

[0070] In step S410, the second application signature information, the second device signature information, the second account signature information, the second device certificate chain and the second user account certificate chain are sent to the first terminal, so that the first terminal verifies the second application signature information, the second device signature information, the second account signature information, the second device certificate chain and the second user account certificate chain to obtain a target verification result.

[0071] In this example implementation, the initialization of the second terminal may include steps S510 to S560.

[0072] In step S510, the second device certificate chain, the second device public key and the second device private key are obtained.

[0073] In this example implementation, when the second terminal is manufactured, it will be equipped with a related second device certificate chain, which may specifically include a second root CA certificate, a second intermediate device CA certificate, and a second device data certificate, wherein the above-mentioned device certificates may include a second device ID, a second device public key, and a second device private key.

[0074] Reference Figure 6 As shown, the second root CA certificate, the second intermediate device CA certificate and the second device data certificate are then used as the second device certificate chain.

[0075] In step S520, in response to the user account logging into the second terminal, the second user account public key, the second account private key and the second user account certificate chain are obtained.

[0076] In this example implementation, when the user logs in to the second terminal, the user will log in to the corresponding second user account on the second terminal, and the encryption module of the second terminal can generate a second account private key and a second account public key according to the second user group account. The second terminal configures a second intermediate account CA certificate for the second user account. Then, a second account data certificate can be generated based on the second account public key and the ID of the second user account.

[0077] In this example real-time mode, refer to Figure 6 As shown, the second root CA certificate, the second intermediate account CA certificate and the second account data certificate may be used as the second account certificate chain.

[0078] In step S530, in response to the target application being installed on the second terminal, a second application public key and a second application private key of the target application are obtained.

[0079] In this example implementation, when the target application is installed in the second terminal, the encryption module of the second terminal may generate a second application public key and a second application private key of the target application.

[0080] In step S540, the target application uses the second application private key to digitally sign the identity identification number and application public key of the target application to obtain second application signature information.

[0081] In an example implementation, the target application can call the application public key function interface in the system of the second terminal, and use the second application private key to digitally sign the identity identification number and the application public key of the target application to obtain the second application signature information. For example, A_Private_Key2 (second application private key) is used to digitally sign {A_ID (identity identification number), A_Public_Key (application public key)} to obtain the second application signature information, which is recorded as A_Sig2.

[0082] In an example implementation of the present disclosure, when using the second application private key for signing, at least one other data interface can be configured for the target application. For example, A_Private_Key2 (second application private key) is used to digitally sign {A_ID (identity identification number), A_Public_Key (application public key), A_Other_Info (other data interface)} to obtain the second application signature information, recorded as A_Sig2.

[0083] In step S550, the target application digitally signs the identity identification number and the public key of the target application based on the second device private key to obtain second device signature information.

[0084] In an example implementation, the target application can call the application device certificate function interface in the system of the second terminal, and use the second device private key to digitally sign the identity identification number and application public key of the target application to obtain the second application signature information. For example, D_Private_Key2 (second device private key) is used to digitally sign {A_ID (identity identification number), A_Public_Key (application public key)} to obtain the second device signature information, which is recorded as D_Sig2.

[0085] In an example implementation of the present disclosure, when using the second device private key for signing, at least one other data interface can be configured for the target application. For example, D_Private_Key2 (second device private key) is used to digitally sign {A_ID (identity identification number), A_Public_Key (application public key), A_Other_Info (other data interface)} to obtain the second device signature information, recorded as D_Sig2.

[0086] In step S560, the target application digitally signs the identity identification number and public key of the target application based on the second account private key to obtain second account signature information.

[0087] In an example implementation, the target application can call the application account certificate function interface in the system of the second terminal, and use the second device private key to digitally sign the identity identification number and application public key of the target application to obtain the second application signature information. For example, the second account signature information is obtained by digitally signing {A_ID (identity identification number), A_Public_Key (application public key)} using U_Private_Key2 (second account private key), which is recorded as U_Sig2.

[0088] After obtaining the second application signature information, the second device signature information, the second account signature information, the second device certificate chain and the second user account certificate chain, they are sent to the first terminal, and the first terminal verifies the second application signature information, the second device signature information, the second account signature information, the second device certificate chain and the second user account certificate chain.

[0089] In step S420, in response to the verification result being passed and the second terminal trusting the first terminal, a secure communication link is established with the first terminal.

[0090] In this example implementation, when the verification result of the second application signature information, the second device signature information, the second account signature information, the second device certificate chain and the second user account certificate chain by the above-mentioned first terminal is passed, the second terminal trusts the first terminal and establishes a secure communication link with the first terminal.

[0091] In this example implementation, the verification process of the second application signature information, the second device signature information, the second account signature information, the second device certificate chain, and the second user account certificate chain can refer to the verification of the first application signature information, the first device signature information, the first account signature information, the first device certificate chain, and the first user account certificate chain, and will not be repeated again.

[0092] Refer to the following Figure 7The whole process of the above-mentioned terminal-based application security verification method is explained.

[0093] First, execute step S710, the first terminal sends the first application signature information, the first device signature information, the first account signature information, the first device certificate chain and the first user account certificate chain corresponding to the first terminal to the second terminal; then execute step S720, the second terminal verifies the first application signature information, the first device signature information, the first account signature information, the first device certificate chain and the first user account certificate chain. If the verification fails, execute step S730 and the communication is terminated; if the verification passes, execute step S740, the second terminal sends the second application signature information, the second device signature information, the second account signature information, the second device certificate chain and the second user account certificate chain to the first terminal. If the verification fails, execute step S750 and the communication is terminated; if the verification passes, execute step S760 to establish a secure communication link between the first terminal and the second terminal.

[0094] In summary, in this exemplary embodiment, the second terminal directly receives and verifies the first application signature information, the first device signature information, the first account signature information, the first device certificate chain, and the first user account certificate chain corresponding to the first terminal sent by the first terminal, without going through the server, thereby overcoming the problem that the terminal cannot connect to the server temporarily, and the server signature cannot be obtained in time, resulting in the inability to complete synchronization, and the terminal devices cannot communicate securely in time, affecting the business experience. Further, the first application signature information, the first device signature information, the first account signature information, the first device certificate chain, and the first user account certificate chain are all verified, and only when the verification results are all passed, the first terminal is trusted, thereby improving the security of security verification. Further, after the second terminal trusts the first terminal, the first terminal can reversely verify the second terminal. Only when both bidirectional verifications pass, a secure bidirectional secure communication link is established, thereby increasing the security of data transmission.

[0095] It should be noted that the above figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0096] For further reference, Figure 8 As shown, in the implementation of this example, a terminal-based application security verification device 800 is also provided, including an information receiving module 810, a first verification module 820, a second verification module 830, a third verification module 840, a fourth verification module 850, a fifth verification module 860 and a result verification module 870. Among them:

[0097] The information receiving module 810 may be configured to receive first application signature information, first device signature information, first account signature information, a first device certificate chain, and a first user account certificate chain corresponding to the first terminal and sent by the first terminal.

[0098] Among them, the first application signature information, the first device signature information, the first account signature information, the first device certificate chain and the first user account certificate chain are obtained by initializing the first terminal, wherein the initialization of the first terminal includes: obtaining the first device certificate chain and the first device public key and the first device private key; in response to the user account logging into the first terminal, obtaining the first user account public key, the first account private key and the first user account certificate chain; in response to the target application being installed on the first terminal, obtaining the first application public key and the first application private key of the target application; the target application uses the first application private key to digitally sign the identity identification number and the application public key of the target application to obtain the first application signature information; the target application digitally signs the identity identification number and the public key of the target application based on the first device private key to obtain the first device signature information; the target application digitally signs the identity identification number and the public key of the target application based on the first account private key to obtain the first account signature information.

[0099] The first verification module 820 can be used to verify the first application signature information using the first application public key in the first application signature information to obtain a first verification result.

[0100] The second verification module 830 may be configured to verify the first device certificate chain and the first user account certificate chain to obtain a second verification result.

[0101] The third verification module 840 may be configured to verify the first account signature information using the first account public key to obtain a third verification result.

[0102] The fourth verification module 850 may be configured to verify the first device signature information using the first device public key to obtain a fourth verification result.

[0103] The fifth verification module 860 can be used to verify the first user account ID to obtain a fifth verification result.

[0104] In an example implementation, the fifth verification module 860 may be configured to determine whether the first account ID is the same as the second account ID of the second terminal, or whether the first account ID and the second account ID belong to the same preset ID group.

[0105] The result verification module 870 may be configured to respond to the first verification result, the second verification result, the third verification result, the fourth verification result, and the fifth verification result being all passed, and trust the first terminal.

[0106] In this example implementation, the result verification module 870 may be configured to establish a single data acquisition link between the target application on the second terminal and the target application on the first terminal after the first terminal is trusted.

[0107] Among them, the first device certificate chain includes a first device data certificate, and the first user account certificate chain includes a first account data certificate; the first device data certificate includes a first device public key, and the first account data certificate includes a user account ID and a first account public key.

[0108] The specific details of each module in the above device have been described in detail in the implementation method of the method part. The undisclosed details can be found in the implementation method of the method part, so they will not be repeated here.

[0109] The exemplary embodiment of the present disclosure also provides an electronic device for executing the above-mentioned terminal-based application security verification method, and the electronic device may be the above-mentioned first terminal or second terminal, and the first terminal and the second terminal may be a mobile phone, a tablet computer, a smart watch, a smart speaker, etc., which are not specifically limited in this exemplary embodiment. Generally, the electronic device may include a processor and a memory, and the memory is used to store executable instructions of the processor, and the processor is configured to execute the above-mentioned terminal-based application security verification method by executing the executable instructions.

[0110] Below Fig. 9 The mobile terminal 900 in FIG. 1 is taken as an example to exemplify the structure of the electronic device. It should be understood by those skilled in the art that, in addition to the components specifically used for mobile purposes, Fig. 9 The construction in can also be applied to fixed type equipment.

[0111] like Fig. 9 As shown, the mobile terminal 900 may specifically include: a processor 901, a memory 902, a bus 903, a mobile communication module 904, an antenna 1, a wireless communication module 905, an antenna 2, a display screen 906, a camera module 907, an audio module 908, a power module 909 and a sensor module 910.

[0112] The processor 901 may include one or more processing units, for example, the processor 901 may include an AP (Application Processor), a modem processor, a GPU (Graphics Processing Unit), an ISP (Image Signal Processor), a controller, an encoder, a decoder, a DSP (Digital Signal Processor), a baseband processor and / or an NPU (Neural-Network Processing Unit), etc. The 999 method in this exemplary embodiment may be executed by an AP, a GPU or a DSP, and when the method involves processing related to a neural network, it may be executed by an NPU.

[0113] The processor 901 may be connected to the memory 902 or other components via a bus 903 .

[0114] The memory 902 may be used to store computer executable program codes, which include instructions. The processor 901 executes various functional applications and data processing of the mobile terminal 900 by running the instructions stored in the memory 902. The memory 902 may also store application data, such as images, videos, and other files.

[0115] The communication function of the mobile terminal 900 can be implemented by the mobile communication module 904, antenna 1, wireless communication module 905, antenna 2, modulation and demodulation processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The mobile communication module 904 can provide 2G, 3G, 4G, 5G and other mobile communication solutions applied to the mobile terminal 900. The wireless communication module 905 can provide wireless communication solutions such as wireless LAN, Bluetooth, near field communication, etc. applied to the mobile terminal 900.

[0116] The display screen 906 is used to implement display functions, such as displaying user interfaces, images, videos, etc. The camera module 907 is used to implement shooting functions, such as shooting images, videos, etc. The audio module 209 is used to implement audio functions, such as playing audio, collecting voice, etc. The power module 209 is used to implement power management functions, such as charging the battery, powering the device, monitoring the battery status, etc. The sensor module 910 may include a depth sensor 9101, a pressure sensor 9102, a gyroscope sensor 9103, an air pressure sensor 9104, etc., to implement corresponding sensing detection functions.

[0117] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0118] The exemplary embodiments of the present disclosure also provide a computer-readable storage medium on which a program product capable of implementing the above-mentioned method of the present specification is stored. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of the present specification.

[0119] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0120] In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0121] In addition, program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0122] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0123] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A terminal-based application security verification method, characterized in that: The target applications are respectively installed on terminal devices, the terminal devices include a first terminal and a second terminal, and the method includes: Receive first application signature information, first device signature information, first account signature information, first device certificate chain, and first user account certificate chain corresponding to the first terminal and sent by the first terminal; Verifying the first application signature information using the first application public key in the first application signature information to obtain a first verification result; Verifying the first device certificate chain and the first user account certificate chain to obtain a second verification result; Using the first account public key to verify the first account signature information to obtain a third verification result; Using the first device public key to verify the first device signature information to obtain a fourth verification result; Verifying the first user account ID to obtain a fifth verification result; In response to the first verification result, the second verification result, the third verification result, the fourth verification result and the fifth verification result all being passed, trusting the first terminal; Among them, the first device certificate chain includes a first device data certificate, and the first user account certificate chain includes a first account data certificate; the first device data certificate includes a first device public key, and the first account data certificate includes a user account ID and a first account public key.

2. The method according to claim 1, characterized in that The first application signature information, the first device signature information, the first account signature information, the first device certificate chain, and the first user account certificate chain are obtained by initializing the first terminal, wherein the initializing the first terminal includes: Obtaining the first device certificate chain, the first device public key, and the first device private key; In response to a user account logging into the first terminal, obtaining the first user account public key, the first account private key, and the first user account certificate chain; In response to the target application being installed on the first terminal, obtaining a first application public key and a first application private key of the target application; The target application uses the first application private key to digitally sign the identity identification number and the application public key of the target application to obtain first application signature information; The target application digitally signs the identity identification number and the public key of the target application based on the first device private key to obtain the first device signature information; The target application digitally signs the identity identification number and the public key of the target application based on the first account private key to obtain the first account signature information.

3. The method according to claim 1, characterized in that The fifth verification result obtained by verifying the first user account ID includes: It is determined whether the first account ID is the same as the second account ID of the second terminal, or whether the first account ID and the second account ID belong to the same preset ID group.

4. The method according to claim 1, characterized in that: The method further comprises: Initializing the second terminal to obtain second application signature information, second device signature information, second account signature information, a second device certificate chain, and a second user account certificate chain corresponding to the second terminal; Sending second application signature information, second device signature information, second account signature information, second device certificate chain, and second user account certificate chain to the first terminal, so that the first terminal verifies the second application signature information, second device signature information, second account signature information, second device certificate chain, and second user account certificate chain to obtain a target verification result; In response to the verification result being passed and the second terminal trusting the first terminal, a secure communication link is established with the first terminal.

5. The method according to claim 4, characterized in that Initializing the second terminal to obtain second application signature information, second device signature information, second account signature information, a second device certificate chain, and a second user account certificate chain corresponding to the second terminal includes: Obtaining the second device certificate chain, the second device public key, and the second device private key; In response to the user account logging into the second terminal, obtaining the second user account public key, the second account private key and the second user account certificate chain; In response to the target application being installed on the second device, obtaining a second application public key and a second application private key of the target application; The target application uses the second application private key to digitally sign the identity identification number and the application public key of the target application to obtain second application signature information; The target application digitally signs the identity identification number and the public key of the target application based on the second device private key to obtain the second device signature information; The target application digitally signs the identity identification number and the public key of the target application based on the second account private key to obtain the second account signature information.

6. The method according to claim 5, characterized in that In response to the target application being installed on the second device, obtaining a second application public key and a second application private key of the target application includes: In response to the target application being installed on the second device, a second application public key and a second application private key corresponding to each other are acquired using an encryption module on the second terminal.

7. The method according to claim 1, characterized in that After trusting the first terminal, the method further includes: A single data acquisition link is established between the target application on the second terminal and the target application on the first terminal.

8. A terminal-based application security verification device, characterized in that: include: An information receiving module, configured to receive first application signature information, first device signature information, first account signature information, first device certificate chain, and first user account certificate chain corresponding to the first terminal and sent by the first terminal; A first verification module, configured to verify the first application signature information using the first application public key in the first application signature information to obtain a first verification result; A second verification module, used to verify the first device certificate chain and the first user account certificate chain to obtain a second verification result; A third verification module, used to verify the first account signature information using the first account public key to obtain a third verification result; A fourth verification module, configured to verify the first device signature information using the first device public key to obtain a fourth verification result; A fifth verification module, used to verify the first user account ID to obtain a fifth verification result; A result verification module, in response to the first verification result, the second verification result, the third verification result, the fourth verification result and the fifth verification result being all passed, trusting the first terminal; The first device certificate chain includes a first device data certificate, and the first user account certificate chain includes a first account data certificate; The first device data certificate includes a first device public key, and the first account data certificate includes a user account ID and a first account public key.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by the processor, the terminal-based application security verification method according to any one of claims 1 to 7 is implemented.

10. An electronic device, characterized in that: include: one or more processors; as well as A memory for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the terminal-based application security verification method as described in any one of claims 1 to 7.