Hardware root of trust agent interaction method based on security virtualization and network device

By building independent HRoT Agent and HRoT Driver, using TEE manager to manage their permissions and life cycles, the problems of low processor security and excessive permissions in the existing technology are solved, and higher security and flexible deployment are achieved.

WO2024188223A1PCT designated stage expired Publication Date: 2024-09-19HUAWEI TECH CO LTD

Patent Information

Application Number
PCT/CN2024/081073
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-16
Filing Date
2024-03-12
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

The existing processors based on TEE system architecture have low security and cannot effectively handle high-security operations. The HRoT Agent program relies on TEE OS to cause large code scale, wide attack scope, and excessive permissions, making it difficult to ensure security.

Method used

By building HRoT Agent and HRoT Driver as independent TEE programs, independent of TEE OS, the TEE manager manages its permissions and life cycles, minimizing permissions and isolation, reducing attack surface, and reducing dependencies.

Benefits of technology

Improves processor security, reduces the attack surface and permission risks of HRoT Agent and HRoT Driver, simplifies the deployment and authentication process, and enhances the security of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024081073_19092024_PF_FP_ABST
    Figure CN2024081073_19092024_PF_FP_ABST
Patent Text Reader

Abstract

A hardware root of trust agent interaction method based on security virtualization, the method being executed by a network device. The network device comprises a main service processor and a hardware root of trust. The main service processor comprises a hardware root of trust agent program, a hardware root of trust driver program, and a trusted execution environment manager. A hardware root of trust agent is managed by the trusted execution environment manager. After receiving a calling request instruction of a hardware root of trust, the hardware root of trust agent generates a calling request instruction of the hardware root of trust recognizable by a hardware root of trust driver, so that the hardware root of trust agent does not need to comprise a trusted execution environment operating system, thereby achieving a small code scale, a small attack surface, and high security of a trusted base of the hardware root of trust agent. The hardware root of trust agent does not need to be bound, delivered, deployed and authenticated with the trusted execution environment operating system, so that the cost of the hardware root of trust agent is reduced, and the deployment is more flexible.
Need to check novelty before this filing date? Find Prior Art

Description

Hardware trusted root agent interaction method and network device based on secure virtualization

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on March 16, 2023, with application number 202310316371.X and application name “A hardware trusted root agent interaction method and network device based on secure virtualization”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present invention relates to the field of data security technology, and in particular to a hardware trusted root agent interaction method and network equipment based on secure virtualization. Background Art

[0003] Existing computer processors are increasingly supporting security architectures, enabling them to perform secure operations such as processing sensitive data and performing sensitive calculations. The Trusted Execution Environment (TEE) system architecture is one of the mainstream processor security architectures. However, existing processors based on the TEE system architecture have relatively low security and are unable to handle high-security operations.

[0004] Summary of the Invention

[0005] In order to solve the above problems, an embodiment of the present application provides a hardware trusted root agent interaction method based on secure virtualization, and the HRoT Driver can be constructed as an independent TEE to achieve isolation from other components. The HRoT Driver TEE is isolated from the privilege level of its manager TEE manager, and its permissions, such as access rights to the address space, are managed by the TEE manager. HRoT only has permissions granted by the TEE manger and will not pose a threat to other components due to excessive permissions. The HRoT Driver permissions are minimized and isolated from other components of the system to ensure that when the HRoT Driver has its own vulnerabilities or is attacked, it will not pose a security threat to other components in the system. In addition, the present application also provides a network device corresponding to the hardware trusted root agent interaction method based on secure virtualization.

[0006] To this end, the following technical solutions are adopted in the embodiments of the present application:

[0007] In a first aspect, an embodiment of the present application provides a hardware trusted root agent interaction method based on secure virtualization, the method being executed by a network device, the network device including a main business processor and a hardware trusted root, the main business processor including a hardware trusted root agent program, a hardware trusted root driver and a trusted execution environment manager, the method comprising: the trusted execution environment manager receiving a first call request instruction and forwarding it to the hardware trusted root agent program, the first call request instruction being used to call the hardware trusted root, the trusted execution environment manager being used to manage the hardware trusted root agent program and the hardware trusted root driver; the hardware trusted root agent program constructing a second call request instruction based on the first call request instruction and forwarding it to the hardware trusted root driver, the second call request instruction being an instruction of a specific data structure recognizable by the hardware trusted root driver; the hardware trusted root driver sending a drive instruction to the hardware trusted root based on the second call request instruction, the drive instruction being used to instruct the hardware trusted root to perform high-security operations.

[0008] In this embodiment, the hardware trusted root agent is managed by the trusted execution environment manager. Upon receiving a hardware trusted root call request instruction, the hardware trusted root agent generates a hardware trusted root call request instruction recognizable by the hardware trusted root driver. This eliminates the need for the hardware trusted root agent to include a trusted execution environment operating system, resulting in a small code size, a small attack surface, and high security for the hardware trusted root agent's trusted base. The hardware trusted root agent does not need to be bundled with the trusted execution environment operating system for delivery, deployment, and authentication, reducing the cost of the hardware trusted root agent and making its deployment more flexible.

[0009] In one embodiment, before the trusted execution environment manager receives the first call request instruction and forwards it to the hardware trusted root agent program, the method further includes: the application and / or operating system of the regular world of the main business processor generates the first call request instruction and sends it to the trusted execution environment manager; and / or the trusted program of the secure world of the main business processor generates the first call request instruction and sends it to the trusted execution environment manager.

[0010] In one embodiment, the hardware trusted root agent program constructs a second call request instruction based on the first call request instruction, specifically including: the hardware trusted root agent program detects the legality of the first call request instruction; the hardware trusted root agent program responds to the first call request instruction as a legal instruction, and constructs the second call request instruction based on the first call request instruction.

[0011] In this embodiment, the hardware trusted root agent checks the legality or authority of the hardware trusted root call request instruction, which can prevent the regular world program from issuing illegal hardware trusted root operation requests, such as reading keys.

