A hard disk firmware detection and analysis method and device

By obtaining memory address information and determining register information, and combining various means to perform hard disk firmware detection, the problem of hard disk firmware detection is solved, the detection efficiency and accuracy are improved, the security of hard disk firmware is enhanced, and information leakage is prevented.

CN118468361BActive Publication Date: 2024-11-19NO 15 INST OF CHINA ELECTRONICS TECH GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410550560.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-06
Publication Date
2024-11-19
Estimated Expiration
2044-05-06

AI Technical Summary

Technical Problem

It is difficult for the existing technology to effectively detect and analyze hard disk firmware, resulting in frequent security incidents of hard disk firmware in key target terminals such as financial systems and government affairs systems, resulting in the leakage of high-value information.

Method used

By obtaining memory address information, determining register information, and obtaining hard disk firmware detection results based on register information, using various means such as comprehensive static analysis and backdoor utilization, the official driver vulnerability information is used to mine the hard disk firmware utilization mechanism, combined with the hidden penetration test process The processes of determining the correspondence relationship between the hard disk and bus, driver installation and loading, hard disk I/O occupation, firmware access, format analysis and other processes to realize the comprehensive analysis of the hard disk firmware.

Benefits of technology

The hard disk firmware detection process is simplified, the detection efficiency and accuracy are improved, and the security of the hard disk firmware is improved, and the leakage of important information is prevented.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118468361B_ABST
    Figure CN118468361B_ABST
Patent Text Reader

Abstract

The present invention discloses a hard disk firmware detection and analysis method and device, the method comprising: acquiring memory address information; determining register information based on the memory address information; and determining hard disk firmware detection result information based on the register information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of detection technology, and in particular to a hard disk firmware detection and analysis method and device. Background Art

[0002] Firmware is an important part of the hard disk. In recent years, security incidents against the hard disk firmware of key target terminals such as financial systems, government affairs systems, and infrastructure industrial control systems have occurred frequently. Through the hidden control of the backdoor of the hard disk firmware of the target terminal, a large amount of high-value information has been leaked. The execution of the firmware exploit does not require the support of the operating system. The current means of exploiting the hard disk firmware, on the one hand, bypass or modify the hard disk ROM to protect a specific area of ​​the hard disk from being accessed, store the stolen data in the protection area to avoid detection by antivirus software and protection software, and return the data when the time is right; on the other hand, it can be triggered at a fixed time to make the infected hard disk invalid or damage the important data in it. Therefore, in order to effectively prevent the leakage of important information in the hard disk and make the information in the target terminal hard disk more secure, it is very necessary to study the security detection and analysis technology of the hard disk firmware. Therefore, a hard disk firmware detection and analysis method and device are provided to simplify the hard disk firmware detection process, improve the detection efficiency and accuracy, and thus improve the security of the hard disk firmware. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a hard disk firmware detection and analysis method and device which is conducive to simplifying the hard disk firmware detection process, improving detection efficiency and accuracy, and further improving the security of the hard disk firmware.

[0004] In order to solve the above technical problems, the first aspect of the embodiment of the present invention discloses a hard disk firmware detection and analysis method, the method comprising:

[0005] Get memory address information;

[0006] Determining register information based on the memory address information;

[0007] Based on the register information, hard disk firmware detection result information is determined.

[0008] A second aspect of an embodiment of the present invention discloses a hard disk firmware detection and analysis device, the device comprising:

[0009] Acquisition module, used to obtain memory address information;

[0010] A first determining module, configured to determine register information based on the memory address information;

[0011] The second determination module is used to determine the hard disk firmware detection result information based on the register information.

[0012] The third aspect of the present invention discloses another hard disk firmware detection and analysis device, the device comprising:

[0013] A memory storing executable program code;

[0014] a processor coupled to the memory;

[0015] The processor calls the executable program code stored in the memory to execute part or all of the steps in the hard disk firmware detection and analysis method disclosed in the first aspect of the embodiment of the present invention.

[0016] The fourth aspect of the present invention discloses a computer-readable storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute some or all of the steps in the hard disk firmware detection and analysis method disclosed in the first aspect of the embodiment of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0018] Figure 1 It is a flowchart of a hard disk firmware detection and analysis method disclosed in an embodiment of the present invention;

[0019] Figure 2 It is a structural schematic diagram of a hard disk firmware detection and analysis device disclosed in an embodiment of the present invention;

[0020] Figure 3 It is a structural schematic diagram of another hard disk firmware detection and analysis device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0021] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0022] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or equipment that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or equipment.

[0023] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0024] The present invention discloses a hard disk firmware detection and analysis method and device, which are helpful to simplify the hard disk firmware detection process, improve detection efficiency and accuracy, and further improve the security of the hard disk firmware. Detailed descriptions are given below.

[0025] Embodiment 1

[0026] See also Figure 1 , Figure 1 1 is a flowchart of a hard disk firmware detection and analysis method disclosed in an embodiment of the present invention. Figure 1 The hard disk firmware detection and analysis method described is applied to a management system, such as a local server or a cloud server for management, and the embodiments of the present invention do not limit this. Figure 1 As shown, the hard disk firmware detection and analysis method may include the following operations:

