Remote proving method and system for trusted application in data space

By verifying the remote authentication report before data exchange, the difficulty in establishing trust and security issues during the data exchange process is solved, and the security, credibility and integrity of data exchange are achieved.

CN118784359APending Publication Date: 2024-10-15LINGSHU TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411098407.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

During the data exchange process, it is difficult for participants to establish trust, and there are security issues such as false data, data abuse, leakage, and tampering. Existing technologies cannot effectively solve these problems.

Method used

Ensure the identity and environment credibility of participants by verifying remote authentication reports before data exchange, including application auditing, running environment certification and integrity verification, using application managers and environment certification services for signing and verification.

Benefits of technology

It achieves the security and credibility of the data exchange process, ensures the credibility and integrity of the operating environment and applications, prevents unauthorized tampering and forgery, and establishes trusted authentication for both parties.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784359A_ABST
    Figure CN118784359A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a data space trusted application remote certification method and system, and the method comprises the steps: a first application program transmits a random number to a second application program; the second application program sends an authentication report request and a random number to the application program manager; the application program manager obtains a running environment authentication report and the integrity information of the second application program, carries the random number, adds the integrity information in the running environment authentication report, signs report information by adopting a running environment private key to obtain a remote authentication report, and sends the remote authentication report to the second application program; the remote authentication report is returned to the second application program; the second application program sends the remote authentication report to the first application program; and the first application program performs security and credibility verification according to the information in the remote authentication report, and performs data exchange with the second application program after the verification is passed. And the data exchange process is safe and credible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of virtual machines, and in particular to a remote certification method and system for trusted applications in data space. Background Art

[0002] TEE (Trusted Execution Environment) is a security technology that creates an independent, trusted environment for executing sensitive code and processing sensitive data. TEE provides a secure area isolated from the operating system, ensuring that data and applications in the area will not be accessed or modified without authorization.

[0003] Data spaces allow participants to exchange data across companies. In many cases, participants who intend to exchange data do not know the other company and the components they use in advance, and cannot properly assess the consequences of such data exchange. In the process of data exchange, data owners have problems with providing false data or incomplete data; data users have problems with data abuse, active leakage, and passive leakage; in addition, there are problems with pretenders maliciously stealing or tampering with data. There are a lot of security issues in the data exchange process, and it is difficult to establish a trust relationship between participants, which makes it difficult to achieve the purpose of data exchange.

[0004] There is currently no effective solution to the above problems in the prior art. Summary of the invention

[0005] To solve the above problems, the present invention provides a method and system for remote authentication of trusted applications in data space, which enables both parties of data exchange to prove the authenticity and trustworthiness of their own identities before data exchange, including trusted authentication of the operating environment and application programs, so as to solve the problem of untrustworthy data exchange in the prior art.

[0006] To achieve the above-mentioned purpose, the present embodiment provides a remote authentication method for a trusted application in a data space, comprising: a first application sends a random number to a second application; wherein the first application and the second application respectively perform application audits in advance; the second application sends an authentication report request and the random number to an application manager; the application manager obtains the integrity information of the operating environment authentication report and the second application and carries the random number, attaches the integrity information to the operating environment authentication report, and then signs the report information with the operating environment private key to obtain a remote authentication report, and returns the remote authentication report to the second application; the second application sends the remote authentication report to the first application; the first application performs security and trustworthiness verification based on the information in the remote authentication report, and exchanges data with the second application after the verification is passed.

[0007] Further optionally, the first application performs security and trustworthiness verification based on the information in the remote authentication report, including: obtaining environmental authentication information from the environmental authentication service based on the measurement values ​​in the remote authentication report; requesting relevant certificates from the Haiguang Chip CA Center based on the chip ID in the remote authentication report; and performing security and trustworthiness verification on the information in the remote authentication report based on the environmental authentication information and relevant certificates.

