A method and system for recovering encrypted partition data of a mobile hard disk

By identifying and decrypting the encrypted partition created by Storage Security Software on the mobile hard disk, the problem of unrecoverable data caused by password loss or hard disk damage is solved, enabling password-free data recovery and forensics on encrypted partitions, and improving the practicality of data recovery and forensics. sex.

CN115033427BActive Publication Date: 2024-09-24XIAMEN MEIYA PICO INFORMATION CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210677037.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-15
Publication Date
2024-09-24
Estimated Expiration
2042-06-15

AI Technical Summary

Technical Problem

Existing technology cannot decrypt or recover the encrypted partition data of Storage Security Software without obtaining the password or the removable hard disk is damaged, causing customers to encounter difficulties in data leakage or evidence collection.

Method used

By determining whether Storage Security Software exists in the root directory file of the mobile hard disk, it obtains the sector set of the unallocated area of ​​the disk, reads and decrypts the sector data to identify the starting position of the encrypted partition, and then decrypts and recovers the NTFS partition data without a user password. Encrypted partitions can be automatically identified and decrypted.

Benefits of technology

It realizes the data recovery and evidence collection of encrypted partitions when the password is lost or has no password, and solves the problem of unrecoverable customer data, which has great practical significance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115033427B
    Figure CN115033427B
Patent Text Reader

Abstract

The present invention provides a method and system for recovering encrypted partition data of a mobile hard disk, including obtaining a sector set D of an unallocated area of ​​a disk, reading data S with a starting position of D[i] and a length of sector_size for any element D[i] in the sector set, obtaining an encrypted partition data encryption salt value E, performing a decryption operation on the S header data and the encryption salt value E data, and obtaining decrypted data S'; if S' is DBR data of a valid NTFS partition, the position represented by the element D[i] in the set D starts at the starting position of a security area P of the Storage Security Software, obtaining the size of the encrypted partition, reading data with the starting position of all sectors in the security area P sector set and a length of sector_size, performing a decryption operation on the data to obtain ordinary unencrypted NTFS partition data, and performing data parsing and recovery operations on the ordinary unencrypted NTFS partition data. The method and system have great practical significance in applications such as data forensics and data recovery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of computer data recovery and data forensics, in particular to a method and system for recovering encrypted partition data of a mobile hard disk. Background Art

[0002] Storage Security Software is a data encryption software that comes with a mobile hard drive. It provides encryption protection for customers' private data stored in the mobile hard drive to prevent risks such as important data being leaked due to the loss of the mobile hard drive. Storage Security Software provides the function of setting password protection and data encryption for the drive. It can create a secure area in the mobile hard drive that requires a password to access, preventing data from being illegally used or accessed by a third party.

[0003] Currently, there is no method or software on the market that can decrypt the encrypted partition of Storage Security Software. If the password is not obtained or the mobile hard disk is damaged and the Storage Security Software cannot be recognized, the encrypted partition of Storage Security Software cannot be decrypted or data cannot be recovered. Summary of the invention

[0004] In order to solve the technical problems in the prior art that the encrypted partition of Storage Security Software cannot be decrypted or data cannot be recovered when the password is not obtained or the mobile hard disk is damaged and the Storage Security Software data encryption software cannot be recognized, the present invention proposes a method and system for recovering the encrypted partition data of a mobile hard disk to solve the above technical problems.

[0005] According to a first aspect of the present invention, a method for recovering encrypted partition data of a mobile hard disk is provided, comprising:

[0006] S1: Determine whether the Storage Security Software encryption software exists in the root directory file of the visible partition of the mobile hard disk, and if so, proceed to step S2;

[0007] S2: Get the unallocated sector set D of the disk, and for any element D[i] in the sector set, read the data S with the starting position D[i] and the length sector_size of the mobile hard disk, get the encryption salt value E of the encrypted partition data of Storage Security Software, and perform a decryption operation on the S header data and the encryption salt value E data to obtain the decrypted data S';

[0008] S3: Determine whether the decrypted data S' is the DBR data of a valid NTFS partition, if so, proceed to step S4;

[0009] S4: The decrypted data S' is the DBR data of the NTFS partition. The position represented by the element D[i] in the set D starts from the starting position of the security area P of the Storage Security Software. The size of the encrypted partition is obtained, and the data is read from the starting position of all sectors in the security area P sector set with a length of sector_size. The data is decrypted to obtain the ordinary unencrypted NTFS partition data, and the ordinary unencrypted NTFS partition data is parsed and recovered.

