Virtual machine startup protection method based on trusted computing

By creating encrypted storage of identity keys and metric values ​​in the virtual machine, and using trusted roots for virtual machine identity authentication, the problem of tampering with the virtual machine when it is not running is solved and the integrity of the virtual machine data and keys are ensured. Safety.

CN118796358APending Publication Date: 2024-10-18BEIJING UNIV OF TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411034284.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The virtual machine may be tampered with when it is not running, and the decryption key cannot be protected when the virtual machine monitor is attacked by RootKit, resulting in data leakage and loss of integrity.

Method used

Adopt a method based on trusted computing to create virtual machine identity keys, measure images and configuration files, store measurement values ​​and encrypt them in the root of trust, and use UUID to authenticate the virtual machine identity to ensure that it is started, modified, and suspended. and integrity protection during recovery.

Benefits of technology

It effectively prevents virtual machine images from being tampered with and protects data integrity. Even if the virtual machine monitor is attacked by RootKit, the decryption key cannot be obtained, ensuring data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796358A_ABST
    Figure CN118796358A_ABST
Patent Text Reader

Abstract

The invention discloses a trusted computing-based virtual machine startup protection method, and belongs to the technical field of information security. The invention provides full-life-cycle integrity protection for the virtual machine. The process of the scheme comprises several parts of creating the virtual machine, starting the virtual machine, modifying the configuration of the virtual machine, suspending or shutting down the virtual machine and continuing the virtual machine, and the method solves the problems that the mirror image of the virtual machine is possibly tampered when the virtual machine is in a non-running state, and a malicious user cannot obtain the key. Therefore, the integrity of the data of the virtual machine is ensured, and even if the virtual machine monitor is RootKit, the decryption key cannot be obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention proposes a protection method for virtual machine startup based on trusted computing, belonging to the technical field of information security. Background Art

[0002] Cloud computing provides computing resources and services on demand through the Internet and has become the cornerstone of modern information technology. It allows enterprises and individuals to easily obtain computing power, storage, network resources and application services without having to manage the underlying physical hardware. The advantages of cloud computing are its flexibility, scalability and cost-effectiveness, allowing users to dynamically adjust resources according to demand. Virtualization is one of the key technologies to achieve cloud computing. It can abstract physical hardware resources into multiple virtual machines, each of which runs an independent operating system and application programs and is isolated from each other. Although virtualization has brought many conveniences and efficiencies, it still faces many security issues during the startup and operation of virtual machines, which require special attention and response.

[0003] In the life cycle of a virtual machine, it can be divided into running, suspended, and shutdown states. In the running state, there is a dynamic protection mechanism inside the virtual machine, but in the shutdown and suspended non-running states of the virtual machine, the virtual machine exists on the host machine as a static file. There is a lack of relevant mechanisms for protection, and the virtual machine is modified by unauthorized entities, causing data leakage and other problems; if the virtual machine monitor is RootKit, the integrity of the virtual machine will be attacked. The protection technologies currently used in virtualization environments are mainly divided into the following two categories: First, adding a virtual machine trusted module to the virtual machine hardware. After establishing the physical trust chain in the virtual machine monitor, the virtual machine trust chain based on the virtual trusted module is added to achieve a complete trust chain from the physical machine startup to the virtual machine startup. This technology can reduce the risk of RootKit attacks from inside the virtual machine to a certain extent, but the virtual machine's disk is still stored in plain text, and attackers can read the data in it by obtaining the disk file.

[0004] Second, run a program in the virtual machine monitor to encrypt the virtual machine disk. This technology makes the virtual machine disk usually stored in ciphertext form, and even if the attacker obtains the disk file, he cannot read the data in it. However, since the encryption and decryption operations of the virtual machine disk are completed in the virtual machine monitor, it is possible for the RootKit in the virtual machine monitor to obtain the decryption key.

[0005] The present invention solves the problem that the virtual machine image may be tampered with when the virtual machine is not in operation and the identity may be used fraudulently when the virtual machine is updated. Even if the virtual machine monitor is rooted, the decryption key cannot be obtained. Summary of the invention

[0006] The present invention provides a method for protecting the integrity of virtual machine startup based on trusted computing, and a method for protecting the integrity of virtual configuration file virtual machine image file by using a trusted root

[0007] In order to solve the existing technical problems, the technical solution adopted by the present invention is:

[0008] A virtual machine startup protection method based on trusted computing, characterized in that:

[0009] (1) When detecting that the virtual machine manager creates a virtual machine

[0010] ①Create a virtual machine identity key;

[0011] ②Measure the virtual machine's image and configuration files;

[0012] ③ Encrypt and store the measurement value in the measurement reference value library;

[0013] ④ Encrypt and store the private key of the virtual machine identity key in the virtual machine configuration file, and store the public key of the virtual machine identity key in the key management library;

[0014] (2) When the virtual machine manager starts the virtual machine

[0015] ① Use the UUID of the virtual machine itself to find and read the public key of the virtual machine identity key in the key management library and the private key of the virtual machine identity key in the virtual machine configuration file to authenticate the identity of the virtual machine;

[0016] ②Measure the hard disk files and configuration files of the virtual machine;

[0017] ③ Obtain the measurement benchmark value from the measurement benchmark value library;

[0018] ④Compare the measurement benchmark value with the measurement value. If the measurement value is consistent with the benchmark value, continue to start the virtual machine, otherwise terminate the startup of the virtual machine;

[0019] (3) When the virtual machine manager is about to modify the virtual machine configuration

[0020] ① Use the virtual machine UUID to find and read the public key of the virtual machine identity key in the key management library and the private key of the virtual machine identity key in the virtual machine configuration file to authenticate the identity of the virtual machine;

[0021] ②After verification, calculate the new baseline value of the configuration file;

[0022] ③ Update the benchmark value in the virtual machine benchmark value library with the new benchmark value;

[0023] (4) When the virtual machine manager suspends or shuts down the virtual machine

[0024] ① Use the virtual machine UUID to find and read the public key of the virtual machine identity key in the key management library and the private key of the virtual machine identity key in the virtual machine configuration file to authenticate the identity of the virtual machine;

[0025] ②After verification, calculate the baseline values ​​of the hard disk, snapshot, and configuration files;

[0026] ③ Update the benchmark value in the virtual machine benchmark value library with the new benchmark value;

[0027] (5) When the virtual machine manager is about to continue the virtual machine

[0028] ① Use the virtual machine UUID to find and read the public key of the virtual machine identity key in the key management library and the private key of the virtual machine identity key in the virtual machine configuration file to authenticate the identity of the virtual machine;

[0029] ②Measure the hard disk files and configuration files of the virtual machine;

[0030] ③ Obtain the measurement benchmark value from the measurement benchmark value library;

[0031] ④ Compare the measurement baseline value with the measurement value. If the measurement value is consistent with the baseline value, continue to start the virtual machine, otherwise terminate the startup of the virtual machine.

[0032] Furthermore, all the above encryption and decryption are performed in the trusted root, so the key can be protected from unauthorized theft.

[0033] The beneficial effect of the present invention is that the virtual machine image may be tampered when the virtual machine is not in operation, and malicious users cannot obtain the key. Therefore, the integrity of the virtual machine data is guaranteed, and even if the virtual machine monitor is rooted, the decryption key cannot be obtained. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is an overall conceptual diagram of the protection method for virtual machine startup based on trusted computing designed for the present invention. DETAILED DESCRIPTION

[0035] A method for protecting the integrity of virtual machine startup based on trusted computing includes several parts, such as when detecting a virtual machine manager creating a virtual machine, when detecting a virtual machine manager about to modify the virtual machine configuration, when detecting a virtual machine manager after suspending or shutting down the virtual machine, and when detecting a virtual machine manager starting or continuing the virtual machine.

[0036] like Figure 1As shown, the implementation of the method consists of several parts, such as a virtual machine identity authentication module, a trusted root, a virtual machine measurement module, a key management module, a virtual machine baseline value library, and an active monitoring module. The virtual machine measurement module is responsible for calculating the measurement value of the virtual machine related files and comparing it with the baseline value stored in the virtual machine baseline value library to ensure the integrity of the virtual machine. The key management module is responsible for managing the virtual machine identity key. The virtual machine baseline value library is responsible for storing the baseline value of the virtual machine. The active monitoring module is responsible for monitoring the state change of the virtual machine.

[0037] When detecting that the virtual machine manager creates a virtual machine: the active monitoring module detects the virtual machine manager's request to create a virtual machine, and applies for the virtual machine identity key from the trusted root, notifies the virtual machine baseline value library to calculate the hash value of the virtual machine configuration file and the virtual machine image file, and uses the trusted root storage key a to encrypt and store it in the baseline value library. The virtual machine authentication module uses the private key of the certificate key to encrypt the private key of the virtual machine identity key, and adds some necessary information to form a virtual machine identity certificate. The public key of the virtual machine identity key is encrypted by the trusted root storage key b and stored in the key management module. The trusted root storage key a and the trusted root storage key b can use different asymmetric key algorithms, and the calculation of the hash value can use different hash value algorithms.