[0008] Further optionally, before the first application performs security and trustworthiness verification based on the information in the remote authentication report, the following steps include: the application manager randomly generates a key pair, and uses the operating environment public key as the operating environment identity information to verify the remote authentication report, and the operating environment private key is used to sign the remote authentication report; the measurement value of the virtual machine to which the application manager belongs is used as the virtual machine identity ID; the operating environment identity information and the virtual machine identity ID are used together as environment authentication information to register with the environment authentication service.

[0009] Further optionally, before the application manager obtains the integrity information of the second application, it includes: the virtual machine to which the application manager belongs determines whether the measurement value has changed, and if not, the application manager and its virtual machine have passed the integrity verification; the second application is measured using the application manager that has passed the integrity verification, and the integrity information of the second application is obtained after the measurement passes.

[0010] Further optionally, the pre-application audit includes: for any application, performing a security audit on the developed application data according to relevant specifications; generating a manifest file for the application that has passed the security audit, and signing the manifest file with the private key corresponding to the certificate issued by the certification authority; and packaging the application, manifest file, and the signature of the manifest file and publishing them.

[0011] On the other hand, the present invention also provides a data space trusted application remote certification system, including: a challenge initiation module, used by a first application to send a random number to a second application; wherein the first application and the second application respectively perform application audits in advance; a request module, used by the second application to send an authentication report request and the random number to an application manager; a report acquisition module, used by the application manager to obtain the operating environment authentication report and the integrity information of the second application and carry the random number, attach the integrity information to the operating environment authentication report, and then use the operating environment private key to sign the report information to obtain a remote authentication report, and return the remote authentication report to the second application; a sending module, used by the second application to send the remote authentication report to the first application; a verification module, used by the first application to perform security and trustworthiness verification based on the information in the remote authentication report, and exchange data with the second application after the verification is passed.

[0012] Further optionally, the verification module includes: an environmental authentication information acquisition submodule, used to obtain environmental authentication information from the environmental authentication service according to the measurement value in the remote authentication report; a certificate acquisition submodule, used to request relevant certificates from the Haiguang Chip CA Center according to the chip ID in the remote authentication report; and a verification submodule, used to perform security and trustworthiness verification on the information in the remote authentication report based on the environmental authentication information and relevant certificates.

[0013] Further optionally, the system also includes: a running environment identity generation module, which is used for the application manager to randomly generate a key pair, and use the running environment public key as the running environment identity information, which is used to verify the remote authentication report, and the running environment private key is used to sign the remote authentication report; a virtual machine identity ID generation module, which is used to use the measurement value of the virtual machine to which the application manager belongs as the virtual machine identity ID; a registration module, which is used to use the running environment identity information and the virtual machine identity ID together as the environment authentication information, and register with the environment authentication service.

[0014] Further optionally, the system also includes: an integrity verification module, used for the virtual machine to which the application manager belongs to determine whether the measurement value has changed. If there is no change, the application manager and its virtual machine have passed the integrity verification; an integrity information generation module, used to use the application manager that has passed the integrity verification to measure the second application, and obtain the integrity information of the second application after the measurement passes.

[0015] Further optionally, the system also includes: an audit module, which is used to perform a security audit on the developed application data for any application according to relevant specifications; a signature module, which is used to generate a manifest file for the application that has passed the security audit, and sign the manifest file using the private key corresponding to the certificate issued by the certification authority; and a publishing module, which is used to package and publish the application, manifest file and the signature of the manifest file.

[0016] The above technical solution has the following beneficial effects: by verifying the remote authentication report before data exchange, the participating parties can complete the trusted authentication and ensure the trustworthiness of the operating environment and the trustworthiness of the application; conduct a comprehensive check on the application in advance to ensure the security, reliability and compliance of the application; perform trusted verification on the operating environment of the virtual machine and system manager to provide a reliable basis for remote authentication and integrity measurement; perform integrity measurement on the application manager and application to protect the integrity of the system and application, prevent unauthorized tampering and forgery, and ensure that the data exchange process is safe and reliable. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 is a flow chart of a data space trusted application remote certification method provided by an embodiment of the present invention;