[0027] 101. Get memory address information.

[0028] 102. Determine register information based on the memory address information.

[0029] 103. Determine hard disk firmware detection result information based on the register information.

[0030] It should be noted that the above memory address information may be a dynamically acquired API address or may be input by a user, which is not limited in the embodiment of the present invention.

[0031] It should be noted that the hard disk firmware detection and analysis method adopted in this application is a comprehensive static analysis, backdoor exploitation and other means, which uses official driver vulnerability information to explore the hard disk firmware exploitation mechanism; by simulating suspicious behavior, the customized executable code for obtaining the hard disk firmware is covertly injected; and then combined with the hard disk and bus correspondence relationship determination, driver installation and loading, hard disk I / O occupancy, firmware access, format parsing and other processes in the covert penetration test process, a comprehensive analysis of the hard disk firmware is achieved.

[0032] It can be seen that implementing the hard disk firmware detection and analysis method described in the embodiment of the present invention is conducive to simplifying the hard disk firmware detection process, improving detection efficiency and accuracy, and further improving the security of the hard disk firmware.

[0033] In an optional embodiment, the above-mentioned determining the register information based on the memory address information includes:

[0034] Determine whether the memory address information satisfies the address access condition, and obtain a first condition determination result;

[0035] When the result of the first condition judgment is yes, in response to the user's access operation instruction, the register information is obtained; the access operation instruction includes a system path query instruction and a configuration information query instruction;

[0036] When the first condition is judged as no, obtaining input certificate information;

[0037] Determine whether the certificate information to be verified is consistent with the input certificate information, and obtain a consistent judgment result;

[0038] When the consistent judgment result is no, the trigger detection time is obtained;

[0039] The difference between the trigger detection time and the information acquisition time is calculated to obtain the time interval length; the information acquisition time represents the system time corresponding to the acquisition of the input certificate information;

[0040] Determine whether the time interval length is greater than or equal to the interval time threshold, and obtain a time determination result;

[0041] When the time judgment result is no, the trigger execution obtains the trigger detection time;

[0042] When the time judgment result is yes, trigger the execution to obtain the input certificate information;

[0043] The address reading program is called to perform address reading processing on the hard disk firmware to obtain register information.

[0044] It should be noted that the above-mentioned system path query instruction and configuration information query instruction can be implemented by API method.

[0045] It should be noted that the above interval time threshold may be set by a user, or may be a default value given by the system, or may be obtained by averaging historical interval time thresholds, which is not limited in the embodiment of the present invention.

[0046] It should be noted that the above certificate information to be verified is preset in the system.

[0047] It should be noted that whether the certificate information to be verified and the input certificate information are consistent is to determine whether the data duplication of the two is greater than 70%.

[0048] It should be noted that the above-mentioned calling of the address reading program to perform address reading processing on the hard disk firmware may be implemented through an API, such as calling DeviceIoControl for communication.

[0049] It should be noted that the above-mentioned difference calculation between the trigger detection time and the information acquisition time is to calculate the time difference between the two times.

[0050] It should be noted that the above address access condition is that the hard disk firmware supports API access.

[0051] It can be seen that implementing the hard disk firmware detection and analysis method described in the embodiment of the present invention is conducive to simplifying the hard disk firmware detection process, improving detection efficiency and accuracy, and further improving the security of the hard disk firmware.

[0052] In another optional embodiment, in response to the user's access operation instruction, register information is obtained, including:

[0053] In response to a user's system path query instruction, obtain system path information;

[0054] Performing feature extraction processing on the system path information to obtain first system feature information;

[0055] Read the identity information corresponding to the first system characteristic information to obtain the identity characteristic information;

[0056] In response to a configuration information query instruction from a user, obtaining configuration space information;

[0057] The configuration space information is parsed and filtered to obtain target parsed space information; the data length of the target parsed space information is smaller than the data length of the configuration space information;

[0058] Performing data interactive analysis and processing on the target parsing space information to obtain disk address information; the disk address information includes a number of interactive address information;

[0059] The disk address information and identity feature information are matched and analyzed to obtain register information.

[0060] It should be noted that the above system path information may be the location information of the operating system.

[0061] It should be noted that the first system characteristic information may be a logical drive letter.

[0062] It should be noted that the above identity feature information may include physical drive letter, link symbol of physical drive letter, access path and other information, and physical disk ID information, which is not limited in the embodiment of the present invention. Further, the physical disk ID information is a 512-byte structure.

[0063] It should be noted that the above configuration space information can be the configuration space information of the PCI or PCI / e bus: use direct port I / O to interact and obtain. On the Windows platform, the driver must be used to open the I / O permission of the application layer. Find the valid PCI or PCI-E device through the bus number, device number, and function number in turn, read the configuration space information, and determine the bus manufacturer, type, device type, etc. through the flag bit to find the valid ATA / IDE / SATA or AHCI bus.