[0010] In some specific embodiments, the Storage Security Software encryption software uses the GPT method to manage the storage space of the mobile hard disk. There is only one valid partition entry in the GPT table, indexed to the end of the mobile hard disk. The default valid partition size is 208M. The FAT32 file system is used to manage partition data, and the Storage Security Software encryption software is stored in the partition.

[0011] In some specific embodiments, step S1 specifically includes obtaining the physical sector size sector_size of the mobile hard disk; parsing the GPT partition table, obtaining the unallocated area sector set D = {D[1], D[2], ..., D[n]} of the disk, obtaining the DBR data of the visible partition F, and determining whether the 0x03 position contains the "TOSHIBA" string. If so, parsing the file system type of the visible partition F to determine whether it is a FAT32 file system. If so, obtaining the root directory file of the visible partition F, and determining whether there is Storage Security Software encryption software.

[0012] In some specific embodiments, step S2 specifically includes: reading data S={S[1], S[2], ..., S[sector_size]} with a starting position of D[i] and a length of sector_size on the mobile hard disk, taking the encryption salt value E={E[1], E[2], ..., E[encrypt_len]} of the Storage Security Software encrypted partition data, performing a decryption operation on the encrypt_len data of the S header and the encryption salt value E data to obtain data S'={S[1]', S[2]', ..., S[encrypt_len]', S[encrypt_len+1], ..., S[sector_size]}, wherein sector_size is the physical sector size of the encrypted mobile hard disk, and encrypt_len is the length of the encrypted data of each sector header in the secure area of ​​the Storage Security Software encrypted partition.

[0013] In some specific embodiments, step S3 further includes: determining whether the decrypted data S' is DBR data of a valid NTFS partition; if not, obtaining the next element D[i+1] of the unallocated sector set D in step S2, and continuing with step S2.

[0014] According to a second aspect of the present invention, a computer-readable storage medium is provided, on which one or more computer programs are stored. When the one or more computer programs are executed by a computer processor, any of the above methods is implemented.

[0015] According to a third aspect of the present invention, a system for recovering encrypted partition data of a mobile hard disk is provided, the system comprising:

[0016] Storage Security Software encryption software judgment module: configured to judge whether there is Storage Security Software encryption software in the root directory file of the visible partition of the mobile hard disk;

[0017] Decryption module: configure the unallocated area sector set D of the disk to be obtained, read the data S with the starting position D[i] and the length sector_size of the mobile hard disk for any element D[i] in the sector set, get the encryption salt value E of the encrypted partition data of Storage Security Software, perform decryption operation on the S header data and the encryption salt value E data, and obtain the decrypted data S';

[0018] A valid NTFS partition DBR data judgment module: configured to judge whether the decrypted data S' is the DBR data of a valid NTFS partition;

[0019] Data parsing and recovery module: The decrypted data S' is configured to be the DBR data of the NTFS partition. The position represented by the element D[i] in the set D starts from the starting position of the security area P of the Storage Security Software. The size of the encrypted partition is obtained, and the data is read from the starting position of all sectors in the security area P sector set with a length of sector_size. The data is decrypted to obtain the ordinary unencrypted NTFS partition data, and the data parsing and recovery operations are performed on the ordinary unencrypted NTFS partition data.

[0020] In some specific embodiments, the Storage Security Software encryption software uses the GPT method to manage the storage space of the mobile hard disk. There is only one valid partition entry in the GPT table, indexed to the end of the mobile hard disk. The default valid partition size is 208M. The FAT32 file system is used to manage partition data, and the Storage Security Software encryption software is stored in the partition.

[0021] In some specific embodiments, the Storage Security Software encryption software judgment module is specifically configured to obtain the physical sector size sector_size of the mobile hard disk; parse the GPT partition table, obtain the disk unallocated area sector set D = {D[1], D[2], ..., D[n]}, obtain the DBR data of the visible partition F, and determine whether the 0x03 position contains the "TOSHIBA" string. If so, parse the file system type of the visible partition F to determine whether it is a FAT32 file system. If so, obtain the root directory file of the visible partition F and determine whether the Storage Security Software encryption software exists.