[0019] Figure 2 is a flow chart of a remote authentication report security and trustworthiness verification method provided by an embodiment of the present invention;

[0020] Figure 3 is a flow chart of an environmental authentication method provided by an embodiment of the present invention;

[0021] Figure 4 is a flow chart of an integrity verification method provided by an embodiment of the present invention;

[0022] Figure 5 is a flow chart of an application publishing method provided by an embodiment of the present invention;

[0023] Figure 6 It is a structural diagram of a data space trusted application remote certification system provided by an embodiment of the present invention;

[0024] Figure 7 is a schematic diagram of the structure of a verification module provided by an embodiment of the present invention;

[0025] Figure 8 is a schematic diagram of the structure of a module for environmental authentication provided by an embodiment of the present invention;

[0026] Fig. 9 is a schematic diagram of the structure of a module for integrity verification provided by an embodiment of the present invention;

[0027] Fig.10 It is a schematic diagram of the structure of a module for application publishing provided by an embodiment of the present invention.

[0028] Figure markings: 100 - challenge initiation module; 200 - request module; 300 - report acquisition module; 400 - sending module; 500 - verification module; 5001 - environment authentication information acquisition submodule; 5002 - certificate acquisition submodule; 5003 - verification submodule; 600 - operating environment identity module; 700 - virtual machine identity ID generation module; 800 - registration module; 900 - integrity verification module; 1000 - integrity information generation module; 1100 - audit module; 1200 - signature module; 1300 - release module. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0030] In order to solve the security problems existing in the data exchange process in the prior art, the embodiment of the present invention provides a data space trusted application remote certification method. Figure 1 is a flow chart of a data space trusted application remote certification method provided by an embodiment of the present invention, such as Figure 1 Shown include:

[0031] S1. A first application sends a random number to a second application; wherein the first application and the second application respectively perform application audits in advance;

[0032] Before remote attestation, an application audit needs to be performed on the first application and the second application. Applications that pass the application audit are proven to be trustworthy and can participate in the subsequent remote attestation process.

[0033] Before data exchange, the two applications involved in the data exchange need to perform remote attestation to verify each other's identities.

[0034] First, the first application program challenges the second application program and sends a random number to the second application program, wherein the random number is pre-generated by the first application program using a random number generator.

[0035] S2. The second application sends an authentication report request and a random number to the application manager;

[0036] The second application sends a request for obtaining a remote authentication report to the application manager and carries a random number.

[0037] S3. The application manager obtains the runtime authentication report and the integrity information of the second application and carries the random number, adds the integrity information to the runtime authentication report, and then signs the report information with the runtime environment private key to obtain a remote authentication report, and returns the remote authentication report to the second application;

[0038] The application manager obtains the operating environment authentication report through the virtual machine security firmware and carries the random number in the operating environment authentication report. Afterwards, the application manager attaches the integrity information of the second application to the operating environment authentication report to obtain the latest operating environment authentication report.

[0039] The latest operating environment authentication report is signed by using the operating environment private key of the application manager representing the operating environment identity to obtain a remote authentication report, and the remote authentication report is returned to the second application. The private key representing the identity can be randomly generated when the virtual machine is started.

[0040] The remote authentication report includes at least: the measurement value of the virtual machine, the integrity information of the second application, the chip ID, and the random number.

[0041] S4. The second application sends the remote authentication report to the first application;

[0042] After receiving the remote authentication report, the second application sends it to the first application.

[0043] S5. The first application performs security and trustworthiness verification based on the information in the remote authentication report, and exchanges data with the second application after passing the verification.

[0044] After receiving the remote authentication report, the first application verifies the information in the remote authentication report. If the verification is successful, it is considered that the first application and the second application have completed mutual authentication and can safely perform subsequent data exchange.