[0012] In one embodiment, the hardware trusted root driver sends a driving instruction to the hardware trusted root based on the second call request instruction, specifically including: the hardware trusted root driver receives the second call request instruction and transmits it to the queue of the output port of the hardware trusted root driver; the hardware trusted root driver determines that when the second call request instruction is output from the queue of the output port, it forwards the driving instruction corresponding to the second call request instruction.

[0013] In this embodiment, the hardware trusted root driver may have multiple programs sending requests to call the hardware trusted root. The hardware trusted root driver can set an output queue on the output port to temporarily store the call request instructions and send them to the hardware trusted root in sequence, thereby preventing two call request instructions from simultaneously preempting the hardware trusted root.

[0014] In one embodiment, the hardware trusted root agent program is an independent trusted execution environment program managed by the trusted execution environment manager.

[0015] In this embodiment, the hardware trusted root agent is constructed as an independent trusted execution environment program managed by a trusted execution environment manager. The hardware trusted root agent does not rely on the trusted execution environment operating system and can support hardware trusted root call request instructions from regular world programs (such as applications, operating systems, etc.), other trusted execution environment programs, and trusted applications and trusted execution environment operating system programs in other trusted execution environments. The trusted base code of the hardware trusted root agent no longer contains the trusted execution environment operating system, and uses a lightweight trusted execution environment manager as the trusted base, which reduces the size of the trusted base. The trusted base of the hardware trusted root agent has a small code size, a small attack surface, and high security.

[0016] In one embodiment, the hardware trusted root driver is an independent trusted execution environment program managed by the trusted execution environment manager.

[0017] In this implementation, the hardware trusted root driver is implemented as an independent trusted execution environment (TEE) program managed by the TEE manager. The hardware trusted root driver is independent of the TEE operating system and is isolated from other system components. The hardware trusted root driver has minimal permissions and is isolated from other system components, ensuring that even if the hardware trusted root driver contains vulnerabilities or is attacked, it will not pose a security threat to other components in the system.

[0018] In a second aspect, an embodiment of the present application provides a network device, comprising a main business processor and a hardware trusted root, wherein the main business processor comprises a hardware trusted root agent, a hardware trusted root driver and a trusted execution environment manager, wherein the trusted execution environment manager is configured to receive a first call request instruction and forward it to the hardware trusted root agent, wherein the first call request instruction is configured to call the hardware trusted root, and the trusted execution environment manager is configured to manage the hardware trusted root agent and the hardware trusted root driver; the hardware trusted root agent is configured to construct a second call request instruction based on the first call request instruction and forward it to the hardware trusted root driver, wherein the second call request instruction refers to an instruction of a specific data structure recognizable by the hardware trusted root driver; the hardware trusted root driver is configured to send a drive instruction to the hardware trusted root based on the second call request instruction, wherein the drive instruction is configured to instruct the hardware trusted root to perform high-security operations.

[0019] In one embodiment, the main business processor is used to send the first call request instruction generated by the application and / or operating system in the regular world to the trusted execution environment manager; and / or send the first call request instruction generated by the trusted program in the secure world to the trusted execution environment manager.

[0020] In one embodiment, the hardware trusted root agent is specifically configured to detect the legitimacy of the first call request instruction; and in response to the first call request instruction being a legal instruction, construct the second call request instruction based on the first call request instruction.

[0021] In one embodiment, the hardware trusted root driver is specifically configured to receive the second call request instruction and transmit it to a queue of an output port of the hardware trusted root driver; and

[0022] When determining that the second call request instruction is output from the queue of the output port, forward the driving instruction corresponding to the second call request instruction.

[0023] In one embodiment, the hardware trusted root agent program is an independent trusted execution environment program managed by the trusted execution environment manager.

[0024] In one embodiment, the hardware trusted root driver is an independent trusted execution environment program managed by the trusted execution environment manager.

[0025] In a third aspect, an embodiment of the present application provides a network device, comprising a main business processor and a hardware security module, wherein the main business processor is applied to a security exception level 2 security virtualization system, and the main business processor comprises: a hardware security module agent, a hardware security module driver and a security partition manager, wherein the security partition manager is configured to receive a first call request instruction and forward it to the hardware security module agent, wherein the first call request instruction is configured to retrieve the hardware security module, and wherein the security partition manager is configured to manage the hardware security module agent and the hardware security module driver; wherein the hardware security module agent is configured to construct a second call request instruction based on the first call request instruction and forward it to the hardware security module driver, wherein the second call request instruction refers to an instruction of a specific data structure recognizable by the hardware security module driver; and wherein the hardware security module driver is configured to send a drive instruction to the hardware security module based on the second call request instruction, wherein the drive instruction is configured to instruct the hardware security module to perform a high-security operation.

[0026] In a fourth aspect, an embodiment of the present application provides a network device, comprising a main business processor and a hardware security module, wherein the main business processor is applied to a trusted domain extended security virtualization system, and the main business processor comprises: a hardware security module agent, a hardware security module driver and a trusted domain extension module, wherein the trusted domain extension module is configured to receive a first call request instruction and forward it to the hardware security module agent, wherein the first call request instruction is configured to retrieve the hardware security module, and the trusted domain extension module is configured to manage the hardware security module agent and the hardware security module driver; the hardware security module agent is configured to construct a second call request instruction based on the first call request instruction and forward it to the hardware security module driver, wherein the second call request instruction refers to an instruction of a specific data structure recognizable by the hardware security module driver; the hardware security module driver is configured to send a drive instruction to the hardware security module based on the second call request instruction, wherein the drive instruction is configured to instruct the hardware security module to perform a high-security operation.

[0027] In a fifth aspect, an embodiment of the present application provides a network device, comprising: at least one memory, at least one processor, the at least one processor being used to execute instructions stored in the at least one memory, so that the processor executes the various possible implementation methods of the first aspect.

