Dynamic trusted measurement implementation method, device, equipment, medium and trusted system

By constructing a dynamic trustworthy metric root on the target trusted computing chip and utilizing mature trustworthy root specifications and open source ecology, the cross-platform versatility and cost issues of dynamic trustworthy metric technology are solved, and dynamic trustworthy metric with high security performance is realized. Confidence measure.

CN118484813BActive Publication Date: 2024-10-15LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202410939696.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-10-15
Estimated Expiration
2044-07-15

AI Technical Summary

Technical Problem

Existing dynamic trusted metric technology has problems such as insufficient cross-platform versatility, high implementation costs, and low security performance, especially when the software stack of the dynamic trusted metric root is not unified and the maintenance cost is high.

Method used

By constructing a dynamic trustworthy metric root on the target trusted computing chip, following mature trustworthy root specifications, and utilizing the open source ecosystem of the target trusted computing chip, the cross-platform versatility of the dynamic trustworthy metric root is achieved and the cost of promotion and implementation is reduced. , and perform dynamic trust measurement on user-mode and kernel-mode objects through the dynamic trust measurement engine and agent.

Benefits of technology

It achieves low-cost, extensive and comprehensive dynamic trustworthiness, improves the security performance of the system, reduces the complexity of promotion and maintenance, and avoids dependence on specific processor architectures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118484813B_ABST
    Figure CN118484813B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment, medium and trusted system for implementing dynamic trusted measurement, which are applied to the field of trusted computing. The method includes expanding a dynamic trusted measurement root including at least a dynamic trusted measurement strategy in a trusted computing chip based on the dynamic trusted measurement root technology stack conforming to the trusted root specification, and deploying a dynamic trusted measurement agent in the user state. When the dynamic trusted measurement root is enabled and the dynamic trusted measurement engine in the dynamic trusted measurement root is initialized, the dynamic trusted measurement root is called to perform dynamic trusted measurement on the kernel attitude measurement object based on the dynamic trusted measurement strategy; in the program running stage, the user attitude measurement object is dynamically trusted by the dynamic trusted measurement agent. The present invention can solve the problem of poor versatility of dynamic trusted measurement in related technologies, and can realize low-cost promotion and implementation of dynamic trusted measurement with high security performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of trusted computing, and in particular to a method, device, equipment, medium and trusted system for implementing dynamic trusted measurement. Background Art

[0002] Trusted computing is a secure computing technology based on the collaborative work of hardware and software. It ensures the security of computing devices and data by establishing a trusted environment. Trusted measurement uses trusted computing technology to measure the operating status of the system step by step, ensuring the security and trustworthiness of each level step by step. Among them, static trusted measurement only measures static storage files when the program is started or the file is operated, so it cannot ensure the security and trustworthiness of memory data during program execution. In order to solve the measurement and trusted verification of key program files and modules of the system during system operation, dynamic trusted measurement technology is applied.

[0003] In the process of implementing dynamic trusted measurement, the trusted root software stack of the dynamic trusted measurement root requires additional development and does not have the characteristics of cross-platform universality. Users can only use the processor architecture that matches it to implement dynamic measurement, and the implementation and promotion costs are high. In addition, the measurement objects only include kernel data and specific registers of the central processing unit, which are not comprehensive and have low security performance.

[0004] In view of this, realizing dynamic trust measurement with low cost and high security performance is a technical problem that needs to be solved by those skilled in the art. 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 this application, and therefore may include information that does not constitute prior art known to ordinary technicians in the field. Summary of the invention

[0005] The present invention provides a dynamic trusted measurement implementation method, device, electronic device, non-volatile storage medium, computer program product and trusted computing system, which can realize low-cost dynamic trusted measurement promotion and implementation with high security performance.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0007] The present invention provides a method for implementing a dynamic trust metric, comprising:

[0008] On the basis that the dynamic trusted measurement root technology stack complies with the target trusted root specification, a dynamic trusted measurement root including at least a dynamic trusted measurement strategy is pre-constructed in a target trusted computing chip matching the target trusted root specification;

[0009] Pre-deploy a dynamic trusted measurement agent in the user state of the computing subsystem running the business system execution environment;

[0010] After the dynamic trusted measurement root is enabled and the dynamic trusted measurement engine in the dynamic trusted measurement root is initialized, the dynamic trusted measurement root is called to perform dynamic trusted measurement on the kernel attitude measurement object based on the dynamic trusted measurement strategy; during the program running stage, the dynamic trusted measurement agent is used to perform dynamic trusted measurement on the user attitude measurement object;

[0011] The trusted root of the target trusted computing chip does not include a measurement root, and the dynamic trusted measurement root runs in a secure isolation environment based on a processor isolation mechanism.

[0012] In a first exemplary implementation, the calling of the dynamic trust measurement root to perform dynamic trust measurement on the kernel attitude measurement object based on the dynamic trust measurement strategy includes:

[0013] Invoke a dynamic trust metric trigger instruction to start the dynamic trust metric engine;

[0014] Access the base address of the target address and / or kernel memory data through the system memory security access path provided by the processor security isolation mechanism;

[0015] The dynamic trust measurement strategy is called to perform dynamic trust measurement on the base address and / or the kernel memory data accordingly.

[0016] In a second exemplary implementation, the performing dynamic trust measurement on the user attitude measurement object by the dynamic trust measurement agent includes:

[0017] Obtaining process memory data and / or context information and / or target code segments based on observation capabilities of the extended Berkeley packet filter;

[0018] Based on the dynamic trust measurement strategy, the dynamic trust measurement agent is used to perform dynamic trust measurement on the process memory data and / or context information and / or the target code segment accordingly.

[0019] In a third exemplary implementation, during the program running phase, the dynamic trust measurement agent is used to perform dynamic trust measurement on the user attitude measurement object, further comprising:

[0020] When a program is loaded in user mode, a static trust measurement is performed on the program through a static trust measurement agent to obtain a static trust measurement result;

[0021] When the static trust measurement result is verified to be trustworthy, the program is started, and during the program running phase, the dynamic trust measurement is performed on the user attitude measurement object through the dynamic trust measurement agent.

[0022] In a fourth exemplary implementation, after the static trust measurement is performed on the program by the static trust measurement agent, the method further includes:

[0023] When the static trust measurement result is verified to be untrustworthy, if a dynamic trust measurement request is received, the program is prohibited from being started, and the recorded trust verification event log is sent to the security center to warn of the program startup failure;

[0024] If no dynamic trust measurement request is received, the program is prohibited from being started or a preset program trusted start policy is executed.

[0025] In a fifth exemplary implementation, the dynamic trusted measurement root uses a target storage space that is independent or has access rights, and calling the dynamic trusted measurement root to perform dynamic trusted measurement on the kernel attitude measurement object based on the dynamic trusted measurement policy includes:

[0026] Calling the dynamic trusted measurement root, performing trusted verification on the kernel attitude measurement object during dynamic trusted measurement of the kernel attitude measurement object based on the dynamic trusted measurement strategy, and obtaining a kernel trusted verification result and a kernel dynamic measurement log;

[0027] Storing the kernel trusted verification result in the target storage space;

[0028] If the last kernel dynamic measurement log of the kernel attitude measurement object corresponding to the kernel dynamic measurement log is the same as the kernel dynamic measurement log, then the measurement time is updated to be the measurement time corresponding to the kernel dynamic measurement log;

[0029] If the last kernel dynamic measurement log of the kernel attitude measurement object corresponding to the kernel dynamic measurement log is the same as the kernel dynamic measurement log, the kernel dynamic measurement log is stored.

[0030] In a sixth exemplary implementation, the dynamic trust measurement root uses a target storage space that is independent or has access rights, and the dynamic trust measurement agent performs dynamic trust measurement on the user attitude measurement object, including:

[0031] When the dynamic trust measurement agent performs dynamic trust measurement on the user attitude measurement object, the user attitude measurement object is verified in real time to obtain a user trust verification result and a user dynamic measurement log;

[0032] The user dynamic measurement log and the trusted verification event log are stored in the target storage space, and the trusted verification event log audit record is extended to the platform status register of the trusted root.

[0033] In a seventh exemplary implementation, the user attitude measurement object is target process information, and the dynamic trust measurement of the user attitude measurement object by the dynamic trust measurement agent includes:

[0034] The user mode loads the extended Berkeley packet filter to the mount point, and sets a trusted verification policy based on the target measurement object and the corresponding measurement content;

[0035] The kernel state and the user state send the trusted verification policy to the mapping storage of the extended Berkeley packet filter in the kernel state, and when a trusted verification triggering condition is met, the extended Berkeley packet filter is triggered through the mount point;

[0036] The extended Berkeley packet filter obtains a trusted verification policy, captures target process information based on the trusted verification policy, and sends the target process information to the dynamic trusted measurement agent;

[0037] The dynamic trust measurement agent performs dynamic trust measurement on the target process information, and performs dynamic trust verification according to the dynamic trust measurement result.

[0038] In an eighth exemplary embodiment, the construction includes at least a dynamic trusted metric root of a dynamic trusted metric strategy, including:

[0039] Obtain dynamic trust measurement strategy parameter data;

[0040] When the platform owner authorization information is met and the enhanced authorization is based on the platform trusted state, the dynamic trusted measurement policy management instruction is called based on the dynamic trusted measurement policy parameter data, a dynamic trusted measurement policy is generated in the trusted root, and a policy management instruction execution result and a policy index number are obtained.

[0041] In a ninth exemplary implementation, when the platform owner authorization information is satisfied and the enhanced authorization is based on the platform trusted state, based on the dynamic trusted measurement policy parameter data, a dynamic trusted measurement policy management instruction is called, a dynamic trusted measurement policy is generated in the trusted root, and a policy management instruction execution result and a policy index number are obtained, including:

[0042] When opening the first enhanced authorization session, calling the dynamic trusted measurement policy management instruction;

[0043] If it is determined that the enhanced authorization is successful, verify the parameter legitimacy of the dynamic trusted measurement policy parameter data;

[0044] When the parameters of the dynamic trusted measurement policy parameter data are legal, a policy storage space for storing the dynamic trusted measurement policy is defined;

[0045] The dynamic trusted measurement policy generated based on the dynamic trusted measurement policy parameter data is stored in the policy storage space to obtain the policy management instruction execution result and the policy index number;

[0046] The first enhanced authorization session is released after obtaining the policy management instruction execution result and the policy index number.

[0047] In a tenth exemplary implementation, the obtaining of dynamic trust metric policy parameter data includes:

[0048] Dynamic trusted measurement policy parameter data including at least a policy command code, an operation type, a measurement object type, a random period triggering policy, a measurement algorithm, and measurement result extended platform status register information are acquired to trigger processing of the dynamic trusted measurement according to the random period triggering policy.

[0049] In an eleventh exemplary implementation, the storing in the policy storage space further includes:

[0050] When receiving a dynamic trusted measurement policy management instruction carrying a space application, feeding back the address information of the policy storage space;

[0051] When a dynamic trusted metric policy management instruction carrying data storage is received, the dynamic trusted metric policy is stored in the policy storage space.

[0052] In a twelfth exemplary implementation, the storing in the policy storage space further includes:

[0053] The invoking of the dynamic trusted measurement policy management instruction includes:

[0054] When receiving a dynamic trusted measurement policy management instruction call request, obtaining endorsement domain authorization data or platform domain authorization data;

[0055] If the endorsement domain authorization data or the platform domain authorization data meets the preset domain authorization condition, then calling the dynamic trust measurement policy management instruction;

[0056] If the endorsement domain authorization data or the platform domain authorization data does not meet the preset domain authorization conditions, the dynamic trust measurement policy management instruction is rejected.

[0057] In a thirteenth exemplary implementation, the storing in the policy storage space further includes:

[0058] The calling of the dynamic trust measurement root performs dynamic trust measurement on the kernel attitude measurement object based on the dynamic trust measurement strategy; in the program running stage, the dynamic trust measurement agent performs dynamic trust measurement on the user attitude measurement object, including:

[0059] Acquire trigger parameters including at least a trigger command code, an operation type, authorization data, a measurement object type, and a target measurement strategy; the trigger parameters are input parameters of a dynamic trusted measurement trigger instruction;

[0060] The dynamic trusted measurement trigger instruction is called, and the dynamic trusted measurement trigger instruction is executed in the trusted root according to different measurement object types, target measurement strategies and authorization data, and the measurement trigger instruction execution result and result parameters are returned.

[0061] In a fourteenth exemplary implementation, the storing in the policy storage space further includes:

[0062] The executing of the dynamic trusted measurement trigger instruction in the trusted root according to different measurement object types, target measurement strategies and authorization data, and returning the measurement trigger instruction execution result and result parameters, includes:

[0063] If the current measurement object type is a first kernel attitude measurement object, if the first dynamic trusted measurement strategy used by the first kernel attitude measurement object has been deployed, and the authorization data contained in the dynamic trusted measurement trigger instruction is legal, then trigger the dynamic trusted measurement engine according to the first dynamic trusted measurement strategy, and return measurement trigger instruction execution success information;