[0022] In some specific embodiments, the decryption module is specifically configured to read data S = {S[1], S[2], ..., S[sector_size]} with a starting position of D[i] and a length of sector_size on the mobile hard disk, take the encryption salt value E = {E[1], E[2], ..., E[encrypt_len]} of the Storage Security Software encrypted partition data, and perform a decryption operation on the encrypt_len data in the S header and the encryption salt value E data to obtain data S' = {S[1]', S[2]', ..., S[encrypt_len]', S[encrypt_len+1], ..., S[sector_size]}, wherein sector_size is the physical sector size of the encrypted mobile hard disk, and encrypt_len is the length of the encrypted data in each sector header in the secure area of ​​the Storage Security Software encrypted partition.

[0023] In some specific embodiments, the DBR data judgment module of the valid NTFS partition judges whether the decrypted data S' is the DBR data of the valid NTFS partition. If not, the next element D[i+1] of the unallocated sector set D in the decryption module is obtained, and the operation of the decryption module is repeated.

[0024] The present invention proposes a method and system for recovering encrypted partition data of a mobile hard disk. The method can automatically identify the security area created by the Storage Security Software data encryption software and perform decryption and data recovery operations without the need for a user's password, thereby solving the problems of being unable to recover encrypted partition data due to loss of the customer's password and being unable to obtain evidence and recover encrypted partition data without a password. The method has great practical significance in applications such as data forensics and data recovery. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings are included to provide a further understanding of the embodiments and are incorporated into and constitute a part of this specification. The accompanying drawings illustrate the embodiments and together with the description are used to explain the principles of the present invention. Other embodiments and many expected advantages of the embodiments will be readily appreciated as they become better understood by reference to the following detailed description. Other features, objects and advantages of the present application will become more apparent by reading the detailed description of the non-limiting embodiments made with reference to the following drawings:

[0026] Figure 1 It is the overall disk structure diagram of the mobile hard disk;

[0027] Figure 2It is a flow chart of a method for recovering encrypted partition data of a mobile hard disk according to an embodiment of the present application;

[0028] Figure 3 This is a framework diagram of a mobile hard disk encrypted partition data recovery system according to an embodiment of the present application;

[0029] Figure 4 It is a schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application. DETAILED DESCRIPTION

[0030] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0031] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0032] Use the Storage Security Software encryption software to encrypt the mobile hard disk. After creating a security zone, the overall disk structure of the mobile hard disk is as follows: Figure 1 As shown in the figure above. The Storage Security Software encryption software uses the GPT method to manage the mobile hard disk storage space. There is only one valid partition entry in the GPT table, indexed to the end of the mobile hard disk. The default partition size is 208M. The FAT32 file system is used to manage the partition data. The Storage Security Software encryption software is stored in the partition. After analysis, the security area created by the Storage Security Software encryption software is located in the unallocated area shown in the figure above.

[0033] Assume that sector_size is the physical sector size of the encrypted mobile hard disk. By default, sector_size is 512B. In special cases, sector_size may be other values. The exact value can be obtained from the physical disk parameters.

[0034] Assume that F is a visible partition Free Area created by the Storage Security Software encryption software, then F is a FAT32 file system, and the "TOSHIBA" string is marked at position 0x03 of the DBR header of F, and the Storage Security Software encryption software is stored in the root directory of the F partition.

[0035] Assume that D={D[1], D[2], ..., D[n]} is a set of sectors in the unallocated area, where D[i] is the starting offset of the sector.

[0036] Assume that P = {P[1], P[2], ..., P[n]} is a set of blank area sectors created by the Storage Security Software encryption software, and P is a subset of D.

[0037] Assume that encrypt_len is the length of each sector header data encrypted in the secure area of ​​the Storage Security Software encrypted partition.

[0038] Assume that E={E[1], E[2], ..., E[encrypt_len]} is the encryption salt value of the Storage Security Software encrypted partition data, where Ei is 1 byte of encryption salt value data.

[0039] Assume that S={S[1], S[2], ..., S[sector_size]} is the read data with a length of sector_size, where S[i] represents 1 byte of disk data.

[0040] According to an embodiment of the present application, a method for recovering encrypted partition data of a mobile hard disk is provided. Figure 1 FIG. 1 is a flow chart showing a method for recovering encrypted partition data of a mobile hard disk according to an embodiment of the present application. Figure 1 As shown, the method includes:

[0041] S1: Determine whether the root directory file of the visible partition of the mobile hard disk contains the Storage Security Software encryption software, and if so, proceed to step S2.