[0028] In a sixth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed in a computer, the computer is caused to execute the various possible implementation methods of the first aspect.

[0029] In a seventh aspect, the present application provides a computer program product, characterized in that the computer program product stores instructions, and when the instructions are executed by a computer, the computer implements the various possible implementation methods of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The following is a brief introduction to the drawings required for describing the embodiments or prior art.

[0031] FIG1 is a schematic diagram of an existing processor TEE system architecture;

[0032] FIG2 is a schematic diagram of the flow of interaction between the existing primary service processor and the HRoT;

[0033] FIG3 is a schematic diagram of the architecture of a network device provided in an embodiment of the present application;

[0034] FIG4 is a schematic diagram of the architecture of a secure virtualization-based hardware trusted root agent interaction method running on a main service processor provided in an embodiment of the present application;

[0035] FIG5 is a flowchart of a hardware trusted root agent interaction method based on secure virtualization provided in an embodiment of the present application;

[0036] FIG6 is a schematic diagram of the architecture of a network device of the Arm S-EL2 secure virtualization system provided in an embodiment of the present application;

[0037] 7 is a flowchart of a method for interacting with a hardware trusted root agent based on secure virtualization performed by a network device provided in an embodiment of the present application;

[0038] FIG8 is a schematic diagram of the architecture of a network device of the Intel TDX secure virtualization system provided in an embodiment of the present application;

[0039] FIG9 is a schematic diagram of the structure of a network device provided in an embodiment of the present application;

[0040] FIG10 is a schematic diagram of the architecture of a data center provided in an embodiment of the present application;

[0041] FIG11 is a schematic diagram of the architecture of another data center provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0043] The term "and / or" as used herein describes an association between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. The symbol " / " as used herein indicates that the related objects are in an "or" relationship, for example, A / B means either A or B.

[0044] The terms "first" and "second" in this specification and claims are used to distinguish different objects rather than to describe a specific order of objects. For example, "first response message" and "second response message" are used to distinguish different response messages rather than to describe a specific order of response messages.

[0045] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0046] In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more, for example, multiple processing units means two or more processing units, etc.; multiple elements means two or more elements, etc.

[0047] Existing computer processors are increasingly supporting security architectures and can perform secure operations, such as processing sensitive data and performing sensitive calculations. The Trusted Execution Environment (TEE) system architecture is one of the mainstream processor security architectures.

[0048] Figure 1 is a schematic diagram of the existing processor TEE system architecture. As shown in Figure 1, the processor TEE system architecture can be divided into the normal world and the secure world. The normal world runs in a non-secure environment and deploys programs that are strongly related to the processor's application scenario. The secure world runs in a secure environment and deploys programs related to secure operations. The normal world and the secure world can share the processor in a time-sharing manner, allowing the processor to switch between the normal world and the secure world to perform secure and non-secure operations. The physical resources such as memory and peripherals running in the normal world and the secure world are isolated from each other.

[0049] The processor TEE system architecture can be divided into PL 0, PL 1, and PL 2 based on the processor's privilege level (PL). PL 0 is user mode, which can run applications (APPs), trusted applications (TAs), or other programs. PL 1 is supervisor mode, which can run operating systems (OSs), TEE OSs, or other programs. PL 2 is hypervisor mode, which can run hypervisors, TEE managers, or other programs.

[0050] In the normal world, apps are typically located at PL 0 and are responsible for executing business functions. The operating system (OS) is typically located at PL 1 and is responsible for managing apps and providing system services. When the normal world supports virtualization, a hypervisor can be implemented at PL 2, supporting the deployment of multiple virtual machines (VMs). Each VM can host an OS and apps. The hypervisor is typically located at PL 2 and is responsible for managing the VMs.

[0051] In the secure world, the TA is typically located at PL 0 within the secure world and is responsible for executing programs that perform security functions. The TEE OS is typically located at PL 1 within the secure world and is responsible for managing each TA and providing system services to them. When the secure world supports virtualization, a TEE manager can be implemented at a high privilege level within the secure world (such as PL 2), supporting the deployment of multiple TEEs. Each TEE can deploy a TEE OS and an app. The TEE manager is typically located in the secure world and can be deployed at a high privilege level (such as PL 2) to manage each TEE.

[0052] Secure firmware / hardware (secure FW / HW) is at the highest privilege level and is part of the trusted base. Secure FW is responsible for secure system loading and booting, and provides low-level firmware services. Secure HW includes the central processing unit (CPU), hardware accelerators, and unique keys for hardware devices.

[0053] To improve the security of a computer's processor operations, a computer can employ a collaborative architecture between a primary service processor and a hardware root of trust (HRoT). The primary service processor is used to perform a large number of service-related operations. The HRoT primarily performs high-security operations involving sensitive information, such as cryptographic operations and key and certificate management.

[0054] HRoT can include trusted root service firmware, hardware cryptographic engine, hardware random number generator, hardware key management module, hardware security protection mechanism, etc., and can run independently of the trusted root service firmware. There is physical isolation between HRoT and the main business processor, which can provide higher security than TEE, such as resistance to side channel attacks and fault injection attacks. HRoT can be integrated, external or other forms, and exist in the form of assisting processors, microcontroller units (MCUs), such as hardware security modules (HSMs), trusted platform modules (TPMs), trusted cryptography modules (TCMs), trusted platform control modules (TPCMs), etc.

[0055] Figure 2 is a flow chart illustrating the interaction between the existing primary service processor and the HRoT. As shown in Figure 2, the primary service processor can run the HRoT agent program and the HRoT driver program to implement the interaction between the primary service processor and the HRoT. Specifically:

[0056] First, the service software of the main service processor sends an HRoT call request instruction to the HRoT Agent. Next, the HRoT Agent detects the HRoT call request instruction and sends a recognizable HRoT call request instruction to the HRoT Driver. Next, the HRoT Driver generates a driver instruction based on the recognizable HRoT call request instruction, allowing the driver instruction to access the HRoT. Finally, upon receiving the driver instruction, the HRoT executes the corresponding high-security operation.