[0064] It should be noted that the above-mentioned parsing and filtering of the configuration space information is to decompose the configuration space information with a total length of 256 bytes into 64 bytes of configuration header information and 192 bytes of local configuration space information according to the order and size relationship of the configuration information, and then analyze the bus data of the local configuration space information to obtain the target parsed space information. Further, the above-mentioned configuration header information is used to identify the device and define the host access method of the PCI card (I / O access or memory access, interrupt information, etc.). Further, the above-mentioned local configuration space information defines the characteristics of the local bus on the card, the local space base address and range, etc.

[0065] It should be noted that the data interactive analysis and processing of the target parsing space information may be performed by sending instructions through registers to directly obtain disk information.

[0066] It can be seen that implementing the hard disk firmware detection and analysis method described in the embodiment of the present invention is conducive to simplifying the hard disk firmware detection process, improving detection efficiency and accuracy, and further improving the security of the hard disk firmware.

[0067] In yet another optional embodiment, the disk address information and the identity feature information are matched and analyzed to obtain register information, including:

[0068] For any interactive address information, determine whether the interactive storage information corresponding to the interactive address information is greater than 0, and obtain an interactive determination result;

[0069] When the interaction determination result is no, determining that the interaction address information is a target interaction address information;

[0070] When the interactive judgment result is yes, the judgment process corresponding to the interactive judgment result is ended;

[0071] For any target interaction address information, determine whether the information repetition degree between the target interaction address information and the identity feature information is greater than or equal to a repetition degree threshold, and obtain a repetition determination result;

[0072] When the repeated judgment result is no, the judgment process corresponding to the repeated judgment result is terminated;

[0073] When the result of the repeated determination is yes, it is determined that the interactive instruction issuing address information corresponding to the target interactive address information is register information.

[0074] It should be noted that the above repetition threshold may be set by the user, or may be a default value given by the system, or may be obtained by averaging historical repetition thresholds, which is not limited in the embodiment of the present invention.

[0075] It should be noted that the interactive instruction sending address information corresponding to the above target interactive address information represents the signal trigger address fed back by the register.

[0076] It can be seen that implementing the hard disk firmware detection and analysis method described in the embodiment of the present invention is conducive to simplifying the hard disk firmware detection process, improving detection efficiency and accuracy, and further improving the security of the hard disk firmware.

[0077] In yet another optional embodiment, based on the register information, determining the hard disk firmware detection result information includes:

[0078] Determine target register information based on the user's disk read instruction and register information;

[0079] Determine target disk detection program information based on the user's disk occupation instruction and target register information;

[0080] The target disk detection program information is released and processed to obtain the hard disk firmware detection result information.

[0081] It should be noted that the above release processing of the target disk detection program information to obtain the hard disk firmware detection result information can be to parse the target disk detection program information, then embed the parsed program information into the hard disk firmware, and perform cache intervention operations by judging the characteristics when the firmware module is loaded, rewrite the corresponding structure at the corresponding position, and replace the original hard disk firmware. Then, based on the replacement, filtering and refresh functions (UpdateCache, CCCahche) of the hard disk cache, release the embedded code module, activate the embedded code module, use the cache processing method, perform the corresponding hard disk firmware operation takeover, refresh the cache after the operation is completed, clear the replaced cache data, and complete the entire activation process. Then, the hard disk analysis, search, read and write operations are completed through API (partial) or PIO, AHCI and other methods, and the hard disk is controlled and penetrated. After the degradation test program is executed, the instruction and cache sending operations are completed within about 3-5 seconds, and the disk enters the damage test process. The disk damage (referring to bad sectors) ratio is proportional to the execution time of the penetration test function, so as to obtain the hard disk firmware detection result information.

[0082] It should be noted that the above-mentioned disk read instruction based on the user and the register information determines that the target register information can be the disk read instruction received from the user, and then sends the disk read instruction to the register of the register information. When the length of the data information received from the register feedback is greater than 0, the disk information corresponding to the register is determined to be the target register information. Furthermore, the above-mentioned disk information includes disk model, firmware version, serial number, capacity, cache, support type, security option information, and extended support information, which are not limited in the embodiments of the present invention.

[0083] It can be seen that implementing the hard disk firmware detection and analysis method described in the embodiment of the present invention is conducive to simplifying the hard disk firmware detection process, improving detection efficiency and accuracy, and further improving the security of the hard disk firmware.

[0084] In an optional embodiment, the target disk detection program information is determined based on the user's disk occupation instruction and the target register information, including:

[0085] Determine whether the user's disk occupation instruction is a first occupation type instruction, and obtain an instruction determination result;

[0086] When the instruction judgment result is yes, a buffer queue is established in the disk memory space corresponding to the target register information;

[0087] Get queue priority information;

[0088] Associating and setting the buffer queue and queue priority information to obtain the target buffer queue;

[0089] Based on the firmware detection program and the target buffer queue, the target disk detection program information is determined; the firmware detection program is composed of a plurality of program data information distributed in sequence;

[0090] When the instruction judgment result is no, the target register information is initialized to obtain the initialized register information;

[0091] The firmware detection program is written into the register corresponding to the initialization register information to obtain the target disk detection program information.