[0064] If the current measurement object type is a first user attitude measurement object, if the second dynamic trusted measurement strategy used by the first user attitude measurement object has been deployed, and the authorization data contained in the dynamic trusted measurement trigger instruction is legal, then the measurement strategy data corresponding to the second dynamic trusted measurement strategy is returned.

[0065] In a fifteenth exemplary implementation, the storing in the policy storage space further includes:

[0066] The calling of the dynamic trustworthy metric trigger instruction includes:

[0067] When receiving a call request for a dynamic trusted measurement trigger instruction, determining whether the caller has measurement trigger authority;

[0068] If the caller has the measurement triggering authority, determining whether to establish a trust chain;

[0069] If the trust chain has been built and the system trust base is credible, the dynamic trust measurement trigger instruction is allowed to be called;

[0070] A security audit is performed during the execution of the dynamic trust metric triggering instruction.

[0071] In a sixteenth exemplary implementation, the storing in the policy storage space further includes:

[0072] The calling of the dynamic trust measurement root performs dynamic trust measurement on the kernel attitude measurement object based on the dynamic trust measurement strategy; in the program running stage, after the dynamic trust measurement is performed on the user attitude measurement object through the dynamic trust measurement agent, it also includes:

[0073] Get the metrics report parameter data;

[0074] In a state of enhanced authorization based on a platform trusted state, a dynamic trusted measurement report generation instruction is called to generate a dynamic trusted measurement report in a trusted root based on the measurement report parameter data.

[0075] In a seventeenth exemplary implementation, the storing in the policy storage space further includes:

[0076] The method of invoking a dynamic trusted measurement report generation instruction in a state of enhanced authorization based on a platform trusted state, and generating a dynamic trusted measurement report in a trusted root based on the measurement report parameter data, includes:

[0077] When the second enhanced authorization session is opened, a dynamic trust metric report generation instruction is called;

[0078] If the enhanced authorization is determined to be successful, verify the parameter legitimacy of the measurement report parameter data;

[0079] When the parameters of the measurement report parameter data are legal, the corresponding platform status register is signed according to the measurement object type and the target policy index number in the measurement report parameter data, a trusted report signature result including the platform status register is generated, and a dynamic trusted measurement report and a trusted report signature result are returned;

[0080] The second enhanced authorization session is released after obtaining the dynamic trust metric report and the trust report signature result.

[0081] In an eighteenth exemplary implementation, the storing in the policy storage space further includes:

[0082] After the dynamic trusted metric engine in the dynamic trusted metric root is initialized, the method further includes:

[0083] When receiving a platform state controller reset request, determining whether a dynamic trust measurement trigger instruction is executed;

[0084] If the dynamic trusted metric triggering instruction is executed, a reset request is allowed for the target platform status register used by the dynamic trusted metric, and a split behavior event is added to the dynamic trusted metric log in the target platform status register.

[0085] In a nineteenth exemplary implementation, the storing in the policy storage space further includes:

[0086] After adding the segmentation behavior event in the dynamic trust metric log in the target platform status register, the method further includes:

[0087] When a remote attestation request is received, the dynamic trust measurement log and dynamic trust measurement report after the most recent segmentation behavior event at the current time are submitted.

[0088] Another aspect of the present invention provides a dynamic trust measurement implementation device, comprising:

[0089] A measurement root extension module is used to pre-construct a dynamic trusted measurement root including at least a dynamic trusted measurement strategy in a target trusted computing chip that matches the target trusted root specification, based on the dynamic trusted measurement root technology stack conforming to the target trusted root specification; wherein the dynamic trusted measurement root runs in a secure isolation environment based on a processor isolation mechanism and uses a target storage space that is independent or has access rights;

[0090] The external module of the measurement agent is used to pre-deploy the dynamic trusted measurement agent in the user state of the computing subsystem running the business system execution environment;

[0091] A trusted measurement module is used to call the dynamic trusted measurement root to perform dynamic trusted measurement on the kernel attitude measurement object based on the dynamic trusted measurement strategy after enabling the dynamic trusted measurement root and initializing the dynamic trusted measurement engine in the dynamic trusted measurement root; during the program running stage, dynamically trust the user attitude measurement object through the dynamic trusted measurement agent.

[0092] The present invention also provides an electronic device, comprising a processor, wherein the processor is used to implement the steps of the dynamic trust measurement implementation method as described in any of the preceding items when executing a computer program stored in a memory.

[0093] The present invention also provides a non-volatile storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the dynamic trust measurement implementation method as described in any of the preceding items are implemented.

[0094] The present invention also provides a computer program product, comprising a computer program / instruction, which implements the steps of the method for implementing dynamic trust measurement as described in any of the preceding items when executed by a processor.

[0095] Finally, the present invention also provides a trusted computing system, including a computing subsystem and a trusted subsystem that run in parallel and independently;

[0096] The computing subsystem is used to run the business system execution environment, and the trusted subsystem runs a secure isolation environment;

[0097] The trusted subsystem includes a target trusted computing chip, which is used to implement the steps of the dynamic trusted measurement implementation method as described in any of the preceding items.

[0098] The technical solution provided by the present invention has the advantages that a dynamic trusted measurement root is constructed on an existing trusted computing chip without a trusted measurement root, the dynamic trusted measurement root follows the mature trusted root specification corresponding to the target trusted computing chip, the infrastructure ecosystem can reuse the target trusted computing chip open source ecosystem, the trusted root software stack of the dynamic trusted measurement root relies on and utilizes the mature ecosystem of the target trusted computing chip, the entire dynamic trusted measurement does not need to rely on a specific processor architecture, no additional separate development is required, the complexity of promotion and maintenance is reduced, thereby effectively reducing the implementation and promotion costs, and the practicality is better; further, through the dynamic trusted measurement root, combined with the dynamic trusted measurement engine and the dynamic trusted measurement agent, dynamic trusted measurement of user attitude measurement objects and kernel state objects can be realized, the measurement objects are more extensive and comprehensive, and the system security can be effectively improved.

[0099] In addition, the present invention also provides corresponding implementation devices, electronic devices, non-volatile storage media, computer program products and trusted computing systems for the dynamic trust measurement implementation method, which further makes the method more practical, and the devices, electronic devices, non-volatile storage media, computer program products and trusted computing systems have corresponding advantages.

[0100] The technical features mentioned above, the technical features to be mentioned below, and the technical features shown separately in the drawings can be arbitrarily combined with each other, as long as the combined technical features are not contradictory. All feasible feature combinations are technical contents clearly recorded in this article. Any of the multiple sub-features contained in the same sentence can be applied independently, and does not have to be applied together with other sub-features. It should be understood that the above general description and the detailed description below are only exemplary and cannot limit the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0101] In order to more clearly illustrate the technical solutions of the present invention or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. 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.

[0102] Figure 1 A flow chart of a method for implementing a dynamic trust measurement provided by the present invention;

[0103] Figure 2 A schematic diagram of the structure of the dynamic trust measurement implementation provided by the present invention;

[0104] Figure 3 A schematic diagram of a trusted assurance process of a user-mode dynamic trusted measurement agent provided by the present invention;

[0105] Figure 4 A schematic diagram of a user-mode dynamic trusted metric triggering process provided by the present invention;

[0106] Figure 5 A schematic diagram of the proposed extended instruction flow provided by the present invention;

[0107] Figure 6 A schematic diagram of the dynamic trusted measurement strategy deployment instruction call and execution flow provided by the present invention;

[0108] Figure 7 A schematic diagram of the dynamic trust measurement execution process provided by the present invention;

[0109] Figure 8 A schematic diagram of the dynamic credibility measurement of the user attitude measurement object provided by the present invention;

[0110] Fig. 9 A schematic diagram of the execution flow of the dynamic trust metric trigger instruction provided by the present invention;

[0111] Fig.10 A schematic diagram of the dynamic trust metric report instruction call and execution flow provided by the present invention;

[0112] Fig.11 A schematic diagram of a dynamic trust metric implementation structure in an exemplary embodiment provided by the present invention;

[0113] Fig.12 A schematic diagram of the startup process of a computing platform provided by the present invention with a trusted root supporting dynamic trusted metrics;

[0114] Fig.13 A structural diagram of an exemplary implementation of a dynamic trust metric implementation device provided by the present invention;

[0115] Fig.14 A structural diagram of an exemplary embodiment of an electronic device provided by the present invention;

[0116] Fig.15 A structural diagram of an exemplary implementation of a trusted computing system provided by the present invention. DETAILED DESCRIPTION

[0117] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Among them, the terms "first", "second", "third", "fourth", etc. in the specification and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations of the two are intended to cover non-exclusive inclusions. The term "exemplary" means "used as an example, embodiment or illustrative". Any embodiment described here as "exemplary" is not necessarily interpreted as being superior or better than other embodiments.

[0118] Trusted computing is a technology promoted and developed by the Trusted Computing Organization. It uses a trusted computing platform based on hardware security modules in computing and communication systems. That is, it introduces a trusted platform module such as TPM (Trusted Platform Module) or TCM (Trusted Cryptography Module) on the hardware platform, and implements a trusted root with a trusted software stack to improve the overall security of the system. Trusted measurement is to use trusted computing technology to measure the operating status of the system step by step, and ensure the security and trustworthiness of each level step by step. The system starts from the trusted root and first performs a trusted measurement of the BIOS (Basic Input Output System). For example, the content of the BIOS chip is hashed. If there is no tampering, the measurement is considered to pass. After the measurement passes, the BIOS is started and the BIOS is considered to be trusted. The BIOS measures the OS (Operating System) Loader. After the measurement passes, the control is transferred to the OS Loader. The OS boot process is measured. After the measurement passes, the OS boot process is executed. In this way, the system security is ensured step by step.

[0119] Trusted measurement includes static trusted measurement and dynamic trusted measurement. Static trusted measurement only measures static storage files when the program is started or the file is operated, so it cannot ensure the security and trustworthiness of memory data during program execution. Dynamic trusted measurement technology is a component of the security capability construction system with trusted root as the core. It can measure and verify the trustworthiness of key program files and modules of the system during system operation. As early as the beginning of this century, Microsoft proposed dynamic trusted measurement technology when it proposed the next generation of secure operating system. Later, processor companies such as Intel (Intel) and AMD (company name) successively proposed processor-based dynamic trusted measurement technology, such as Intel's TXT (Trusted Execute Technology Intel, Intel Trusted Execution Technology), AMD's SEV (Secure Encrypted Virtualization, Secure Encrypted Virtualization), etc. However, this type of dynamic trusted root only solves the dynamic measurement problem in the startup process and system boot process. Due to the impact of the system performance of the measurement object, it does not completely solve the dynamic measurement problem of the system running program.

[0120] In order to solve the problem of dynamic measurement of system running programs, the related technology proposes a dual-architecture trusted computing concept based on active trusted root (i.e., trusted computing 3.0), in which dynamic trusted verification is the key technology emphasized by trusted computing 3.0. It proposes an active trusted root based on PCIe (peripheral component interconnect express, high-speed serial computer expansion bus standard) board, and integrates dynamic trusted measurement functions in the trusted root. The characteristics of these functions are that they are based on TCM or TPM and further encapsulate dynamic trusted verification instructions. However, the trusted root software stack in the system of the related technology needs to be independently developed, the user has few options, the software maintenance cost is high, and the versatility is insufficient. With the rapid development of TEE (Trusted Execution Environment, Trusted Execution Environment) technology applications, the related technology proposes a dynamic trusted measurement implementation based on TEE. The implementation method is to run the dynamic trusted measurement root in TEE. The trusted software stack still needs additional development and is also not cross-platform universal. Users can only use the processor architecture that matches it to achieve dynamic measurement, the implementation cost is high, and the promotion effect is not good. In addition, the relevant technology also proposes a dynamic trusted measurement technology based on a trusted platform control module. This dynamic trusted measurement technology also has the problem of high adaptation and promotion costs due to the immaturity of the standard ecosystem. The relevant technology also proposes a dynamic trusted measurement technology based on processing independent cores, such as a dynamic trusted verification technology based on processor independent cores. This dynamic trusted measurement technology based on independent cores of a specific processor architecture has an architecture dependency problem and also has the problem of high adaptation and promotion costs.

[0121] In addition, the measurement root implementation forms in related technologies include being undertaken by specific firmware IPL (Information Processing Language), being undertaken by specific CPU-authenticated code, such as ACM code (Authorized Code Module in Intel TXT), being undertaken by specific applications running in the TEE environment, such as ARM's PTA technology (Packet Traffic Arbitration), being undertaken by independent cores divided by the central processing unit, such as simulation technology based on central processing unit independence and TPCM (Trusted Platform Control Module), all of which have the problem of high cost of architecture-related ecological reuse. In other words, the upstream and downstream software stack technologies of TPCM are immature and not unified, and the corresponding TSB (Trusted Software Base) of each company is inconsistent, and there is no unified interface specification. Therefore, TPCM does not have a unified instruction set specification. Therefore, when downstream manufacturers adopt TPCM solutions from different companies, they face the problem of being unable to reuse the software stacks of other companies, and they are not universal.

