Method for protecting residual information of virtual disk
By adopting multi-layer security policies in virtual disks, including key management and hardware security module encryption, the data theft risk of residual information in virtual disks is solved, and thorough protection of residual information in virtual disks is achieved, preventing data leakage and enhancing Security of cloud computing platform.
Patent Information
- Application Number
- CN202411233670.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2024-11-22
AI Technical Summary
After the virtual disk is deleted in the prior art, there is still residual information in the physical storage space, and there is a risk of data theft, resulting in the possibility of data leakage.
Adopt multi-layer security policy, including the key management module initialization to generate the master key MKEK, the storage virtualization module generates the data encryption key DEK when creating the virtual disk, and encrypts and decrypts it through the hardware security module, and performs the user data when it drops the disk. Encryption, perform DEK cleaning, deletion delay and disk overwrite during deletion, and evaluate the overwrite effect through the disk overwrite evaluation module.
Effectively prevent data leakage, protect user privacy, enhance data security, provide clear data cleaning processes and strict security control measures, enhance users' trust in cloud computing services, and promote industry digitalization and information transformation.
Smart Images

Figure CN119004513A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of computer technology, and in particular relates to a method for protecting residual information of a virtual disk. Background Art
[0002] With the popularization of cloud computing technology in various industries, cloud security, especially cloud data security, has become a topic of increasing concern. As the basic unit of data storage in the cloud environment, virtual disks carry various important information and business data of users. In order to strengthen the security and privacy protection of user data, cloud computing vendors have adopted a variety of protection technologies to ensure the security of user data throughout its life cycle, including data encryption, disk integrity verification, data erasure, auditing and tracing. The above measures have greatly enhanced the capabilities of virtual disks in "preventing unauthorized access", "preventing unauthorized tampering", "auditing and tracing", etc., and to a certain extent met the urgent needs of users for cloud data security.
[0003] However, these conventional security protection measures still have large risk loopholes, especially in the protection of residual information of virtual disks. That is, when a virtual disk is deleted from the cloud platform, most cloud platforms perform two-stage operations. In the first stage, the metadata of the virtual disk is immediately destroyed when the virtual disk is deleted. In the second stage, data is erased before the physical space corresponding to the virtual disk is reallocated. In the above two-stage operation, the first stage only acts on the cloud virtualization layer and does not go deep into the underlying physical storage space in time. That is, there is still residual information of the virtual disk in the physical storage space. Before the second stage of physical storage space data erasure is executed, there is a time window, which allows data thieves to steal user data through residual information, resulting in data leakage. Summary of the invention
[0004] 1. Technical issues to be resolved
[0005] The technical problem to be solved by the present invention is how to provide a method for protecting residual information of a virtual disk, so as to solve the problem that the residual information of the virtual disk has a large risk vulnerability.
[0006] (II) Technical solution
[0007] In order to solve the above technical problem, the present invention proposes a method for protecting residual information of a virtual disk, which comprises the following steps:
[0008] S11, when the key management module is initialized, the hardware security module is triggered to generate a master key MKEK as the key for encrypting the data key; after the MKEK is generated, the key is stored in the hardware security module and protected in a physically isolated manner;
[0009] S12, when creating a virtual disk, the storage virtualization module sends a data encryption key DEK creation instruction to the hardware security module via the key management module, the hardware security module generates a DEK, and encrypts the DEK using the MKEK to generate a protected data encryption key PDEK, the hardware security module returns the PDEK to the key management module, and stores it in the key management module;
[0010] S13, the key management module generates the UUID of the PDEK, namely the PDEK ID, and gives it to the storage virtualization module. The PDEK ID is used to identify a virtual disk. When the user wants to read the plaintext data in the virtual disk through the storage virtualization module, only by carrying this PDEK ID can the key management module match the PDEK, and then decrypt the DEK in the hardware security module;
[0011] S14. When user data is stored on the disk, the virtual disk carries the PDEK ID to the key management module to locate the PDEK, and then transmits the PDEK to the hardware security module. After decryption by the MKEK, a one-to-one DEK corresponding to the virtual disk is obtained. At this time, the DEK is used as the encryption key, and the hardware security module uses the encryption algorithm to encrypt the user data from plain text to ciphertext. After the encryption is completed, the hardware security module sends the ciphertext data to the storage virtualization module;
[0012] S15. When the user reads data from the virtual disk, the virtual disk carries the PDEK ID to the key management module to find the PDEK. The key management module transmits the PDEK to the hardware security module. In the hardware security module, the PDEK is decrypted by the MKEK to obtain a one-to-one DEK for the virtual disk. At this time, the DEK is used as the decryption key. The hardware security module uses the decryption algorithm to decrypt the user data from the ciphertext to the plaintext, and transmits the plaintext data to the storage virtualization module. The user reads the plaintext data through the storage virtualization module.
[0013] S16. When the user initiates virtual disk deletion, the disk overwrite module performs DEK cleaning, deletion delay and disk overwrite, and the disk overwrite evaluation module evaluates the overwrite effect.
[0014] (III) Beneficial effects
[0015] The present invention proposes a method for protecting residual information on virtual disks. Compared with the prior art, the present invention enhances the protection capability of residual information on virtual disks by implementing multi-layer security strategies, including data encryption, write-0 overwriting, verification process and other links, which can effectively prevent data leakage, protect user privacy, and strengthen data security. In addition, the present invention provides a clear data cleaning process and strict security control measures for cloud computing platforms, which is conducive to enhancing users' trust in cloud computing services, promoting more users to realize business cloud migration, and accelerating the pace of digitalization and informatization transformation of various industries in the country from a technical level. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a relationship diagram of each module of the present invention;
[0017] Figure 2 This is the data encryption and decryption process of the present invention;
[0018] Figure 3 The data coverage flow chart of the present invention;
[0019] Figure 4 This is a flow chart of the data coverage evaluation method of the present invention;
[0020] Figure 5 This is a data recoverability assessment diagram of the present invention. DETAILED DESCRIPTION
[0021] In order to make the purpose, content and advantages of the present invention more clear, the specific implementation methods of the present invention are further described in detail below in conjunction with the drawings and examples.
[0022] The present invention relates to the field of computers, and in particular to a method for protecting residual information of a virtual disk, which aims to encrypt and protect all sensitive data stored in the virtual disk and completely and irreversibly clear the data when the virtual disk resources are recycled.
[0023] The purpose of the present invention is to provide a method for protecting residual information of a virtual disk, which aims to encrypt and protect all sensitive data stored in the virtual disk and completely and irreversibly clear the data when the virtual disk resources are recycled.
[0024] In order to solve the risk loopholes mentioned in the above background technology, the present invention proposes a method for protecting residual information of virtual disks. First, the concepts and relationships of the various modules of the system need to be explained:
[0025] like Figure 1 As shown in the figure, the concepts of each module and their relationships are as follows:
[0026] Storage virtualization module: is a software component connected to a physical storage device and used to virtualize the physical storage device into a pool, thereby enabling a single physical storage device to virtualize multiple virtual storage units. In this method, the user manages the virtual disk and processes the residual information through the storage virtualization module.
[0027] Key management module: It is a software component that is connected to the storage virtualization module and the hardware security module. It is used to connect the storage virtualization module and the hardware security module. When the user reads and writes data through the storage virtualization module, the storage virtualization module communicates with the hardware security module through the key management module, and the hardware security module implements data encryption and decryption.
[0028] Hardware security module: It is a physical hardware device connected to the key management module, used to provide hardware protection for digital keys, and has encryption and decryption functions. The hardware security module used in this method has been certified by the National Security Bureau Cryptography Management Center. The hardware security module communicates with the storage virtualization module through the key management module.
[0029] Disk overwrite module: It is a software component connected to the storage virtualization module and the physical storage device to provide virtual disk overwrite capability. The virtual disk write 0 overwrite, write 1 overwrite, and write random number overwrite mentioned below are all performed through the disk overwrite module.
[0030] Disk overwrite bottleneck module: It is a software component connected to the storage virtualization module and the physical storage device, used to evaluate the disk overwrite effect, and thereby determine whether to trigger the disk overwrite module to continue writing 1 overwrite and writing random number overwrite.
[0031] Physical storage device: a physical hardware device, mainly referring to a physical storage disk device.
[0032] The following is a detailed description of the technical solution of the application and how the technical solution of the application solves the above-mentioned technical problems with specific examples.
[0033] like Figure 1 As shown, the key management module is responsible for the encryption, decryption and key management of all user data, including the following steps:
[0034] S11. When the key management module is initialized, the hardware security module is triggered to generate a master key MKEK (MasterKeyEncryptionKey) as the key for encrypting the data key. After the MKEK is generated, the key is stored in the hardware security module and protected in a physically isolated manner.
[0035] S12. When creating a virtual disk, the storage virtualization module sends a command to create a data encryption key DEK (Data Encryption Key) to the hardware security module via the key management module. The hardware security module generates a DEK and encrypts the DEK using MKEK to generate a protected data encryption key PDEK (Protected Data Encryption Key). The hardware security module returns the PDEK to the key management module and stores it in the key management module.
[0036] S13, the key management module generates a UUID (unique identifier) of the PDEK, namely, the PDEKID, and hands it over to the storage virtualization module. The role of the PDEK ID is to identify a virtual disk. When the user wants to read the plaintext data in the virtual disk through the storage virtualization module, only by carrying this PDEK ID can the key management module match the PDEK, and then decrypt the DEK in the hardware security module. In this step, the key management system generates a unique UUID and associates it with the PDEK.
[0037] S14. When user data is stored on disk, the virtual disk carries the PDEK ID to the key management module to locate the PDEK, and then transmits the PDEK to the hardware security module. After decryption by MKEK, a one-to-one DEK corresponding to the virtual disk is obtained. At this time, DEK is used as an encryption key. The hardware security module uses an encryption algorithm to encrypt user data from plain text to ciphertext. After encryption, the hardware security module sends the ciphertext data to the storage virtualization module. The encryption algorithm is SM4 algorithm.
[0038] S15. When the user reads the data in the virtual disk, the virtual disk carries the PDEK ID to the key management module to find the PDEK. The key management module transmits the PDEK to the hardware security module. In the hardware security module, the PDEK is decrypted by the MKEK to obtain a one-to-one DEK with this virtual disk. At this time, the DEK is used as the decryption key. The hardware security module uses the decryption algorithm to decrypt the user data from ciphertext to plaintext, and transmits these plaintext data to the storage virtualization module. The user reads the plaintext data through the storage virtualization module. The decryption algorithm is the SM4 algorithm.
[0039] S16. When the user initiates virtual disk deletion, the disk overwrite module performs DEK cleaning, deletion delay and disk overwrite, and the disk overwrite evaluation module evaluates the overwrite effect.
[0040] It should be pointed out that 1) in the above S11 to S16 processes, data transmission is carried out through the HTTPS encryption protocol;
[0041] 2) After the data is encrypted and stored on the disk, it will be stored in ciphertext. DEK, as the only decryption key, is encrypted and stored in the hardware security module;
[0042] 3) The hardware security module used complies with the regulations of the National Cryptography Administration and has the relevant certification certificate from the National Cryptography Administration.
[0043] like Figure 2 As shown in the figure, when the user initiates virtual disk deletion, the disk overwrite module will perform DEK cleaning, deletion delay, and disk overwrite, including the following steps:
[0044] S21. When the user initiates the deletion of a virtual disk, the storage virtualization module first uninstalls the virtual disk from the mounting device, and then immediately cleans up the PDEK ID stored in itself, and at the same time sends instructions to the key management module to clean up the PDEK and DEK. The cleaning of the DEK is performed in the hardware security module, and the hardware security module ensures that the cleaning is absolutely irreversible. Therefore, when the user decides to delete the virtual disk, the only decryption channel for the user's disk data is completely cut off, and the disk data always exists in the form of ciphertext and cannot be decrypted into plaintext;
[0045] S22, the storage virtualization module triggers the deletion delay and monitors the disk overwriting progress. If the disk overwriting is not completed, the delay will continue;
[0046] S23, the disk overwriting module starts to write 0 overwriting to each physical sector corresponding to the virtual disk.
[0047] S24, complete the write-0 overwriting of each physical sector corresponding to the virtual disk, and return the status. Figure 3 As shown, the disk overwrite evaluation module evaluates the overwriting effect. It includes the following steps:
[0048] S31, forming an evaluation baseline. Before the disk overwrite module starts to write 0 overwrite to each physical sector corresponding to the virtual disk, the disk overwrite evaluation module records the virtual disk data status to form an evaluation baseline. The evaluation baseline refers to the actual status of the recoverable data on the disk before any data erasure operation is performed. This step is further explained in detail as follows:
[0049] S311. Collecting data: The disk overwrite evaluation module thoroughly scans the virtual disk based on the disk data recovery tool to identify and collect all recoverable data information, regardless of whether the data has been marked as deleted.
[0050] The specific methods of data collection include: file system analysis, bitmap analysis, signature detection, deep scanning, etc. In particular, if the file system is NTFS, MFT / MFTMirr scanning will also be used.
[0051] S312, record the original status. The disk overwrite evaluation module will record a detailed list of recoverable data on the virtual disk after scanning the virtual disk, which usually includes the file name, size, location, etc.
[0052] S32: Perform post-overwrite scan. Post-overwrite scan is an important step in the data destruction process. Its purpose is to verify whether the data has been completely erased. This step is mainly implemented by the disk overwrite evaluation module executing the following automated script. The script automatically reads the virtual disk and checks whether each sector is 0x00, and outputs the data that has not been successfully overwritten to a file.
[0053]
[0054]
[0055] S33, evaluate recoverability, compare the uncovered data generated after step S32 (i.e., OUTPUT_FILE output in the script) with the baseline data generated after step S31, check the virtual disk coverage effect, if the covered data is irrecoverable or the recovered data is not readable, give a positive evaluation of the virtual disk write 0 coverage effect, and go to S34, otherwise, go to S35. For this step, if Figure 4 The following is a detailed explanation:
[0056] S331, calculate the data recovery success rate: calculate the ratio of the uncovered data obtained in step S32 to the baseline data obtained in step S31, the formula is as follows:
[0057]
[0058] If the data recovery success rate obtained in S31 is less than 5%, it means that after the virtual disk is overwritten with zero, the total amount of recoverable data is already very small, and it is impossible to recover meaningful data by relying on the residual data after the overwriting with zero. A positive evaluation is given to the effect of the virtual disk overwriting with zero, and the process goes to S34. Otherwise, the process goes to S332.
[0059] S332, data readability verification: The disk overwrite evaluation module attempts to perform format recognition and data analysis on the uncovered data obtained in step S32 (that is, OUTPUT_FILE output in the script), and manually determines the value of this data.
[0060] S333. If S332 fails to perform format recognition or data parsing, it means that after the virtual disk is overwritten with 0, the overwritten data is irrecoverable or the recovered data is not readable. A positive evaluation is given to the effect of writing 0 to the virtual disk, and the process goes to S34. Otherwise, the process goes to S35.
[0061] S34: End the deletion delay, delete the virtual disk, and end the process.
[0062] S35: In the case of a very small probability, the data parsed in step S332 is found to be meaningful data after being decrypted into plain text. Then, the user triggers the disk overwrite module to start writing 1 and writing random numbers once for each physical sector corresponding to the virtual disk.
[0063] After additional write-1 overwrite and write-random number overwrite, the probability that the recoverable data can be restored into meaningful data is infinitely close to 0.
[0064] Compared with the prior art, the present invention enhances the protection of residual information on virtual disks by implementing multi-layer security strategies, including data encryption, write-0 overwrite, verification process, etc., which can effectively prevent data leakage, protect user privacy, and strengthen data security. In addition, the present invention provides a clear data cleaning process and strict security control measures for cloud computing platforms, which is conducive to enhancing users' trust in cloud computing services, helping more users to realize business cloud migration, and accelerating the pace of digitalization and informatization transformation of various industries in the country from a technical level.
[0065] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for protecting residual information of a virtual disk, It is characterized in that The method comprises the following steps: S11, when the key management module is initialized, the hardware security module is triggered to generate a master key MKEK as the key for encrypting the data key; after the MKEK is generated, the key is stored in the hardware security module and protected in a physically isolated manner; S12, when creating a virtual disk, the storage virtualization module sends a data encryption key DEK creation instruction to the hardware security module via the key management module, the hardware security module generates a DEK, and encrypts the DEK using the MKEK to generate a protected data encryption key PDEK, the hardware security module returns the PDEK to the key management module, and stores it in the key management module; S13, the key management module generates the UUID of the PDEK, namely, the PDEKID, and gives it to the storage virtualization module. The function of the PDEKID is to identify a virtual disk. When the user wants to read the plaintext data in the virtual disk through the storage virtualization module, only by carrying this PDEKID can the key management module match the PDEK, and then decrypt the DEK in the hardware security module; S14. When user data is stored on the disk, the virtual disk carries the PDEKID to the key management module to locate the PDEK, and then transmits the PDEK to the hardware security module. After decryption by the MKEK, a one-to-one DEK corresponding to the virtual disk is obtained. At this time, the DEK is used as the encryption key, and the hardware security module uses the encryption algorithm to encrypt the user data from plain text to ciphertext. After the encryption is completed, the hardware security module sends the ciphertext data to the storage virtualization module; S15. When the user reads data from the virtual disk, the virtual disk carries the PDEKID to the key management module to find the PDEK. The key management module transmits the PDEK to the hardware security module. In the hardware security module, the PDEK is decrypted by the MKEK to obtain a one-to-one DEK for the virtual disk. At this time, the DEK is used as the decryption key. The hardware security module uses the decryption algorithm to decrypt the user data from ciphertext to plaintext, and transmits the plaintext data to the storage virtualization module. The user reads the plaintext data through the storage virtualization module. S16. When the user initiates virtual disk deletion, the disk overwrite module performs DEK cleaning, deletion delay and disk overwrite, and the disk overwrite evaluation module evaluates the overwrite effect.
2. The method for protecting residual information of a virtual disk according to claim 1, It is characterized in that In S12, the key management system generates a unique UUID and associates it with the PDEK.
3. The method for protecting residual information of a virtual disk as claimed in claim 1, It is characterized in that The encryption algorithm and decryption algorithm are SM4 algorithms.
4. The method for protecting residual information of a virtual disk according to claim 1, It is characterized in that In the processes S11 to S16, data transmission is performed via the HTTPS encryption protocol.
5. The method for protecting residual information of a virtual disk according to claim 1, It is characterized in that After the data is encrypted and stored on the disk, it will be stored in ciphertext on the disk. DEK, as the only decryption key, is encrypted and stored in the hardware security module.
6. The method for protecting residual information of a virtual disk according to any one of claims 1 to 5, It is characterized in that When a user initiates a virtual disk deletion, the disk overwrite module will perform DEK cleanup, deletion delay, and disk overwrite including: S21. When the user initiates the deletion of the virtual disk, the storage virtualization module first uninstalls the virtual disk from the mounting device, and then immediately cleans up the PDEK ID stored in itself, and at the same time transmits instructions to the key management module to clean up the PDEK and DEK. The cleaning of the DEK is performed in the hardware security module; S22, the storage virtualization module triggers the deletion delay and monitors the disk overwriting progress. If the disk overwriting is not completed, the delay will continue; S23, the disk overwriting module starts to write 0 overwriting to each physical sector corresponding to the virtual disk; S24, complete the write-0 overwriting of each physical sector corresponding to the virtual disk, and return the status.
7. The method for protecting residual information of a virtual disk as claimed in claim 6, It is characterized in that The disk overwrite evaluation module evaluates the overwriting effect by the following steps: S31, forming an evaluation baseline. Before the disk overwrite module starts to write zero overwrite to each physical sector corresponding to the virtual disk, the disk overwrite evaluation module records the data status of the virtual disk to form an evaluation baseline. The evaluation baseline refers to the actual status of the recoverable data on the disk before any data erasure operation is performed. S32: performing a post-overwrite scan, which is implemented by the disk overwrite evaluation module executing an automated script, which automatically reads the virtual disk and checks whether each sector is 0x00, and outputs the data that has not been successfully overwritten to a file; S33, evaluate recoverability, compare the uncovered data generated after the execution of step S32 with the baseline data generated after the execution of step S31, and check the virtual disk coverage effect; if the covered data is irrecoverable or the recovered data is not readable, give a positive evaluation on the virtual disk write 0 coverage effect, and enter S34, otherwise, enter S35; S34: end the deletion delay, delete the virtual disk, and end the process; S35: In the extremely small case, the data parsed in step S332 is found to be meaningful data after being decrypted into plain text. In this case, the disk overwrite module is triggered by the user to start a write 1 overwrite and a write random number overwrite for each physical sector corresponding to the virtual disk.
8. The method for protecting residual information of a virtual disk as claimed in claim 7, It is characterized in that The S31 includes: S311, collecting data, the disk overwrite evaluation module thoroughly scans the virtual disk based on the disk data recovery tool, identifies and collects all recoverable data information, regardless of whether the data has been marked as deleted; S312, recording the original status. After scanning the virtual disk, the disk overwrite evaluation module will record a detailed list of recoverable data on the virtual disk, including the file name, size and location.
9. The method for protecting residual information of a virtual disk as claimed in claim 8, It is characterized in that Data collection methods include: file system analysis, bitmap analysis, signature detection and deep scanning. If the file system is NTFS, MFT / MFTMirr scanning will also be used.
10. The method for protecting residual information of a virtual disk according to claim 7, It is characterized in that The S33 includes: S331, calculate the data recovery success rate: calculate the ratio of the uncovered data obtained in step S32 to the baseline data obtained in step S31, the formula is as follows: If the data recovery success rate obtained in S31 is less than 5%, it means that after the virtual disk is overwritten with zero, the total amount of recoverable data is very small, and it is impossible to recover meaningful data by using the residual data after the overwriting with zero. The effect of overwriting with zero on the virtual disk is positively evaluated and the process goes to S34. Otherwise, the process goes to S332. S332, data readability verification: the disk overwrite evaluation module attempts to perform format recognition and data analysis on the uncovered data obtained in step S32, and manually determines the value of the data; S333. If S332 fails to perform format recognition or data parsing, it means that after the virtual disk is overwritten with 0, the overwritten data is irrecoverable or the recovered data is not readable. A positive evaluation is given to the effect of writing 0 to the virtual disk, and the process goes to S34. Otherwise, the process goes to S35.
Citation Information
Cited By
Virtual machine encryption method and system
CN119760767A
A virtual machine encryption method and system
CN119760767B