[0092] It should be noted that the first occupation type instruction indicates that the exclusive access to the disk is performed by establishing a buffer queue.

[0093] It should be noted that the size of the program data information may be 512 bytes. Further, the number of the program data information may be 256 bytes.

[0094] It should be noted that the above-mentioned writing of the firmware detection program to the register corresponding to the initialization register information can be to send a special instruction group to the register, and after sending, check the status register and the error register values ​​to determine whether the instruction is executed correctly; send the program data information in the firmware detection program for interactive reading; check the status register and the error register to determine whether the instruction is executed correctly; write the program data information through the data register in a loop, resend the "program data information" instruction every 256 reads, and check the register status until the data reading is completed.

[0095] It should be noted that the firmware area read / write instructions are different for different brands and series of disks. The program needs to determine the disk model, brand, series, firmware version and some auxiliary information before reading or writing operations, so as to facilitate matching in the specific read / write process. At the same time, register checks are performed for each interactive data to prevent program operation errors.

[0096] It should be noted that the above-mentioned association setting of the buffer queue and queue priority information can only allow the firmware detection program to be sent to the register, that is, to achieve exclusive access to the disk during the process of sending the firmware detection program. This is mainly due to the need to keep the register in the correct state during the reading or writing operation of the system disk: that is, during the data interaction process, other processes cannot read or write to the disk. For the Windows operating system, there are a large number of read, write, and pre-read operations after startup. At the same time, the security protection software will monitor the file read and write operations in real time, and will also scan (read or pre-read) the files, which will cause the register to change frequently. Therefore, by establishing a target buffer queue, the purpose of disk exclusivity can be achieved in a short time.

[0097] It should be noted that the above-mentioned initialization process of the target register information may be implemented by restarting the system.

[0098] It can be seen that implementing the hard disk firmware detection and analysis method described in the embodiment of the present invention is conducive to simplifying the hard disk firmware detection process, improving detection efficiency and accuracy, and further improving the security of the hard disk firmware.

[0099] In another optional embodiment, the target disk detection program information is determined based on the firmware detection program and the target buffer queue, including:

[0100] Obtain register status information corresponding to the target register information;

[0101] Determine whether the register status information is in a ready state, and obtain the register determination result;

[0102] When the register judgment result is no, detecting whether a write signal is received, and obtaining a first signal judgment result;

[0103] When the first signal judgment result is no, triggering execution to detect whether a write signal is received to obtain the first signal judgment result;

[0104] When the first signal judgment result is yes, trigger execution to obtain register state information corresponding to the target register information;

[0105] When the register judgment result is yes, it is judged whether the priority corresponding to the first detection program is consistent with the highest priority corresponding to the queue priority information in the target buffer queue, and a priority judgment result is obtained;

[0106] When the priority determination result is no, triggering execution to detect whether a write signal is received, and obtaining a first signal determination result;

[0107] When the priority determination result is yes, the first detection program is added to the target buffer queue, and the target buffer queue sends the first detection program to the register;

[0108] receiving a first feedback signal sent by the register;

[0109] Determine whether the signal value corresponding to the first feedback signal is greater than 0, and obtain a second signal determination result;

[0110] When the second signal judgment result is negative, triggering execution to send the first detection program to the register;

[0111] When the second signal determination result is yes, selecting a program data information from the firmware detection program in sequence as the program data information to be written;

[0112] Send the program data information to be written to the register to obtain a received program data information;

[0113] Determine whether the signal value corresponding to the received program data information is greater than 0, and obtain a third signal determination result;

[0114] When the result of the third signal judgment is no, triggering execution to send the program data information to be written to the register, and obtaining a received program data information;

[0115] When the third signal judgment result is yes, judging whether the program data information to be written is the last program data information in the firmware detection program, and obtaining a program judgment result;

[0116] When the program judgment result is no, triggering execution to sequentially select a program data information from the firmware detection program as the program data information to be written;

[0117] When the program judgment result is yes, the received program data information whose signal value corresponding to the received program data information is greater than 0 is determined as the target program data information;

[0118] All target program data information is spliced ​​and fused to obtain target disk detection program information.

[0119] It should be noted that the above-mentioned ready state characterization register can be written / read.

[0120] It should be noted that the signal value corresponding to the received program data information indicates that the program data information to be written is written into the register.

[0121] It should be noted that the above-mentioned splicing and fusing processing of all target program data information is to re-splice according to the order of the program data information corresponding to the target program data information.

[0122] It should be noted that the above-mentioned write signal may be a 0xec instruction.

[0123] It can be seen that implementing the hard disk firmware detection and analysis method described in the embodiment of the present invention is conducive to simplifying the hard disk firmware detection process, improving detection efficiency and accuracy, and further improving the security of the hard disk firmware.

[0124] Embodiment 2

[0125] See also Figure 2 , Figure 2 Schematic diagram of a hard disk firmware detection and analysis device disclosed in an embodiment of the present invention. Figure 2 The described device can be applied to a warehouse management system, such as a local server or cloud server for warehouse logistics hard disk firmware detection, analysis and management, etc., and the embodiments of the present invention are not limited thereto. Figure 2 As shown, the device may include:

[0126] An acquisition module 201 is used to acquire memory address information;

[0127] A first determination module 202, configured to determine register information based on memory address information;

[0128] The second determination module 203 is used to determine the hard disk firmware detection result information based on the register information.

[0129] It can be seen that implementation Figure 2 The hard disk firmware detection and analysis device described is helpful to simplify the hard disk firmware detection process, improve detection efficiency and accuracy, and further improve the security of the hard disk firmware.

[0130] In another optional embodiment, Figure 2 As shown, the first determination module 202 determines register information based on the memory address information, including:

[0131] Determine whether the memory address information satisfies the address access condition, and obtain a first condition determination result;

[0132] When the result of the first condition judgment is yes, in response to the user's access operation instruction, the register information is obtained; the access operation instruction includes a system path query instruction and a configuration information query instruction;

[0133] When the first condition is judged as no, obtaining input certificate information;

[0134] Determine whether the certificate information to be verified is consistent with the input certificate information, and obtain a consistent judgment result;

[0135] When the consistent judgment result is no, the trigger detection time is obtained;

[0136] The difference between the trigger detection time and the information acquisition time is calculated to obtain the time interval length; the information acquisition time represents the system time corresponding to the acquisition of the input certificate information;

[0137] Determine whether the time interval length is greater than or equal to the interval time threshold, and obtain a time determination result;

[0138] When the time judgment result is no, the trigger execution obtains the trigger detection time;

[0139] When the time judgment result is yes, trigger the execution to obtain the input certificate information;

[0140] The address reading program is called to perform address reading processing on the hard disk firmware to obtain register information.

[0141] It can be seen that implementation Figure 2 The hard disk firmware detection and analysis device described is helpful to simplify the hard disk firmware detection process, improve detection efficiency and accuracy, and further improve the security of the hard disk firmware.

[0142] In yet another optional embodiment, Figure 2 As shown, the first determination module 202 obtains register information in response to the user's access operation instruction, including:

[0143] In response to a user's system path query instruction, obtain system path information;

[0144] Performing feature extraction processing on the system path information to obtain first system feature information;

[0145] Read the identity information corresponding to the first system characteristic information to obtain the identity characteristic information;

[0146] In response to a configuration information query instruction from a user, obtaining configuration space information;

[0147] The configuration space information is parsed and filtered to obtain target parsed space information; the data length of the target parsed space information is smaller than the data length of the configuration space information;

[0148] Performing data interactive analysis and processing on the target parsing space information to obtain disk address information; the disk address information includes a number of interactive address information;

[0149] The disk address information and identity feature information are matched and analyzed to obtain register information.

[0150] It can be seen that implementation Figure 2 The hard disk firmware detection and analysis device described is helpful to simplify the hard disk firmware detection process, improve detection efficiency and accuracy, and further improve the security of the hard disk firmware.

[0151] In yet another optional embodiment, Figure 2 As shown, the first determination module 202 performs matching analysis on the disk address information and the identity feature information to obtain register information, including:

[0152] For any interactive address information, determine whether the interactive storage information corresponding to the interactive address information is greater than 0, and obtain an interactive determination result;

[0153] When the interaction determination result is no, determining that the interaction address information is a target interaction address information;

[0154] When the interactive judgment result is yes, the judgment process corresponding to the interactive judgment result is ended;

[0155] For any target interaction address information, determine whether the information repetition degree between the target interaction address information and the identity feature information is greater than or equal to a repetition degree threshold, and obtain a repetition determination result;

[0156] When the repeated judgment result is no, the judgment process corresponding to the repeated judgment result is terminated;

[0157] When the result of the repeated determination is yes, it is determined that the interactive instruction issuing address information corresponding to the target interactive address information is register information.

[0158] It can be seen that implementation Figure 2 The hard disk firmware detection and analysis device described is helpful to simplify the hard disk firmware detection process, improve detection efficiency and accuracy, and further improve the security of the hard disk firmware.

[0159] In yet another optional embodiment, Figure 2 As shown, the second determination module 203 determines the hard disk firmware detection result information based on the register information, including:

[0160] Determine target register information based on the user's disk read instruction and register information;

[0161] Determine target disk detection program information based on the user's disk occupation instruction and target register information;

[0162] The target disk detection program information is released and processed to obtain the hard disk firmware detection result information.

[0163] It can be seen that implementation Figure 2 The hard disk firmware detection and analysis device described is helpful to simplify the hard disk firmware detection process, improve detection efficiency and accuracy, and further improve the security of the hard disk firmware.

[0164] In yet another optional embodiment, Figure 2 As shown, the second determination module 203 determines the target disk detection program information based on the user's disk occupation instruction and the target register information, including:

[0165] Determine whether the user's disk occupation instruction is a first occupation type instruction, and obtain an instruction determination result;

[0166] When the instruction judgment result is yes, a buffer queue is established in the disk memory space corresponding to the target register information;

[0167] Get queue priority information;

[0168] Associating and setting the buffer queue and queue priority information to obtain the target buffer queue;