[0122] It can be seen that in the process of realizing dynamic trusted measurement, the implementation of dynamic trusted measurement roots is independent, the corresponding software stacks are not unified and the maintenance cost is high, and some even rely on the underlying processor architecture. The software stack ecology of dynamic trusted measurement roots is not universal and the promotion cost is high, which is not conducive to the application and promotion of dynamic trusted measurement technology and user procurement selection.

[0123] In view of this, the dynamic trusted measurement root technology stack of this application follows the mature trusted root specification, the infrastructure ecosystem can reuse the open source ecosystem of mature and general trusted computing chips, and the dynamic trusted measurement root runs in a secure isolation environment based on the processor isolation mechanism. Deploy the dynamic trusted measurement engine in the trusted root, and deploy the dynamic trusted measurement agent in the user state. Without the need to develop the trusted root software stack of the measurement root, dynamic trusted measurement of user-side measurement objects and measurement objects under the kernel can be achieved, reducing the promotion and implementation costs.

[0124] After introducing the technical solution of the present invention, various non-limiting embodiments of the present invention are described in detail below. In order to better illustrate the present invention, numerous specific details are given in the specific embodiments below. It should be understood by those skilled in the art that the present invention can also be implemented without these specific details. In other examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present invention.

[0125] First see Figure 1 , Figure 1 A flow chart of a method for implementing a dynamic trust measurement provided in this embodiment may include the following contents:

[0126] S101: Based on the dynamic trusted measurement root technology stack complying with the target trusted root specification, a dynamic trusted measurement root including at least a dynamic trusted measurement policy is pre-constructed in a target trusted computing chip matching the target trusted root specification.

[0127] The target trusted root specification in this embodiment matches the target trusted computing chip, and both are mature technologies. The target trusted root specification is the specification followed by the target trusted computing chip. For example, if the target trusted computing chip is TPM2.0, the target trusted root specification is the ISO11889 TPM2.0 specification. Trusted computing is implemented through a trusted root, which consists of three parts: RTM (Root of trust for measurement), RTS (Root of Trust for Storage), and RTR (Root of Trust for Report). The trusted measurement root is the starting point for establishing a trust chain and the basis for trusted measurement in a trusted computing platform. Through orderly integrity measurement and trust relationship transmission, a platform trust chain can be established to ensure that the started system and the running application are trusted. The trusted storage root, also known as the storage root key, consists of a trusted platform module TPM chip and a storage root key, and is the basis for trusted storage in a trusted computing platform. The storage master key is stored in the non-volatile storage area of ​​the TPM and is physically protected securely. The trusted reporting root, also known as the endorsement key, is composed of a trusted platform module TPM chip and a root key. It is the basis for trusted reporting within a trusted computing platform. It is unique and is used to implement platform identity authentication and integrity reporting. When reporting the integrity measurement value, the identity authentication key digitally signs the integrity measurement value, and the recipient determines the trustworthiness of the platform by verifying the validity of the signature and checking the integrity measurement value. The trusted root of the target trusted computing chip of the present invention includes RTS and RTR, but does not include a measurement root. In order to achieve dynamic trusted measurement, the present invention extends the trusted measurement root in the target trusted computing chip, which is used to achieve dynamic trusted measurement of the measurement object. This embodiment is defined as a dynamic trusted measurement root. Since the trusted root of the target trusted computing chip does not have a measurement root, in order to facilitate distinction, this step defines the trusted root that extends the dynamic trusted measurement root as a simulated trusted root, such as Figure 2 shown.

[0128] Among them, Figure 2As shown, the target trusted computing chip can be TPM2.0 or TCM2.0, and the infrastructure ecosystem can reuse the open source ecosystem of the target trusted computing chip, including but not limited to RTR, RTS, trusted root software stack, and context management, key engine, storage management, etc. within the trusted root. Among them, the trusted root software stack includes kernel trusted boot, trusted root driver, static trusted measurement agent, TSS (Trusted Software Stack), supporting trusted network connection and other basic software. TPM2.0 is the trusted root specified by the ISO11889 series of specifications and belongs to the Trusted Computing 2.0 technology system. The specification is contributed and maintained by the TCG organization. Among many trusted root technology systems, the TPM2.0 ecological development is the most complete - the trusted root code is open source, the trusted root driver is integrated into the Linux kernel open source code, and the trusted software stack is open source. The call to TPM2.0 is allowed in open source security basic software such as OpenSSL (OpenSecure Sockets Layer) and OAT (OSS (Open Source Software) Audit Tool). The development and maintenance cost of security applications based on the TPM2.0 system is very low, and TPM2.0 is platform-independent. Users do not need to consider the hardware architecture when purchasing related products. However, limited by the original design intention of TCG for the TPM series, such as light weight and low cost, TPM2.0 only provides a trusted reporting root and a trusted storage root, and does not provide a trusted measurement root module. Therefore, an additional code module is required as a measurement root, which leads to high cost and security issues in using TPM2.0 in specific scenarios such as cloud data centers and edges. By extending the trusted measurement root on TPM2.0, the infrastructure ecosystem can reuse the TPM2.0 open source ecosystem, reduce the complexity of promotion and maintenance, and solve the current problems of TPM2.0.

[0129] In order to ensure that the dynamic trusted measurement root implements dynamic trusted measurement, the dynamic trusted measurement root runs in a secure isolation environment based on a processor isolation mechanism, such as a dynamic trusted measurement root running in a secure execution environment based on a processor isolation mechanism such as a TEE or an independent board. This embodiment extends the dynamic trusted measurement root based on the trusted reporting root and the trusted storage root of the target trusted computing chip. The dynamic trusted measurement implements dynamic trusted measurement according to the built-in dynamic trusted measurement strategy. The dynamic trusted measurement strategy is to clarify the measurement object, measurement trigger strategy, measurement algorithm, and measurement result to extend the platform status register.

[0130] S102: Pre-deploy a dynamic trusted measurement agent in the user state of a computing subsystem running a business system execution environment.

[0131] Among them, the computing subsystem is also a host system, such as a server, and the business system execution environment is an execution environment corresponding to the business system running in the computing subsystem, such as an upper-level application. The business system execution environment includes a user state and a kernel state. In addition to the software deployed by the target trusted computing platform, such as a trusted network connection and a trusted software stack, the user state requires a large amount of computing power for dynamic measurement of the user state process due to factors such as the randomness of the user state process information and the large scale of the process. The present invention also pre-deploys a dynamic trusted measurement agent, that is, the user state dynamic trusted measurement agent is externalized to the operating system of the computing subsystem, which can perform dynamic measurement on the computing subsystem to obtain the system status information of the computing subsystem. The trusted subsystem, that is, the dynamic measurement trusted root, can obtain the security status of the computing subsystem through the measurement results of the dynamic trusted measurement agent, and verify whether the status of the computing subsystem is trustworthy. Compared with an independently running security isolation environment, the dynamic trusted measurement agent runs in an open computing subsystem with a lower security level, and the security of its operating environment cannot be effectively guaranteed.

[0132] S103: After the dynamic trusted measurement root is enabled and the dynamic trusted measurement engine in the dynamic trusted measurement root is initialized, the dynamic trusted measurement root is called to perform dynamic trusted measurement on the kernel attitude measurement object based on the dynamic trusted measurement strategy; during the program running stage, the user attitude measurement object is dynamically trusted through the dynamic trusted measurement agent.

[0133] After the dynamic trusted measurement root is constructed through S101, during the system platform power-on initialization process, the resources required for the secure isolation environment are initialized, and the simulated trusted root in the secure isolation environment is enabled. During the firmware startup process of the computing subsystem, a trust chain in the firmware stage is formed based on the static trusted measurement agent, the trusted root driver and its configuration file in the firmware, including the system boot program. During the system boot process, the kernel and its configuration parameters are trusted to start, and after verifying that the platform and the kernel are trusted, the kernel is started, the system static trusted measurement agent is initialized, such as the IMA (Integrity Measurement Architecture) of the Linux system, the dynamic trusted measurement engine in the dynamic trusted measurement root is initialized, and the dynamic trusted measurement of the kernel state is triggered according to the dynamic trusted measurement policy in the dynamic trusted measurement root. When entering the system operation stage, after the user state loads the upper-layer application, the program starts to run, and the user state trusted measurement agent performs dynamic trusted measurement on the user state measurement objects, such as the key data and context information of the program memory.

[0134] In the technical solution provided in this embodiment, a dynamic trusted measurement root is constructed on an existing trusted computing chip without a trusted measurement root. The dynamic trusted measurement root follows the mature trusted root specification corresponding to the target trusted computing chip. The infrastructure ecosystem can reuse the open source ecosystem of the target trusted computing chip. The trusted root software stack of the dynamic trusted measurement root relies on and utilizes the mature ecosystem of the target trusted computing chip. The entire dynamic trusted measurement does not need to rely on a specific processor architecture, and no additional separate development is required, which reduces the complexity of promotion and maintenance, thereby effectively reducing the implementation and promotion costs and improving practicality. Furthermore, through the dynamic trusted measurement root, combined with the dynamic trusted measurement engine and the dynamic trusted measurement agent, dynamic trusted measurement of user attitude measurement objects and kernel state objects can be achieved. The measurement objects are more extensive and comprehensive, which can effectively improve system security.