[0045] Security and trustworthiness verification includes verification of random numbers, measurement values, integrity information, application manager signatures, chip verification, virtual machine signature verification, and platform signature verification.

[0046] The above process can be realized based on Haiguang CSV hardware technology.

[0047] As an optional implementation, Figure 2 Flowchart of a remote authentication report security and trustworthiness verification method provided by an embodiment of the present invention. Figure 2 As shown, the first application performs security and trustworthiness verification based on the information in the remote authentication report, including:

[0048] S501, obtaining environmental authentication information from an environmental authentication service according to the measurement value in the remote authentication report;

[0049] The first application obtains environment authentication information from the environment authentication service according to the measurement value in the remote authentication report. The environment authentication service stores the environment authentication information of the virtual machine corresponding to the measurement value. The correctness of the information in the remote authentication report can be verified later according to the environment authentication information.

[0050] S502, requesting relevant certificates from the Haiguang Chip CA Center according to the chip ID in the remote authentication report;

[0051] The management center, namely the CA (Certificate Authority) center, is responsible for issuing and managing certificates to ensure the integrity and security of the identities and data of all parties in communication. The management center is responsible for issuing various certificates, such as CEK certificates and HSK certificates. Among them, the CEK certificate can be used to verify the validity of the chip in the remote authentication report, and the HSK certificate is used to verify the validity of the virtual machine signature in the remote authentication report.

[0052] S503. Perform security and reliability verification on the information in the remote authentication report based on the environmental authentication information and relevant certificates.

[0053] The corresponding content in the remote authentication report is verified for security and reliability using the environment authentication information and related certificates to determine whether the operating environment and the application are authentic and reliable. If any of the verifications fail, the data exchange relationship between the first application and the second application is not established.

[0054] As an optional implementation, Figure 3 is a flow chart of an environmental authentication method provided by an embodiment of the present invention, such as Figure 3 As shown, before the first application performs security and trustworthiness verification based on the information in the remote authentication report, it includes:

[0055] S6. The application manager randomly generates a key pair and uses the public key of the runtime environment as the identity information of the runtime environment for verifying the remote authentication report, and the private key of the runtime environment is used to sign the remote authentication report;

[0056] S7, using the measurement value of the virtual machine to which the application manager belongs as the virtual machine identity ID;

[0057] S8. Use the operating environment identity information and the virtual machine identity ID as environment authentication information and register with the environment authentication service.

[0058] When the application manager in the virtual machine is started for the first time, an SM2 key pair is randomly generated as the identity of the application manager. The operating environment public key is used as the operating environment identity information, which can be used to verify the remote authentication report, and the operating environment private key is used to sign the report information to obtain the remote authentication report.

[0059] At the same time, the tool is used to obtain the measurement value of the virtual machine, and the value is used as the virtual machine identity ID.

[0060] The virtual machine identity ID and the operating environment identity information are used together as the environment authentication information and registered with the environment authentication service agency. On this basis, when the first application uses the environment authentication information for verification, the virtual machine identity ID in the environment authentication information is used to perform secure and reliable verification of the measurement value in the remote authentication report, and the operating environment identity information is used to verify the signature of the application manager.

[0061] Only a certified operating environment can pass identity authentication during data exchange.

[0062] As a credible implementation method, Figure 4 is a flow chart of the integrity verification method provided by an embodiment of the present invention, such as Figure 4 As shown, before the application manager obtains the integrity information of the second application, it includes:

[0063] S9, the virtual machine to which the application manager belongs determines whether the measurement value has changed, and if not, the application manager and its virtual machine have passed the integrity verification;

[0064] S10: Use an application manager that has passed integrity verification to measure the second application, and obtain integrity information of the second application after the measurement passes.