[0042] In a specific embodiment, the physical sector size sector_size of the mobile hard disk is obtained; the GPT partition table is parsed to obtain the unallocated area sector set D = {D[1], D[2], ..., D[n]} of the disk, the DBR data of the visible partition F is obtained, and it is determined whether the 0x03 position contains the "TOSHIBA" string. If so, the file system type of the visible partition F is parsed to determine whether it is a FAT32 file system. If so, the root directory file of the visible partition F is obtained to determine whether the StorageSecurity Software encryption software exists.

[0043] S2: Get the unallocated sector set D of the disk. For any element D[i] in the sector set, read the data S with the starting position D[i] and the length sector_size of the mobile hard disk, get the encryption salt value E of the Storage Security Software encrypted partition data, and perform a decryption operation on the S header data and the encryption salt value E data to obtain the decrypted data S'.

[0044] S3: Determine whether the decrypted data S' is the DBR data of a valid NTFS partition, if yes, proceed to step S4. If no, obtain the next element D[i+1] of the unallocated sector set D in step S2, and continue to step S2.

[0045] S4: The decrypted data S' is the DBR data of the NTFS partition. The position represented by the element D[i] in the set D starts from the starting position of the security area P of the Storage Security Software. The size of the encrypted partition is obtained, and the data is read from the starting position of all sectors in the security area P sector set with a length of sector_size. The data is decrypted to obtain the ordinary unencrypted NTFS partition data, and the ordinary unencrypted NTFS partition data is parsed and recovered.

[0046] In a specific embodiment, the specific process of the above-mentioned method for recovering encrypted partition data of a mobile hard disk is as follows:

[0047] Step 1: Get the physical sector size sector_size of the mobile hard disk; parse the GPT partition table, and get the unallocated area sector set D = {D[1], D[2], ..., D[n]} of the disk; get the visible partition F, and jump to step 2;

[0048] Step 2: Get the DBR data of partition F and determine whether the 0x03 position contains the "TOSHIBA" string. If so, jump to step 3; otherwise, end the process;

[0049] Step 3: Analyze the file system type of partition F to determine whether it is FAT32 file system. If so, jump to step 4; otherwise, end the process;

[0050] Step 4: Get the root directory file of partition F and determine whether there is Storage Security Software encryption software. If yes, jump to step 5; otherwise, end the process;

[0051] Step 5: Get the disk unallocated area sector set D = {D[1], D[2], ..., D[n]} obtained in step #1, and for any element D[i] in the sector set, jump to step 6;

[0052] Step 6: Read the data S = {S[1], S[2], ..., S[sector_size]} with the starting position of the mobile hard disk as D[i] and the length as sector_size, get the encryption salt value E = {E[1], E[2], ..., E[encrypt_len]} of the Storage Security Software encrypted partition data, perform a decryption operation on the encrypt_len data in the S header and the encryption salt value E data, and obtain the data S' = {S[1]', S[2]', ..., S[encrypt_len]', S[encrypt_len+1], ..., S[sector_size]}, and jump to step 7;

[0053] Step 7: Determine whether the data calculated in step 6 is the DBR data of a valid NTFS partition. If so, jump to step 9; otherwise, jump to step 8;

[0054] Step 8: Get the next element D[i+1] of the unallocated sector set D in step 5, and jump to step 6;

[0055] Step 9: The decrypted data S' in step 7 = {S[1]', S[2]', ..., S[encrypt_len]', S[encrypt_len+1], ..., S[sector_size]}, which is the DBR data of the NTFS partition. The position represented by the element D[i] in the set D starts from the starting position of the security area P of the Storage Security Software. Get the size of the encrypted partition. Jump to step 10.

[0056] Step 10: Read data from the starting position of all sectors in the security area P sector set with a length of sector_size, and perform decryption operation on the data in the manner of step 6. After decryption, the data is ordinary unencrypted NTFS partition data. At this time, data parsing and recovery operations are performed on the ordinary NTFS partition. At this point, the process of a method for recovering a Storage Security Software encrypted partition without a password ends.

[0057] The present invention proposes a method for recovering encrypted partition data of a mobile hard disk. The method can automatically scan the free disk space of the mobile hard disk, identify the security area created by the Storage Security Software data encryption software, decrypt the data in the security area and recover the data without the user's password, thereby solving the problems of being unable to recover the encrypted partition data due to the loss of the customer's password and being unable to obtain evidence and recover the encrypted partition data without a password, and has great practical significance in applications such as data forensics and data recovery.