[0135] In view of the low security of the root of trust measurement and the high system intrusion of the current related technologies, for example, the dynamic trusted measurement technology based on the kernel module dynamically measures the kernel code segment, system description appendix and other contents by providing API (Application Programming Interface) and data structure in the kernel. However, the dynamic trusted measurement technology based on the kernel module has the problems of low security of the root of trust measurement and high system intrusion, which greatly reduces the security. In addition, the dynamic trusted measurement technology based on VT (Virtualization Technology)-D (virtualization technology at the chip level) / VT-X (virtualization technology at the CPU level), such as Intelikgt (Intel kernel Guard Technology, Intel's diagnostic kernel dynamic defense feature), this method only measures the kernel and CPU specific registers, the measurement objects are limited, and the practicality is not strong; its dynamic measurement is not associated with the platform root of trust, and the implementation of dynamic measurement is not associated with the static trusted startup based on the platform root of trust, so the security is not high. It can be seen that since dynamic trusted measurement has high requirements for computing resources and storage resources, otherwise it is impossible to achieve the security goals of dynamic trusted measurement, such as real-time and comprehensiveness. The relevant technology only measures the key data of the system kernel and the key register information of the processor. The measurement of user-mode processes and key applications is still in the prototype state and cannot be applied to the production environment. The security performance of dynamic trusted measurement is low. In addition, the dynamic trusted measurement technology based on processing independent cores does not inherit the mature trusted root of the standard ecosystem, but only relies on the measurement extension instructions and remote proof instructions provided by the trusted root; at the same time, in the current design, the separate dynamic trusted measurement engine does not connect the dynamic trusted measurement with the program trusted startup (static trusted measurement), which reduces the security value of the dynamic trusted measurement results. In addition, the current dynamic measurement technology generally performs the verification process periodically in the terminal, and finally sends the verification results to the management platform, which further processes the verification results by the management platform, such as displaying the verification results or interrupting the connection of untrusted terminals. The verification benchmark value is stored in the terminal, and the security of the verification benchmark value in all terminals cannot be guaranteed. The verification process is executed in the terminal and transmitted to the management platform through the network, etc., and the legitimacy of the verification results obtained by the management platform cannot be ensured, which further reduces the security performance of dynamic measurement. In order to solve the above problems, based on the above embodiments, the present invention also provides an exemplary implementation of calling a dynamic trust measurement root to perform dynamic trust measurement on a kernel attitude measurement object and a user attitude measurement object based on a dynamic trust measurement strategy, which may include the following contents:

[0136] For dynamic measurement of kernel-state objects, the dynamic trusted measurement trigger instruction is called to start the dynamic trusted measurement engine; the base address of the target address and / or kernel memory data is accessed through the system memory security access path provided by the processor security isolation mechanism; the dynamic trusted measurement strategy is called to perform dynamic trusted measurement on the base address and / or kernel memory data accordingly.

[0137] For the dynamic trust measurement of user attitude measurement objects, the process memory data and / or context information and / or target code segment are obtained based on the observation capability of the extended Berkeley packet filter; based on the dynamic trust measurement strategy, the dynamic trust measurement agent is used to perform dynamic trust measurement on the process memory data and / or context information and / or target code segment accordingly.

[0138] In this embodiment, the dynamic trusted measurement root can, for example, access the measurement object content at the specified address through the system memory security access path provided by the processor security isolation mechanism, such as TEE memory delegation, sharing, etc., to obtain the kernel attitude measurement object that needs to be measured. The kernel measurement object includes but is not limited to the base address and / or kernel memory data and / or interrupt description table. and / or System device table and / or kernel code segment data. For user attitude measurement objects, dynamic measurement execution is performed by a dynamic trusted measurement agent located in REE (Rich Execution Environment), such as the Android system. The method for obtaining the content of user attitude measurement objects adopts the observation capability based on eBPF (extended Berkeley PacketFilter). The measurement content includes but is not limited to the basic attributes of the process, security context, code segment, and process memory data.

[0139] In order to further improve the security performance of dynamic measurement, before the dynamic trusted measurement of the user attitude measurement object is performed through the dynamic trusted measurement agent, the trusted guarantee of the dynamic trusted measurement agent is provided by the trust chain mechanism based on the trusted root and the secure startup for the process dynamic trusted measurement agent. Figure 3 As shown, any secure firmware can be used to provide the system with a root of trust and secure boot function, such as ATF (Arm Trusted Firmware). After the secure isolation environment builds a root of trust, during the firmware startup process, a trust chain is built through ordered integrity measurement and trust relationship transfer. During the system boot process, the kernel is measured and static trust measurement is initialized.

[0140] Furthermore, according to the security threat model, if the static trust verification fails when the program is started, the trusted startup fails, and dynamic trust measurement has no security value. The so-called security threat model means that if an attack has taken effect, then even if the security tool detects it, it may not be able to make up for the loss caused by the security attack. In order to avoid unnecessary dynamic trust measurement, such as Figure 4 As shown in the figure, after entering the system operation phase, when the user mode loads the program, the static trusted measurement agent can be used to perform static trusted measurement on the program being loaded to obtain the static trusted measurement result. Among them, static trusted measurement specifically refers to the measurement of the program to be executed, such as the program file loaded from the disk or network to the memory when the program is started. The static trusted measurement result is trusted and verified. When the static trusted measurement result is verified to be credible, the program is started, and in the program running phase, the dynamic trusted measurement agent is used to perform dynamic trusted measurement on the user attitude measurement object based on the dynamic trusted measurement strategy, and a corresponding dynamic trusted measurement log is generated. When the static trusted measurement result is verified to be untrustworthy, it is determined whether dynamic trusted measurement is required. If a dynamic trusted measurement request is received, the program is prohibited from being started, and the trusted verification event log is recorded. The recorded trusted verification event log is sent to the security center to warn the failure of the program startup, that is, to report the program trusted startup failure alarm to the security center. If no dynamic trusted measurement request is received, the program is prohibited from being started or the preset program trusted startup strategy is executed. That is, if dynamic trusted measurement is not required, the program startup can be continued or prohibited according to the program trusted startup strategy.

[0141] As can be seen from the above, in order to reduce the intrusiveness to the system and improve the security and performance of the dynamic trusted measurement root, the present invention implements the dynamic trusted measurement engine for kernel-state key data based on the processor security isolation environment, and the dynamic trusted measurement of user-state process key data adopts an eBPF-based approach to achieve the quantity of process key data. The trust chain and secure startup measures are used to ensure the security and trustworthiness of the user-state dynamic trusted measurement agent, effectively solving the performance dilemma and intrusiveness of the traditional dynamic trusted measurement root integrated implementation. Combine program trusted startup with dynamic trusted measurement. If the started program belongs to the object of dynamic trusted measurement, a mandatory control policy is executed in the trusted startup of the dynamic trusted measurement object, and startup is not allowed if it is untrustworthy, thereby further improving the security value of the dynamic trusted measurement result.

[0142] Considering the security of the dynamic measurement root, in order to ensure that the dynamic trusted measurement root realizes dynamic trusted measurement, the dynamic trusted measurement root uses an independent target storage space or a target storage space with access rights. For example, the non-volatile storage space of the trusted root can use an independent or isolated persistent storage space, and only the trusted root in the secure isolation environment is allowed to access; the volatile storage space of the trusted root consists of an independent memory space or a memory space based on a processor access control mechanism, such as a memory space that only allows TEE to access. Considering that the user attitude measurement object data is huge, after the dynamic trusted momentum of the user attitude measurement object is implemented based on the above embodiment, the dynamic trusted measurement log will show explosive growth, which will increase the cost of data storage and data transmission. Based on the above embodiment, the present invention also provides an implementation method that can effectively reduce the occupation of the secure storage space of the dynamic trusted measurement log, which may include the following contents:

[0143] For the measurement log of the kernel attitude measurement object, in order to facilitate distinction, it is defined as the kernel dynamic measurement log, and the trusted verification result of the kernel state is defined as the kernel trusted verification result. The generation and storage process of the measurement log is: call the dynamic trusted measurement root, and perform trusted verification on the kernel attitude measurement object based on the dynamic trusted measurement strategy during the dynamic trusted measurement process to obtain the kernel trusted verification result and the kernel dynamic measurement log; store the kernel trusted verification result to the target storage space; if the last kernel dynamic measurement log of the kernel attitude measurement object corresponding to the kernel dynamic measurement log is the same as the kernel dynamic measurement log, then update the measurement time to the measurement time corresponding to the kernel dynamic measurement log; if the last kernel dynamic measurement log of the kernel attitude measurement object corresponding to the kernel dynamic measurement log is the same as the kernel dynamic measurement log, then store the kernel dynamic measurement log.

[0144] For the measurement log of the user attitude measurement object, in order to facilitate distinction, it is defined as the user dynamic measurement log, and the trusted verification result of the user state is defined as the user trusted verification result. The generation and storage process of the measurement log is as follows: when the user attitude measurement object is dynamically trusted by the dynamic trusted measurement agent, the user attitude measurement object is verified in real time to obtain the user trusted verification result and the user dynamic measurement log; the user dynamic measurement log and the trusted verification event log are stored in the target storage space, and the trusted verification event log audit record is extended to the platform status register of the trusted root.

[0145] This embodiment is aimed at the measurement of key data in kernel-mode memory. Since the measurement object is clear and relatively fixed, trusted verification is performed directly during the measurement process, and the trusted verification results are stored in the secure storage space of the trusted root. In order to reduce the storage space occupied by the measurement log, the dynamic measurement log adopts the method of merging adjacent similar items, that is, when the measurement result of the same measurement object is consistent with the previous measurement result), no log entry is added and only the measurement time is updated. If the measurement result is inconsistent, a measurement log is added. For the measurement of key data in user-mode memory, real-time trusted verification and early warning are adopted. The measurement log is not stored separately, but the trusted verification event log is stored, and the trusted verification event audit record is extended to the trusted root PCR, where the trusted verification event log refers to the log that records the activities of trusted verification. Extending the trusted verification event log refers to extending the integrity (hash value) of the results of the trusted event to the TPM, so as to facilitate the use of the trusted verification event log to prove the correctness of the correctness of the trusted verification event log in the remote proof process. The extension method can be based on the relationship Extend(PCR)=Hash(PCRValue old |MeasureValue) implementation, where Extend(PCR) is the data obtained after extension, PCRValue old is the current value of the unextended platform status register, and MeasureValue is the measurement result. new =Hash(PCR old |LogValue), PCR new That is, the data obtained in the platform status register extension, PCR old That is, the current data of the platform status register, and LogValue is the extended trusted verification event log audit record.

[0146] As can be seen from the above, this embodiment integrates the logs of the same continuous trust state of the unified measurement object through the log integration method, which can effectively reduce the storage space occupied by the dynamic trust measurement log, effectively improve the space utilization rate, and help reduce the communication cost of the dynamic trust measurement log and report.

[0147] Based on the above embodiments, the present invention also uses the vendor command provided by the target trusted computing chip to customize and expand the relevant instructions used in the process of implementing dynamic trusted measurement, such as Figure 5As shown, it may include dynamic trusted measurement policy management instructions, dynamic trusted measurement triggering instructions, and dynamic trusted measurement report generation instructions. Among them, the dynamic trusted measurement policy management instructions are used to implement the management of dynamic trusted measurement policies, including deploying dynamic trusted measurement policies and updating dynamic trusted measurement policies. Correspondingly, in the user state of the business system execution environment, a function capable of calling dynamic trusted measurement policy management instructions is set to call the instructions for users. The dynamic trusted measurement triggering instructions are used to trigger dynamic trusted measurements of kernel attitude measurement objects and user attitude measurement objects, and the dynamic trusted measurement report generation instructions are used to generate dynamic trusted measurement reports for kernel attitude measurement objects and user attitude measurement objects. Exemplarily, the calling and execution processes of the instructions are described below, which may include the following contents:

[0148] Obtain dynamic trusted measurement policy parameter data; when the platform owner authorization information is met and the enhanced authorization is based on the platform's trusted state, call the dynamic trusted measurement policy management instruction based on the dynamic trusted measurement policy parameter data, generate a dynamic trusted measurement policy in the trusted root, and obtain the policy management instruction execution result and policy index number.

[0149] In this embodiment, the purpose of the dynamic trusted measurement strategy is to clarify the measurement object, measurement trigger strategy, measurement algorithm and other contents, measurement result extended PCR and other information. The dynamic trusted measurement strategy data can be generated by the measurement strategy tool, which at least includes the strategy command code, operation type, measurement object, measurement trigger strategy, measurement algorithm, measurement result extended platform status register, the strategy command code is used to uniquely identify the dynamic trusted measurement strategy management instruction, which is customized, generally 0x20000000+code (encoding), the operation type includes whether the dynamic trusted measurement strategy is issued or updated, the measurement object includes at least the kernel and the process, the measurement trigger strategy includes at least one trigger dynamic trusted measurement strategy and the timing period trigger dynamic trusted measurement strategy and the random period trigger dynamic trusted measurement strategy, and the measurement algorithm includes at least SHA256 (a secure hash algorithm with a digest length of 256 bits) and SM3 (a national secret hash algorithm). The input and output parameters of the dynamic trusted measurement strategy management instruction are shown in Table 1, where the dynamic trusted measurement strategy is stored in the target storage space, such as a non-volatile memory, and the index number points to the non-volatile memory storing the dynamic trusted measurement strategy.

[0150] Table 1 Dynamic trust measurement policy management instruction parameter table

[0151]

[0152] To prevent malicious access or destruction of dynamic trusted measurement policy data, the invocation of dynamic trusted measurement policy management instructions requires the authorization of PO (Platform Owner) and enhanced authorization based on the trusted status of the platform to be invoked or enhanced authorization provided by a trusted third party signature recognized by the platform. As an exemplary implementation, the present invention also provides a method for invoking and executing dynamic trusted measurement policy management instructions, please refer to Figure 6 As shown, in this embodiment, PO authorization embodies opening an enhanced authorization session and determining enhanced authorization. For the sake of distinction, the enhanced authorization session opened in this embodiment is defined as a first enhanced authorization session. The formulation of measurement policy data can be generated by a measurement policy tool. The other parts are executed at the trusted software stack level and may include the following contents:

[0153] When the first enhanced authorization session is opened, the dynamic trusted measurement policy management instruction is called; it is determined whether to enhance authorization. If authorization fails, an error prompt is returned; if authorization is passed, that is, the enhanced authorization is determined to be successful, and the parameters of the dynamic trusted measurement policy parameter data are further verified to be legal, for example, it can be verified by signature verification. When the parameters of the dynamic trusted measurement policy parameter data are verified to be illegal, an error prompt is returned; when the parameters of the dynamic trusted measurement policy parameter data are verified to be legal, a policy storage space for storing dynamic trusted measurement policies is defined, and the dynamic trusted measurement policies generated based on the dynamic trusted measurement policy parameter data are stored in the policy storage space, and the policy management instruction execution result and policy index number are obtained at the same time. The so-called policy management instruction execution result refers to the result after the dynamic trusted measurement policy management instruction is executed, such as success, failure, and illegal parameters. After obtaining the policy management instruction execution result and policy index number, the first enhanced authorization session is released, and the audit function of the target trusted computing chip is called to record the audit result to the log. Taking the target trusted computing chip as TPM2.0 as an example, TPM2.0_audit (audit) can be called for auditing.

[0154] In order to effectively resist the TOC-TOU (time of check-time of use, an asynchronous attack based on check time / use time) attack risk faced by traditional dynamic trusted measurement, the present invention can adopt dynamic trusted measurement based on random cycle, that is, obtain dynamic trusted measurement policy parameter data including at least policy command code, operation type, measurement object type, random cycle trigger strategy, measurement algorithm, and measurement result extended platform status register information, so as to trigger the dynamic trusted measurement according to the random cycle trigger strategy, thereby effectively resisting the TOC-TOU attack risk faced by traditional dynamic trusted measurement.

[0155] In order to prevent malicious access or destruction of dynamic trusted measurement policy data and reduce the number of trusted root instruction interactions, the dynamic trusted measurement policy storage space of the present invention is applied for and stored by the dynamic trusted measurement policy management instruction in the trusted root. Exemplarily, when a dynamic trusted measurement policy management instruction carrying space application is received, the address information of the policy storage space is fed back; when a dynamic trusted measurement policy management instruction carrying data storage is received, the dynamic trusted measurement policy is stored in the policy storage space.