[0038] Detect when the virtual machine manager turns on the virtual machine: when the virtual machine is turned on from the shutdown state, the active monitoring module detects the virtual machine startup request, the active monitoring module requests the virtual machine identity authentication module to authenticate the virtual machine identity, and reads the virtual machine identity certificate and sends it to the virtual machine identity authentication module. The virtual machine identity authentication module requests the key management module to provide the virtual machine identity key public key. The key management module finds the public key part of the virtual machine identity key and uses the trusted root storage key b stored in NV to decrypt and send it to the virtual machine identity authentication module. The virtual machine identity authentication module extracts the virtual machine identity private key encrypted by the private key of the certificate key in the virtual machine identity certificate and sends it to the trusted root. The trusted root uses the public key of the certificate key to decrypt and uses the public key of the virtual machine identity key to verify the private key of the identity key to determine the identity of the virtual machine. After determining the identity, the virtual machine identity authentication module sends the identity authentication certificate to the virtual machine measurement module. The virtual machine measurement module sends the identity authentication certificate to the virtual machine benchmark value library. After receiving the certificate, the virtual machine benchmark value library automatically uses the trusted root storage key b to decrypt the benchmark value and sends it to the virtual machine measurement module. The virtual machine measurement module compares the benchmark value with the hash value of the virtual machine configuration file and the virtual machine image file. If they are consistent, the virtual machine image is loaded normally to start. If they are inconsistent, the startup is terminated. The trusted root storage key a and the trusted root storage key b may use different asymmetric key algorithms, and the calculation of hash values ​​may use different hash value algorithms.

[0039] When it is detected that the virtual machine manager is about to modify the virtual machine configuration: when the virtual machine switches from the running state to the non-running state, that is, when it is shut down from the running state or suspended from the running state, the active monitoring module detects the state switching request, and the active monitoring module requests the virtual machine identity authentication module to authenticate the virtual machine identity, and reads the virtual machine identity certificate and sends it to the virtual machine identity authentication module. The virtual machine identity authentication module requests the key management module to provide the virtual machine identity key public key. The key management module finds the public key part of the virtual machine identity key and uses the trusted root storage key b stored in NV to decrypt and send it to the virtual machine identity authentication module. The virtual machine identity authentication module extracts the virtual machine identity private key encrypted by the private key of the certificate key in the virtual machine identity certificate and sends it to the trusted root. The trusted root uses the public key of the certificate key to decrypt and uses the public key of the virtual machine identity key to verify the private key of the identity key to determine the identity of the virtual machine. After determining the identity, the virtual machine identity authentication module sends the identity authentication certificate to the virtual machine baseline value library. The virtual machine baseline value library receives the identity authentication certificate and allows it to continue to be modified. Then the virtual machine configuration file and the virtual machine image file are calculated. The hash value is calculated and encrypted using the trusted root storage key a and the virtual machine baseline value library is updated. The trusted root storage key a and the trusted root storage key b may use different asymmetric key algorithms, and the calculation of hash values ​​may use different hash value algorithms.

[0040] After the virtual machine manager is detected to suspend or shut down the virtual machine: the active monitoring module detects the state switching request, the active monitoring module requests the virtual machine identity authentication module to authenticate the virtual machine identity, and reads the virtual machine identity certificate and sends it to the virtual machine identity authentication module. The virtual machine identity authentication module requests the key management module to provide the virtual machine identity key public key. The key management module finds the public key part of the virtual machine identity key and uses the trusted root storage key b stored in NV to decrypt and send it to the virtual machine identity authentication module. The virtual machine identity authentication module extracts the virtual machine identity private key encrypted by the private key of the certificate key in the virtual machine identity certificate and sends it to the trusted root. The trusted root uses the public key of the certificate key to decrypt and uses the public key of the virtual machine identity key to verify the private key of the identity key to determine the identity of the virtual machine. After determining the identity, the virtual machine identity authentication module sends the identity authentication certificate to the virtual machine baseline value library. The virtual machine baseline value library receives the identity authentication certificate, calculates the virtual machine configuration file, virtual machine image file and snapshot file, etc., calculates the hash value, and uses the trusted root storage key a to encrypt and update the virtual machine baseline value library. The trusted root storage key a and the trusted root storage key b can use different asymmetric key algorithms, and the hash value calculation can use different hash value algorithms.

