Mirror image processing method, system and device and readable storage medium
By receiving and analyzing the data to be repaired on a public cloud platform, and creating and repairing image files, the problem of low efficiency and high cost of image analysis in existing technologies is solved, and efficient and secure image repair and data recovery are achieved.
Patent Information
- Application Number
- CN202410986130.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-12
AI Technical Summary
Existing technologies for image analysis of computer systems suffer from drawbacks such as low repair efficiency and high repair costs, and lack mature image processing solutions.
The system receives the data to be repaired on a public cloud platform, creates an initial image file, and obtains the image type, firmware information, architecture information, system disk and operating system information through static and dynamic analysis. Then, it performs image repair processing to obtain the target image file.
It improves the efficiency and accuracy of image restoration, reduces restoration costs, minimizes direct manipulation of physical storage media, enhances system compatibility and data security, and provides complete operation records and legal evidentiary value.
Smart Images

Figure CN118939475A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a method for image processing, in particular to a method, system, device and readable storage medium for image processing. Background Art
[0002] As an intersection of law and technology, data forensics is crucial to ensuring the fairness and effectiveness of judicial procedures. With the increasing amount of digital evidence, forensic technology must continue to advance to adapt to new challenges. In this field, image analysis of computer systems involved in the case is a basic and critical task. The existing technology of image analysis of computer systems has the disadvantages of low repair efficiency and high repair cost. How to improve the repair efficiency and reduce the repair cost has become one of the technical problems that relevant technicians need to solve urgently. Summary of the invention
[0003] The present application provides an image processing method, system, device and readable storage medium, which are used to solve the technical problem of the lack of mature image processing solutions in the device to be collected in the prior art.
[0004] In a first aspect, an embodiment of the present application provides an image processing method, which is applied to a public cloud platform, and the method includes: receiving data to be repaired; creating an initial image file corresponding to the data to be repaired; performing image repair processing on the initial image file to obtain a target image file.
[0005] In an implementation of the first aspect, the method further includes: acquiring a first storage space corresponding to the data to be repaired; configuring a second storage space of the same size as the first storage space; and storing the data to be repaired in the second storage space.
[0006] In an implementation of the first aspect, the image repair processing of the initial image file to obtain the target image file includes: statically analyzing the initial image file to obtain image type and firmware information; dynamically analyzing the initial image file to obtain architecture information; obtaining system disk and operating system information according to the initial image file; obtaining image metadata based on the image type and firmware information, the architecture information, and the system disk and operating system information; performing password modification, application and driver injection operations based on the system disk and operating system, and repairing the initial image file based on the image metadata to obtain the target image file.
[0007] In an implementation of the first aspect, obtaining the system disk and operating system information based on the initial image file includes: mounting the initial image file; repairing the mounted initial image file to obtain a repaired file system; and obtaining the system disk and operating system information based on the repaired file system.
[0008] In an implementation of the first aspect, after creating the initial image file corresponding to the computer repair data on the public cloud platform, the method further includes: converting the format of the initial image file to obtain the initial image file in a preset format.
[0009] In an implementation of the first aspect, after converting the format of the initial image file to obtain the initial image file in a preset format, the method further includes: performing a file compression operation on the initial image file in the preset format based on a preset compression tool.
[0010] In an implementation manner of the first aspect, the data to be repaired is data in a physical storage medium of the device to be collected.
[0011] In a second aspect, an embodiment of the present application provides an image processing system, which is applied to a public cloud platform, and the image processing system includes: a data determination module, which is used to receive data to be repaired; an image file creation module, which is used to create an initial image file corresponding to the data to be repaired; and a target image file determination module, which is used to perform image repair processing on the initial image file to obtain a target image file.
[0012] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that when the computer program is executed by a processor, the image processing method described in any one of the first aspects of the embodiments of the present application is implemented.
[0013] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and implement the mirror processing method as described in any one of the first aspects of the embodiments of the present application when executing the computer program.
[0014] In the embodiment of the present application, the data to be repaired is received on the public cloud platform, an initial image file corresponding to the data to be repaired is created, and the initial image file is image repaired to obtain a target image file. Based on the characteristics of the public cloud, the embodiment of the present application can improve the repair efficiency and reduce the repair cost.
[0015] In the embodiment of the present application, a second storage space of the same size as the first storage space is configured on the public cloud platform; the data to be repaired is stored in the second storage space, and the second storage space of the public cloud platform can be quickly expanded or reduced according to the first storage space of the data to be repaired to adapt to data processing and analysis tasks of different scales, and the above-mentioned data processing and analysis tasks are quickly processed to improve the subsequent repair efficiency of the initial image file.
[0016] In addition, in the embodiment of the present application, by performing image repair processing on the initial image on the public cloud, the following beneficial effects are also achieved:
[0017] (1) Optimized data recovery: Advanced data recovery tools in public cloud services can more effectively recover critical data from damaged initial image files, ensuring the integrity and availability of evidence.
[0018] (2) Improved repair accuracy: Public cloud platforms support the deployment of automated and intelligent repair tools that can accurately identify and repair various errors in the initial image files, reducing human intervention and potential errors.
[0019] (3) Enhanced system compatibility: The repaired target image file is easily compatible with different operating systems and forensic tools in the public cloud environment, facilitating cross-platform analysis.
[0020] (4) Reduced reliance on physical media: By performing image repair on the public cloud, direct operations on data in the physical storage media of the forensic device are reduced, reducing the risk of data corruption due to physical operations.
[0021] (5) Improved legal evidence effectiveness: The repair process is carried out in a public cloud environment, which can provide complete operation records and audit trails, enhancing the effectiveness of the repaired target image file as legal evidence.
[0022] (6) Flexible repair strategy selection: The public cloud platform can flexibly select the most appropriate repair strategy based on the degree and type of damage of the initial image file to achieve the best repair effect.
[0023] (7) Reduced evidence collection time and cost: Through automated and optimized remediation processes, evidence collection time is shortened. At the same time, the pay-as-you-go nature of public cloud services also reduces overall costs.
[0024] (8) Enhanced data security: Initial image file repair activities performed in a public cloud environment can leverage the public cloud service provider’s advanced security measures, such as data encryption and network security, to ensure the security of image metadata throughout the repair process.
[0025] (9) Improved system stability: The repaired target image file runs more stably in the virtual environment of the public cloud platform, reducing the risk of system crashes and data loss during the analysis process. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1A Shown is a schematic diagram of an application scenario of the mirror processing method provided by an embodiment of the present application.
[0027] Figure 1B Shown is a flowchart of a mirror processing method in one embodiment of the present application.
[0028] Figure 2 It is a flow chart showing how to store the data to be repaired in the second storage space in one embodiment of the present application.
[0029] Figure 3 Shown is a flow chart of determining a target image file in one embodiment of the present application.
[0030] Figure 4 Shown is a flowchart of obtaining the system disk and operating system information in one embodiment of the present application.
[0031] Figure 5 Shown is a flowchart of another mirror processing method in one embodiment of the present application.
[0032] Figure 6 Shown is a schematic diagram of an image processing system in one embodiment of the present application.
[0033] Figure 7 Shown is a schematic diagram of the structure of an electronic device in an embodiment of the present application.
[0034] Component number description
[0035] 1 Electronic equipment
[0036] 11 Processor
[0037] 12 Non-volatile storage media
[0038] 13 System Bus
[0039] 14 Internal Memory
[0040] 15 Network Interface
[0041] Steps S11 to S18
[0042] Steps S21 to S23
[0043] Steps S31 to S36
[0044] Steps S41 to S43
[0045] Steps S501 to S511
[0046] 60 Mirror Processing System
[0047] 61 Data receiving module
[0048] 62 Image file creation module
[0049] 63 Target image file determination module DETAILED DESCRIPTION
[0050] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0051] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the form, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0052] The prior art lacks a mature image processing method in the process of image analysis of forensic devices.
[0053] At least for the above-mentioned problems, an embodiment of the present application provides an image processing method. The image processing method can receive data to be repaired; create an initial image file corresponding to the data to be repaired; perform image repair processing on the initial image file to obtain a target image file. The image processing method provided in an embodiment of the present application can solve the technical problem of the lack of mature image processing solutions in the prior art for the device to be forensically collected.
[0054] Figure 1A A schematic diagram of an application scenario of the mirror processing method provided by an embodiment of the present application is shown. Figure 1A As shown, the application scenario includes a public cloud platform and a device to be collected for evidence, and the device to be collected for evidence is communicatively connected with the public cloud platform.
[0055] The public cloud platform of the embodiment of the present application allows users to access and use shared resources and services through the Internet. These resources and services include cloud servers, cloud databases, big data services, storage services, security services, etc.
[0056] The device to be collected in the embodiment of the present application refers to the device that needs to be collected for data. Before collecting data, it is necessary to ensure that the data in the device to be collected is complete and accessible. If there are problems with the data in the data to be collected, it is necessary to repair the data with problems to ensure that the subsequent collection process is completed smoothly.
[0057] It should be noted that the embodiments of the present application do not impose any restrictions on the specific type of the device to be collected. For example, the device to be collected can be a station (STAION, ST) in a WLAN, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a computer, a laptop computer, a handheld communication device, a handheld computing device, and / or other devices for communicating on a wireless system and a next-generation communication system, such as a mobile terminal in a 5G network, a mobile terminal in a future-evolved Public Land Mobile Network (PLMN) or a mobile terminal in a future-evolved Non-terrestrial Network (NTN).
[0058] As an example but not a limitation, when the device to be collected is a wearable device, the wearable device can also be a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as gloves and watches equipped with near-field communication modules. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. It is attached to the user and performs payment, authentication and other operations through a pre-bound electronic card. Wearable devices are not only hardware devices, but also powerful functions achieved through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those with full functions, large sizes, and can achieve complete or partial functions without relying on smartphones, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various types of smart watches and smart bracelets with display screens.
[0059] The technical solutions in the embodiments of the present application will be described in detail below in conjunction with the drawings in the embodiments of the present application.
[0060] Figure 1B The flowchart of the image processing method in one embodiment of the present application is shown. The image processing method is applied to Figure 1A The public cloud platform shown in Figure 1. Figure 1BAs shown, the mirror processing method provided in the embodiment of the present application includes the following steps S11 to S13.
[0061] S11, receiving the data to be repaired. The data to be repaired is sent from the device to be collected to the public cloud platform.
[0062] The data types of the data to be repaired may include: deleted files, damaged file systems, encrypted data, formatted storage media, damaged files, etc.
[0063] Furthermore, before the public cloud platform receives the data to be repaired, the device to be collected can determine the data to be repaired through technical means such as file system analysis, data recovery tools, encrypted data identification, and network traffic analysis.
[0064] It should be noted that the above technical means for determining the data to be repaired can select appropriate technical means according to specific circumstances, and this application does not impose any restrictions on this.
[0065] In some possible implementations, the data to be repaired is data in a physical storage medium of the device to be collected.
[0066] Among them, the devices to be collected can be computers, mobile devices, servers, network devices, Internet of Things devices, external storage and backup media, etc.
[0067] Exemplarily, the required data to be repaired is determined from the physical storage medium of the device to be acquired based on professional forensic tools (such as EnCase, FTK, Cellebrite).
[0068] It should be noted that in the process of receiving the data to be repaired, the integrity and accuracy of the data to be repaired must be ensured.
[0069] Exemplarily, the device to be collected can transmit the data to be repaired to the public cloud platform through physical transmission, network transmission, data synchronization and backup tools, and dedicated network connections.
[0070] For example, in the physical transmission method, the data to be repaired can be stored on a physical disk (such as an external hard disk) by express disk, and sent to the public cloud service by express service. The advantage of this method is that it is suitable for large amounts of data or when network transmission is not feasible.
[0071] Exemplarily, in the network transmission mode, the data to be repaired can be transmitted to the transmission public cloud based on the secure file transfer protocol (Secure File Transfer Protocol, SFTP), secure copy (Secure copy, SCP), encrypted HTTP transmission, cloud service API, etc.
[0072] Exemplarily, in the transmission method corresponding to the data synchronization and backup tools, local data can be automatically synchronized to the public cloud based on cloud synchronization services using tools such as AWS DataSync, Azure Data Box, etc., or backup software that supports cloud storage can be used to back up the data to be repaired to the public cloud.
[0073] In another exemplary embodiment, in the transmission mode corresponding to the dedicated network connection, the data to be repaired can be transmitted from the local network to the public cloud through a virtual private network (VPN). In addition, the data to be repaired can also be transmitted from the local network to the public cloud through a dedicated connection (e.g., AWS Direct Connect, Azure ExpressRoute). The advantage of this transmission mode is that it provides a dedicated network connection directly connected to the public cloud, which is suitable for large-scale data transmission.
[0074] It should be noted that the above transmission method of transmitting the data to be repaired to the public cloud is only used for exemplary description. In practical applications, any suitable transmission method can be adopted according to the specific circumstances, and this application does not impose any limitation on this.
[0075] S12: creating an initial image file corresponding to the data to be repaired.
[0076] Before creating the initial image file, a snapshot corresponding to the location where the data to be repaired is stored is first created, and then the initial image file is created using the snapshot.
[0077] The following will take Microsoft Azure as an example to introduce the specific process of creating the initial image file corresponding to the data to be repaired on the public cloud platform. The process includes the following two steps.
[0078] The first step is to create a disk snapshot. Specifically, when the data to be repaired is stored on an Azure disk, you can create a disk snapshot. In the Azure portal, navigate to the Disk resource, select the desired disk, and then select Create Snapshot.
[0079] The second step is to create an image from the snapshot. Specifically, in the Azure portal, navigate to the "Virtual Machine" section, select "Image", and then click "Create Image". Select "Custom Image" and then select the previously created disk snapshot as the source. At this point, you will get the initial image file corresponding to the data to be repaired.
[0080] In some possible implementations, after creating the initial image file corresponding to the data to be repaired, the method further includes: performing format conversion on the initial image file to obtain the initial image file in a preset format.
[0081] The format conversions of the initial image file mainly include: conversion from VHD to RAW or other formats, conversion from RAW to VMDK, qcow2, etc., conversion from AMI to other formats, and other format conversions.
[0082] Specifically, after obtaining the initial image file, if the forensic tool is incompatible with the data type of the initial image file, the initial image file can be converted into a format compatible with the forensic tool based on a format conversion tool. The format conversion tool can be any one of QEMU with qemu-img and Vagrant, and this application does not limit this.
[0083] In some possible implementations, after converting the format of the initial image file to obtain the initial image file in a preset format, the method further includes: performing a file compression operation on the initial image file in the preset format based on a preset compression tool.
[0084] The preset compression tool may be at least one of AWS CLI and VirtualBox.
[0085] Specifically, after the initial image file is compressed, the storage requirement of the initial image file is reduced and the transmission speed of the initial image file is accelerated.
[0086] S14, performing image repair processing on the initial image file to obtain a target image file.
[0087] Among them, the initial image file can be repaired based on gotsk, dpapi, registry, etc. to obtain the target image file.
[0088] In the image processing method provided in the embodiment of the present application, by receiving the data to be repaired, an initial image file corresponding to the data to be repaired is created, the initial image file is image repaired to obtain a target image file, and the repair work of the initial image file is performed on a public cloud platform, thereby improving the accuracy of the repair, reducing the direct operation of the data in the physical storage medium of the forensic device to be collected, and reducing the risk of data damage due to physical operation.
[0089] See also Figure 2 The mirror processing method provided in the embodiment of the present application may also include the following steps S21 to S23.
[0090] S21, obtaining a first storage space corresponding to the data to be repaired.
[0091] The first storage space is the memory occupied by the data to be repaired.
[0092] After determining the data to be repaired, the device to be collected can obtain the first storage space corresponding to the data to be repaired based on memory detection tools such as Process Monitor and Valgrind, and send the size of the first storage space to the public cloud platform.
[0093] It should be noted that the above-mentioned memory detection tool is only used for illustrative purposes. In actual applications, a suitable memory detection tool can be selected according to the specific situation, and this application does not impose any restrictions on this.
[0094] S22: configure a second storage space of the same size as the first storage space.
[0095] After obtaining the first storage space corresponding to the data to be repaired, the size of the first storage space is transmitted from the device to be collected to the public cloud platform, and a second storage space of the same size as the first storage space is configured in the storage space of the public cloud platform.
[0096] S23: storing the data to be repaired in the second storage space.
[0097] In the method for storing the data to be repaired in the second storage space provided by the embodiment of the present application, the size of the second storage space is automatically expanded or reduced according to the first storage space of the data to be repaired in the device to be obtained, and the second storage space of the same size as the first storage space is determined on the public cloud platform, thereby reducing the waste of storage space on the public cloud and avoiding the situation where the data to be repaired cannot be fully transmitted to the public cloud due to insufficient storage space on the public cloud. A complete data foundation is provided for obtaining the initial image file on the public cloud later.
[0098] Figure 3 The flowchart of determining the target image file in one embodiment of the present application is shown. Figure 3 As shown, the process of determining the target image file in the embodiment of the present application includes the following steps S31 to S36.
[0099] S31, statically analyzing the initial image file to obtain image type and firmware information.
[0100] Among them, the image types include: disk image, system image, application image, virtual machine image, container image, backup image, package image, driver image, etc.
[0101] Exemplarily, disk images (Disk Image) may include: raw, qcow2, vmdk, vdi, vhd, vhdx, iso; system images (System Image) may include: Windows PE, Linux Live CD / DVD; application images (Application Image) may include: Appimag, msi; virtual machine images (VM Image) may include: VMwareVMX, VirtualBox VDI; container images (Container Image) may include: Docker images, OCI images; backup images (Backup Image) may include: Bak, Tar; software package images (Package Image) may include: deb, rpm.
[0102] Among them, firmware information includes: BIOS / UEFI firmware, Linux firmware, Windows firmware, macOS firmware, Android firmware, embedded system firmware, etc.
[0103] Among them, BIOS / UEFI firmware may include MBR (Master Boot Record), GPT (GUID Partition Table), ESP (EFI System Partition), and Boot Loade; Linux firmware may include: syslinux, isolinux; Windows firmware may include: Ntldr, Bootmgr, and BCD; macOS firmware may include: EFI boot partition, EFI boot manager; Android firmware may include: Bootloader, boot.img; embedded system firmware may include: Bootloader, boot.img.
[0104] Specifically, the image type and firmware information can be obtained through static analysis tools. For example, static analysis tools can be binwalk and foremost. Based on static analysis tools, the internal information of the computer image, such as the partition table, file system, and files in the initial image file, can be automatically extracted. In addition, the image type can also be obtained through file system identification tools.
[0105] It should be noted that the above-mentioned method or tool for statically analyzing the initial image file to obtain the image type and firmware information is only for illustrative purposes. In actual applications, a suitable method or tool for obtaining the image type and firmware information can be selected according to the specific circumstances, and this application does not impose any restrictions on this.
[0106] S32, dynamically analyzing the initial image file to obtain architecture information.
[0107] Among them, the architecture information includes: x86 architecture, ARM architecture, MIPS architecture, PowerPC architecture, SPARC architecture, Alpha architecture, Itanium architecture, RISC-V architecture, RISC-V architecture, PA-RISC architecture, VAX architecture, SuperH architecture, AVR architecture, ARC architecture, TMS320 architecture, 68k architecture, etc.
[0108] Specifically, the initial image file can be dynamically analyzed based on architecture analysis tools, file header analysis, keyword commands, file system analysis, etc. to obtain architecture information.
[0109] Exemplarily, the architecture analysis tool may be any one of IDA Pro, Ghidra, radare2, etc. The keyword command includes any one of binwalk, strings, hexdump, or xxd, etc. After dynamically analyzing the initial image file, the image file is dynamically mounted and analyzed to achieve rapid deployment of the operating system and application.
[0110] It should be noted that the above-mentioned method of dynamically analyzing the initial image file to obtain architecture information is only for illustrative purposes. In actual applications, any other suitable method may be selected to obtain architecture information, and this application does not impose any limitation on this.
[0111] S33, obtaining system disk and operating system information according to the initial image file.
[0112] Among them, system disk information includes: partition table type, file system type, volume label, partition size and layout, etc. Operating system information includes: operating system version, system architecture, boot loader, system files and directories, registry files, system configuration files, installation date and last update time, system patches and updates, user data, network configuration, etc.
[0113] S34, acquiring image metadata based on the image type and firmware information, the architecture information, and the system disk and operating system information.
[0114] Among them, image metadata includes: file system metadata, image format metadata, image attribute metadata, operating system metadata, custom metadata, checksum metadata, storage and backup metadata, etc.
[0115] Exemplarily, the image metadata may be obtained using a file system tool, wherein the file system tool includes mount, df, lsblk, and the like.
[0116] As another example, the image metadata may be obtained by using an image analysis tool, wherein the image analysis tool includes binwalk, qemu-img, gotsk convert, linuxmounter, and the like.
[0117] As another example, the image metadata may be obtained by using operating system specific tools, wherein the operating system specific tools include Diskpart, fdisk, and the like.
[0118] Exemplarily, when obtaining image metadata, determine the type of the initial image file. According to the type of the initial image file, analyze the header information of the initial image file to obtain the image metadata. Extract the architecture information of the initial image file based on the above-mentioned architecture analysis tool and other methods. Obtain system disk and operating system information. Further extract image metadata based on tools such as qemu-img or virt-filesystems.
[0119] It should be noted that the above method of obtaining image metadata is only used for exemplary purposes. In actual applications, any appropriate method of obtaining image metadata can be selected according to specific circumstances, and this application does not impose any restrictions on this.
[0120] S35, executing password modification, application and driver injection operations based on the system disk and the operating system.
[0121] Specifically, in the process of performing password modification, application and driver injection operations based on the system disk and operating system, the traceability of the operation and the integrity of the evidence can be ensured by simulating the operating system environment on the public cloud.
[0122] S36: Repair the initial image file based on the image metadata to obtain the target image file.
[0123] Specifically, before repairing the initial image file, the problem to be repaired must be identified, including file system damage, data loss, and the like.
[0124] Exemplarily, the specific process of repairing the initial image file based on the image metadata to obtain the target image file mainly includes the following steps:
[0125] Check the integrity of the initial image file. You can use tools such as md5sum and sha256sum to check the integrity of the initial image file.
[0126] Analyze the image metadata. You can use tools such as binwalk to analyze the image metadata corresponding to the initial image file and obtain the analysis results of the image metadata.
[0127] Specifically, the analysis result of the image metadata includes, for example, data loss, file system repair required, data to be updated, etc.
[0128] Perform repair tasks based on the analysis results of the image metadata.
[0129] For example, if it is determined according to the analysis result of the image metadata that the file system corresponding to the initial image file needs to be repaired, then the file system corresponding to the initial image file can be repaired according to a specific programming language, for example, the programming language can be fsck, chkdsk, etc.
[0130] It should be noted that in actual applications, the repair method corresponding to the appropriate programming language can be flexibly selected according to the specific repair needs, and this application does not impose any restrictions on this.
[0131] For example, if it is determined according to the analysis result of the image metadata that there is data loss in the image metadata, the lost image metadata can be restored according to another programming language, for example, the other programming language is any one of testdisk or photorec.
[0132] In another exemplary embodiment, if it is determined according to the analysis result of the image metadata that some data in the image metadata needs to be updated, the image metadata may be updated by using modules such as touch, chmod, and chown.
[0133] After completing the repair work on the image metadata, it is necessary to perform verification and repair work on the repaired image metadata to verify whether the repair is successful. The specific steps include performing repair work on the image metadata and determining again whether there are any problems that have not been repaired. If after verification, it is found that there are still unrepaired problems, continue to perform the above-mentioned repair work on the image metadata. If after verification, it is found that there are no unrepaired problems, it means that the current repair work on the image metadata has been completed. Therefore, the repair process of the image metadata may require multiple attempts.
[0134] After it is determined that the repair work of the image metadata is completed, the target image file is determined according to the repaired image metadata.
[0135] It should be noted that the algorithms, modules, etc. used in the process of repairing the initial image file to obtain the target image file are only used for illustrative purposes. In actual application scenarios, any suitable algorithms, modules, etc. can be selected according to the specific application scenarios, and this application does not impose any restrictions on this.
[0136] An embodiment of the present application provides a method for determining a target image file, the method comprising: statically analyzing the initial image file to obtain the image type and firmware information; dynamically analyzing the initial image file to obtain the architecture information; obtaining the system disk and operating system information according to the initial image file; obtaining image metadata based on the image type and firmware information, the architecture information and the system disk and operating system information; performing password modification, application and driver injection operations based on the system disk and operating system, and repairing the initial image file based on the image metadata to obtain the target image file. The operating environment corresponding to the above method for determining the target image file is on the public cloud, and the security of the target image file is ensured throughout the repair process based on the advanced security measures of the public cloud provider, such as data encryption and network security. In addition, the repaired image file is easily compatible with different operating systems and forensic tools in the cloud environment, which facilitates cross-platform analysis, and the repaired target image file enhances the compatibility of the system.
[0137] Figure 4 The flowchart of obtaining the system disk and operating system information in one embodiment of the present application is shown. Figure 4 As shown, the process of obtaining the system disk and operating system information in the embodiment of the present application includes the following steps S41 to S43.
[0138] S41, mounting the initial image file.
[0139] Among them, in the process of mounting the initial image file, the corresponding mounting method is different for different systems.
[0140] For example, for a Linux system, the initial image file can be mounted based on keywords such as bash, losetup, kpartx, etc. For a Windows system, the initial image file can be mounted using keywords such as Disk Management, WinMount, Virtual CloneDrive, etc.
[0141] It should be noted that the above-mentioned methods or keywords for mounting the initial image file based on different systems are only used for exemplary description, and this application does not limit this.
[0142] S42, repairing the mounted initial image file to obtain a repaired file system.
[0143] Specifically, before repairing the file system, a file system check tool needs to be used to evaluate the state of the file system.
[0144] Exemplarily, file system checking tools include fsck, chkdsk, etc.
[0145] Furthermore, based on the file system status information output by the file system check tool, fsck can automatically repair some problems.
[0146] Next, if the file system check tool detects that there are data loss or damaged files in the file system, you can use a data recovery tool to repair it. For example, the data recovery tool can be: testdisk, photorec, Recuva, EaseUSData Recovery Wizard, etc.
[0147] To ensure that all the problems to be repaired in the file system are solved, after the file system is repaired based on a suitable data recovery tool, the repair result is also verified. If the verification and repair result shows that some problems to be repaired in the file system have not been solved, the above steps of repairing the file system are repeated, and the repair result is verified again until all the problems to be repaired in the file system are solved. If the verification and repair result shows that all the problems to be repaired in the file system are solved, the repair work of the file system is terminated at this time.
[0148] It should be noted that the specific data recovery tools mentioned in the above steps are only used for illustrative purposes and are not limited in this application.
[0149] S43, obtaining the system disk and operating system information according to the repaired file system.
[0150] Specifically, the system disk and operating system information can be obtained by searching for files and directories related to the operating system, searching for operating system version information, searching for processor architecture information, searching for partition table information, etc. in the repaired file system.
[0151] Exemplarily, the specific method of searching the operating system version information in the repaired file system includes: for a Linux system, checking the / etc / os-release or / etc / lsb-release file. For a Windows system, checking SYSTEM, SOFTWARE, SAM, etc.
[0152] It should be noted that the above-mentioned specific method of searching for operating system version information in a repaired file system is only for illustrative purposes and is not limited in this application.
[0153] The embodiment of the present application provides a method for obtaining the system disk and operating system information, in which the method can automatically detect and repair file system errors in the initial image file and recover key information by performing a repair of the initial image file on the public cloud. The data recovery tool in the public cloud will more effectively recover key data from the damaged initial image file to ensure the integrity and availability of evidence. In addition, after repairing the file system, it also includes verifying the repair results, and the error information in the file system can be repaired multiple times to ensure that all error information in the file system is repaired. The repair accuracy of the file system repair is improved.
[0154] The protection scope of the mirror processing method of the embodiment of the present application is not limited to the execution order of the steps listed in the present embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present application are included in the protection scope of the present application.
[0155] Figure 5 Shown is a flowchart of another mirror processing method in one embodiment of the present application. Figure 5 As shown, the process of another image processing method in the embodiment of the present application includes steps S501 to S511. Among them, steps S501 to S511 are performed on the public cloud platform.
[0156] S501, the public cloud platform receives the data to be repaired from the device to be forensically collected.
[0157] S502: Create an initial image file according to the data to be repaired.
[0158] S503: Convert the format of the initial image file.
[0159] S504: Use the Mount command to mount the initial image file.
[0160] S505: After the initial image file is mounted, the file system is repaired.
[0161] S506, obtaining system disk and operating system information based on the repaired file system.
[0162] S507, performing operations such as password modification, application and driver injection based on the mounted initial image file.
[0163] S508, after the initial image file is mounted, obtain architecture information.
[0164] S509, after converting the format of the initial image file, obtaining the image type and firmware information.
[0165] S510, acquiring image metadata according to the system disk and operating system information, architecture information, image type and firmware information.
[0166] S511, obtaining a target image file based on the image metadata obtained in step S510.
[0167] It should be noted that the above reference numerals S501 to S511 are only used to identify different steps, rather than to limit the execution order of these steps. In addition, steps S501 to S511 correspond to the steps in the aforementioned image processing method, so they are not repeated here.
[0168] The embodiment of the present application also provides an image processing system, which can implement the image processing method of the present application. However, the implementation system of the image processing method of the present application includes but is not limited to the structure of the image processing system listed in this embodiment. All structural deformations and replacements of the prior art made according to the principles of the present application are included in the protection scope of the present application.
[0169] like Figure 6 As shown, in one embodiment, the image processing system 60 of the present application is applied to a public cloud platform, and the image processing system 60 includes a data receiving module 61, an image file creating module 62, and a target image file determining module 63.
[0170] The data determination module 61 is used to receive data to be repaired.
[0171] The image file creation module 62 is used to create an initial image file corresponding to the data to be repaired.
[0172] The target image file determination module 63 is used to perform image repair processing on the initial image file to obtain a target image file.
[0173] The structures and principles of the data determination module 61, the image file creation module 62, and the target image file determination module 63 correspond to the steps in the above-mentioned image processing method, so they are not described here in detail.
[0174] In the several embodiments provided in the present application, it should be understood that the disclosed system or method can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules / units is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules or units, which can be electrical, mechanical or other forms.
[0175] The modules / units described as separate components may or may not be physically separated, and the components displayed as modules / units may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules / units may be selected according to actual needs to achieve the purpose of the embodiments of the present application. For example, the functional modules / units in the various embodiments of the present application may be integrated into one processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into one module / unit.
[0176] Those of ordinary skill in the art should further appreciate that the units and steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0177] The embodiment of the present application also provides a computer-readable storage medium. A person of ordinary skill in the art can understand that all or part of the steps in the method for implementing the above embodiment can be completed by a program to instruct the processor, and the program can be stored in a computer-readable storage medium, and the storage medium is a non-transitory medium, such as a random access memory, a read-only memory, a flash memory, a hard disk, a solid-state hard disk, a magnetic tape, a floppy disk, an optical disc, and any combination thereof. The above storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (DVD)), a semiconductor medium (e.g., a solid-state disk (SSD)), and the like.
[0178] An embodiment of the present application also provides an electronic device. Figure 7 The image processing method provided in the embodiment of the present application can be applied to Figure 7 The electronic device 1 shown is not limited thereto. Figure 7As shown, the electronic device 1 includes a processor 11 , a memory, a system bus 13 , and a network interface 15 , wherein the memory may include a non-volatile storage medium 12 and an internal memory 14 .
[0179] The non-volatile storage medium 12 can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any image processing method provided in the embodiments of the present application.
[0180] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.
[0181] The internal memory 14 provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any one of the image processing methods provided in the embodiments of the present application.
[0182] The network interface 15 is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will appreciate that Figure 1A The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0183] It should be understood that the processor 11 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0184] The descriptions of the processes or structures corresponding to the above-mentioned figures have different emphases. For parts that are not described in detail in a certain process or structure, please refer to the relevant descriptions of other processes or structures.
[0185] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A mirror processing method, characterized in that: Applied to a public cloud platform, the method includes: receiving data to be repaired; Creating an initial image file corresponding to the data to be repaired; Perform image repair processing on the initial image file to obtain a target image file.
2. The mirror processing method according to claim 1, characterized in that: The method further comprises: Acquire a first storage space corresponding to the data to be repaired; configuring a second storage space of the same size as the first storage space; The data to be repaired is stored in the second storage space.
3. The mirror processing method according to claim 1, characterized in that: The performing image repair processing on the initial image file to obtain a target image file includes: Performing static analysis on the initial image file to obtain image type and firmware information; Dynamically analyzing the initial image file to obtain architecture information; Acquire system disk and operating system information according to the initial image file; Acquire image metadata based on the image type and firmware information, the architecture information, and the system disk and operating system information; Execute password modification, application and driver injection operations based on the system disk and operating system; The initial image file is repaired based on the image metadata to obtain the target image file.
4. The mirror processing method according to claim 3, characterized in that: The obtaining of system disk and operating system information according to the initial image file comprises: Mounting the initial image file; Repairing the mounted initial image file to obtain a repaired file system; The system disk and operating system information are obtained according to the repaired file system.
5. The mirror processing method according to claim 1, characterized in that: After creating the initial image file corresponding to the data to be repaired, the method further includes: The format of the initial image file is converted to obtain the initial image file in a preset format.
6. The mirror processing method according to claim 5, characterized in that: After converting the format of the initial image file to obtain the initial image file in a preset format, the method further includes: Based on a preset compression tool, a file compression operation is performed on the initial image file in the preset format.
7. The mirror processing method according to claim 1, characterized in that: The data to be repaired is data in the physical storage medium of the device to be collected.
8. An image processing system, characterized in that: Applied to a public cloud platform, the image processing system includes: A data receiving module, used for receiving data to be repaired; An image file creation module, used to create an initial image file corresponding to the data to be repaired; The target image file determination module is used to perform image repair processing on the initial image file to obtain a target image file.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the mirror processing method according to any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: The electronic device comprises: A memory storing a computer program; A processor is communicatively connected to the memory, and executes the image processing method according to any one of claims 1 to 7 when calling the computer program.