[0169] Based on the firmware detection program and the target buffer queue, the target disk detection program information is determined; the firmware detection program is composed of a plurality of program data information distributed in sequence;

[0170] When the instruction judgment result is no, the target register information is initialized to obtain the initialized register information;

[0171] The firmware detection program is written into the register corresponding to the initialization register information to obtain the target disk detection program information.

[0172] It can be seen that implementation Figure 2 The hard disk firmware detection and analysis device described is helpful to simplify the hard disk firmware detection process, improve detection efficiency and accuracy, and further improve the security of the hard disk firmware.

[0173] In yet another optional embodiment, Figure 2 As shown, the second determination module 203 determines the target disk detection program information based on the firmware detection program and the target buffer queue, including:

[0174] Obtain register status information corresponding to the target register information;

[0175] Determine whether the register status information is in a ready state, and obtain the register determination result;

[0176] When the register judgment result is no, detecting whether a write signal is received, and obtaining a first signal judgment result;

[0177] When the first signal judgment result is no, triggering execution to detect whether a write signal is received to obtain the first signal judgment result;

[0178] When the first signal judgment result is yes, trigger execution to obtain register state information corresponding to the target register information;

[0179] When the register judgment result is yes, it is judged whether the priority corresponding to the first detection program is consistent with the highest priority corresponding to the queue priority information in the target buffer queue, and a priority judgment result is obtained;

[0180] When the priority determination result is no, triggering execution to detect whether a write signal is received, and obtaining a first signal determination result;

[0181] When the priority determination result is yes, the first detection program is added to the target buffer queue, and the target buffer queue sends the first detection program to the register;

[0182] receiving a first feedback signal sent by the register;

[0183] Determine whether the signal value corresponding to the first feedback signal is greater than 0, and obtain a second signal determination result;

[0184] When the second signal judgment result is negative, triggering execution to send the first detection program to the register;

[0185] When the second signal determination result is yes, selecting a program data information from the firmware detection program in sequence as the program data information to be written;

[0186] Send the program data information to be written to the register to obtain a received program data information;

[0187] Determine whether the signal value corresponding to the received program data information is greater than 0, and obtain a third signal determination result;

[0188] When the result of the third signal judgment is no, triggering execution to send the program data information to be written to the register, and obtaining a received program data information;

[0189] When the third signal judgment result is yes, judging whether the program data information to be written is the last program data information in the firmware detection program, and obtaining a program judgment result;

[0190] When the program judgment result is no, triggering execution to sequentially select a program data information from the firmware detection program as the program data information to be written;

[0191] When the program judgment result is yes, the received program data information whose signal value corresponding to the received program data information is greater than 0 is determined as the target program data information;

[0192] All target program data information is spliced ​​and fused to obtain target disk detection program information.

[0193] It can be seen that implementation Figure 2 The hard disk firmware detection and analysis device described is helpful to simplify the hard disk firmware detection process, improve detection efficiency and accuracy, and further improve the security of the hard disk firmware.

[0194] Embodiment 3

[0195] See also Figure 3 , Figure 3 is a structural diagram of another hard disk firmware detection and analysis device disclosed in an embodiment of the present invention. Figure 3 The described device can be applied to a warehouse management system, such as a local server or cloud server for warehouse logistics hard disk firmware detection, analysis and management, etc., and the embodiments of the present invention are not limited thereto. Figure 3 As shown, the device may include:

[0196] A memory 301 storing executable program codes;

[0197] a processor 302 coupled to the memory 301;

[0198] The processor 302 calls the executable program code stored in the memory 301 to execute the steps in the hard disk firmware detection and analysis method described in the first embodiment.

[0199] Embodiment 4

[0200] An embodiment of the present invention discloses a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program enables a computer to execute the steps of the hard disk firmware detection and analysis method described in the first embodiment.

[0201] Embodiment 5

[0202] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the steps in the hard disk firmware detection and analysis method described in the first embodiment.

[0203] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.