[0057] As programs that directly interact with HRoT, the HRoT Agent and HRoT Driver programs must minimize their code size to ensure security and reliability. This minimizes the attack surface and maximizes security. To ensure security and reliability, these programs must be isolated from other system components and have minimal permissions. This minimizes the threat to system security if attacked or vulnerable. To achieve cost-effective collaborative deployment, delivery, and certification with HRoT, dependencies on other components must be minimized.

[0058] In existing TEE TA-based HRoT Agent program interaction solutions, the HRoT Agent is implemented in the TA managed by the TEE OS, and the HRoT Driver is implemented in the secure world's PL1 and TEE OS layers. However, the HRoT Agent's trusted base includes the TEE OS, resulting in a large trusted base code size, a large attack surface for the HRoT Agent, and difficulty ensuring security. The HRoT Agent relies on and is managed by the TEE OS, requiring the HRoT Agent and HRoT to be bundled, delivered, deployed, and authenticated with the TEE OS, making the HRoT Agent costly. The HRoT Driver is not isolated from the TEE OS and has all the privileges of the secure world's PL1 privilege level, allowing access to the normal world and secure world address spaces, resulting in excessive HRoT Driver permissions.

[0059] In order to solve the defects of the existing TEE TA-based HRoT Agent program interaction solution, the embodiment of the present application provides a hardware trusted root agent interaction method and network device based on secure virtualization.

[0060] The HRoT Agent is built as an independent TEE program managed by the TEE manager. If implemented as a firewall, it can be called the HRoT Agent TEE. The HRoT Agent TEE does not rely on the TEE OS and can support HRoT call request instructions from normal-world programs (such as apps and OS), other TEE programs, and TA and TEE OS programs in other TEEs. The HRoT Driver is built as an independent TEE program managed by the TEE manager. If implemented as a firewall, it can be called the HRoT Driver TEE. The HRoT Driver TEE does not rely on the TEE OS and is isolated from other system components. Its privilege level is separated from the TEE manager, allowing the TEE manager to manage its permissions, such as address space access permissions. The TEE manager implements HRoT call request instruction and request instruction forwarding functions, management functions (such as lifecycle management) of the HRoT Agent TEE and HRoT Driver TEE, and permission control functions (such as address space access permissions) of the HRoT Agent TEE and HRoT Driver TEE.

[0061] Figure 3 is a schematic diagram of the architecture of a network device provided in an embodiment of the present application. As shown in Figure 3, the device 300 on the network includes a main business processor 310 and an HRoT 320. The main business processor 310 includes a normal world, a secure world, and a secure FW / HW. The normal world includes multiple APPs and OS. The secure world includes multiple TEEs, an HRoT Agent TEE, an HRoT Driver TEE, and a TEE manager. In the secure world, a TEE manager at a high privilege level (such as PL 2) manages multiple TEEs. The address spaces between TEEs are isolated from each other. TEEs can deploy and run TA+TEE OS or an independent TEE FW.

[0062] The main service processor 310 can build the HRoT Agent into a program that is deployed and runs in an independent TEE environment, such as a firewall, called an HRoT Agent TEE. The HRoT Agent TEE does not rely on the TEE operating system. The privilege level can be PL 0, PL 1, or other privilege levels in the secure world, supporting the deployment of multiple HRoT Agent TEEs.

[0063] The HRoT Agent TEE can receive HRoT call request instructions from normal world programs (such as apps and operating systems), secure world TA programs, TEE OS programs, and other independent TEE programs. The HRoT Agent TEE can also process HRoT call request instructions, such as performing legitimacy checks on the validity and permissions of HRoT call request instructions. The HRoT Agent TEE can construct HRoT call request instructions in a specific data structure that the HRoT Driver can recognize and send recognizable HRoT call request instructions.

[0064] The main service processor 310 can build the HRoT Driver as a program deployed and running in an independent TEE environment, such as a firmware (FW), which can be called an HRoT Driver TEE. The HRoT Driver TEE does not rely on the TEE OS. The HRoT Driver TEE is isolated from other system components and is managed by the TEE Manager, including its lifecycle. The HRoT Driver TEE is isolated from the TEE Manager at a privileged level, and permissions such as address access are controlled by the TEE Manager.

[0065] As a common component accessed by multiple HRoT Agent instances, the HRoT Driver receives recognizable HRoT call request instructions. The HRoT Driver maintains a queue of recognizable HRoT call request instructions and sends driver instructions to the HRoT 320 based on the queue. The HRoT Driver may have multiple programs sending HRoT call requests. The HRoT Driver can set an output queue on an output port to temporarily store call request instructions and send them to the HRoT 320 in sequence, preventing two call request instructions from simultaneously occupying the HRoT 320.

[0066] The TEE manager is equivalent to a lightweight secure world hypervisor. The TEE manager manages the HRoT Agent TEE and HRoT Driver TEE, such as initialization, interruption, resumption, and shutdown. The TEE manager controls the permissions (including address space access permissions) of the HRoT Agent TEE and HRoT Driver TEE. The TEE manager forwards HRoT call requests from normal world programs and other TEE programs to the HRoT Agent TEE. The TEE manager also forwards HRoT call requests from the HRoT Agent TEE to the HRoT Driver TEE.

[0067] The HRoT 320 receives driver instructions from the HRoT Driver TEE and performs requested operations according to the instructions, such as cryptographic calculations, key certificate management, and secret information storage.