[0065] When the virtual machine starts, the PSP firmware is used to verify the integrity or consistency of images such as bios (ovmf), kernel, initramfs, cmdline, and kernel command line parameters. When the image or kernel command line parameters change, the virtual machine's measurement value measure will also change, proving that the integrity of the virtual machine has been destroyed and the virtual machine needs to be terminated; if the measurement value does not change, it proves that the virtual machine is trustworthy.

[0066] If the virtual machine is proven to be trustworthy, then the application manager within it has also passed the integrity measurement and is also trustworthy.

[0067] An application manager that uses integrity measurement is responsible for measuring the integrity of the application. If the measurement passes, the application is started and the corresponding integrity information is generated. If the measurement fails, the startup is prohibited, thereby ensuring the credibility of the application.

[0068] As a credible implementation method, Figure 5 is a flow chart of an application publishing method provided by an embodiment of the present invention, such as Figure 5 As shown, perform an application audit in advance, including:

[0069] S11. For any application, conduct security audit on the developed application data according to relevant specifications;

[0070] S12, generating a manifest file for the application that has passed the security audit, and signing the manifest file using the private key corresponding to the certificate issued by the certification authority;

[0071] S13, packaging the application, the manifest file, and the signature of the manifest file and then publishing them.

[0072] All referenced programs must pass a security audit before they can be released to the app store for use by data space participants.

[0073] Any application must first go through a development process. The application provider develops the application according to relevant specifications, packages the developed application, and submits it to the auditing agency for audit.

[0074] The auditing agency shall conduct security audits on applications in accordance with relevant specifications, which shall at least include: source code review, fixed use case testing, vulnerability scanning and other means.

[0075] After the application security audit is correct, the tool generates a manifest file (application name, version information, file size, file hash, dependency table, configuration list). After that, the audit agency signs the application manifest with the private key corresponding to the certificate issued by the CA certification agency. Finally, the application, application manifest file, and manifest file signature are packaged and released.

[0076] The published application is stored in the app store and the application metadata is saved.

[0077] The embodiment of the present invention also provides a data space trusted application remote certification system, Figure 6 is a schematic diagram of the structure of a data space trusted application remote certification system provided by an embodiment of the present invention, such as Figure 6 As shown, the system includes:

[0078] The challenge initiation module 100 is used for the first application to send a random number to the second application; wherein the first application and the second application are audited in advance respectively;

[0079] Before remote attestation, an application audit needs to be performed on the first application and the second application. Applications that pass the application audit are proven to be trustworthy and can participate in the subsequent remote attestation process.

[0080] Before data exchange, the two applications involved in the data exchange need to perform remote attestation to verify each other's identities.

[0081] First, the first application program challenges the second application program and sends a random number to the second application program, wherein the random number is pre-generated by the first application program using a random number generator.

[0082] Request module 200, used for the second application to send an authentication report request and a random number to the application manager;

[0083] The second application sends a request for obtaining a remote authentication report to the application manager and carries a random number.

[0084] The report acquisition module 300 is used for the application manager to obtain the runtime authentication report and the integrity information of the second application and carry the random number, add the integrity information to the runtime authentication report, and then use the runtime environment private key to sign the report information to obtain the remote authentication report, and return the remote authentication report to the second application;

[0085] The application manager obtains the operating environment authentication report through the virtual machine security firmware and carries the random number in the operating environment authentication report. Afterwards, the application manager attaches the integrity information of the second application to the operating environment authentication report to obtain the latest operating environment authentication report.

[0086] The latest operating environment authentication report is signed by using the operating environment private key of the application manager representing the operating environment identity to obtain a remote authentication report, and the remote authentication report is returned to the second application. The private key representing the identity can be randomly generated when the virtual machine is started.

[0087] The remote authentication report includes at least: the measurement value of the virtual machine, the integrity information of the second application, the chip ID, and the random number.

[0088] A sending module 400, configured for the second application to send a remote authentication report to the first application;

[0089] After receiving the remote authentication report, the second application sends it to the first application.