[0204] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0205] Finally, it should be noted that the hard disk firmware detection and analysis method and device disclosed in the embodiment of the present invention discloses only the preferred embodiment of the present invention, which is only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, ordinary technicians in this field should understand that it is still possible to modify the technical solutions recorded in the aforementioned embodiments, or to replace some of the technical features therein by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A hard disk firmware detection and analysis method, characterized in that: The method comprises: Get memory address information; Determining register information based on the memory address information; Based on the register information, determine the hard disk firmware detection result information; Wherein, determining register information based on the memory address information includes: Determine whether the memory address information satisfies the address access condition, and obtain a first condition determination result; When the result of the first condition judgment is yes, in response to the user's access operation instruction, the register information is obtained; the access operation instruction includes a system path query instruction and a configuration information query instruction; When the first condition is judged as no, obtaining input certificate information; Determine whether the certificate information to be verified is consistent with the input certificate information, and obtain a consistency determination result; When the consistency judgment result is no, obtaining the trigger detection time; The difference between the trigger detection time and the information acquisition time is calculated to obtain the time interval length; the information acquisition time represents the system time corresponding to the acquisition of the input certificate information; Determine whether the time interval length is greater than or equal to the interval time threshold, and obtain a time determination result; When the time judgment result is no, triggering the execution of obtaining the trigger detection time; When the time judgment result is yes, triggering the execution of obtaining input certificate information; Calling an address reading program to perform address reading processing on the hard disk firmware to obtain the register information; The obtaining of register information in response to the user's access operation instruction includes: In response to the system path query instruction of the user, obtaining system path information; Performing feature extraction processing on the system path information to obtain first system feature information; Reading the identity information corresponding to the first system characteristic information to obtain identity characteristic information; In response to the configuration information query instruction of the user, obtaining configuration space information; Parsing and filtering the configuration space information to obtain target parsed space information; the data length of the target parsed space information is smaller than the data length of the configuration space information; Performing data interactive analysis on the target parsed space information to obtain disk address information; the disk address information includes a plurality of interactive address information; Performing matching analysis on the disk address information and the identity feature information to obtain register information; The matching and analyzing of the disk address information and the identity feature information to obtain register information includes: For any of the interaction address information, determine whether the interaction storage information corresponding to the interaction address information is greater than 0, and obtain an interaction determination result; When the interaction judgment result is no, determining that the interaction address information is a target interaction address information; When the interactive judgment result is yes, ending the judgment process corresponding to the interactive judgment result; For any of the target interaction address information, determine whether the information repetition degree between the target interaction address information and the identity feature information is greater than or equal to a repetition degree threshold, and obtain a repetition determination result; When the repeated judgment result is no, ending the judgment process corresponding to the repeated judgment result; When the result of the repeated determination is yes, determining that the interactive instruction issuing address information corresponding to the target interactive address information is register information; Wherein, determining the hard disk firmware detection result information based on the register information includes: Determine target register information based on the user's disk read instruction and the register information; Determining target disk detection program information based on the user's disk occupation instruction and the target register information; Release the target disk detection program information to obtain hard disk firmware detection result information; Wherein, the step of determining the target disk detection program information based on the user's disk occupation instruction and the target register information includes: Determine whether the user's disk occupation instruction is a first occupation type instruction, and obtain an instruction determination result; When the instruction judgment result is yes, a buffer queue is established in the disk memory space corresponding to the target register information; Get queue priority information; Associating and setting the buffer queue and the queue priority information to obtain a target buffer queue; Based on the firmware detection program and the target buffer queue, target disk detection program information is determined; the firmware detection program is composed of a plurality of program data information distributed in sequence; When the instruction judgment result is no, initializing the target register information to obtain initialization register information; Writing the firmware detection program into the register corresponding to the initialization register information to obtain the target disk detection program information; Wherein, the step of determining target disk detection program information based on the firmware detection program and the target buffer queue includes: Obtaining register status information corresponding to the target register information; Determine whether the register status information is in a ready state, and obtain the register determination result; When the register judgment result is no, detecting whether a write signal is received, and obtaining a first signal judgment result; When the first signal judgment result is no, triggering the execution of the detection of whether the write signal is received to obtain the first signal judgment result; When the first signal judgment result is yes, triggering the execution of obtaining the register state information corresponding to the target register information; When the register judgment result is yes, determine whether the priority corresponding to the first detection program is consistent with the highest priority corresponding to the queue priority information in the target buffer queue, and obtain a priority judgment result; When the priority determination result is no, triggering the detection of whether a write signal is received to obtain a first signal determination result; When the priority determination result is yes, adding the first detection program to the target buffer queue, and sending the first detection program to the register by the target buffer queue; receiving a first feedback signal sent by the register; Determine whether the signal value corresponding to the first feedback signal is greater than 0, and obtain a second signal determination result; When the judgment result of the second signal is negative, triggering the execution of sending the first detection program to the register; When the second signal determination result is yes, selecting a program data information from the firmware detection program in sequence as the program data information to be written; Sending the program data information to be written to the register to obtain a received program data information; Determine whether the signal value corresponding to the received program data information is greater than 0, and obtain a third signal determination result; When the third signal judgment result is no, triggering the execution of sending the to-be-written program data information to the register to obtain a received program data information; When the third signal judgment result is yes, judging whether the program data information to be written is the last program data information in the firmware detection program, and obtaining a program judgment result; When the program judgment result is no, triggering the execution of selecting a program data information from the firmware detection program in sequence as the program data information to be written; When the program judgment result is yes, determining the received program data information whose signal value corresponding to the received program data information is greater than 0 as the target program data information; All the target program data information is spliced ​​and merged to obtain the target disk detection program information.