[0068] As shown in Figure 4, the hardware trusted root agent interaction method based on secure virtualization is executed by software running on the main business processor 310. The main business processor 310 can be divided into HRoT Agent TEE program software, HRoT Driver TEE program software, and TEE manager program software according to the functions executed. Before the main business processor 310 is started, the three program software can be stored in non-volatile memory (non-volatile memory), such as read-only memory (ROM) type memory, flash type memory, etc. in the form of TEE image, TEE manager image, etc. When the main business processor 310 is started, the three program software can be loaded into the memory of the main business processor 310, such as random access memory (RAM) type memory. RAM type memory can be dynamic random access memory (DRAM), static random access memory (SRAM), etc. When the main business processor 310 interacts with the HRoT 320, the instructions of the three program software will be executed within the CPU of the main business processor 310. The HRoT Driver TEE program software sends and receives instructions to and from the HRoT 320 through the interface of the primary service processor 310 .

[0069] Figure 5 is a flowchart of a hardware trusted root agent interaction method based on secure virtualization provided in an embodiment of the present application. As shown in Figure 5, the method is executed by the main business processor 310, and the specific implementation process is as follows:

[0070] Step S501: Initiate a first call request instruction. The first call request instruction is a request for the primary service processor to call the HRoT.

[0071] In this application, the main business processor's normal world app, OS, and other programs can initiate a first call request instruction. Other TEEs in the main business processor's secure world can also initiate a first call request instruction. The main business processor's secure world's other TEEs, such as the TA and TEE OS, can also initiate a first call request instruction.

[0072] Step S502: The TEE manager forwards the first call request instruction to the HRoT Agent TEE.

[0073] In step S503, the HRoT Agent TEE processes the first call request instruction, constructs and sends a second call request instruction, and sends it to the TEE manager. The second call request instruction is an HRoT call request instruction that the HRoT Agent TEE can recognize.

[0074] Step S504 : The TEE manager receives the send second call request instruction and transmits the send second call request instruction to the HRoT Driver TEE.

[0075] In step S505, after receiving the second call request instruction, the HRoT Driver TEE maintains the second call request instruction and sends a driver instruction to the HRoT 320. The driver instruction instructs the HRoT 320 to perform operations such as cryptographic operations, key certificate management, and secret information storage.

[0076] Below, we will use the HSM proxy interaction solution architecture based on Arm secure-exception level 2 (S-EL2) secure virtualization as an example to introduce the technical solution protected by this application. It is conceivable that this application is not limited to this scenario and can be used in other application scenarios.

[0077] Figure 6 is a schematic diagram of the architecture of a network device of the Arm S-EL2 secure virtualization system provided in an embodiment of the present application. As shown in Figure 6, the network device 600 is based on the Arm S-EL2 secure virtualization system. The network device 600 includes a main business processor 610 and an HSM 620. The privilege levels PL0, PL1 and PL2 of the main business processor 610 correspond to the exception levels EL0, EL1 and EL2 respectively. Secure EL2 deploys a TEE manager, called a secure partition manager (SPM). SPM can support the deployment of multiple TEEs, called secure partitions (SP). The HSM Agent is constructed as a program (such as FW form) running in an independent SP environment managed by the SPM, called an HSM Agent SP. The HSM Agent SP does not depend on the TEE OS. The HSM Driver is constructed as a program (such as FW form) running in an independent SP environment managed by the SPM, called an HSM Driver SP. SPM implements the HSM call request message and request command forwarding module, the HSM Agent SP\HSM Driver SP management module, and the HSM Agent SP\HSM Driver SP permission control module.

[0078] The HSM call request instruction issuing program can include programs such as apps and operating systems in the normal world, other TEEs in the secure world, and programs such as the TA and TEE operating system within other TEEs in the secure world. The HSM call request instruction issuing program is responsible for issuing the HSM call request instruction to the HSM Agent SP. The HSM call request instruction can include the requested operation identifier. The operation identifier indicates the type of operation the primary service server is requesting from the HSM.

[0079] The HSM Agent SP receives HSM call request instructions and checks the legitimacy or permissions of the HSM call request instructions. If the HSM Agent SP passes the legitimacy or permissions check of the HSM call request instruction, it constructs the HSM call request instruction with a specific data structure recognizable by the HSM Driver and sends the recognizable HSM call request instruction. The HSM Agent SP checks the legitimacy or permissions of the HSM call request instruction to prevent normal-world programs from issuing illegal HSM operation requests, such as reading keys. The HSM Agent SP's privilege level can be EL0, EL1, or other privilege levels.

[0080] The HSM Driver SP receives call request instructions from recognizable HSMs, maintains a queue of recognizable HSM call request instructions, and sends driver instructions to the HSMs according to the queue. The HSM Agent SP can have a privilege level of EL0, EL1, or other privilege levels.

[0081] The SPM may include an HSM call request instruction / call request instruction forwarding module, an HSM Agent SP\HSM Driver SP management module, and an HSM Agent SP\HSM Driver SP permission control module.

[0082] The HSM call request instruction / request instruction forwarding module can receive HSM call request instructions from programs such as APP and OS in the normal world, SP in the secure world, and TA, TEE OS and other programs in the SP.

[0083] The HSM call request instruction / request instruction forwarding module can send the HSM call request instruction to the HSM Agent SP. The HSM call request instruction / request instruction forwarding module can receive the HSM call request instruction from the HSM Agent SP. The HSM call request instruction / request instruction forwarding module can send the HSM call request instruction to the HSM Driver SP.

[0084] The HSM Agent SP\HSM Driver SP management module manages the lifecycle of the HSM Agent SP\HSM Driver SP, such as initialization, interruption, recovery, and stop.

[0085] The HSM Agent SP\HSM Driver SP permission control module can manage and control the address space access rights of the HSM Agent SP\HSM Driver SP. For example, it can implement address space access rights control by configuring the access rights attributes in the page table of the HSM Agent SP\HSM Driver SP.

[0086] The HSM 620 may receive driver commands from the HSM Driver SP and execute requested operations according to the commands.