[0090] The verification module 500 is used for the first application to perform security and trustworthiness verification based on the information in the remote authentication report, and to exchange data with the second application after the verification is passed.

[0091] After receiving the remote authentication report, the first application verifies the information in the remote authentication report. If the verification is successful, it is considered that the first application and the second application have completed mutual authentication and can safely perform subsequent data exchange.

[0092] Security and trustworthiness verification includes verification of random numbers, measurement values, integrity information, application manager signatures, chip verification, virtual machine signature verification, and platform signature verification.

[0093] The above process can be realized based on Haiguang CSV hardware technology.

[0094] As an optional implementation, Figure 7 is a schematic diagram of the structure of the verification module provided by an embodiment of the present invention, such as Figure 7 As shown, the verification module 500 includes:

[0095] The environmental authentication information acquisition submodule 5001 is used to obtain environmental authentication information from the environmental authentication service according to the measurement value in the remote authentication report;

[0096] The first application obtains environment authentication information from the environment authentication service according to the measurement value in the remote authentication report. The environment authentication service stores the environment authentication information of the virtual machine corresponding to the measurement value. The correctness of the information in the remote authentication report can be verified later according to the environment authentication information.

[0097] The certificate acquisition submodule 5002 is used to request the relevant certificate from the Haiguang chip CA center according to the chip ID in the remote authentication report;

[0098] The management center, namely the CA (Certificate Authority) center, is responsible for issuing and managing certificates to ensure the integrity and security of the identities and data of all parties in communication. The management center is responsible for issuing various certificates, such as CEK certificates and HSK certificates. Among them, the CEK certificate can be used to verify the validity of the chip in the remote authentication report, and the HSK certificate is used to verify the validity of the virtual machine signature in the remote authentication report.

[0099] The verification submodule 5003 is used to perform security and reliability verification on the information in the remote authentication report based on the environmental authentication information and related certificates.

[0100] The corresponding content in the remote authentication report is verified for security and reliability using the environment authentication information and related certificates to determine whether the operating environment and the application are authentic and reliable. If any of the verifications fail, the data exchange relationship between the first application and the second application is not established.

[0101] As an optional implementation, Figure 8 is a schematic diagram of the structure of a module for environmental authentication provided by an embodiment of the present invention, such as Figure 8 As shown, the system also includes:

[0102] The operating environment identity module 600 is used for the application manager to randomly generate a key pair and use the operating environment public key as the operating environment identity information to verify the remote authentication report, and the operating environment private key is used to sign the remote authentication report;

[0103] A virtual machine identity ID generating module 700, configured to use the measurement value of the virtual machine to which the application manager belongs as the virtual machine identity ID;

[0104] The registration module 800 is used to register the operating environment identity information and the virtual machine identity ID as environment authentication information to the environment authentication service.

[0105] When the application manager in the virtual machine is started for the first time, an SM2 key pair is randomly generated as the identity of the application manager, in which the public key is used as the program manager identity ID and the private key is used to sign the operating environment authentication report.

[0106] At the same time, the tool is used to obtain the measurement value of the virtual machine, and the value is used as the virtual machine identity ID.

[0107] The virtual machine identity ID and the operating environment identity information are used together as the environment authentication information and registered with the environment authentication service agency. On this basis, when the first application uses the environment authentication information for verification, the virtual machine identity ID in the environment authentication information is used to perform secure and reliable verification of the measurement value in the remote authentication report, and the operating environment identity information is used to verify the signature of the application manager.

[0108] Only a certified operating environment can pass identity authentication during data exchange.

[0109] As a credible implementation method, Fig. 9 is a schematic diagram of the structure of a module for integrity verification provided by an embodiment of the present invention, such as Fig. 9 As shown, the system also includes:

[0110] The integrity verification module 900 is used for the virtual machine to which the application manager belongs to determine whether the metric value has changed. If not, the application manager and its virtual machine have passed the integrity verification;