2. A hard disk firmware detection and analysis device, characterized in that: The device comprises: Acquisition module, used to obtain memory address information; A first determining module, configured to determine register information based on the memory address information; A second determination module, configured to determine hard disk firmware detection result information based on the register information; Wherein, determining register information based on the memory address information includes: Determine whether the memory address information satisfies the address access condition, and obtain a first condition determination result; When the result of the first condition judgment is yes, in response to the user's access operation instruction, the register information is obtained; the access operation instruction includes a system path query instruction and a configuration information query instruction; When the first condition is judged as no, obtaining input certificate information; Determine whether the certificate information to be verified is consistent with the input certificate information, and obtain a consistency determination result; When the consistency judgment result is no, obtaining the trigger detection time; The difference between the trigger detection time and the information acquisition time is calculated to obtain the time interval length; the information acquisition time represents the system time corresponding to the acquisition of the input certificate information; Determine whether the time interval length is greater than or equal to the interval time threshold, and obtain a time determination result; When the time judgment result is no, triggering the execution of obtaining the trigger detection time; When the time judgment result is yes, triggering the execution of obtaining input certificate information; Calling an address reading program to perform address reading processing on the hard disk firmware to obtain the register information; The obtaining of register information in response to the user's access operation instruction includes: In response to the system path query instruction of the user, obtaining system path information; Performing feature extraction processing on the system path information to obtain first system feature information; Reading the identity information corresponding to the first system characteristic information to obtain identity characteristic information; In response to the configuration information query instruction of the user, obtaining configuration space information; Parsing and filtering the configuration space information to obtain target parsed space information; the data length of the target parsed space information is smaller than the data length of the configuration space information; Performing data interactive analysis on the target parsed space information to obtain disk address information; the disk address information includes a plurality of interactive address information; Performing matching analysis on the disk address information and the identity feature information to obtain register information; The matching and analyzing of the disk address information and the identity feature information to obtain register information includes: For any of the interaction address information, determine whether the interaction storage information corresponding to the interaction address information is greater than 0, and obtain an interaction determination result; When the interaction judgment result is no, determining that the interaction address information is a target interaction address information; When the interactive judgment result is yes, the judgment process corresponding to the interactive judgment result is ended; For any of the target interaction address information, determine whether the information repetition degree between the target interaction address information and the identity feature information is greater than or equal to a repetition degree threshold, and obtain a repetition determination result; When the repeated judgment result is no, ending the judgment process corresponding to the repeated judgment result; When the result of the repeated determination is yes, determining that the interactive instruction issuing address information corresponding to the target interactive address information is register information; Wherein, determining the hard disk firmware detection result information based on the register information includes: Determine target register information based on the user's disk read instruction and the register information; Determining target disk detection program information based on the user's disk occupation instruction and the target register information; Release the target disk detection program information to obtain hard disk firmware detection result information; Wherein, the step of determining the target disk detection program information based on the user's disk occupation instruction and the target register information includes: Determine whether the user's disk occupation instruction is a first occupation type instruction, and obtain an instruction determination result; When the instruction judgment result is yes, a buffer queue is established in the disk memory space corresponding to the target register information; Get queue priority information; Associating and setting the buffer queue and the queue priority information to obtain a target buffer queue; Based on the firmware detection program and the target buffer queue, target disk detection program information is determined; the firmware detection program is composed of a plurality of program data information distributed in sequence; When the instruction judgment result is no, initializing the target register information to obtain initialization register information; Writing the firmware detection program into the register corresponding to the initialization register information to obtain the target disk detection program information; Wherein, the step of determining target disk detection program information based on the firmware detection program and the target buffer queue includes: Obtaining register status information corresponding to the target register information; Determine whether the register status information is in a ready state, and obtain the register determination result; When the register judgment result is no, detecting whether a write signal is received, and obtaining a first signal judgment result; When the first signal judgment result is no, triggering the execution of the detection of whether the write signal is received to obtain the first signal judgment result; When the first signal judgment result is yes, triggering the execution of obtaining the register state information corresponding to the target register information; When the register judgment result is yes, determine whether the priority corresponding to the first detection program is consistent with the highest priority corresponding to the queue priority information in the target buffer queue, and obtain a priority judgment result; When the priority determination result is no, triggering the detection of whether a write signal is received to obtain a first signal determination result; When the priority determination result is yes, adding the first detection program to the target buffer queue, and sending the first detection program to the register by the target buffer queue; receiving a first feedback signal sent by the register; Determine whether the signal value corresponding to the first feedback signal is greater than 0, and obtain a second signal determination result; When the judgment result of the second signal is negative, triggering the execution of sending the first detection program to the register; When the second signal determination result is yes, selecting a program data information from the firmware detection program in sequence as the program data information to be written; Sending the program data information to be written to the register to obtain a received program data information; Determine whether the signal value corresponding to the received program data information is greater than 0, and obtain a third signal determination result; When the third signal judgment result is no, triggering the execution of sending the to-be-written program data information to the register to obtain a received program data information; When the third signal judgment result is yes, judging whether the program data information to be written is the last program data information in the firmware detection program, and obtaining a program judgment result; When the program judgment result is no, triggering the execution of selecting a program data information from the firmware detection program in sequence as the program data information to be written; When the program judgment result is yes, determining the received program data information whose signal value corresponding to the received program data information is greater than 0 as the target program data information; All the target program data information is spliced ​​and merged to obtain the target disk detection program information.

3. A hard disk firmware detection and analysis device, characterized in that: The device comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the hard disk firmware detection and analysis method as claimed in claim 1.

4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the hard disk firmware detection and analysis method according to claim 1.