[0156] In order to further ensure the security of dynamic trusted measurement policy data, dynamic trusted measurement policy management has the same level of security requirements as Endorsement Hierarchy or PlatformHierarchy. Therefore, the corresponding Hierarchy authorization code or authorization information is required when calling this instruction. In other words, when a dynamic trusted measurement policy management instruction call request is received, the endorsement domain authorization data or platform domain authorization data is obtained; if the endorsement domain authorization data or platform domain authorization data meets the preset domain authorization conditions, the dynamic trusted measurement policy management instruction is called; if the endorsement domain authorization data or platform domain authorization data does not meet the preset domain authorization conditions, the dynamic trusted measurement policy management instruction is rejected.

[0157] After the dynamic trusted measurement strategy in the dynamic measurement root is deployed or updated through the above embodiment, the dynamic trusted measurement trigger instruction can be called to implement the dynamic trusted measurement of the user state measurement object and the kernel state object, which may include the following contents:

[0158] Acquire trigger parameters including at least a trigger command code, operation type, authorization data, measurement object type, and target measurement strategy; the trigger parameters are input parameters of the dynamic trusted measurement trigger instruction; call the dynamic trusted measurement trigger instruction, execute the dynamic trusted measurement trigger instruction in the trusted root according to different measurement object types, target measurement strategies and authorization data, and return the measurement trigger instruction execution result and result parameters.

[0159] In this embodiment, the trigger command code is used for a unique dynamic trusted measurement trigger instruction, which is customized, generally 0x20000000+code (code), the operation type is dynamic trusted measurement trigger, the authorization data is enhanced authorization data, the measurement object type includes at least kernel and process, and the measurement trigger policy can be a policy index number. The input and output parameters of the dynamic trusted measurement trigger instruction are shown in Table 2. Among them, the instruction execution result of the output parameter return instruction is failure, and the failure can be further subdivided into failure to obtain measurement object information, illegal PCR number, illegal measurement parameter, authorization failure, etc.

[0160] Table 2 Dynamic trust measurement trigger instruction parameter table

[0161]

[0162] According to the dynamic measurement strategy, the measurement of the measurement object is realized, such as Figure 7 As shown, the kernel state and user state in the dynamic trusted measurement are only used to distinguish whether the measurement object is in kernel state or user state, rather than referring to the user state and kernel state in the business system. For kernel state measurement objects, in order to reduce the performance cost of instruction interaction, a method of continuous execution of one instruction can be adopted, that is, an active measurement method. The measurement object can be kernel memory key data with basically stable base address and information, such as kernel interrupt descriptor table, system call table, kernel code segment and other kernel memory key data. The kernel memory key data measurement engine can be closed or started through this instruction. For user state measurement objects, such as process memory data of system programs and key applications, due to the randomness of user state process information, large process scale and other factors, the dynamic measurement of user state processes requires a large amount of computing power. The present invention externalizes the user state dynamic trusted measurement agent to the operating system. At the same time, in order to reduce the intrusion into the system kernel, the dynamic trusted measurement of process key data based on eBPF is adopted, such as Figure 8 As shown, taking the user attitude measurement object as the target process information as an example, the dynamic trusted measurement of the user attitude measurement object through the dynamic trusted measurement agent may include: the user state loads the extended Berkeley packet filter to the mount point, and sets the trusted verification policy based on the target measurement object and the corresponding measurement content; the kernel state and the user state send the trusted verification policy to the mapping storage of the extended Berkeley packet filter in the kernel state, and when the trusted verification trigger condition is met, the extended Berkeley packet filter is triggered through the mount point; the extended Berkeley packet filter obtains the trusted verification policy, and captures the target process information based on the trusted verification policy, and sends the target process information to the dynamic trusted measurement agent; the dynamic trusted measurement agent performs dynamic trusted measurement on the target process information, and performs dynamic trusted verification based on the dynamic trusted measurement result.

[0163] based on Figure 7 and Figure 8As shown, for each process running in user state, the dynamic trusted measurement agent of this embodiment obtains the user state measurement object through the kernel state eBPF when performing dynamic trusted measurement on each process, and the process data of the user state is output to the kernel process management subsystem of the kernel state. The user state loads the eBPF program to the Hook (mount point) point, and the user state sets a trusted verification policy for the measurement object and measurement content. The user state and kernel state parsing policy is sent to the kernel state eBPF map (mapped storage). The policy execution process in user state and kernel state is as follows: when the trusted verification trigger condition is met, such as the cycle timing is met, the kernel eBPF hook point is entered to trigger the corresponding eBPF program. The kernel eBPF program obtains the policy data and matches the policy with the trusted verification policy data issued in advance. Then, based on the policy data, the key information of the process to be verified is captured through the map structure, such as process attributes, security context, etc., and reported to the dynamic trusted verification agent through the eBPFmap. In this way, the user state obtains these key process information from the kernel state. The dynamic trusted verification agent first performs dynamic trusted measurement to generate an integrity value, and then performs dynamic trusted verification based on the dynamic trusted measurement results, generates event logs and stores them.

[0164] As an exemplary implementation, the present invention also provides a method for calling and executing a dynamic trusted measurement trigger instruction. For the sake of distinction, the user attitude measurement object measured in this embodiment is defined as a first user attitude measurement object, and the dynamic trusted measurement strategy used to measure the first user attitude measurement object is defined as a second dynamic trusted measurement strategy. The kernel attitude measurement object measured in this embodiment is defined as a first kernel attitude measurement object, and the dynamic trusted measurement strategy used to measure the first kernel attitude measurement object is defined as a first dynamic trusted measurement strategy. Please refer to Fig. 9 As shown, it may include the following:

[0165] After the dynamic measurement object is obtained, when the dynamic trusted measurement trigger instruction is called, the type of the dynamic measurement object is determined. If the current measurement object type is the first kernel attitude measurement object, if the first dynamic trusted measurement policy used by the first kernel attitude measurement object is not deployed, an error is returned, and the error message is that the policy is not deployed. If the first dynamic trusted measurement policy used by the first kernel attitude measurement object is deployed, whether the enhanced authorization is legal is determined, including but not limited to whether the hardware platform is trusted, whether the kernel is trusted, and whether the instruction sequence is correct. If it is illegal, an error is returned, and the error message is that the authorization is illegal. If the authorization data contained in the dynamic trusted measurement trigger instruction is legal, the dynamic trusted measurement engine is triggered according to the first dynamic trusted measurement policy, and the measurement trigger instruction execution success information is returned. If the current measurement object type is the first user attitude measurement object, if the second dynamic trusted measurement strategy used by the first user attitude measurement object is not deployed, an error is returned, and the error information is that the strategy is not deployed. If the second dynamic trusted measurement strategy used by the first user attitude measurement object has been deployed, then it is determined whether the enhanced authorization is legal, including but not limited to whether the hardware platform is trustworthy, whether the kernel is trustworthy, and whether the instruction sequence is correct. If it is illegal, an error is returned, and the error information is that the authorization is illegal. If the second dynamic trusted measurement strategy used by the first user attitude measurement object has been deployed and the authorization data contained in the dynamic trusted measurement trigger instruction is legal, then the measurement strategy data corresponding to the second dynamic trusted measurement strategy is returned.

[0166] Considering the security of the dynamic trusted measurement root, for example, since the TPM2.0 design only considers DDOS (Distributed Denial of Service) protection for resource access, but does not consider DDOS access protection for instructions, this may cause the adversary to maliciously occupy TPM device access resources and cause the dynamic trusted measurement of the extended dynamic trusted measurement engine to fail to trigger in time. In order to improve the security of the dynamic trusted measurement root and prevent malicious calls, this embodiment restricts the call of the dynamic trusted measurement trigger instruction, and provides a security audit of the execution of the dynamic trusted measurement instruction through the audit function, which may include:

[0167] When a call request for a dynamic trusted measurement trigger instruction is received, determine whether the caller has measurement trigger permission; if the caller has measurement trigger permission, determine whether to build a trust chain; if a trust chain has been built and the system trust base is trustworthy, the call of the dynamic trusted measurement trigger instruction is allowed; perform a security audit during the execution of the dynamic trusted measurement trigger instruction, such as TPM2_AUDIT provides a security audit of the execution of dynamic trusted measurement instructions.

[0168] In this embodiment, in order to prevent malicious adversaries from implementing DDOS attacks against dynamic measurement by frequently calling instructions, dynamic trusted measurement trigger instructions are only called by specific modules, and can only run when the trust chain is built and the system trust base is trusted. Among them, the so-called specific module is a way of permission restriction. For example, certain addresses of memory can only be accessed by the kernel. The trust chain is built based on the trust root during the firmware startup process. From the trust root to the hardware platform, to the operating system, and then to the application, one level is measured at a time, and one level is authenticated at a time, extending this trust to the entire computer system, thereby ensuring the security of the entire system. The enhanced authorization mechanism defined in the TPM2.0 specification is used to detect whether the dynamic measurement call meets the call security requirements. The policy data of the security detection enhanced authorization includes but is not limited to the instruction call sequence, dynamic measurement agent signature information, static trusted verification results, hardware and firmware, generally PCR0~7, operating system kernel, measured by the boot program, generally PCR8, 9, 11, etc. At the same time, through the instruction audit based on TPM2_AUDIT, a security audit of dynamic trusted verification execution is provided, thereby effectively reducing DDOS attacks against specific trusted root instructions and enhancing the security of trusted root use.

[0169] After the dynamic trust measurement is triggered by the above embodiment, the dynamic trust measurement report generation instruction can be used to generate a dynamic trust measurement report for the user attitude measurement object and the kernel state object, which may include the following contents:

[0170] Obtain measurement report parameter data; in a state of enhanced authorization based on the platform trusted state, call a dynamic trusted measurement report generation instruction to generate a dynamic trusted measurement report in the trusted root based on the measurement report parameter data.

[0171] Among them, the measurement report parameter data includes but is not limited to the measurement command code, operation type, authentication key information, measurement object information, and measurement strategy index, wherein the measurement command code is used for a unique dynamic trusted measurement report generation instruction, which is customized, generally 0x20000000+code (encoding), the operation type is dynamic trusted measurement report generation, the authentication key information at least includes the authentication key handle, the authentication key authorization value, and the authentication key parent key handle, the measurement object information is the measurement object type, the measurement strategy index is the index number of the dynamic trusted measurement strategy used by the dynamic trusted measurement used, and the input and output parameters of the dynamic trusted measurement report generation instruction are shown in Table 3. Among them, the instruction execution result of the output parameter return instruction is failure, and the failure can be further subdivided into parameter errors, and the measurement result can be a hash value. It can be understood that, unlike the static trusted measurement report of the trust chain formed by linear startup, the dynamic trusted measurement event is more of a star-shaped scattering with the trusted root as the core, and there is no need to provide a measurement report containing all historical dynamic trusted measurement logs after this startup, that is, to reflect the behavior, but the measurement of the behavior has been completed in the static measurement when the program is started. For the trusted report of kernel attitude measurement objects, it is the most recent measurement log. The PCR in the trusted report is used to verify the integrity of the most recent measurement log. For the trusted report of user attitude measurement objects, it is the user-state dynamic trusted measurement audit log. The role of the PCR in the trusted report is to verify the integrity of the audit log.

[0172] Table 3 Dynamic trust measurement report generation instruction parameter table

[0173]

[0174] As an exemplary implementation, the present invention also provides a method for calling and executing a dynamic trust metric report generation instruction. Fig.10 As shown, in this embodiment, for the sake of distinction, the enhanced authorization session opened in this embodiment is defined as a second enhanced authorization session, and the other steps are performed at the trusted software stack level, which may include the following contents:

[0175] When the second enhanced authorization session is opened, the dynamic trusted measurement report generation instruction is called to determine whether the enhanced authorization is passed. If the authorization is not passed, an error is returned. If the enhanced authorization is determined to be successful, the parameters of the measurement report parameter data are verified to be legal. When the parameters of the measurement report parameter data are verified to be illegal, an error is returned. When the parameters of the measurement report parameter data are verified to be legal, the corresponding platform status register is signed according to the measurement object type and target policy index number in the measurement report parameter data, and a trusted report signature result containing the platform status register is generated. The dynamic trusted measurement report and the trusted report signature result are returned. After obtaining the dynamic trusted measurement report and the trusted report signature result, the second enhanced authorization session is released, and the audit function is called to record the audit results to the log.

[0176] Considering that the existing trusted metric report is mainly applicable to static trusted metric reports, after incorporating the user-mode process, if the historical metric logs are recorded, the logs of dynamic trusted metrics will explode, which will lead to excessive data volume in the dynamic metric report, increasing the communication cost of uploading the dynamic trusted metric report. Especially in the scenario of the data center server operating system, due to the long continuous operation time of the business, it is not shut down unless necessary, and even daily operation and maintenance try to avoid restarting, which will lead to a significant increase in dynamic trusted metric logs. In order to reduce the communication cost of uploading the dynamic trusted metric report, based on the above embodiment, the present invention also provides the following embodiment, which may include the following content:

[0177] When a platform state controller reset request is received, it is determined whether the dynamic trusted measurement trigger instruction is executed; if the dynamic trusted measurement trigger instruction is executed, a reset request is allowed for the target platform state register used by the dynamic trusted measurement, and a split behavior event is added to the dynamic trusted measurement log in the target platform state register.

[0178] In order to ensure the validity of PCR data, this embodiment sets the PCR attribute of the target trusted computing chip to ensure that the PCR used by the dynamic trusted measurement is reset only when the dynamic trusted measurement is re-triggered, that is, when the dynamic trusted measurement trigger instruction is executed. At the same time, a SEPARATION ACTION event (segmentation behavior event) is added to the measurement log for distinguishing from the log. The dynamic trusted measurement log with event segmentation is shown in Table 4. After the dynamic trusted measurement log is distinguished, the subsequent remote attestation report only needs to submit the dynamic trusted measurement log and report after the most recent SEPARATION ACTION event. In other words, when a remote attestation request is received, the dynamic trusted measurement log and dynamic trusted measurement report after the most recent segmentation behavior event at the current time are submitted. Since the amount of data in the submitted dynamic trusted measurement report is small, the communication cost of remote attestation can be effectively reduced.

[0179] Table 4 Example of dynamic trust metric log with event segmentation

[0180]

[0181] As can be seen from the above, this embodiment introduces event segmentation in the dynamic trust measurement log, and only submits the dynamic trust measurement log and report after the most recent SEPARATION ACTION event when providing a report in the subsequent remote attestation, thereby effectively reducing the communication cost of remote attestation.

[0182] Finally, based on the technical solution of the present invention, Fig.11 Some possible application scenarios involved in the technical solution of the present invention are introduced by way of examples. Fig.11 The schematic diagram of the implementation structure of dynamic trust measurement in an exemplary embodiment of the present invention is an exemplary trusted computing system applicable to the dynamic trust measurement implementation method, which may include the following contents:

[0183] The trusted computing system of this embodiment includes a parallel and independently running host machine, a TPM2.0 equipped with a trusted root supporting dynamic trusted measurement, and a security center. The host machine runs a business system execution environment, and TPM2.0 runs a secure execution environment. The security center includes a trusted management service, which manages trusted-related policies and monitors trusted states. The firmware is deployed on the host machine, and the firmware static trusted measurement agent and trusted root driver are pre-deployed. The dynamic trusted measurement root is extended in the trusted root of TPM2.0 based on the ISO11889 TPM2.0 specification. The infrastructure ecosystem can reuse the open source ecosystem of TPM2.0, such as user-mode deployment of trusted network connections, trusted software stacks, kernel-mode deployment of static trusted measurements, trusted root drivers, and system booting. The trusted root reuses RTR, RTS, context management, key engine, and storage management. The non-volatile storage space of the trusted root can use an independent or isolated persistent storage space, and only the trusted root in the secure isolation environment is allowed to access; the volatile storage space of the trusted root consists of an independent memory space or a memory space based on a processor access control mechanism, such as a memory space that only allows TEE to access. The dynamic root of trust measurement includes three functions: dynamic trusted measurement, dynamic trusted measurement policy management and dynamic trusted measurement reporting, which can be extended based on TPM2.0 vendor commands. Figure 5 The startup of the trusted computing system and the implementation of dynamic trusted measurement are as follows: Fig.12 As shown, it may include the following:

[0184] The computing platform host hardware is powered on; the processor is initialized, including the IPL phase of the firmware, during which the resources required for the secure execution environment are initialized to enable the simulated trusted root of the secure execution environment; during the firmware startup process, the static trusted root measurement program and configuration file in the firmware, including the system boot program, are used to form a trust chain in the firmware stage; the system boot process measures the kernel and its configuration parameters to achieve trusted startup; based on the integrity verification platform and the trustworthiness of the kernel, the kernel loaded into the memory at this startup can be hashed to generate an integrity value, and compared with the benchmark value to achieve trusted verification. If it is not trusted, an alarm is issued according to the pre-set trusted startup policy, and startup is blocked. Among them, the trusted startup policy is a control level policy, for example: level 1 only records logs, level 2 records logs and organizes startup, etc. If the trusted startup policy allows startup, the dynamic trusted verification engine and dynamic trusted measurement agent are not allowed to start. If it is trusted, the startup continues. Start the kernel, initialize the system static trusted measurement agent, initialize the dynamic trusted measurement engine, and trigger the kernel state dynamic trusted measurement according to the dynamic trusted measurement strategy; enter the system operation phase, when the user loads the program, when the program starts, the program static trusted measurement agent measures the program to be executed, and during the program running process, the user state trusted measurement agent performs dynamic trusted measurement on the key data and context information of the program memory.

[0185] It should be noted that the above application scenarios are only shown to facilitate understanding of the concept and principle of the present invention, and the embodiments of the present invention are not limited in this respect. On the contrary, the embodiments of the present invention can be applied to any applicable scenario.

[0186] It can be seen from the above that this embodiment can achieve high-performance and low-cost dynamic trust measurement.

[0187] It should be noted that there is no strict order of execution between the steps in the present invention. As long as they comply with the logical order, these steps can be executed simultaneously or in a certain preset order. Figure 1-Figure 12 This is just a schematic and does not mean that this is the only execution order.

[0188] The present invention also provides a corresponding device for the dynamic trust metric implementation method, which further makes the method more practical. Among them, the device can be described from the perspective of functional modules and hardware. The dynamic trust metric implementation device provided by the present invention is introduced below. The device is used to implement the dynamic trust metric implementation method provided by the present invention. In this embodiment, the dynamic trust metric implementation device may include or be divided into one or more program modules, and the one or more program modules are stored in a storage medium and executed by one or more processors to complete the dynamic trust metric implementation method disclosed in Example 1. The program module referred to in this embodiment refers to a series of computer program instruction segments that can complete specific functions, which is more suitable for describing the execution process of the dynamic trust metric implementation device in the storage medium than the program itself. The following description will specifically introduce the functions of each program module of this embodiment. The dynamic trust metric implementation device described below and the dynamic trust metric implementation method described above can be referred to in correspondence with each other.

[0189] From the perspective of functional modules, see Fig.13 , Fig.13 The structure diagram of a dynamic trust metric implementation device provided in this embodiment in a specific implementation manner, the device may include:

[0190] The measurement root expansion module 131 is used to pre-construct a dynamic trusted measurement root including at least a dynamic trusted measurement strategy in a target trusted computing chip matching the target trusted root specification, based on the dynamic trusted measurement root technology stack conforming to the target trusted root specification; wherein the dynamic trusted measurement root runs in a secure isolation environment based on a processor isolation mechanism;

[0191] The metric agent external module 132 is used to pre-deploy a dynamic trusted metric agent in the user state of the computing subsystem running the business system execution environment;

[0192] The trusted measurement module 133 is used to call the dynamic trusted measurement root to perform dynamic trusted measurement on the kernel attitude measurement object based on the dynamic trusted measurement strategy after the dynamic trusted measurement root is enabled and the dynamic trusted measurement engine in the dynamic trusted measurement root is initialized; during the program running stage, the dynamic trusted measurement of the user attitude measurement object is performed through the dynamic trusted measurement agent.

[0193] Exemplarily, in some implementations of this embodiment, the above-mentioned trust metric module 133 may also be used for:

[0194] Call the dynamic trust measurement trigger instruction to start the dynamic trust measurement engine;

[0195] Access the base address of the target address and / or kernel memory data through the system memory security access path provided by the processor security isolation mechanism;

[0196] The dynamic trust measurement policy is called to perform dynamic trust measurement on the base address and / or kernel memory data accordingly.

[0197] Exemplarily, in some other implementations of this embodiment, the above-mentioned trust metric module 133 may also be used for:

[0198] Obtaining process memory data and / or context information and / or target code segments based on observation capabilities of the extended Berkeley packet filter;

[0199] Based on the dynamic trust measurement strategy, a dynamic trust measurement agent is used to perform dynamic trust measurement on process memory data and / or context information and / or target code segments accordingly.

[0200] Exemplarily, in some other implementations of this embodiment, the above-mentioned trust metric module 133 may also be used for:

[0201] When the program is loaded in the user state, the static trust measurement agent is used to perform static trust measurement on the program to obtain the static trust measurement result;

[0202] When the static trust measurement result is verified to be trustworthy, the program is started, and during the program running phase, the user attitude measurement object is dynamically trusted through the dynamic trust measurement agent.

[0203] As an exemplary implementation of the above embodiment, the above trust metric module 133 may also be used for:

[0204] When the result of the static trust measurement verification is unreliable, if a dynamic trust measurement request is received, the program startup is prohibited, and the recorded trust verification event log is sent to the security center to warn of the program startup failure;

[0205] If no dynamic trust measurement request is received, the program is prohibited from being started or a preset program trusted start policy is executed.

[0206] Exemplarily, in some other implementations of this embodiment, the above-mentioned trust metric module 133 may also be used for:

[0207] Dynamic trusted measurement roots use independent target storage spaces or target storage spaces with access permissions;

[0208] Call the dynamic trusted measurement root, perform trusted verification on the kernel attitude measurement object during the dynamic trusted measurement of the kernel attitude measurement object based on the dynamic trusted measurement strategy, and obtain the kernel trusted verification result and the kernel dynamic measurement log;

[0209] Store the kernel trusted verification result to the target storage space;

[0210] If the previous kernel dynamic measurement log of the kernel attitude measurement object corresponding to the kernel dynamic measurement log is the same as the kernel dynamic measurement log, then the measurement time is updated to the measurement time corresponding to the kernel dynamic measurement log;

[0211] If the previous kernel dynamic measurement log of the kernel attitude measurement object corresponding to the kernel dynamic measurement log is the same as the kernel dynamic measurement log, the kernel dynamic measurement log is stored.

[0212] Exemplarily, in some other implementations of this embodiment, the above-mentioned trust metric module 133 may also be used for:

[0213] Dynamic trusted measurement roots use independent target storage spaces or target storage spaces with access permissions;

[0214] When the dynamic trusted measurement agent is used to perform dynamic trusted measurement on the user attitude measurement object, the user attitude measurement object is verified in real time to obtain the user trusted verification result and the user dynamic measurement log;

[0215] The user dynamic measurement log and the trusted verification event log are stored in the target storage space, and the trusted verification event log audit record is extended to the platform status register of the trusted root.

[0216] Exemplarily, in some other implementations of this embodiment, the above-mentioned trust metric module 133 may also be used for:

[0217] The user mode loads the extended Berkeley packet filter to the mount point and sets a trusted verification policy based on the target measurement object and the corresponding measurement content;

[0218] The kernel state and the user state send the trusted verification policy to the mapping storage of the extended Berkeley packet filter in the kernel state, and when the trusted verification triggering condition is met, the extended Berkeley packet filter is triggered through the mount point;

[0219] The extended Berkeley packet filter obtains the trusted verification policy, captures the target process information based on the trusted verification policy, and sends the target process information to the dynamic trusted measurement agent;

[0220] The dynamic trust measurement agent performs dynamic trust measurement on the target process information and performs dynamic trust verification based on the dynamic trust measurement results.

[0221] Exemplarily, in some other implementations of this embodiment, the metric root expansion module 131 may also be used for:

[0222] Obtain dynamic trust measurement strategy parameter data;

[0223] When the platform owner authorization information is met and the enhanced authorization is based on the platform's trusted state, the dynamic trusted measurement policy management instruction is called based on the dynamic trusted measurement policy parameter data, and a dynamic trusted measurement policy is generated in the trusted root to obtain the policy management instruction execution result and policy index number.

[0224] As an exemplary implementation of the above embodiment, the above metric root expansion module 131 may also be used for:

[0225] When opening the first enhanced authorization session, calling the dynamic trusted measurement policy management instruction;

[0226] If the enhanced authorization is determined to be successful, the parameter legitimacy of the dynamic trusted measurement policy parameter data is verified;

[0227] When the parameters of the dynamic trusted measurement policy parameter data are legal, a policy storage space for storing the dynamic trusted measurement policy is defined;

[0228] The dynamic trusted measurement policy generated based on the dynamic trusted measurement policy parameter data is stored in the policy storage space, and the policy management instruction execution result and the policy index number are obtained;

[0229] The first enhanced authorization session is released after obtaining the policy management instruction execution result and the policy index number.

[0230] As another exemplary implementation of the above embodiment, the above metric root expansion module 131 may also be used for:

[0231] Dynamic trusted measurement policy parameter data including at least a policy command code, an operation type, a measurement object type, a random cycle trigger policy, a measurement algorithm, and measurement result extended platform status register information are obtained to trigger the dynamic trusted measurement according to the random cycle trigger policy.

[0232] As another exemplary implementation of the above embodiment, the above metric root expansion module 131 may also be used for:

[0233] When receiving a dynamic trusted measurement policy management instruction carrying a space application, feedback the address information of the policy storage space;

[0234] When a dynamic trusted measurement policy management instruction carrying data storage is received, the dynamic trusted measurement policy is stored in the policy storage space.

[0235] As another exemplary implementation of the above embodiment, the above metric root expansion module 131 may also be used for:

[0236] When receiving a dynamic trusted measurement policy management instruction call request, obtaining endorsement domain authorization data or platform domain authorization data;

[0237] If the endorsement domain authorization data or the platform domain authorization data meets the preset domain authorization conditions, the dynamic trusted measurement policy management instruction is called;

[0238] If the endorsement domain authorization data or the platform domain authorization data does not meet the preset domain authorization conditions, the dynamic trusted measurement policy management instruction is rejected.

[0239] Exemplarily, in some other implementations of this embodiment, the above-mentioned trust metric module 133 may also be used for:

[0240] Acquire trigger parameters including at least a trigger command code, an operation type, authorization data, a measurement object type, and a target measurement strategy; the trigger parameters are input parameters of a dynamic trusted measurement trigger instruction;

[0241] Call the dynamic trusted measurement trigger instruction, execute the dynamic trusted measurement trigger instruction in the trusted root according to different measurement object types, target measurement strategies and authorization data, and return the measurement trigger instruction execution result and result parameters.

[0242] As an exemplary implementation of the above embodiment, the above trust metric module 133 may also be used for:

[0243] If the current measurement object type is a first kernel attitude measurement object, if the first dynamic trusted measurement strategy used by the first kernel attitude measurement object has been deployed, and the authorization data contained in the dynamic trusted measurement trigger instruction is legal, then the dynamic trusted measurement engine is triggered according to the first dynamic trusted measurement strategy, and the measurement trigger instruction execution success information is returned;

[0244] If the current measurement object type is the first user attitude measurement object, if the second dynamic trusted measurement strategy used by the first user attitude measurement object has been deployed, and the authorization data contained in the dynamic trusted measurement trigger instruction is legal, then the measurement strategy data corresponding to the second dynamic trusted measurement strategy is returned.

[0245] As another exemplary implementation of the above embodiment, the above trust metric module 133 may also be used for:

[0246] When receiving a call request for a dynamic trusted measurement trigger instruction, determining whether the caller has measurement trigger authority;

[0247] If the caller has the measurement triggering permission, it is determined whether to build a trust chain;

[0248] If the trust chain has been built and the system trust base is credible, the dynamic trust measurement trigger instruction is allowed to be called;

[0249] Perform security audits during the execution of dynamic trusted measurement trigger instructions.

[0250] Exemplarily, in some other implementations of this embodiment, the above device may further include a report generation module, which may be used to:

[0251] Get the metrics report parameter data;

[0252] In the state of enhanced authorization based on the platform trusted state, a dynamic trusted measurement report generation instruction is called to generate a dynamic trusted measurement report in the trusted root based on the measurement report parameter data.

[0253] As another exemplary implementation of the above embodiment, the above report generation module may also be used for:

[0254] When the second enhanced authorization session is opened, a dynamic trust metric report generation instruction is called;

[0255] If the enhanced authorization is determined to be successful, verify the parameter legitimacy of the measurement report parameter data;

[0256] When the parameters of the measurement report parameter data are legal, the corresponding platform status register is signed according to the measurement object type and target policy index number in the measurement report parameter data, a trusted report signature result including the platform status register is generated, and a dynamic trusted measurement report and a trusted report signature result are returned;

[0257] The second enhanced authorization session is released after obtaining the dynamic trust measurement report and the trust report signature result.

[0258] Exemplarily, in some other implementations of this embodiment, the above device may further include a PCR use module, which may be used for:

[0259] When receiving a platform state controller reset request, determining whether a dynamic trust measurement trigger instruction is executed;

[0260] If the dynamic trusted measurement triggers the execution of the instruction, a reset request is allowed for the target platform status register used by the dynamic trusted measurement, and a split behavior event is added to the dynamic trusted measurement log in the target platform status register.

[0261] As another exemplary implementation of the above embodiment, the above apparatus may further include a remote proof submission module, which may be used to:

[0262] When a remote attestation request is received, the dynamic trust measurement log and dynamic trust measurement report after the most recent segmentation behavior event at the current time are submitted.

[0263] The functions of the functional modules of the dynamic trust metric implementation device described in this embodiment can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0264] It can be seen from the above that this embodiment can realize low-cost promotion and implementation of dynamic trust metrics with high security performance.

[0265] The dynamic trust measurement implementation device mentioned above is described from the perspective of functional modules. Furthermore, the present invention also provides an electronic device, which is described from the perspective of hardware. Fig.14 The following is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention in one implementation manner. Fig.14 As shown, the electronic device includes a memory 140 for storing a computer program; and a processor 141 for implementing the steps of the dynamic trust metric implementation method mentioned in any of the above embodiments when executing the computer program.

[0266] Among them, the processor 141 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the processor 141 may also be a controller, a microcontroller, a microprocessor or other data processing chip. The processor 141 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 141 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 141 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 141 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0267] The memory 140 may include one or more computer non-volatile storage media, which may be non-transitory. The memory 140 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the memory 140 may be an internal storage unit of an electronic device, such as a hard disk of a server. In other embodiments, the memory 140 may also be an external storage device of an electronic device, such as a plug-in hard disk equipped on a server, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Further, the memory 140 may also include both an internal storage unit of an electronic device and an external storage device. The memory 140 may not only be used to store application software and various types of data installed in the electronic device, such as: the code of the program in the process of executing the dynamic trust measurement implementation method, but also be used to temporarily store data that has been output or is to be output. In this embodiment, the memory 140 is used to store at least the following computer program 1401, wherein after the computer program is loaded and executed by the processor 141, the relevant steps of the dynamic trust measurement implementation method disclosed in any of the above embodiments can be implemented. In addition, the resources stored in the memory 140 may also include an operating system 1402 and data 1403, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 1402 may include Windows, Unix, Linux, etc. The data 1403 may include, but is not limited to, data corresponding to the dynamic trust measurement implementation result, etc.

[0268] In some embodiments, the electronic device may further include a display screen 142, an input / output interface 143, a communication interface 144 or a network interface, a power supply 145 and a communication bus 146. Among them, the display screen 142 and the input / output interface 143, such as a keyboard, belong to the user interface, and exemplary user interfaces may also include standard wired interfaces, wireless interfaces, and the like. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, and the like. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface. The communication interface 144 may exemplarily include a wired interface and / or a wireless interface, such as a WI-FI interface, a Bluetooth interface, and the like, which are generally used to establish a communication connection between the electronic device and other electronic devices. The communication bus 146 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, and the like. The bus may be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, Fig.14 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0269] Those skilled in the art will understand that Fig.14 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, for example, it may also include a sensor 147 to implement various functions.

[0270] The functions of the functional modules of the electronic device described in this embodiment can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0271] It can be seen from the above that this embodiment can realize low-cost promotion and implementation of dynamic trust metrics with high security performance.

[0272] It can be understood that if the dynamic trust metric in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the relevant technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes but is not limited to: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, multimedia card, card-type memory (such as SD or DX memory, etc.), magnetic memory, removable disk, CD-ROM, magnetic disk or optical disk, etc. Various media that can store program codes. Based on this, the present invention also provides a non-volatile storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of implementing the dynamic trust metric described in any of the above embodiments are performed.

[0273] It is understandable that if the dynamic trust metric in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, the computer software product does not need to be stored in a physical storage medium. For example, it can be directly transmitted to a computer or other device with information processing capabilities through a wired network or a wireless network to perform all or part of the steps of the methods of each embodiment of the present invention. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the relevant technology or all or part of the technical solution can be embodied in the form of a software product. Based on this, the present invention also provides a computer program product that stores a computer program. When the computer program is executed by a processor, the steps of implementing the dynamic trust metric described in any of the above embodiments are performed.

[0274] Finally, the present invention also provides a trusted computing system, see Fig.15 , which may include the following:

[0275] The trusted computing system requires itself to have a high security protection mechanism. The trusted computing system may include a computing subsystem 151 and a trusted subsystem 152. The computing subsystem 151 is the subject for implementing the computing, which may also be referred to as a host system, a host computer, etc. The trusted subsystem 152 runs in parallel with the computing subsystem 151, but the operation of the trusted subsystem 152 is logically independent of the computing subsystem 151. The trusted subsystem 152 can provide a trusted support function for the computing subsystem 151 in an active manner. The computing subsystem 151 is used to run the business system execution environment, and the trusted subsystem 152 runs a secure isolation environment. The trusted subsystem includes a target trusted computing chip, which is used to implement the steps of the dynamic trusted measurement implementation method as recorded in any of the previous embodiments.

[0276] In addition, the trusted computing system also includes a security center for providing trusted management services, through which the trusted policies and trusted states of a large number of servers in a cluster or data center are managed in batches. The target trusted computing chip can be TPM2.0 or TCM2.0, and the infrastructure ecosystem can reuse the open source ecosystem of the target trusted computing chip, including but not limited to RTR, RTS, and trusted root software stack, where the trusted root software stack includes basic software such as kernel trusted boot, trusted root driver, static trusted measurement agent, TSS (Trusted Software Stack), supporting trusted network connection, as well as context management, key engine, storage management, etc. Among them, the trusted network connection includes remote attestation, which uses the chip to realize platform identity authentication and integrity verification, thereby solving the terminal's security status authentication and post-access control problems.

[0277] The functions of the functional modules of the trusted computing system described in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0278] It can be seen from the above that the trusted computing system of this embodiment can realize low-cost promotion and implementation of dynamic trusted metrics with high security performance.

[0279] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the hardware disclosed in the embodiments, including devices, electronic devices, and trusted computing systems, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part.

[0280] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0281] The above is a detailed introduction to a dynamic trust measurement implementation method, device, electronic device, non-volatile storage medium, computer program product and trusted computing system provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that based on the embodiments of the present invention, for ordinary technicians in this technical field, all other embodiments obtained without creative work are within the scope of protection of the present invention. Without departing from the principles of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. A method for implementing dynamic trust measurement, characterized in that: include: Based on the dynamic trusted measurement root technology stack conforming to the target trusted root specification, a dynamic trusted measurement root including at least a dynamic trusted measurement strategy is pre-constructed in a target trusted computing chip matching the target trusted root specification, and the infrastructure ecosystem reuses the open source ecosystem of the target trusted computing chip; The dynamic trusted measurement root includes a dynamic trusted measurement policy management instruction and a dynamic trusted measurement trigger instruction; wherein the dynamic trusted measurement policy management instruction is used to implement the management of the dynamic trusted measurement policy, including deploying the dynamic trusted measurement policy and updating the dynamic trusted measurement policy. Accordingly, a function capable of calling the dynamic trusted measurement policy management instruction is set in the user state of the business system execution environment to call the instruction for the user; the dynamic trusted measurement trigger instruction is used to trigger the dynamic trusted measurement of the kernel attitude measurement object and the user attitude measurement object; Pre-deploy a dynamic trusted measurement agent in the user state of the computing subsystem running the business system execution environment; After the dynamic trusted measurement root is enabled and the dynamic trusted measurement engine in the dynamic trusted measurement root is initialized, the dynamic trusted measurement root is called to perform dynamic trusted measurement on the kernel attitude measurement object based on the dynamic trusted measurement strategy; during the program running stage, the dynamic trusted measurement agent is used to perform dynamic trusted measurement on the user attitude measurement object; The trusted root of the target trusted computing chip does not include a measurement root, and the dynamic trusted measurement root runs in a secure isolation environment based on a processor isolation mechanism to implement dynamic trusted measurement of the measurement object.

2. The method for implementing dynamic trustworthiness measurement according to claim 1, characterized in that: The calling of the dynamic trusted measurement root to perform dynamic trusted measurement on the kernel attitude measurement object based on the dynamic trusted measurement strategy includes: Invoke a dynamic trust metric trigger instruction to start the dynamic trust metric engine; Access the base address of the target address and / or kernel memory data through the system memory security access path provided by the processor security isolation mechanism; The dynamic trust measurement strategy is called to perform dynamic trust measurement on the base address and / or the kernel memory data accordingly.

3. The method for implementing dynamic trustworthiness measurement according to claim 1, characterized in that: The step of performing dynamic trust measurement on the user attitude measurement object by the dynamic trust measurement agent includes: Obtaining process memory data and / or context information and / or target code segments based on observation capabilities of the extended Berkeley packet filter; Based on the dynamic trust measurement strategy, the dynamic trust measurement agent is used to perform dynamic trust measurement on the process memory data and / or context information and / or the target code segment accordingly.

4. The method for implementing dynamic trustworthiness measurement according to claim 1, characterized in that: In the program running stage, after the dynamic trust measurement agent performs dynamic trust measurement on the user attitude measurement object, the method further includes: When a program is loaded in user mode, a static trust measurement is performed on the program through a static trust measurement agent to obtain a static trust measurement result; When the static trust measurement result is verified to be trustworthy, the program is started, and during the program running phase, the dynamic trust measurement is performed on the user attitude measurement object through the dynamic trust measurement agent.