[0111] The integrity information generating module 1000 is used to measure the second application program by using an application program manager that has passed integrity verification, and obtain the integrity information of the second application program after the measurement is successful.

[0112] When the virtual machine starts, the PSP firmware is used to verify the integrity or consistency of images such as bios (ovmf), kernel, initramfs, cmdline, and kernel command line parameters. When the image or kernel command line parameters change, the virtual machine's measurement value measure will also change, proving that the integrity of the virtual machine has been destroyed and the virtual machine needs to be terminated; if the measurement value does not change, it proves that the virtual machine is trustworthy.

[0113] If the virtual machine is proven to be trustworthy, then the application manager within it has also passed the integrity measurement and is also trustworthy.

[0114] An application manager that uses integrity measurement is responsible for measuring the integrity of the application. If the measurement passes, the application is started and the corresponding integrity information is generated. If the measurement fails, the startup is prohibited, thereby ensuring the credibility of the application.

[0115] As an optional implementation, the system further includes:

[0116] Audit module 1100, for performing security audit on the developed application data according to relevant specifications for any application;

[0117] Signature module 1200, used to generate a manifest file for the application that has passed the security audit, and to sign the manifest file using the private key corresponding to the certificate issued by the certification authority;

[0118] The publishing module 1300 is used to package and publish the application, the manifest file, and the signature of the manifest file.

[0119] All referenced programs must pass a security audit before they can be released to the app store for use by data space participants.

[0120] Any application must first go through a development process. The application provider develops the application according to relevant specifications, packages the developed application, and submits it to the auditing agency for audit.

[0121] The auditing agency shall conduct security audits on applications in accordance with relevant specifications, which shall at least include: source code review, fixed use case testing, vulnerability scanning and other means.

[0122] After the application security audit is correct, the tool generates a manifest file (application name, version information, file size, file hash, dependency table, configuration list). After that, the audit agency signs the application manifest with the private key corresponding to the certificate issued by the CA certification agency. Finally, the application, application manifest file, and manifest file signature are packaged and released.

[0123] The published application is stored in the app store and the application metadata is saved.

[0124] The above technical solution has the following beneficial effects: by verifying the remote authentication report before data exchange, the participating parties can complete the trusted authentication and ensure the trustworthiness of the operating environment and the trustworthiness of the application; conduct a comprehensive check on the application in advance to ensure the security, reliability and compliance of the application; perform trusted verification on the operating environment of the virtual machine and system manager to provide a reliable basis for remote authentication and integrity measurement; perform integrity measurement on the application manager and application to protect the integrity of the system and application, prevent unauthorized tampering and forgery, and ensure that the data exchange process is safe and reliable.

[0125] The specific implementation methods of the above invention further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above content is only the specific implementation methods of the present invention and is not intended to limit the protection scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A remote certification method for a data space trusted application, characterized in that: include: The first application sends a random number to the second application; wherein the first application and the second application respectively perform application audits in advance; The second application sends an authentication report request and the random number to the application manager; The application manager obtains the runtime authentication report and the integrity information of the second application and carries the random number, adds the integrity information to the runtime authentication report, signs the report information with the runtime environment private key, obtains a remote authentication report, and returns the remote authentication report to the second application; The second application sends the remote authentication report to the first application; The first application performs security and trustworthiness verification based on the information in the remote authentication report, and exchanges data with the second application after the verification is passed.

2. The data space trusted application remote certification method according to claim 1 is characterized in that: The first application performs security and trustworthiness verification according to the information in the remote authentication report, including: Obtaining environmental authentication information from an environmental authentication service according to the measurement value in the remote authentication report; Request relevant certificates from the Haiguang Chip CA Center according to the chip ID in the remote authentication report; The information in the remote authentication report is securely and reliably verified based on the environmental authentication information and related certificates.