[0041] Detecting when the virtual machine manager continues the virtual machine: when continuing from the suspended state, the active monitoring module detects the request to continue the virtual machine, the active monitoring module requests the virtual machine identity authentication module to authenticate the virtual machine identity, and reads the virtual machine identity certificate and sends it to the virtual machine identity authentication module. The virtual machine identity authentication module requests the key management module to provide the virtual machine identity key public key. The key management module finds the public key part of the virtual machine identity key and uses the trusted root storage key b stored in NV to decrypt and send it to the virtual machine identity authentication module. The virtual machine identity authentication module extracts the virtual machine identity private key encrypted by the private key of the certificate key in the virtual machine identity certificate and sends it to the trusted root. The trusted root uses the public key of the certificate key to decrypt and uses the public key of the virtual machine identity key to verify the private key of the identity key to determine the identity of the virtual machine. After determining the identity, the virtual machine identity authentication module sends the identity authentication certificate to the virtual machine measurement module. The virtual machine measurement module sends the identity authentication certificate to the virtual machine benchmark value library. After receiving the certificate, the virtual machine benchmark value library automatically uses the trusted root storage key b to decrypt the benchmark value and sends it to the virtual machine measurement module. The virtual machine measurement module compares the benchmark value with the hash value of the virtual machine configuration file, the virtual machine image file and the snapshot file. If they are consistent, the virtual machine image is loaded normally to continue the virtual machine. If they are inconsistent, the virtual machine is terminated. The trusted root storage key a and the trusted root storage key b may use different asymmetric key algorithms, and the calculation of hash values ​​may use different hash value algorithms.

[0042] The present invention is a method for protecting the integrity of virtual machine startup based on trusted computing, which is embodied as a security chip during specific implementation. The function of the chip can be used through instructions to protect the integrity of virtual machine startup.

Claims

1. A virtual machine startup protection method based on trusted computing, Features: (1) When detecting that the virtual machine manager creates a virtual machine ①Create a virtual machine identity key; ②Measure the virtual machine's image and configuration files; ③ Encrypt and store the measurement value in the measurement reference value library; ④ Encrypt and store the private key of the virtual machine identity key in the virtual machine configuration file, and store the public key of the virtual machine identity key in the key management library; (2) When the virtual machine manager starts the virtual machine ① Use the UUID of the virtual machine itself to find and read the public key of the virtual machine identity key in the key management library and the private key of the virtual machine identity key in the virtual machine configuration file to authenticate the identity of the virtual machine; ②Measure the hard disk files and configuration files of the virtual machine; ③ Obtain the measurement benchmark value from the measurement benchmark value library; ④Compare the measurement benchmark value with the measurement value. If the measurement value is consistent with the benchmark value, continue to start the virtual machine, otherwise terminate the startup of the virtual machine; (3) When the virtual machine manager is about to modify the virtual machine configuration ① Use the virtual machine UUID to find and read the public key of the virtual machine identity key in the key management library and the private key of the virtual machine identity key in the virtual machine configuration file to authenticate the identity of the virtual machine; ②After verification, calculate the new baseline value of the configuration file; ③ Update the benchmark value in the virtual machine benchmark value library with the new benchmark value; (4) When the virtual machine manager suspends or shuts down the virtual machine ① Use the virtual machine UUID to find and read the public key of the virtual machine identity key in the key management library and the private key of the virtual machine identity key in the virtual machine configuration file to authenticate the identity of the virtual machine; ②After verification, calculate the hard disk, snapshot and baseline values; ③ Update the benchmark value in the virtual machine benchmark value library with the new benchmark value; (5) When the virtual machine manager is about to continue the virtual machine ① Use the virtual machine UUID to find and read the public key of the virtual machine identity key in the key management library and the private key of the virtual machine identity key in the virtual machine configuration file to authenticate the identity of the virtual machine; ②Measure the hard disk files and configuration files of the virtual machine; ③ Obtain the measurement benchmark value from the measurement benchmark value library; ④ Compare the measurement baseline value with the measurement value. If the measurement value is consistent with the baseline value, continue to start the virtual machine, otherwise terminate the startup of the virtual machine.

Citation Information

Cited By

  • Virtual machine trusted startup method based on dual-system architecture

    CN119808096A