[0058] Continue to refer Figure 3 , Figure 3 The framework diagram of a mobile hard disk encrypted partition data recovery system according to an embodiment of the present application is shown. The system specifically includes a Storage Security Software encryption software judgment module 301, a decryption module 302, a valid NTFS partition DBR data judgment module 303 and a data analysis and recovery module 304. The Storage Security Software encryption software judgment module 301 is configured to judge whether the Storage Security Software encryption software exists in the root directory file of the visible partition of the mobile hard disk; the decryption module 302 is configured to obtain the unallocated area sector set D of the disk, and for any element D[i] in the sector set, read the data S with the starting position D[i] of the mobile hard disk and the length of sector_size, obtain the encryption salt value E of the Storage Security Software encryption partition data, perform a decryption operation on the S header data and the encryption salt value E data, and obtain the decrypted data S'; the valid NTFS partition DBR data judgment module 303 is configured to judge whether the decrypted data S' is the DBR data of the valid NTFS partition; the data parsing and recovery module 304 is configured to judge whether the decrypted data S' is the DBR data of the NTFS partition, and the position represented by the element D[i] in the set D starts from the Storage Security Software encryption partition data. The starting position of the security area P of Software is used to obtain the size of the encrypted partition, and the data is read with the starting position of all sectors in the security area P sector set and the length is sector_size. The data is decrypted to obtain the ordinary unencrypted NTFS partition data, and the ordinary unencrypted NTFS partition data is parsed and recovered.

[0059] Reference below Figure 4 , which shows a schematic diagram of the structure of a computer system 400 suitable for implementing an electronic device of an embodiment of the present application. Figure 4 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0060] like Figure 4As shown, the computer system 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage part 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the system 400 are also stored. The CPU 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0061] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.

[0062] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 409, and / or installed from the removable medium 411. When the computer program is executed by the central processing unit (CPU) 401, the above functions defined in the method of the present application are executed. It should be noted that the computer-readable storage medium of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, - but not limited to - a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable storage medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wireline, optical cable, RF, etc., or any suitable combination of the foregoing.

[0063] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0064] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0065] The modules involved in the embodiments of the present application may be implemented by software or by hardware.

[0066] As another aspect, the present application further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: determines whether the Storage Security Software encryption software exists in the root directory file of the visible partition of the mobile hard disk. If the obtained disk unallocated area sector set D exists, for any element D[i] in the sector set, reads data S with a starting position of D[i] and a length of sector_size on the mobile hard disk, obtains the encryption salt value E of the Storage Security Software encrypted partition data, performs a decryption operation on the S header data and the encryption salt value E data, and obtains the decrypted data S'; determines whether the decrypted data S' is the DBR data of the valid NTFS partition. If the decrypted data S' is the DBR data of the NTFS partition, the position represented by the element D[i] in the set D starts at the starting position of the security area P of the Storage Security Software, obtains the size of the encrypted partition, reads data with the starting position of all sectors in the security area P sector set and a length of sector_size, performs a decryption operation on the data to obtain ordinary unencrypted NTFS partition data, and performs data parsing and recovery operations on the ordinary unencrypted NTFS partition data.

[0067] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

Claims

1. A method for recovering encrypted partition data of a mobile hard disk, characterized in that: include: S1: Get the physical sector size sector_size of the encrypted mobile hard disk; parse the GPT partition table, get the unallocated area sector set D={D[1], D[2], ..., D[n]} of the disk, get the DBR data of the visible partition F, determine whether the 0x03 position contains the TOSHIBA string, if so, parse the file system type of the visible partition F, determine whether it is the FAT32 file system, if so, get the root directory file of the visible partition F, determine whether there is the Storage Security Software encryption software, if so, proceed to step S2; S2: Get the unallocated sector set D = {D[1], D[2], ..., D[n]} of the disk. For any element D[i] in the sector set, read the data S = {S[1], S[2], ..., S[sector_size]} with the starting position of the mobile hard disk D[i] and the length of sector_size, where S[i] represents 1 byte of disk data and sector_size is the physical sector size of the encrypted mobile hard disk; read the encryption salt value E = {E[1], E[2], ..., E[encrypt_len]} of the Storage Security Software encrypted partition data, where E[i] is 1 byte of encryption salt value data and encrypt_len is the length of the encrypted header data of each sector in the secure area of ​​the Storage Security Software encrypted partition; perform a decryption operation on the header data of the data S and the encryption salt value E data to obtain the decrypted data S'; S3: Determine whether the decrypted data S' is DBR data of a valid NTFS partition, if so, proceed to step S4; S4: The decrypted data S' is the DBR data of the NTFS partition. The position represented by D[i] in the set D starts from the starting position of the security area P of the StorageSecurity Software. The size of the encrypted partition is obtained, and data is read from the starting position of all sectors in the security area P sector set with a length of sector_size. The data is decrypted to obtain ordinary unencrypted NTFS partition data, and data parsing and recovery operations are performed on the ordinary unencrypted NTFS partition data.