3. The data space trusted application remote certification method according to claim 2 is characterized in that: Before the first application performs security and trustworthiness verification according to the information in the remote authentication report, the method includes: The application manager randomly generates a key pair and uses the operating environment public key as the operating environment identity information for verifying the remote authentication report, and the operating environment private key is used to sign the remote authentication report; The measurement value of the virtual machine to which the application manager belongs is used as the virtual machine identity ID; The operating environment identity information and the virtual machine identity ID are used together as environment authentication information and registered with the environment authentication service.

4. The data space trusted application remote certification method according to claim 1, characterized in that: Before the application manager obtains the integrity information of the second application, the process includes: The virtual machine to which the application manager belongs determines whether the metric value has changed. If not, the application manager and its virtual machine have passed the integrity verification; The second application is measured by using an application manager that has passed integrity verification, and integrity information of the second application is obtained after the measurement passes.

5. The data space trusted application remote certification method according to claim 1, characterized in that: The preliminary application audit includes: For any application, conduct security audit on the developed application data according to relevant specifications; Generate a manifest file for applications that have passed the security audit, and sign the manifest file using the private key corresponding to the certificate issued by the certification authority; Package the application, manifest file, and the signature of the manifest file and publish them.

6. A data space trusted application remote certification system, characterized in that: include: A challenge initiation module, used for a first application to send a random number to a second application; wherein the first application and the second application are audited in advance respectively; A request module, used for the second application to send an authentication report request and the random number to the application manager; A report acquisition module, used for the application manager to obtain the operating environment authentication report and the integrity information of the second application and carry the random number, attach the integrity information to the operating environment authentication report, and then use the operating environment private key to sign the report information to obtain a remote authentication report, and return the remote authentication report to the second application; A sending module, used for the second application to send the remote authentication report to the first application; The verification module is used for the first application to perform security and trustworthiness verification based on the information in the remote authentication report, and to exchange data with the second application after the verification is passed.

7. The data space trusted application remote attestation system according to claim 6, characterized in that: The verification module comprises: An environmental authentication information acquisition submodule, used to obtain environmental authentication information from an environmental authentication service according to the measurement value in the remote authentication report; The certificate acquisition submodule is used to request the relevant certificate from the Haiguang chip CA center according to the chip ID in the remote authentication report; The verification submodule is used to perform secure and reliable verification of the information in the remote authentication report based on the environmental authentication information and related certificates.

8. The data space trusted application remote attestation system according to claim 7, characterized in that: Also includes: The operating environment identity generation module is used for the application manager to randomly generate a key pair, and use the operating environment public key as the operating environment identity information to verify the remote authentication report, and the operating environment private key is used to sign the remote authentication report; A virtual machine identity ID generation module, used for taking the measurement value of the virtual machine to which the application manager belongs as the virtual machine identity ID; The registration module is used to register the operating environment identity information and the virtual machine identity ID with the environment authentication service as environment authentication information.

9. The data space trusted application remote attestation system according to claim 6, characterized in that: Also includes: An integrity verification module is used for the virtual machine to which the application manager belongs to determine whether the measurement value has changed. If not, the application manager and its virtual machine have passed the integrity verification; The integrity information generating module is used to measure the second application program by using an application program manager that has passed the integrity verification, and obtain the integrity information of the second application program after the measurement is passed.

10. The data space trusted application remote attestation system according to claim 6, characterized in that: Also includes: Audit module, which is used to conduct security audit on the developed application data according to relevant specifications for any application; The signature module is used to generate a manifest file for applications that have passed the security audit and sign the manifest file using the private key corresponding to the certificate issued by the certification authority; The release module is used to package and release the application, manifest file, and the signature of the manifest file.

Citation Information

Cited By

  • Data migration method, device and equipment based on trusted execution environment, storage medium and product

    CN119416204A

  • Data migration method, device, equipment, medium and product based on trusted execution environment in trusted data space

    CN119416204B

  • Remote attestation method for trusted data space

    CN120498700A