[0087] FIG7 is a flowchart of a method for interacting with a hardware trusted root agent based on secure virtualization performed by a network device according to an embodiment of the present application. As shown in FIG7 , before the main service processor 610 of the network device 600 is started, the specific process performed by the main service processor 610 is as follows:

[0088] Step S701: SPM initializes the operating environment of the HSM Agent SP\HSM Driver SP.

[0089] The HSM Agent SP / HSM Driver SP management module in SPM initializes the HSM Agent SP / HSM Driver SP's operating environment and manages the HSM Agent SP / HSM Driver SP's lifecycle, including initialization, interruption, recovery, and shutdown. SPM configures the HSM Agent SP / HSM Driver SP's program entry points and creates data structures for SP management.

[0090] Step S702: The SPM configures the address space access rights of the HSM Agent SP and the HSM Driver SP.

[0091] The SPM's HSM Agent SP / HSM Driver SP permission control module manages the address space access rights of the HSM Agent SP / HSM Driver SP, for example, by configuring access rights attributes in the HSM Agent SP / HSM Driver SP's page tables. In one embodiment, the SPM configures the address space access rights of the HSM Agent SP / HSM Driver SP using attributes in the HSM Agent SP / HSM Driver SP Stage 2 page tables. The SPM controls the address space access rights of the HSM Agent SP / HSM Driver SP to prevent the HSM Agent SP / HSM Driver SP from having excessive permissions.

[0092] When the main service processor 610 of the network device 600 is running, the specific process performed by the main service processor 610 is as follows:

[0093] Step S703 : The main service processor 610 sends an HSM call request instruction.

[0094] Programs such as apps and the OS in the normal world of the main business processor 610 can initiate HSM call requests. Other TEEs in the secure world of the main business processor 610 can also initiate HSM call requests. Programs such as the TA and TEE OS within other TEEs in the secure world of the main business processor 610 can also initiate HSM call requests.

[0095] Step S704: The SPM receives the call request instruction from the HSM and forwards it to the HSM Agent SP.

[0096] Step S705: The HSM Agent SP receives the call request instruction of the HSM.

[0097] Step S706: The HSM Agent SP processes the HSM call request instruction.

[0098] Step S707: The HSM Agent SP constructs an HSM call request instruction that can be recognized by the HSM Driver.

[0099] Step S708: The HSM Driver SP sends a recognizable HSM call request instruction to the SPM.

[0100] Step S709: The SPM receives a recognizable HSM call request instruction and forwards it to the HSM Driver SP.

[0101] Step S710: The HSM Driver SP receives a recognizable HSM call request instruction.

[0102] Step S711 : The HSM Driver SP maintains a queue of recognizable HSM call request instructions.

[0103] In step S712 , the HSM Driver SP generates a driver instruction based on the recognizable HSM call request instruction, and sends the driver instruction to the HSM 620 .

[0104] In step S713 , the HSM 620 receives the driving instruction.

[0105] In step S714 , the HSM 620 performs a high-security operation based on the driving instruction.

[0106] In the embodiment of the present application, the trusted base of the HSM Agent SP no longer includes the TEE OS, which makes the code size of the trusted base of the HSM Agent SP small, the attack surface small, and the security high. The HSM Agent SP and HSM no longer need to be bound to the TEE OS for delivery, deployment, and authentication, which reduces the cost of the HSM Agent SP and HSM and makes deployment more flexible. The HSM Driver SP is isolated from other components, and its permissions are strictly controlled by the SPM to minimize permissions. When the HSM Driver SP has a vulnerability or is attacked, it will not pose a security threat to other components in the system, and the security is high.

[0107] Below, we will use the HSM proxy interaction solution architecture based on Intel Trusted Domain Extension (TDX) secure virtualization as an example to introduce the technical solution protected by this application. It is conceivable that this application is not limited to this scenario and can be used in other application scenarios.

[0108] Figure 8 is a schematic diagram of the architecture of the network device of the Intel TDX secure virtualization system provided in an embodiment of the present application. As shown in Figure 8, the network device 800 is based on the Intel TDX secure virtualization system. The network device 800 includes a main business processor 810 and an HSM 820. The normal world of the main business processor 810 supports the running of multiple non-secure VMs. The VM is managed by the virtual machine manager (VMM) of the Hypervisor Mode. The secure world of the main business processor 810 supports the running of multiple secure trusted domains (TD). TD is managed by the TDX-module. TD can run TD OS and TD APP. The TDX-module runs in the newly introduced privileged mode Secure-Arbitration Mode (SEAM-Mode).

[0109] Compared to the Arm S-EL2 secure virtualization system, the HSM Agent is implemented as an independent TD (e.g., a firmware) within the Intel TDX secure virtualization system, referred to as the HSM Agent TD. The HSM Driver is implemented as an independent TD (e.g., a firmware) within the Intel TDX secure virtualization system, referred to as the HSM Driver TD. The TDX Module implements the HSM call request message and call request instruction forwarding modules, the HSM Agent TD and HSM Driver TD management modules, and the HSM Agent TD and HSM Driver TD permission control modules.

[0110] In the embodiment of the present application, the trusted base code of the HRoT Agent no longer includes the TEE OS, and a lightweight TEE manager is used as the trusted base, which reduces the scale of the trusted base. The trusted base code of the HRoT Agent is small in size, has a small attack surface, and is highly secure. The HRoT Agent does not rely on the TEE OS, but is managed by the TEE manager. The HRoT Agent + HRoT no longer needs to be bound to the TEE OS for delivery, deployment, and authentication, which reduces the cost and makes the deployment method more flexible. The HRoT Driver can be built as an independent TEE to achieve isolation from other components. The HRoT Driver TEE is isolated from the privilege level of its manager, the TEE manager, and its permissions, such as access rights to the address space, are controlled by the TEE manager. The HRoT only has permissions granted by the TEE manager and will not pose a threat to other components due to excessive permissions. The HRoT Driver permissions are minimized and isolated from other components of the system, ensuring that when the HRoT Driver has its own vulnerabilities or is attacked, it will not pose a security threat to other components in the system.