5. The method for implementing dynamic trustworthiness measurement according to claim 4, characterized in that: After the static trust measurement is performed on the program by the static trust measurement agent, the method further includes: When the static trust measurement result is verified to be untrustworthy, if a dynamic trust measurement request is received, the program is prohibited from being started, and the recorded trust verification event log is sent to the security center to warn of the program startup failure; If no dynamic trust measurement request is received, the program is prohibited from being started or a preset program trusted start policy is executed.

6. The method for implementing dynamic trustworthiness measurement according to claim 1, characterized in that: The dynamic trusted measurement root uses a target storage space that is independent or has access rights, and the calling of the dynamic trusted measurement root performs dynamic trusted measurement on the kernel attitude measurement object based on the dynamic trusted measurement policy, including: Calling the dynamic trusted measurement root, performing trusted verification on the kernel attitude measurement object during dynamic trusted measurement of the kernel attitude measurement object based on the dynamic trusted measurement strategy, and obtaining a kernel trusted verification result and a kernel dynamic measurement log; Storing the kernel trusted verification result in the target storage space; If the last kernel dynamic measurement log of the kernel attitude measurement object corresponding to the kernel dynamic measurement log is the same as the kernel dynamic measurement log, then the measurement time is updated to be the measurement time corresponding to the kernel dynamic measurement log; If the last kernel dynamic measurement log of the kernel attitude measurement object corresponding to the kernel dynamic measurement log is the same as the kernel dynamic measurement log, the kernel dynamic measurement log is stored.

7. The method for implementing dynamic trustworthiness measurement according to claim 1, characterized in that: The dynamic trusted measurement root uses a target storage space that is independent or has access rights, and the dynamic trusted measurement agent performs dynamic trusted measurement on the user attitude measurement object, including: When the dynamic trust measurement agent performs dynamic trust measurement on the user attitude measurement object, the user attitude measurement object is verified in real time to obtain a user trust verification result and a user dynamic measurement log; The user dynamic measurement log and the trusted verification event log are stored in the target storage space, and the trusted verification event log audit record is extended to the platform status register of the trusted root.

8. The method for implementing dynamic trustworthiness measurement according to any one of claims 1 to 7, characterized in that: The user attitude measurement object is target process information, and the dynamic trust measurement of the user attitude measurement object by the dynamic trust measurement agent includes: The user mode loads the extended Berkeley packet filter to the mount point, and sets a trusted verification policy based on the target measurement object and the corresponding measurement content; The kernel state and the user state send the trusted verification policy to the mapping storage of the extended Berkeley packet filter in the kernel state, and when the trusted verification triggering condition is met, the extended Berkeley packet filter is triggered through the mount point; The extended Berkeley packet filter obtains a trusted verification policy, captures target process information based on the trusted verification policy, and sends the target process information to the dynamic trusted measurement agent; The dynamic trust measurement agent performs dynamic trust measurement on the target process information, and performs dynamic trust verification according to the dynamic trust measurement result.

9. The method for implementing dynamic trustworthiness measurement according to any one of claims 1 to 7, characterized in that: The construction includes at least a dynamic trusted measurement root of a dynamic trusted measurement strategy, including: Obtain dynamic trust measurement strategy parameter data; When the platform owner authorization information is met and the enhanced authorization is based on the platform trusted state, the dynamic trusted measurement policy management instruction is called based on the dynamic trusted measurement policy parameter data, a dynamic trusted measurement policy is generated in the trusted root, and a policy management instruction execution result and a policy index number are obtained.

10. The method for implementing dynamic trust measurement according to claim 9, characterized in that: When the platform owner authorization information is satisfied and the enhanced authorization is based on the platform trusted state, based on the dynamic trusted measurement policy parameter data, the dynamic trusted measurement policy management instruction is called, a dynamic trusted measurement policy is generated in the trusted root, and the policy management instruction execution result and the policy index number are obtained, including: When opening the first enhanced authorization session, calling the dynamic trusted measurement policy management instruction; If it is determined that the enhanced authorization is successful, verify the parameter legitimacy of the dynamic trusted measurement policy parameter data; When the parameters of the dynamic trusted measurement policy parameter data are legal, a policy storage space for storing the dynamic trusted measurement policy is defined; The dynamic trusted measurement policy generated based on the dynamic trusted measurement policy parameter data is stored in the policy storage space to obtain the policy management instruction execution result and the policy index number; The first enhanced authorization session is released after obtaining the policy management instruction execution result and the policy index number.

11. The method for implementing dynamic trust measurement according to claim 9, characterized in that: The step of obtaining dynamic trusted measurement strategy parameter data includes: Dynamic trusted measurement policy parameter data including at least a policy command code, an operation type, a measurement object type, a random period triggering policy, a measurement algorithm, and measurement result extended platform status register information are acquired to trigger processing of the dynamic trusted measurement according to the random period triggering policy.

12. The method for implementing dynamic trustworthiness measurement according to claim 10, characterized in that: The storing in the policy storage space includes: When receiving a dynamic trusted measurement policy management instruction carrying a space application, feeding back the address information of the policy storage space; When a dynamic trusted metric policy management instruction carrying data storage is received, the dynamic trusted metric policy is stored in the policy storage space.

13. The method for implementing dynamic trust measurement according to claim 9, characterized in that: The invoking of the dynamic trusted measurement policy management instruction includes: When receiving a dynamic trusted measurement policy management instruction call request, obtaining endorsement domain authorization data or platform domain authorization data; If the endorsement domain authorization data or the platform domain authorization data meets the preset domain authorization condition, then calling the dynamic trust measurement policy management instruction; If the endorsement domain authorization data or the platform domain authorization data does not meet the preset domain authorization conditions, the dynamic trust measurement policy management instruction is rejected.

14. The method for implementing dynamic trustworthiness measurement according to any one of claims 1 to 7, characterized in that: The calling of the dynamic trust measurement root performs dynamic trust measurement on the kernel attitude measurement object based on the dynamic trust measurement strategy; During the program running phase, the dynamic trust measurement agent is used to perform dynamic trust measurement on the user attitude measurement object, including: Acquire trigger parameters including at least a trigger command code, an operation type, authorization data, a measurement object type, and a target measurement strategy; the trigger parameters are input parameters of a dynamic trusted measurement trigger instruction; The dynamic trusted measurement trigger instruction is called, and the dynamic trusted measurement trigger instruction is executed in the trusted root according to different measurement object types, target measurement strategies and authorization data, and the measurement trigger instruction execution result and result parameters are returned.

15. The method for implementing dynamic trustworthiness measurement according to claim 14, characterized in that: The executing of the dynamic trusted measurement trigger instruction in the trusted root according to different measurement object types, target measurement strategies and authorization data, and returning the measurement trigger instruction execution result and result parameters, includes: If the current measurement object type is a first kernel attitude measurement object, if the first dynamic trusted measurement strategy used by the first kernel attitude measurement object has been deployed, and the authorization data contained in the dynamic trusted measurement trigger instruction is legal, then trigger the dynamic trusted measurement engine according to the first dynamic trusted measurement strategy, and return measurement trigger instruction execution success information; If the current measurement object type is a first user attitude measurement object, if the second dynamic trusted measurement strategy used by the first user attitude measurement object has been deployed, and the authorization data contained in the dynamic trusted measurement trigger instruction is legal, then the measurement strategy data corresponding to the second dynamic trusted measurement strategy is returned.

16. The method for implementing dynamic trustworthiness measurement according to claim 14, characterized in that: The calling of the dynamic trustworthy metric trigger instruction includes: When receiving a call request for a dynamic trusted measurement trigger instruction, determining whether the caller has measurement trigger authority; If the caller has the measurement triggering authority, determining whether to establish a trust chain; If the trust chain has been built and the system trust base is credible, the dynamic trust measurement trigger instruction is allowed to be called; A security audit is performed during the execution of the dynamic trust metric triggering instruction.

17. The method for implementing dynamic trustworthiness measurement according to any one of claims 1 to 7, characterized in that: The calling of the dynamic trust measurement root performs dynamic trust measurement on the kernel attitude measurement object based on the dynamic trust measurement strategy; In the program running stage, after the dynamic trust measurement agent performs dynamic trust measurement on the user attitude measurement object, it also includes: Get the metrics report parameter data; In a state of enhanced authorization based on a platform trusted state, a dynamic trusted measurement report generation instruction is called to generate a dynamic trusted measurement report in a trusted root based on the measurement report parameter data.

18. The method for implementing dynamic trust measurement according to claim 17, characterized in that: The method of invoking a dynamic trusted measurement report generation instruction in a state of enhanced authorization based on a platform trusted state, and generating a dynamic trusted measurement report in a trusted root based on the measurement report parameter data, includes: When the second enhanced authorization session is opened, a dynamic trust metric report generation instruction is called; If the enhanced authorization is determined to be successful, verify the parameter legitimacy of the measurement report parameter data; When the parameters of the measurement report parameter data are legal, the corresponding platform status register is signed according to the measurement object type and the target policy index number in the measurement report parameter data, a trusted report signature result including the platform status register is generated, and a dynamic trusted measurement report and a trusted report signature result are returned; The second enhanced authorization session is released after obtaining the dynamic trust metric report and the trust report signature result.

19. The method for implementing dynamic trustworthiness measurement according to any one of claims 1 to 7, characterized in that: After initializing the dynamic trusted metric engine in the dynamic trusted metric root, the method further includes: When receiving a platform state controller reset request, determining whether a dynamic trust measurement trigger instruction is executed; If the dynamic trusted metric triggering instruction is executed, a reset request is allowed for the target platform status register used by the dynamic trusted metric, and a split behavior event is added to the dynamic trusted metric log in the target platform status register.

20. The method for implementing dynamic trustworthiness measurement according to claim 19, characterized in that: After adding the segmentation behavior event in the dynamic trust metric log in the target platform status register, the method further includes: When a remote attestation request is received, the dynamic trust measurement log and dynamic trust measurement report after the most recent segmentation behavior event at the current time are submitted.

21. A dynamic trust measurement implementation device, characterized in that: include: A measurement root extension module is used to pre-construct a dynamic trusted measurement root including at least a dynamic trusted measurement strategy in a target trusted computing chip that matches the target trusted root specification, based on the dynamic trusted measurement root technology stack conforming to the target trusted root specification, and the infrastructure ecosystem reuses the open source ecosystem of the target trusted computing chip; wherein the trusted root of the target trusted computing chip does not include a measurement root, and the dynamic trusted measurement root runs in a secure isolation environment based on a processor isolation mechanism, and is used to implement dynamic trusted measurement of measurement objects; the dynamic trusted measurement root includes dynamic trusted measurement strategy management instructions and dynamic trusted measurement trigger instructions; wherein the dynamic trusted measurement strategy management instructions are used to implement the management of dynamic trusted measurement strategies, including deploying dynamic trusted measurement strategies and updating dynamic trusted measurement strategies, and correspondingly, a function capable of calling dynamic trusted measurement strategy management instructions is correspondingly set in the user state of the business system execution environment to call the instruction for users; the dynamic trusted measurement trigger instruction is used to trigger dynamic trusted measurement of kernel attitude measurement objects and user attitude measurement objects; The external module of the measurement agent is used to pre-deploy the dynamic trusted measurement agent in the user state of the computing subsystem running the business system execution environment; A trusted measurement module is used to call the dynamic trusted measurement root to perform dynamic trusted measurement on the kernel attitude measurement object based on the dynamic trusted measurement strategy after enabling the dynamic trusted measurement root and initializing the dynamic trusted measurement engine in the dynamic trusted measurement root; during the program running stage, dynamically trust the user attitude measurement object through the dynamic trusted measurement agent.

22. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the processor is used to implement the steps of the dynamic trust metric implementation method according to any one of claims 1 to 20 when executing a computer program stored in the memory.

23. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for implementing dynamic trust measurement as claimed in any one of claims 1 to 20 are implemented.

24. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method for implementing dynamic trust measurement according to any one of claims 1 to 20 are implemented.

25. A trusted computing system, characterized in that: Includes computing subsystems and trusted subsystems that run in parallel and independently; The computing subsystem is used to run the business system execution environment, and the trusted subsystem runs a secure isolation environment; The trusted subsystem includes a target trusted computing chip, which is used to implement the steps of the dynamic trusted measurement implementation method according to any one of claims 1 to 20.

Citation Information

Patent Citations

  • Creditability detection method of computer

    CN102214278A

  • Dynamic trusted measurement method and safe embedded system

    CN102436566A

  • Static measurement method based on a trusted computing platform with a double-system structure

    CN109871694A

  • Dynamic measurement method based on a dual-architecture trusted computing platform

    CN109918915A

  • Active measurement system of Windows system based on SGX architecture

    CN112214769A