2. The method for recovering encrypted partition data of a mobile hard disk according to claim 1, characterized in that: The Storage Security Software encryption software uses the GPT method to manage the storage space of the mobile hard disk. There is only one valid partition entry in the GPT table, indexed to the end of the mobile hard disk. The default size of the valid partition is 208M. The FAT32 file system is used to manage partition data. The Storage Security Software encryption software is stored in the partition.

3. The method for recovering encrypted partition data of a mobile hard disk according to claim 1, characterized in that: Step S3 also includes: determining whether the decrypted data S' is DBR data of a valid NTFS partition; if not, obtaining the next element D[i+1] of the unallocated sector set D in step S2, and continuing with step S2.

4. A computer-readable storage medium having one or more computer programs stored thereon, characterized in that: When the one or more computer programs are executed by a computer processor, the method according to any one of claims 1 to 3 is implemented.

5. A system for recovering encrypted partition data of a mobile hard disk, characterized in that: The system comprises: Storage Security Software encryption software judgment module: configured to obtain the physical sector size sector_size of the mobile hard disk; parse the GPT partition table, obtain the unallocated area sector set D={D[1], D[2], ..., D[n]} of the disk, obtain the DBR data of the visible partition F, determine whether the 0x03 position contains the TOSHIBA string, if so, parse the file system type of the visible partition F, determine whether it is the FAT32 file system, if so, obtain the root directory file of the visible partition F, and determine whether the Storage Security Software encryption software exists; Decryption module: configured to obtain a sector set D = {D[1], D[2], ..., D[n]} of an unallocated area of ​​the disk, and for any element D[i] in the sector set, read data S = {S[1], S[2], ..., S[sector_size]} of a mobile hard disk starting at D[i] and having a length of sector_size, where S[i] represents 1 byte of disk data and sector_size is the physical sector size of the encrypted mobile hard disk; read the encryption salt value E = {E[1], E[2], ..., E[encrypt_len]} of the Storage Security Software encrypted partition data, where E[i] is 1 byte of encryption salt value data and encrypt_len is the length of the encrypted header data of each sector in the secure area of ​​the Storage Security Software encrypted partition; perform a decryption operation on the header data of the data S and the encryption salt value E data to obtain the decrypted data S'; A valid NTFS partition DBR data judgment module: configured to judge whether the decrypted data S' is a valid NTFS partition DBR data; Data parsing and recovery module: configured to decrypt data S' as DBR data of NTFS partition, the position represented by D[i] in set D starts from the starting position of the security area P of Storage Security Software, obtains the size of the encrypted partition, reads data with the starting position of all sectors in the security area P sector set and the length of sector_size, performs decryption operation on the data to obtain ordinary unencrypted NTFS partition data, and performs data parsing and recovery operations on the ordinary unencrypted NTFS partition data.

6. The system for recovering encrypted partition data of a mobile hard disk according to claim 5, characterized in that: The Storage Security Software encryption software uses the GPT method to manage the storage space of the mobile hard disk. There is only one valid partition entry in the GPT table, indexed to the end of the mobile hard disk. The default size of the valid partition is 208M. The FAT32 file system is used to manage partition data. The Storage Security Software encryption software is stored in the partition.

7. The system for recovering encrypted partition data of a mobile hard disk according to claim 5, characterized in that: The valid NTFS partition DBR data judgment module judges whether the decrypted data S' is the DBR data of a valid NTFS partition. If not, the next element D[i+1] of the unallocated sector set D in the decryption module is obtained, and the operation of the decryption module is repeated.

Citation Information

Patent Citations

  • Method for recovering NTFS advanced encryption file in VMware scene

    CN104199909A

  • Online evidence obtaining method and device based on macOS system, equipment and storage medium

    CN111339538A

  • Data security storage and efficient recovery method and device, and computer equipment

    CN111967027A

  • Device for protecting and restoring hard disk data

    JP2002268828A