Reliable measurement method, apparatus, computer device and readable medium
By offloading cloud platform modules to a control daughter card and using a trusted measurement device, the solution addresses security and reliability issues in cloud computing, ensuring secure and efficient virtual machine monitoring with zero performance loss.
Patent Information
- Application Number
- JP2024522336
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-10-12
- Filing Date
- 2022-10-12
- Publication Date
- 2024-10-10
- Estimated Expiration
- 2042-10-12
AI Technical Summary
Cloud computing platforms face security risks due to the lack of physical isolation between cloud platform management programs and service virtual machines, leading to potential performance losses and unmonitored virtual machine reliability, making it difficult to ensure secure and reliable measurements.
Offload cloud platform control, calculation, and storage modules to a control daughter card, using a trusted measurement device to perform isolated and reliable measurements, ensuring zero performance loss by integrating a security integrated control server to manage and monitor the computing server and virtual machines.
Ensures secure and reliable measurements by isolating virtualization software from user resources, allowing full computing power utilization while maintaining server performance and providing dynamic monitoring of virtual machine operations.
Smart Images

Figure 2024537367000001_ABST
Abstract
Description
[Technical field]
[0001] [CROSS REFERENCE TO RELATED APPLICATIONS] This application claims priority to Chinese patent application No. CN202111186512.8, entitled "Reliable Measurement Method, Apparatus, Computer Device and Readable Medium," filed on October 12, 2021, the entire contents of which are incorporated herein by reference. [Technical field] The present application relates to the field of cloud computing technology, and in particular to a reliable measurement method, apparatus, computer device and readable medium. [Background technology]
[0002] Cloud computing uses a virtualization layer to unify management and shield lower-layer hardware, provide computing services to users according to demand, realize resource sharing, and improve resource utilization. However, the cloud platform management program is deployed on the server, which generally leads to a loss of server performance. In addition, the cloud platform management program and the service virtual machine are deployed on the same server and are not physically isolated, which poses security risks.
[0003] To solve the above problems, the industry's leading solution is to offload modules such as cloud platform control, computing, network, and storage from the server to the control daughter card, so as to realize zero loss of server performance and provide all the computing power of the physical machine for the user's virtual machine to use. When the virtualization software is offloaded to the intelligent network card, it is completely isolated from the user's computing resources, ensuring zero interference in performance. In this situation, how to effectively monitor the reliable measurement of the computing server and ensure the security reliability of the entire cloud platform is a problem that needs to be solved. Summary of the Invention [Means for solving the problem]
[0004] The present application provides reliable measurement methods, apparatus, computer devices and readable media.
[0005] In a first aspect, an embodiment of the present application provides a trusted measurement method applied to a trusted measurement device, the method including the steps of: when the trusted measurement device performs a trusted boot, connecting to a computing server and identifying a boot mode of a first boot loader program of the computing server; in response to the first boot loader program being in a trusted boot mode, acquiring a first group of trusted measurement results stored in the computing server; and in response to the first group of trusted measurement results being identical to a pre-stored first group of trusted measurement expected values, identifying that the computing server has performed a trusted boot, wherein the first group of trusted measurement expected values is transmitted to the trusted measurement device by a security central control server.
[0006] In a further aspect, the present embodiment further provides a trusted measurement device having a first communications module and a first processing module, wherein the first communications module is used to connect to a computing server when the trusted measurement device has performed a trusted boot-up and to obtain a first group of trusted measurement results stored in the computing server, and the first processing module is used to identify a boot mode of a first boot loader program of the computing server, and when the first boot loader program is in a trusted boot mode, to instruct the first communications module to obtain the first group of trusted measurement results stored in the computing server, and in response to the trusted measurement results of the first group being identical to a pre-stored trusted measurement expected value of the first group, to identify that the computing server has performed a trusted boot-up, and the trusted measurement expected value of the first group is transmitted to the trusted measurement device by a security central control server.
[0007] In a further aspect, the present embodiments further provide a computing device comprising one or more processors and a storage device having one or more programs stored therein, the one or more programs, when executed by the one or more processors, causing the one or more processors to implement the reliable measurement method.
[0008] In a further aspect, the present embodiments further provide a computer readable medium having stored thereon a computer program, the computer program, when executed, causing the processor to implement the reliable measurement method. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a schematic diagram of a system architecture according to an embodiment of the present invention. [Diagram 2]1 is a flow chart of a reliable measurement method provided by an embodiment of the present application. [Diagram 3] 1 is a further flow chart of a reliable measurement method provided by the present embodiment. [Figure 4] 1 is a further flow chart of a reliable measurement method provided by the present embodiment. [Diagram 5] 1 is a flowchart of determining whether a virtual machine is trusted to run according to an embodiment of the present application; [Figure 6] 13 is a further flowchart of determining whether a virtual machine is trusted to run according to an embodiment of the present application; [Figure 7] FIG. 2 is a schematic diagram of a system architecture of a specific embodiment provided by the present application; [Figure 8] FIG. 1 is a structural schematic diagram of a reliable measuring device provided by an embodiment of the present application. [Figure 9] FIG. 2 is a further structural schematic diagram of a reliable measuring device provided by an embodiment of the present application. [Figure 10] FIG. 2 is a further structural schematic diagram of a reliable measuring device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Exemplary embodiments are described more fully below with reference to the drawings, but the exemplary embodiments may be embodied in different forms and should not be construed as being limited to the embodiments described herein, but rather are provided in order to make the present application thorough and complete and to fully convey the scope of the present application to those skilled in the art.
[0011] As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.
[0012] The terms used herein are used only to describe certain embodiments and are not intended to limit the scope of the present application. As used herein, the singular terms "a," "an," and "the" are intended to include the plural unless the context clearly indicates otherwise. Furthermore, when the terms "comprising" and / or "consisting of" are used herein, they refer to the presence of the features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or groups thereof.
[0013] The embodiments described herein may be described with reference to plan views and / or cross-sectional views according to the ideal schematic diagram of the present application. Thus, the exemplary drawings may be modified according to manufacturing techniques and / or tolerances. Thus, the embodiments are not limited to the embodiments shown in the drawings, but include modifications of the layout formed by the manufacturing process. Thus, the exemplary regions in the drawings have schematic attributes, and the shapes of the regions shown in the drawings are illustrative of the specific shapes of the regions of the elements, but are not limiting.
[0014] Unless otherwise specified, the meaning of all terms (including technical and scientific terms) used herein is the same as that commonly understood by those skilled in the art. Furthermore, these terms defined in common dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this application, and should not be interpreted as having an idealized or excessively formal meaning unless expressly so limited herein.
[0015] The reliable measurement method provided by the present embodiment can be applied to a system such as that shown in FIG.
[0016] As shown in Fig. 1, the system includes a trusted measurement device 1, a computing server 2, and a security supervision control server 3. The trusted measurement device 1 is a control daughter card, which is connected to the computing server 2 through a peripheral bus interface, and is connected to the security supervision control server 3 through a security network encrypted with a digital certificate. The trusted measurement device 1 includes a CPU (Central Processing Unit), an internal memory, an operation system, and a security measurement module. The peripheral bus interface may include, but is not limited to, a network interface, a PCI (Peripheral Component Interconnect) interface, a PCIE (peripheral component interconnect express) interface, a SPI (Serial Peripheral Interface), an I2C (Inter-Integrated Circuit, 2-wire serial bus) interface, a SCSI (Small Computer System Interface), etc. The computing server 2 is a physical server that provides computing resources (such as CPU, internal memory, storage, network, etc.) to the virtual machine, and the computing resources provided by it may be attached to its own board card, or may be provided by various buses or networks. The computing server 2 and the trusted measurement device 1 are both equipped with their own hardware security measurement modules, and the security measurement modules include but are not limited to passive measurement security chips (TPM) or active measurement security chips (TCM, TPCM board cards, etc.) commonly used in the industry, and the security measurement modules are equipped with roots of trust and cryptographic algorithms, and can perform static or dynamic measurement on the entire system.The security control server 3 serves as the root of trust for the entire cloud platform, and stores all of the trusted measurement expectations of the trusted measurement devices 1, the computing servers 2, and the virtual machines.
[0017] The trusted measurement device 1 includes a virtualization control module and a cloud platform control proxy module. The virtualization control module is a program that resides in the trusted measurement device 1, and connects to the virtualization control proxy module in the computing server 2 via a peripheral interface channel, and can convert commands related to virtualization management of the security supervision control server 3 according to the type and configuration information of the computing server 2. The virtualization control proxy module realizes monitoring of the trusted measurement process of the computing server 2 and the virtual machine, controls the life cycle of the virtual machine, and connects to the power management module via a dedicated line such as IPMI (Intelligent Platform Management Interface) to control the power state of the computing server 2. The cloud platform control proxy module is a program that resides in the trusted measurement device 1, and can dynamically perform trusted measurement when the trusted measurement device 1 is started. The cloud platform control proxy module receives and stores the trusted measurement expectation values of the trusted measurement device 1, the computing server 2, and the virtual machines running thereon, which are sent by the security supervision control server 3 via an encrypted security network after being authenticated by a digital certificate. The trusted measurement expected value is encrypted with the unique private key of the security central control server 3 and stored in the security measurement module of the trusted measurement device 1. When in use, it can be decrypted using the public key of the digital certificate of the security central control server 3, thereby preventing tampering.
[0018] The computing server 2 includes a virtualization control proxy module and a virtual machine monitor (VMM). The virtualization control proxy module is a program that resides in the computing server 2, and can perform reliable measurement when the computing server 2 is started, and communicates with the virtualization control module in the reliable measurement device 1 through a peripheral bus interface. The virtual machine monitor, also called a hypervisor, is software, firmware, or hardware used to build and run a virtual machine, and can access the operating system inside the virtual machine through the Virtio channel technology to execute the corresponding command.
[0019] As shown in FIG. 2, the reliable measurement method provided in the present embodiment can be applied to a reliable measurement device, and the method includes the following steps S21 to S23.
[0020] Step 21, when the trusted measurement device has been booted trusted, connect to the computing server to determine the boot mode of the first boot loader program of the computing server.
[0021] The trusted measurement device 1 and the computing server 2 are powered on one after the other, and during the boot process, the trusted measurement device 1 and the computing server 2 perform a trusted boot by their own security measurement modules. The trusted measurement device 1 completes dynamic measurement of its bootloader, operating system, virtualization control module, and cloud platform proxy module. The computing server 2 completes dynamic measurement of its bootloader, operating system, and virtualization control proxy module.
[0022] In this step, after the trusted measurement device 1 performs a trusted boot, the virtualization control module therein connects to the virtualization control proxy module running on the computing server 2 via a hardware channel, and executes a query command related to the security measurement module through the virtualization control proxy module to determine whether the boot mode of the bootloader (i.e., the first boot loader program) of the computing server 2 is a trusted boot mode.
[0023] Step 22, in response to the first boot loader program being in the trusted boot mode, obtain a first group of trusted measurement results stored in the computing server.
[0024] In this step, if the trusted measurement device 1 determines that the first boot loader program is in a trusted boot mode, the virtualization control module of the trusted measurement device 1 reads the measurement results (i.e., the first group of trusted measurement results) stored in the PCR (platform configuration register) of the safety measurement module in the computing server 2 through the virtualization control proxy module of the computing server 2. The first group of trusted measurement results includes multiple measurement results, such as the measurement results of the safety measurement module and the measurement results of the virtualization control proxy module.
[0025] Step 23: In response to the first group's trusted measurement result being identical to a pre-stored first group's trusted measurement expectation value, the computing server determines that it has performed a trusted boot, and the first group's trusted measurement expectation value is transmitted to the trusted measurement device by the security central control server.
[0026] In this step, the trusted measurement device 1 compares each measurement value in the first group of trusted measurement results with each expected value in the first group of pre-stored trusted measurement expected values, and if each measurement value is identical to the corresponding expected value, the computing server 2 determines that the startup is trusted.
[0027] The security integrated control server 3 transmits the trusted measurement expectation value of the trusted measurement device 1 and the trusted measurement expectation value of the computing server 2 (i.e., the first group of trusted measurement expectation values) to the trusted measurement device 1 in advance via an encrypted network. In some embodiments, the trusted measurement expectation value may be transmitted at the voluntary request of the trusted measurement device 1. The trusted measurement expectation value may be transmitted via an encrypted network authenticated by a digital certificate, encrypted and stored in the security measurement module of the trusted measurement device 1, and decrypted using the public key of the digital certificate of the security integrated control server 3 when in use.
[0028] A trusted measurement method provided by the present embodiment is applicable to a trusted measurement device, and includes the steps of: connecting to a computing server when the trusted measurement device performs a trusted boot, and identifying a boot mode of a first boot loader program of the computing server; acquiring a first group of trusted measurement results stored in the computing server in response to the first boot loader program being in a trusted boot mode; and identifying that the computing server has performed a trusted boot in response to the first group of trusted measurement results being identical to a pre-stored trusted measurement expectation value of the first group, where the trusted measurement expectation value of the first group is sent by a security central control server to the trusted measurement device. In the present embodiment, the security central control server sends the trusted measurement expectation value of the first group to the trusted measurement device, and the trusted measurement device locally caches the trusted measurement expectation value of the first group, and then performs dynamic measurement monitoring on the trusted boot process of the computing server, so that the security central control server does not need to be online all the time, and is less likely to be intruded or attacked. In the present embodiment, the functions of trusted measurement monitoring and security management are offloaded from the computing server to the trusted measurement device to the maximum extent possible, so that the trusted measurement does not occupy computing resources, and not only can security management control be implemented, but also the computing resources can be maximized.
[0029] In some embodiments, as shown in FIG. 3, after obtaining a first group of reliable measurement results stored in the computing server (i.e., step 22), the method further includes the following step S23′.
[0030] S23' executes a first security management control policy in response to at least one of the first group of trusted measurement results differing from at least one of the first group of trusted measurement expectations.
[0031] If the trusted measurement result of the first group is not completely identical to the trusted measurement expected value of the first group cached in the trusted measurement device 1, it indicates that the computing server 2 may have been illegally tampered with, or the operating system and software of the computing server 2 needs to be updated or upgraded, or the measurement range of the computing server 2 needs to be adjusted, and in such a case, a pre-configured security management control policy is executed.
[0032] In some embodiments, the first security management control policy includes at least one of sending a first security alert to a pre-configured server, instructing the computing server to upgrade an operating system of the computing server, and instructing the computing server to adjust a trusted measurement range of the computing server.
[0033] The preset server that receives the first security alert may be the security central control server 3 or another cloud server.
[0034] In some embodiments, when the trusted measurement device 1 performs a trusted boot, the trusted measurement method further includes executing a second security management control policy in response to satisfying a first preset condition, the first preset condition including at least one of: not successfully connecting to a computing server for more than a first preset length of time, not obtaining a first group of trusted measurement results stored in the computing server, the number of the first group of trusted measurement results being lower than the number of the first group of trusted measurement expectations, and the first boot loader program not being in a trusted boot mode.
[0035] In some embodiments, when the trusted startup of the computing server 2 is incomplete, or the virtualization control module of the trusted measurement device 1 times out and cannot connect to the virtualization control proxy module of the computing server 2, or the trusted measurement device 1 cannot read the measurement results (i.e., the first group of trusted measurement results) in the safety measurement module of the computing server 2 through the virtualization control proxy module, the trusted measurement device 1 can execute the pre-installed second security management control policy. When the trusted measurement device 1 determines that the number of the first group of trusted measurement results is lower than the number of the first group of trusted measurement expectations, it represents that the trusted startup of the computing server 2 is incomplete.
[0036] In some embodiments, the second security management control policy includes at least one of sending a second security alert to a pre-configured server, instructing the computing server to shut down and locking the startup.
[0037] It should be noted that the pre-configured server that receives the second security alert may be the security supervision control server 3 or other cloud servers. When the computing server 2 is instructed to shut down and locked from starting, the trusted measurement device 1 shuts down the computing server 2 via the power management module of the computing server 2 and locks the computing server 2 from starting.
[0038] In a scenario where the cloud computing control plane and computing resources are separated, virtual machines are deployed on a computing server, and the computing server is merely a resource provider and does not have reliable proof and sufficient information to unify management and control each virtual machine. Therefore, the traditional reliable measurement of virtual machines uses a virtual security chip to perform a reliable startup on the back-end virtual machine, which relies on the autonomy of the service virtual machine. However, if there is a malicious program in the virtual machine itself, reliable measurement is not performed, and it is not possible to monitor whether the virtual machine performs reliable measurement, making it difficult to ensure the validity of reliable measurement. In this situation, how to perform dynamic reliable measurement on the virtual machine operating system and the key application programs running inside it to ensure the security reliability of the entire cloud end is a problem that must be solved.
[0039] In the present embodiment, after the computing server 2 is powered on and completes a reliable boot, it is necessary to further monitor whether the virtualization operating environment of the computing server 2 is reliable in order to perform further operations to maintain the virtual machine lifecycle.
[0040] In some embodiments, as shown in FIG. 4, after determining that the computing server has been trusted to boot (i.e., step 23), the trustworthy measurement method may further include the following step S24.
[0041] Step 24, in response to identifying the virtualization operating environment of the computing server as being trustworthy, instructing the computing server to perform operations to maintain the virtual machine lifecycle, where the computing server performs trustworthy measurements on the virtual machine when changes occur in the virtual machine lifecycle.
[0042] In this step, if the trusted measurement device 1 determines that the computing server 2 has been trusted to boot, and the computing server 2 has already measured the operating system and VMM during the trusted boot process, it can be determined that the virtualization operating environment of the computing server 2 is trusted. Therefore, the virtualization control module of the trusted measurement device 1 can send a control command of the cloud platform control management module to the virtualization control proxy module of the computing server 2. The control command includes but is not limited to the control command sent by the security supervision control server 3, and is an operation control command for maintaining the virtual machine life cycle, such as a control command for creating, deleting, restarting, snapshotting, restoring, and moving a virtual machine. After the computing server 2 receives and executes the control command, a corresponding change occurs in the life cycle of the virtual machine, and at this time, a trusted measurement of the virtual machine of the computing server 2 is triggered. Here, the trusted VMM can create a trusted virtual safety measurement module (e.g., vTPM) while building the virtual machine, and allow the virtual machine to use it.
[0043] In some embodiments, as shown in FIG. 5, after instructing the computing server to perform operations to maintain the virtual machine lifecycle (i.e., step 24), the reliable measurement method further includes the following steps S25 to S27.
[0044] Step 25: accessing the virtual machine and identifying a boot mode of the second boot loader program of the virtual machine.
[0045] In this step, the trusted measurement device 1 connects to the VMM through the virtualization control module and the virtualization control proxy module of the computing server 2, accesses the inside of the virtual machine through a virtual machine monitoring channel (e.g., virtio console, etc.), executes a query command related to the virtual security measurement module through the virtualization control proxy module, and determines whether the startup mode of the virtual machine's bootloader (i.e., the second boot loader program) is a trusted startup mode.
[0046] Step 26, in response to the second boot loader program being in the trusted boot mode, obtain a second group of trusted measurements stored in the virtual machine.
[0047] In this step, if the trusted measurement device 1 determines that the second boot loader program is in a trusted boot mode, the virtualization control module of the trusted measurement device 1 reads the measurement results stored in the PCR (platform configuration register) of the safety measurement module from the computing server 2 (i.e., the second group of trusted measurement results) through the virtualization control proxy module of the computing server 2, and the second group of trusted measurement results are the trusted measurement results for the virtual machine. The second group of trusted measurement results includes multiple measurement results, such as the measurement results of the safety measurement module and the measurement results of the virtual machine application program.
[0048] Step 27: A step of determining that the virtual machine has been trusted to boot in response to the reliable measurement result of the second group being identical to a pre-stored reliable measurement expectation value of the second group, the reliable measurement expectation value of the second group being transmitted by the security central control server to the reliable measurement device.
[0049] In this step, the trusted measurement device 1 compares each measurement value in the second group of trusted measurement results with each expected value in the second group of trusted measurement expectations stored in advance, and if each measurement value is identical to the corresponding expected value, it determines that the virtual machine is a trusted startup. Here, the security central control server 3 transmits the trusted measurement expected value (i.e., the second group of trusted measurement expected value) of the virtual machine running on the computing server 2 to the trusted measurement device 1 in advance via an encrypted network. In some embodiments, the trusted measurement expected value may be transmitted in response to an active request from the trusted measurement device 1. The trusted measurement expected value may be transmitted via an encrypted network authenticated by a digital certificate, encrypted and stored in the safety measurement module of the trusted measurement device 1, and decrypted using the public key of the digital certificate of the security central control server 3 when used.
[0050] In some embodiments, after instructing the computing server to perform the operation to maintain the virtual machine lifecycle (i.e., step 24), the trusted measurement method further includes executing a third security management control policy in response to satisfying a second pre-defined condition, the second pre-defined condition including at least one of: not successfully accessing the virtual machine for more than a pre-defined amount of time, the second boot loader program of the virtual machine not being in a trusted boot mode, and the virtual machine being identified as not trustworthy booting.
[0051] In some embodiments, if the virtualization control module of the trusted measurement device 1 times out and cannot access the virtual machine, or the virtual machine has not been trusted booted, or the virtual machine's bootloader is not in trusted boot mode, the trusted measurement device 1 can execute a pre-installed third security management control policy.
[0052] In some embodiments, the third security management control policy includes at least one of sending a third security alert to a pre-configured server and instructing the computing server to suspend operation of the central processing unit CPU of the virtual machine.
[0053] The preset server that receives the third security alert may be the security central control server 3 or another cloud server.
[0054] In some embodiments, as shown in FIG. 6, after obtaining a second group of reliable measurement results stored in the virtual machine (i.e., step 26), the reliable measurement method further includes the following step S27'.
[0055] Step S27', in response to at least one of the second group of trusted measurement results differing from at least one of the second group of trusted measurement expectations, executes a fourth security management control policy.
[0056] If the trusted measurement result of the second group is not completely identical to the trusted measurement expected value of the second group cached in the trusted measurement device 1, it indicates that the virtual machine may have been illegally tampered with, or that the operating system and software of the virtual machine needs to be updated or upgraded, or that the measurement scope of the virtual machine's application program needs to be adjusted, and in such a case, a pre-configured fourth security management control policy is executed.
[0057] In some embodiments, the fourth security management control policy includes at least one of sending a fourth security alert to a pre-configured server, instructing the computing server to upgrade the operating system of the virtual machine, instructing the computing server to adjust the trusted measurement range of the application program of the virtual machine, and sending a measurement expectation update command to the computing server for the computing server to update the measurement expectation stored in the virtual machine.
[0058] The preset server that receives the fourth security alert may be the security central control server 3 or another cloud server.
[0059] In this embodiment, a reliable measurement device 1 performs reliable measurement on the virtualization operating environment of a technical server, and initiates measurement on the startup of a virtual machine, thereby ensuring the validity and reliability of the dynamic measurement of the host machine virtualization environment, the virtual machine operating system, and the application program.
[0060] In some embodiments, the trusted measurement method further includes receiving the trusted measurement expectation value of at least one group transmitted by the security central control server via an encrypted network, and locally storing the trusted measurement expectation value of the at least one group.
[0061] In this step, if the trusted measurement expected values of the trusted measurement device 1, the computing server 2, or their virtual machines need to be updated, the security control server 3 can be powered on only when updating occurs, and the trusted measurement expected values to be updated are sent to the trusted measurement device 1 via a security network authenticated by a digital certificate and cached, so the security control server 3 does not need to be online all the time and is less likely to be intruded or attacked.
[0062] The embodiment of the present application introduces a dynamic trusted measurement mechanism initiated by the trusted measurement device 1, in which the trusted measurement expectation value of the security central control server 3 is received and cached by the trusted measurement device 1, and then monitored through the communication interface of the computing server 2, to ensure that the computing server 2 measures its bootloader, operating system, hypervisor, and virtualization control proxy module and completes a trusted boot. It also performs trusted measurement monitoring on the virtual machine running on the computing server 2, to ensure that it uses a trusted boot method, and that the measurement results of the virtual machine operating system and key application programs are consistent with the expectations.
[0063] In order to better illustrate the technical solution of the present application, the present application will be further described in the following specific examples.
[0064] As shown in FIG. 7, the computing server uses an x86 computing server 71, and the trusted measurement device uses an arm64 control daughter card 72 to connect to the x86 computing server 71 via a PCI endpoint interface.
[0065] The x86 computing server 71 is a physical server that provides computing resources (CPU, internal memory, storage, network, etc.) to virtual machines, its CPU uses the x86 architecture, one of its PCI slots accesses a TPCM (Trust Platform Control Module), and the board card is a safety measurement module that can be powered on preferentially before the CPU is powered on and performs measurements on the BIOS and other hardware independently. The x86 computing server 71 further includes a remote power management module that supports the IPMI protocol and can be accessed via an independent power management interface.
[0066] The arm64 control daughter card 72 connects to the x86 computing server 71 via a PCI bus interface, and the arm64 control daughter card 72 acts as a PCI endpoint and is equipped with its own CPU (arm64 architecture), internal memory, Linux (registered trademark) operating system, and an independent security chip (TPM) as well, making it a security measurement module. The TPM chip connects the I2C bus to the system, and the arm64 control daughter card 72 stores the digital certificate of the security control server 73 and connects to the security control server 73 via a certificate-authenticated ssh (Secure Shell, Secure Shell Protocol) encrypted security network.
[0067] The cloud platform control proxy module in the ARM64 control daughter card 72 can use the openstack-nova-compute service program to perform reliable measurements when the ARM64 control daughter card 72 is started, communicate with the openstack components of other cloud platform main machines via a network interface, receive management information from the cloud platform administrator, and receive and store reliable measurement expectations of the x86 computing server 71 and the virtual machines running thereon, transmitted by the security central control server 73 via an encrypted network, by authenticating them with a digital certificate. The reliable measurement expectations are encrypted with the private key of the security central control server 73 and stored in the security hardware (TPM chip) of the ARM64 control daughter card 72, and are decrypted using the public key of the digital certificate when in use.
[0068] The VMC (Virtual Machine Controller) module is a virtualization control module that runs on the arm64 control daughter card 72, and connects to the VMC agent (virtualization control proxy) module of the x86 computing server 71 via a PCI interface to obtain the type and configuration information of the x86 computing server 71, such as the CPU type, security module type, and hypervisor type, converts the virtualization management instructions sent by the security central control server 73 into corresponding compatible commands, performs reliable measurement and monitoring of the x86 computing server 71 and virtual machines, controls the lifetime cycle of the virtual machine according to commands sent by QEMU (virtual operating system simulator), and can control its power state by the IPMI power management module of the x86 computing server 71 via the IPMI interface.
[0069] The VMC agent module resides in the x86 computing server 71 and serves as a virtualization control proxy program, capable of making reliable measurements when the x86 computing server 71 boots up, communicating with the VMC module of the arm64 control daughter card 72 via the PCI bus interface, and executing the transmission of VMC module commands.
[0070] The Virtual Machine Monitor (VMM) uses QEMU+KVM (Kernel-based Virtual Machine) as the underlying equipment of the hypervisor that creates and maintains the virtual machine's life cycle, and is equipped with the Virtio console technology to access the internal operating system of the virtual machine and execute corresponding commands.
[0071] The security control server 73 serves as the root of trust for the entire cloud platform and stores all of the trusted measurement expectations of the ARM64 control daughter cards 72, the x86 computing servers 71, and the virtual machines. To prevent intrusion, it is normally in a non-powered state and is powered on only when the trusted measurement expectations need to be updated, and transmits the updated trusted measurement expectations to each ARM64 control daughter card 72 via an SSH encrypted security network authenticated by a digital certificate and caches them, or transmits them after being requested voluntarily by each ARM64 control daughter card 72.
[0072] The implementation process of the reliable measurement method of this specific embodiment is as follows: The security control server 73 transmits the latest reliable measurement expectation values of the SSH encrypted security network, which have been previously authenticated by digital certificates, to each ARM64 control daughter card 72 and encrypts and caches them.
[0073] After the x86 computing server 71 is powered on, the TPCM board card starts operating first, and measures the reliability of the BIOS and bootloader based on the built-in root of trust. After confirming that they are reliable, the CPU starts operating, and the reliable BIOS runs to read the reliable measurement expected value pre-stored in the TPCM board card, and then measures the Linux (registered trademark) kernel. If the measured value and the expected value match, it indicates that the Linux (registered trademark) kernel is reliable, and then continues to dynamically measure the expected value to verify whether it is reliable to QEMU and VMC agent.
[0074] The arm64 control daughter card 72 is also powered at the same time, and during the boot process, the measurement expected values in the TPM chip are read, and dynamic and reliable measurements of openstack-nova-compute are sequentially completed for the bootloader, arm Linux (registered trademark) kernel, and VMC module. If the measurement values match those sent by the security central control server 72, the boot process is terminated.
[0075] The VMC module connects to a VMC agent running on the x86 computing server 71 via a PCI channel, and first performs a trusted measurement on the bootloader to confirm that it uses a trusted boot method.Then, the VMC agent reads the PCR value of the TPCM board card and compares it to see if it matches the trusted measurement expected value cached in the arm64 control daughter card 72.If they match, it is determined that the x86 computing server 71 has performed a trusted boot.
[0076] If it is determined that the x86 computing server 71 has not fully started up, or if the VMC module times out and is unable to connect to the VMC agent, or if the VMC agent is unable to read the PCR values in the TPCM of the x86 computing server 71, a pre-configured security management control policy is executed, for example, by shutting down the x86 computing server 71 via the IPMI power management module, locking the startup of the x86 computing server 71, and generating a security warning.
[0077] If the PCR expectation value in the TPCM of the x86 computing server 71 read by the VMC module via the VMC agent does not match the trusted measurement expectation value cached in the arm64 control daughter card 72, it indicates that the x86 computing server 71 may have been illegally tampered with, or the operating system and software of the x86 computing server 71 needs to be updated or upgraded, or the measurement range of the x86 computing server 71 needs to be adjusted. In this case, the arm64 control daughter card 72 sends a security alert to the cloud platform via openstack-nova-compute, or upgrades the system according to the cloud platform policy to adjust the dynamic measurement range of the application program. During the adjustment, the VMC module can update the measurement expectation value (PCR) in the TPCM board card according to the TPCM-related command sent by the VMC agent.
[0078] If it is confirmed that the x86 computing server 71 is a trusted boot, and the trusted boot process includes measurements of the operating system, QEMU, and VMC agent, it is determined that the virtualization operating environment of the x86 computing server 71 is trusted. The VMC module receives control of openstack-nova-compute, and creates, deletes, restarts, snapshots, restores, and migrates virtual machines on the x86 computing server 71 according to commands sent by the VMC agent, that is, it controls the lifecycle of the virtual machines. The trusted QEMU simulates a trusted virtual security module (vTPM) when creating a virtual machine, and allows the virtual machine to use it.
[0079] The VMC module executes a query command related to the virtual security module (vTPM) inside the virtual machine through the VMC agent and further through the virtio console channel provided by QEMU. Specifically, the measurement value stored in the PCR of the vTPM is read and compared with the expected reliable measurement value cached in the arm64 control daughter card 72 to determine whether the virtual machine bootloader is a reliable bootloader of the virtual machine expected by the cloud platform, thereby obtaining whether the internal operating system of the virtual machine is a reliable boot and whether the key application program (in this embodiment, the Redis database service program) in the virtual machine has undergone dynamic measurement during the reliable boot process.
[0080] If the VMC module times out and is unable to access the virtual machine, or if after accessing the virtual machine it is determined that the virtual machine's internal operating system bootloader is not trustworthy or has not undergone a trusted boot, the VMC module may execute a QEMU command via the VMC agent, including but not limited to security management control measures such as pausing the operation of the virtual CPU of the virtual machine and generating a security alert.
[0081] If the PCRs of the vTPM in the virtual machine read after the VMC module accesses the inside of the virtual machine through the VMC agent do not match the trusted measurement expectations cached in the arm64 control daughter card 72, it indicates that the virtual machine may have been illegally tampered with, or that the operating system of the virtual machine or the application programs in the virtual machine may need to be updated or upgraded, or that the dynamic measurement range of the application programs in the virtual machine needs to be adjusted. In this case, a security warning is generated and after confirmation by the cloud platform administrator and the virtual machine user, the operating system or application programs of the virtual machine can be upgraded, or the dynamic measurement range of the application programs in the virtual machine can be adjusted according to the cloud platform policy. After that, the VMC module executes commands related to the vTPM inside the virtual machine through the virtio console channel provided by QEMU through the VMC agent, and updates the measurement expectations (PCRs) in the vTPM device of the virtual machine.
[0082] When the security control server 73 needs to update the trusted measurement expectations of the arm64 control daughter card 72, the x86 computing server 71 or its virtual machines, it can be powered on only when an update is required, and sends and caches the updated trusted measurement expectations to each arm64 control daughter card 72 via an encrypted network authenticated by digital certificates.
[0083] Based on the same technical idea, the present embodiment further provides a trusted measurement device, which includes a first communication module 101 and a second processing module 102, as shown in FIG.
[0084] The first communication module 101 is used for connecting to a computing server when the trusted measurement device is trusted to start up, and obtaining a first group of trusted measurement results stored in the computing server.
[0085] The first processing module 102 is used to identify a boot mode of a first boot loader program of the computing server, and when the first boot loader program is in a trusted boot mode, instruct a first communication module to obtain a first group of trusted measurement results stored in the computing server, and in response to the first group of trusted measurement results being identical to a pre-stored first group of trusted measurement expected values, the first group of trusted measurement expected values being transmitted to the trusted measurement device by the security central control server.
[0086] In some embodiments, the first processing module 102 is further used for executing a first security management control policy after obtaining a first group of trusted measurement results stored in the computing server, in response to at least one of the first group of trusted measurement results differing from at least one of the first group of trusted measurement expectations.
[0087] In some embodiments, the first security management control policy includes at least one of sending a first security alert to a pre-configured server, instructing the computing server to upgrade an operating system of the computing server, and instructing the computing server to adjust a trusted measurement range of the computing server.
[0088] In some embodiments, the first processing module 102 is further used to execute a second security management control policy in response to satisfying a first predetermined condition when the trusted measurement device performs a trusted boot, the first predetermined condition including at least one of: not successfully connecting to a computing server for more than a first predetermined length of time; not obtaining a first group of trusted measurement results stored in the computing server; the number of trusted measurement results in the first group being lower than the number of expected trusted measurement values in the first group; and the first boot loader program not being in a trusted boot mode.
[0089] In some embodiments, the second security management control policy includes at least one of sending a second security alert to a pre-configured server, instructing the computing server to shut down and locking the startup.
[0090] In some embodiments, the trusted measurement device further comprises a second processing module 103, as shown in FIG.
[0091] The second processing module 103 is used to instruct the computing server to perform operations to maintain a virtual machine lifecycle in response to determining that the computing server's virtualization operating environment is trusted after determining that the computing server has booted reliably, and the computing server performs reliable measurements on the virtual machine when a change occurs in the virtual machine's lifecycle.
[0092] In some embodiments, the second processing module 103 is further used to access the virtual machine after the computing server instructs it to perform an operation to maintain the virtual machine lifecycle, identify a boot mode of a second boot loader program of the virtual machine, obtain a second group of trusted measurement results stored in the virtual machine in response to the second boot loader program being in a trusted boot mode, and identify the virtual machine as having booted trustfully in response to the second group of trusted measurement results being identical to the pre-stored second group of trusted measurement expected values, and the second group of trusted measurement expected values are transmitted to the trusted measurement device by the security central control server.
[0093] In some embodiments, the second processing module 103 is further used for executing a third security management control policy in response to satisfaction of a second predetermined condition after instructing the computing server to perform an operation to maintain the virtual machine lifecycle, the second predetermined condition including at least one of: not successfully accessing the virtual machine for a predetermined length of time; the second boot loader program of the virtual machine not being in a trusted boot mode; and the virtual machine being identified as not booting trustworthy.
[0094] In some embodiments, the third security management control policy includes at least one of sending a third security alert to a pre-configured server and instructing the computing server to suspend operation of the central processing unit CPU of the virtual machine.
[0095] In some embodiments, the second processing module 103 is further used for executing a fourth security management control policy after obtaining a second group of trusted measurement results stored in the virtual machine, in response to at least one of the second group of trusted measurement results differing from at least one of the second group of trusted measurement expectations.
[0096] In some embodiments, the fourth security management control policy includes at least one of sending a fourth security alert to a pre-configured server, instructing the computing server to upgrade the operating system of the virtual machine, instructing the computing server to adjust the trusted measurement range of the application program of the virtual machine, and sending a measurement expectation update command to the computing server for the computing server to update the measurement expectation stored in the virtual machine.
[0097] In some embodiments, the trusted measurement device further comprises a second communication module 104, as shown in FIG.
[0098] The second communication module 104 is used for receiving the reliable measurement expectation value of at least one group sent by the security central control server via the encrypted network, and locally storing the reliable measurement expectation value of the at least one group.
[0099] The present embodiments further provide a computer device, the computer device having one or more processors and a storage device, one or more programs stored in the storage device, the one or more programs, when executed by the one or more processors, causing the one or more processors to realize the reliable measurement method provided by each of the embodiments.
[0100] The present embodiment further provides a computer-readable medium having a computer program stored thereon, the computer program, when executed, causing the processor to implement the reliable measurement method provided by each of the embodiments above.
[0101] Those skilled in the art can understand that all or some steps of the methods disclosed above, functional modules / units in the apparatus may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware embodiments, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components, for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical modules may be implemented as software executed by a processor such as a central processing unit, a digital signal processor, or a microprocessor, or may be implemented as hardware, or as an integrated circuit such as a dedicated integrated circuit. Such software may be disposed in a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As known to those skilled in the art, the technical term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk memory, magnetic boxes, magnetic tapes, magnetic disk memory or other magnetic storage devices, or any other medium that stores the desired information and can be accessed by a computer. Additionally, those skilled in the art will appreciate that communication media typically include computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, and can include any information delivery media.
[0102] Although embodiments are disclosed herein and specific terms are employed, they are used and should be interpreted as merely general illustrative and not limiting. It is obvious to those skilled in the art that in some embodiments, unless otherwise specified, the features, characteristics and / or elements described in combination with a particular embodiment can be used alone or in combination with the features, characteristics and / or elements described in combination with other embodiments. Thus, those skilled in the art can appreciate that changes in various forms and details can be made without departing from the scope of the present application as described by the appended claims.
Claims
1. A reliable measurement method applied to a reliable measurement device, comprising: if the trusted measurement device has been trusted booted, connecting to a computing server to determine a boot mode of a first boot loader program of the computing server; responsive to the first boot loader program being in a trusted boot mode, obtaining a first group of trusted measurements stored on the computing server; and determining that the computing server has performed a trusted boot in response to the first group of trusted measurement results being identical to a pre-stored first group of trusted measurement expectations, the first group of trusted measurement expectations being transmitted to the trusted measurement device by a security central control server. Reliable measurement method.
2. After obtaining a first group of reliable measurement results stored in the computing server, and executing a first security management control policy in response to at least one of the first group of trusted measurement results differing from at least one of the first group of trusted measurement expectations. The method of claim 1.
3. The first security management control policy is: sending a first security alert to a pre-configured server; Instructing the computing server to upgrade an operating system of the computing server; and instructing the computing server to adjust a reliable measurement range of the computing server. The method of claim 2.
4. If the trusted measurement device performs a trusted start-up, and executing a second security management control policy in response to the first predetermined condition being satisfied; The preset first condition is: a first pre-defined time period has elapsed without successfully connecting to the computing server; not obtaining a first group of reliable measurements stored on the computing server; the number of reliable measurement results in the first group being less than the number of reliable measurement expectations in the first group; The first boot loader program is not in a trusted boot mode. The method of claim 1.
5. The second security management control policy is: sending a second security alert to a pre-configured server; instructing the computing server to shut down and locking the startup. The method according to claim 4.
6. After determining that the computing server has been trusted to boot, in response to identifying the virtualized operating environment of the computing server as trusted, directing the computing server to perform operations to maintain a virtual machine lifecycle; The method further includes the step of the computing server performing reliable measurements on the virtual machine when a change occurs in the life cycle of the virtual machine. The method of claim 1.
7. after instructing the computing server to perform operations to maintain a virtual machine lifecycle; accessing the virtual machine and identifying a boot mode of a second boot loader program of the virtual machine; obtaining a second group of trusted measurements stored in the virtual machine in response to the second boot loader program being in a trusted boot mode; and determining that the virtual machine has been booted reliably in response to the reliable measurement result of the second group being identical to a pre-stored reliable measurement expectation value of the second group, the reliable measurement expectation value of the second group being transmitted to the reliable measurement device by a security central control server. The method according to claim 6.
8. after instructing the computing server to perform operations to maintain a virtual machine lifecycle; and executing a third security management control policy in response to the second predetermined condition being satisfied; The second preset condition is a pre-defined period of time has elapsed without successful access to the virtual machine; The second boot loader program of the virtual machine is not in a trusted boot mode; The virtual machine is identified as not running trustworthy. The method according to claim 7.
9. The third security management control policy is: sending a third security alert to a pre-configured server; and instructing the computing server to suspend operation of a central processing unit CPU of the virtual machine. The method according to claim 8.
10. After obtaining a second group of reliable measurements stored in the virtual machine, and executing a fourth security management control policy in response to at least one of the second group of trusted measurement results differing from at least one of the second group of trusted measurement expectations. The method according to claim 7.
11. The fourth security management control policy is: sending a fourth security alert to a pre-configured server; Instructing the computing server to upgrade an operating system of a virtual machine; instructing the computing server to adjust a trusted measurement range for an application program of the virtual machine; and transmitting to the computing server a measurement expectation update command for causing the computing server to update the measurement expectation stored in the virtual machine. The method of claim 10.
12. The method further includes receiving the reliable measurement expectation value of at least one group transmitted by the security overall control server via an encrypted network, and locally storing the reliable measurement expectation value of the at least one group. The method according to any one of claims 1 to 11.
13. A first communication module and a first processing module are provided, The first communication module is connecting said trusted measurement device to a computing server when said trusted measurement device performs a trusted boot; and obtaining a first group of reliable measurements stored in the computing server; The first processing module is The method is used to determine a boot mode of a first boot loader program of the computing server, and if the first boot loader program is in a trusted boot mode, to instruct the first communication module to obtain a first group of trusted measurement results stored in the computing server; and, in response to the first group of trusted measurement results being identical to a first group of trusted measurement expected values stored in advance, to determine that the computing server has performed a trusted boot, the first group of trusted measurement expected values being transmitted to the trusted measurement device by a security central control server. A measuring device you can trust.
14. one or more processors; A storage device having one or more programs stored therein, The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the reliable measurement method according to any one of claims 1 to 12. Computer device.
15. A computer readable medium having stored thereon a computer program, said computer program being adapted to cause said processor to implement the method for reliable measurement according to any one of claims 1 to 12, when said computer program is executed. Computer-readable medium.
Citation Information
Patent Citations
Electronic mail communication apparatus
JP2009100439A
Information processing apparatus, information processing system, information processing method, and program
JP2017153044A
Integrity verification device, integrity verification system, integrity verification method and integrity verification program
JP2019133220A
Information processing apparatus
JP2021047799A
Information processing apparatus, information processing system, information processing method, and computer-readable medium
US20170249483A1