[0111] Figure 9 is a schematic diagram of the structure of a network device provided in an embodiment of the present application. As shown in Figure 9, network device 900 includes a bus 910, a processor 920, a memory 930, and a communication interface 940. Processor 920, memory 930, and communication interface 940 communicate with each other via bus 910. Network device 900 can be a server or a terminal device. It should be understood that this application does not limit the number of processors and memories in network device 900.

[0112] Bus 910 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, for example. Bus 910 may be classified as an address bus, a data bus, a control bus, and the like. For ease of illustration, FIG9 shows a single line, but this does not imply a single bus or a single type of bus. Bus 910 may include a path for transmitting information between various components of network device 900 (e.g., processor 920, memory 930, and communication interface 940).

[0113] The processor 920 may include any one or more processors such as a CPU, a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0114] The memory 930 may include a volatile memory, such as RAM. The processor 920 may also include a non-volatile memory, such as ROM, flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0115] The memory 930 stores executable program code, and the processor 920 executes the executable program code to implement the functions of the HRoT Agent TEE program module, the HRoT Driver TEE program module, and the TEE manager module, thereby implementing the hardware trusted root agent interaction method based on secure virtualization. In other words, the memory 930 stores instructions for executing the hardware trusted root agent interaction method based on secure virtualization.

[0116] Alternatively, the memory 930 stores executable code, and the processor 920 executes the executable code to respectively implement the functions of the aforementioned network devices, thereby implementing the hardware trusted root agent interaction method based on secure virtualization. In other words, the memory 930 stores instructions for executing the hardware trusted root agent interaction method based on secure virtualization.

[0117] The communication interface 940 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the network device 900 and other devices or communication networks.

[0118] Embodiments of the present application also provide a data center. The data center includes at least one network device. The network device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the network device can also be a desktop computer, a laptop computer, a smartphone, a switch, or other terminal device.

[0119] As shown in Figure 10, the data center includes at least one network device 900. The memory 930 in one or more network devices 900 in the data center may store the same instructions for executing the hardware trusted root agent interaction method based on secure virtualization.

[0120] In some possible implementations, the memory 930 of one or more network devices 900 in the data center may also store partial instructions for executing the secure virtualization-based hardware trusted root agent interaction method. In other words, the combination of one or more network devices 900 can jointly execute instructions for executing the secure virtualization-based hardware trusted root agent interaction method.

[0121] It should be noted that the memory 930 in different network devices 900 in the data center can store different instructions, each used to perform part of the functions of the network device. In other words, the instructions stored in the memory 930 in different network devices 900 can implement the functions of one or more modules among the HRoT Agent TEE program module, the HRoT Driver TEE program module, and the TEE manager module.

[0122] In some possible implementations, one or more network devices 900 in a data center may be connected via a network. The network may be a wide area network (WAN) or a local area network (LAN), among others. FIG. 11 illustrates a possible implementation. As shown in FIG. 11 , network device 900A and network device 900B are connected via a network. Specifically, the network is connected via a communication interface in each network device. In this type of possible implementation, the memory 930 in network device 900A stores instructions for executing the functions of the HCQ selector 2202. Simultaneously, the memory 930 in network device 900B stores instructions for executing the functions of the module corresponding to the HRoT Agent TEE program, the module corresponding to the HRoT Driver TEE program, and the module corresponding to the TEE manager.

[0123] The connection method between the data centers shown in Figure 11 can be considered to be that the hardware trusted root agent interaction method based on secure virtualization provided in this application requires a large amount of storage data, so it is considered to entrust the functions implemented by the module corresponding to the HRoT Agent TEE program, the module corresponding to the HRoT Driver TEE program, and the module corresponding to the TEE manager to be executed by the network device 900B.

[0124] It should be understood that the functions of the network device 900A shown in FIG11 may also be completed by multiple network devices 900. Similarly, the functions of the network device 900B may also be completed by multiple network devices 900.

[0125] The present application also provides another data center. The connection relationship between network devices in the data center can be similar to the connection method of the data center described in Figures 10 and 11. However, the memory 930 in one or more network devices 900 in the data center can store the same instructions for executing the hardware trusted root agent interaction method based on secure virtualization.

[0126] In some possible implementations, the memory 930 of one or more network devices 900 in the data center may also store partial instructions for executing the secure virtualization-based hardware trusted root agent interaction method. In other words, the combination of one or more network devices 900 can jointly execute instructions for executing the secure virtualization-based hardware trusted root agent interaction method.

[0127] It should be noted that the memory 930 in different network devices 900 in the data center can store different instructions for executing part of the functions of the data center. In other words, the instructions stored in the memory 930 in different network devices 900 can implement the functions of one or more devices in the network device.

[0128] The present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a network device or stored on any available medium. When the computer program product is run on at least one network device, the at least one network device executes a hardware trusted root agent interaction method based on secure virtualization.

[0129] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by the network device or a data storage device such as a data center that contains one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive). The computer-readable storage medium includes instructions that instruct the network device to execute a hardware trusted root agent interaction method based on secure virtualization.

[0130] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the protection scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A hardware trusted root agent interaction method based on secure virtualization, characterized in that: The method is performed by a network device, the network device includes a main business processor and a hardware trusted root, the main business processor includes a hardware trusted root agent, a hardware trusted root driver and a trusted execution environment manager, the method includes: The trusted execution environment manager receives a first call request instruction and forwards it to the hardware trusted root agent program, wherein the first call request instruction is used to call the hardware trusted root, and the trusted execution environment manager is used to manage the hardware trusted root agent program and the hardware trusted root driver; The hardware trusted root agent constructs a second call request instruction based on the first call request instruction, and forwards the second call request instruction to the hardware trusted root driver, wherein the second call request instruction refers to an instruction of a specific data structure recognizable by the hardware trusted root driver; The hardware trusted root driver sends a driving instruction to the hardware trusted root based on the second call request instruction, where the driving instruction is used to instruct the hardware trusted root to perform a high-security operation.

2. The method according to claim 1, characterized in that Before the trusted execution environment manager receives the first call request instruction and forwards it to the hardware trusted root agent program, the method further includes: The application and / or operating system of the regular world of the main business processor generates the first call request instruction and sends it to the trusted execution environment manager; and / or The trusted program of the secure world of the main business processor generates the first call request instruction and sends it to the trusted execution environment manager.

3. The method according to claim 1 or 2, characterized in that: The hardware trusted root agent program constructs a second call request instruction based on the first call request instruction, specifically including: The hardware trusted root agent detects the legitimacy of the first call request instruction; In response to the first call request instruction being a legal instruction, the hardware trusted root agent constructs the second call request instruction based on the first call request instruction.

4. The method according to any one of claims 1 to 3, characterized in that: The hardware trusted root driver sends a driving instruction to the hardware trusted root based on the second call request instruction, specifically including: The hardware trusted root driver receives the second call request instruction and transmits it to the queue of the output port of the hardware trusted root driver; The hardware trusted root driver determines that when the second call request instruction is output from the queue of the output port, the driver forwards the driving instruction corresponding to the second call request instruction.

5. The method according to any one of claims 1 to 4, characterized in that: The hardware trusted root agent program is an independent trusted execution environment program managed by the trusted execution environment manager.

6. The method according to any one of claims 1 to 5, characterized in that: The hardware trusted root driver is an independent trusted execution environment program managed by the trusted execution environment manager.

7. A network device, characterized in that: The main business processor includes a hardware trusted root agent, a hardware trusted root driver and a trusted execution environment manager. The trusted execution environment manager is used to receive a first call request instruction and forward it to the hardware trusted root agent program, wherein the first call request instruction is used to call the hardware trusted root, and the trusted execution environment manager is used to manage the hardware trusted root agent program and the hardware trusted root driver; The hardware trusted root agent is used to construct a second call request instruction based on the first call request instruction and forward it to the hardware trusted root driver, wherein the second call request instruction refers to an instruction of a specific data structure recognizable by the hardware trusted root driver; The hardware trusted root driver is used to send a driving instruction to the hardware trusted root based on the second call request instruction, and the driving instruction is used to instruct the hardware trusted root to perform a high-security operation.

8. The network device according to claim 7, characterized in that: The main business processor is used to send the first call request instruction generated by the application program and / or the operating system in the regular world to the trusted execution environment manager; and / or The trusted program in the secure world generates the first call request instruction and sends it to the trusted execution environment manager.

9. The network device according to claim 7 or 9, characterized in that: The hardware trusted root agent is specifically used to detect the legitimacy of the first call request instruction; and In response to the first call request instruction being a legal instruction, the second call request instruction is constructed based on the first call request instruction.

10. The network device according to any one of claims 7 to 9, characterized in that: The hardware trusted root driver is specifically configured to receive the second call request instruction and transmit it to a queue of an output port of the hardware trusted root driver; and When determining that the second call request instruction is output from the queue of the output port, forward the driving instruction corresponding to the second call request instruction.

11. The network device according to any one of claims 7 to 10, characterized in that: The hardware trusted root agent program is an independent trusted execution environment program managed by the trusted execution environment manager.

12. The network device according to any one of claims 7 to 11, characterized in that: The hardware trusted root driver is an independent trusted execution environment program managed by the trusted execution environment manager.

13. A network device, characterized in that: It includes a main business processor and a hardware security module. The main business processor is applied to a security exception level 2 security virtualization system. The main business processor includes: a hardware security module agent, a hardware security module driver and a security partition manager. The secure partition manager is configured to receive a first call request instruction and forward it to the hardware security module agent program, wherein the first call request instruction is used to call the hardware security module, and the secure partition manager is configured to manage the hardware security module agent program and the hardware security module driver program; The hardware security module agent is used to construct a second call request instruction based on the first call request instruction and forward it to the hardware security module driver, wherein the second call request instruction refers to an instruction of a specific data structure recognizable by the hardware security module driver; The hardware security module driver is used to send a driving instruction to the hardware security module based on the second call request instruction, wherein the driving instruction is used to instruct the hardware security module to perform a high-security operation.

14. A network device, characterized in that: It includes a main business processor and a hardware security module. The main business processor is applied to a trusted domain extension security virtualization system. The main business processor includes: a hardware security module agent, a hardware security module driver and a trusted domain extension module. The trusted domain extension module is used to receive a first call request instruction and forward it to the hardware security module agent program, wherein the first call request instruction is used to call the hardware security module, and the trusted domain extension module is used to manage the hardware security module agent program and the hardware security module driver; The hardware security module agent is used to construct a second call request instruction based on the first call request instruction and forward it to the hardware security module driver, wherein the second call request instruction refers to an instruction of a specific data structure recognizable by the hardware security module driver; The hardware security module driver is used to send a driving instruction to the hardware security module based on the second call request instruction, wherein the driving instruction is used to instruct the hardware security module to perform a high-security operation.

15. A network device, characterized in that: include: at least one memory, At least one processor, the at least one processor is used to execute instructions stored in the at least one memory, so that the processor executes the method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Hardware trusted root proxy interaction method based on security virtualization and network equipment

    CN118673495A

  • Trusted computing system and method based on trusted computing environment

    CN114462051A

  • Trusted root management method and device, equipment and storage medium

    CN114499867A

  • Unifying hardware trusted execution environment technologies using virtual secure enclave device

    US20210133315A1

  • Trusted security zone enhanced with trusted hardware drivers

    US9613208B1

Cited By

  • Intelligent agent management and control method and device based on trusted computing technology and intelligent agent terminal

    CN122346843A

  • Secure boot method, hardware root of trust, computing device, and storage medium

    WO2026066146A1