Embedded firmware-oriented security detection method and device
By analyzing and processing the information of hard disk firmware, graphics card firmware and network equipment, combined with the security detection model, and integrating the detection results, the problem of lack of comprehensive security detection in the existing technology is solved, and the full life cycle security of embedded firmware is achieved. Security and remote monitoring capabilities of smart devices.
Patent Information
- Application Number
- CN202410830124.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-22
AI Technical Summary
Existing security detection methods lack comprehensive security detection and analysis of hard disk firmware, graphics card firmware and network equipment, cannot effectively respond to hardware attacks, and cannot achieve full life cycle security assurance for embedded firmware.
A security detection method for embedded firmware is proposed. By analyzing and processing the hard disk firmware, graphics card firmware and network device information, combined with the security detection model, the security detection results of the embedded firmware are obtained, and the security detection results of the embedded firmware are obtained by using API access and register address reading. Fetching, vulnerability exploitation testing and other technologies are used to implement security detection of embedded firmware.
It achieves full life cycle security guarantee for embedded firmware, enhances the firmware security detection model implantation function of hard disks, graphics cards and network devices, supports remote monitoring and security detection of smart devices, and effectively responds to hardware attacks.
Smart Images

Figure CN118821118A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of security detection, and in particular to a security detection method and device for embedded firmware. Background Art
[0002] With the continuous development of computer technology, various intelligent control systems and intelligent applications have been seen everywhere in daily life. Communication equipment is mostly composed of firmware such as hard disk firmware, graphics card firmware, and network equipment.
[0003] In the field of cybersecurity, firmware and hardware attacks against hard disk firmware, graphics card firmware, network devices, etc. are on the rise. Attackers are increasingly targeting the firmware and device drivers of hardware components to gain high privileges and persistence. Firmware security testing is the process of ensuring that the firmware can maintain stability and security in the face of various potential threats.
[0004] The security of embedded firmware is critical to the security of the entire system. The goal of firmware security testing is to ensure that the firmware can resist various security threats throughout its life cycle, thereby protecting the security of devices and user data. With the popularity of the Internet of Things and smart devices, firmware security testing has become increasingly important, because firmware security is not only related to the security of the device, but may also affect the privacy of users and the security of the entire network. Most existing studies focus on security testing of hard disk firmware, graphics card firmware, and network devices, and lack comprehensive security testing analysis. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a security detection method and device for embedded firmware, analyze the embedded firmware of communication equipment to obtain embedded firmware information; the embedded firmware includes hard disk firmware, graphics card firmware and network equipment; the embedded firmware information includes hard disk firmware information, graphics card firmware information and network equipment information; the hard disk firmware information is processed to obtain a hard disk firmware security detection result; the graphics card firmware information is processed to obtain a graphics card firmware security detection result; the network equipment information is processed to obtain a network equipment security detection result; the hard disk firmware security detection result, the graphics card firmware security detection result and the network equipment security detection result are integrated to obtain an embedded firmware security detection result.
[0006] In order to solve the above technical problems, the first aspect of the embodiment of the present invention discloses a security detection method for embedded firmware, the method comprising:
[0007] S1, analyzing the embedded firmware to obtain embedded firmware information; the embedded firmware includes hard disk firmware, graphics card firmware and network equipment;
[0008] The embedded firmware information includes hard disk firmware information, graphics card firmware information and network device information;
[0009] S2, processing the hard disk firmware information to obtain a hard disk firmware security detection result;
[0010] S3, processing the graphics card firmware information to obtain a graphics card firmware security detection result;
[0011] S4, processing the network device information to obtain a network device security detection result;
[0012] S5, integrating the hard disk firmware security detection result, the graphics card firmware security detection result and the network device security detection result to obtain an embedded firmware security detection result.
[0013] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the analyzing the embedded firmware to obtain the embedded firmware information includes:
[0014] S11, processing the hard disk firmware to obtain hard disk firmware information;
[0015] S12, processing the graphics card firmware to obtain graphics card firmware information;
[0016] S13, analyzing the network device to obtain network device information.
[0017] As an optional implementation, in the first aspect of the embodiment of the present invention, the processing of the hard disk firmware to obtain the hard disk firmware information includes:
[0018] S111, when API access is supported, hard disk firmware data is read by using the API method when the hard disk driver is installed to obtain hard disk firmware information;
[0019] S112, when API access is not supported, reading the register address, MMIO address and physical memory address of the hard disk firmware to obtain hard disk firmware information.
[0020] As an optional implementation, in the first aspect of the embodiment of the present invention, the processing of the hard disk firmware information to obtain the hard disk firmware security detection result includes:
[0021] S21, implanting a first security detection model into the hard disk firmware according to the hard disk firmware information;
[0022] S22, using the first security detection model, processing the hard disk firmware before the operating system is loaded to obtain a hard disk firmware security detection result.
[0023] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the processing of the graphics card firmware information to obtain a graphics card firmware security detection result includes:
[0024] S31, processing the graphics card firmware information to obtain a correction entry address of the graphics card firmware;
[0025] S32, implanting a second security detection model into the graphics card firmware according to the modified entry address;
[0026] S33, using the second security detection model, performing real mode and protected mode data processing during the BIOS startup process to obtain a graphics card firmware security detection result.
[0027] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the processing of the network device information to obtain a network device security detection result includes:
[0028] S41, performing a vulnerability exploitation test on the network device according to the network device information to obtain vulnerability information;
[0029] S42, implanting a third security detection model in the network device according to the vulnerability information;
[0030] S43, using the third network security detection model, performing security detection on the network device to obtain a network device security detection result.
[0031] As an optional implementation, in the first aspect of the embodiment of the present invention, the hard disk firmware security detection result, the graphics card firmware security detection result and the network device security detection result are merged to obtain the embedded firmware security detection result, including:
[0032] Using a security detection fusion model, the hard disk firmware security detection result, the graphics card firmware security detection result and the network device security detection result are integrated to obtain an embedded firmware security detection result;
[0033] The safety detection fusion model expression is:
[0034] E=λ1q1+λ2q2+λ3q3
[0035] Among them, E is the embedded firmware security detection result, λ1 is the weight of the hard disk firmware security detection result, q1 is the hard disk firmware security detection result, λ2 is the weight of the graphics card firmware security detection result, q2 is the graphics card firmware security detection result, λ3 is the weight of the network device security detection result, q3 is the network device security detection result, λ1+λ2+λ3=1.
[0036] A second aspect of an embodiment of the present invention discloses a security detection device for embedded firmware, the device comprising:
[0037] An embedded firmware analysis module is used to analyze embedded firmware to obtain embedded firmware information; the embedded firmware includes hard disk firmware, graphics card firmware and network equipment;
[0038] The embedded firmware information includes hard disk firmware information, graphics card firmware information and network device information;
[0039] A hard disk firmware processing module, used to process the hard disk firmware information to obtain a hard disk firmware security detection result;
[0040] A graphics card firmware processing module, used to process the graphics card firmware information to obtain a graphics card firmware security detection result;
[0041] A network device processing module, used to process the network device information to obtain a network device security detection result;
[0042] The security detection module is used to merge the hard disk firmware security detection result, the graphics card firmware security detection result and the network device security detection result to obtain the embedded firmware security detection result.
[0043] As an optional implementation manner, in the second aspect of the embodiment of the present invention, the analyzing the embedded firmware to obtain the embedded firmware information includes:
[0044] S11, processing the hard disk firmware to obtain hard disk firmware information;
[0045] S12, processing the graphics card firmware to obtain graphics card firmware information;
[0046] S13, analyzing the network device to obtain network device information.
[0047] As an optional implementation, in the second aspect of the embodiment of the present invention, the processing of the hard disk firmware to obtain the hard disk firmware information includes:
[0048] S111, when API access is supported, hard disk firmware data is read by using the API method when the hard disk driver is installed to obtain hard disk firmware information;
[0049] S112, when API access is not supported, reading the register address, MMIO address and physical memory address of the hard disk firmware to obtain hard disk firmware information.
[0050] As an optional implementation, in the second aspect of the embodiment of the present invention, the processing of the hard disk firmware information to obtain the hard disk firmware security detection result includes:
[0051] S21, implanting a first security detection model into the hard disk firmware according to the hard disk firmware information;
[0052] S22, using the first security detection model, processing the hard disk firmware before the operating system is loaded to obtain a hard disk firmware security detection result.
[0053] As an optional implementation manner, in the second aspect of the embodiment of the present invention, the processing of the graphics card firmware information to obtain a graphics card firmware security detection result includes:
[0054] S31, processing the graphics card firmware information to obtain a correction entry address of the graphics card firmware;
[0055] S32, implanting a second security detection model into the graphics card firmware according to the modified entry address;
[0056] S33, using the second security detection model, performing real mode and protected mode data processing during the BIOS startup process to obtain a graphics card firmware security detection result.
[0057] As an optional implementation manner, in the second aspect of the embodiment of the present invention, the processing of the network device information to obtain a network device security detection result includes:
[0058] S41, performing a vulnerability exploitation test on the network device according to the network device information to obtain vulnerability information;
[0059] S42, implanting a third security detection model in the network device according to the vulnerability information;
[0060] S43, using the third network security detection model, performing security detection on the network device to obtain a network device security detection result.
[0061] As an optional implementation, in the second aspect of the embodiment of the present invention, the hard disk firmware security detection result, the graphics card firmware security detection result and the network device security detection result are merged to obtain the embedded firmware security detection result, including:
[0062] Using a security detection fusion model, the hard disk firmware security detection result, the graphics card firmware security detection result and the network device security detection result are integrated to obtain an embedded firmware security detection result;
[0063] The safety detection fusion model expression is:
[0064] E=λ1q1+λ2q2+λ3q3
[0065] Among them, E is the embedded firmware security detection result, λ1 is the weight of the hard disk firmware security detection result, q1 is the hard disk firmware security detection result, λ2 is the weight of the graphics card firmware security detection result, q2 is the graphics card firmware security detection result, λ3 is the weight of the network device security detection result, q3 is the network device security detection result, λ1+λ2+λ3=1.
[0066] The third aspect of the present invention discloses another security detection device for embedded firmware, the device comprising:
[0067] A memory storing executable program code;
[0068] a processor coupled to the memory;
[0069] The processor calls the executable program code stored in the memory to execute part or all of the steps in the security detection method for embedded firmware disclosed in the first aspect of the embodiment of the present invention.
[0070] The fourth aspect of the present invention discloses a computer-storable medium, which stores computer instructions. When the computer instructions are called, they are used to execute some or all of the steps in the security detection method for embedded firmware disclosed in the first aspect of an embodiment of the present invention.
[0071] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0072] The present invention realizes a security detection method and device for embedded firmware, which obtains embedded firmware information by analyzing embedded firmware and obtains embedded firmware security detection results by processing embedded firmware information. The present invention effectively realizes the function of implanting firmware security detection models for hard disks, graphics cards and network devices, and realizes remote monitoring, information collection and security detection of devices such as smart TVs, smart cameras and smart locks. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] 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.
[0074] Figure 1 It is a flowchart of a security detection method for embedded firmware disclosed in an embodiment of the present invention;
[0075] Figure 2 It is a schematic diagram of a hard disk firmware reading process disclosed in an embodiment of the present invention;
[0076] Figure 3 It is a schematic diagram of implanting a security detection model of a network device disclosed in an embodiment of the present invention;
[0077] Figure 4 It is a structural schematic diagram of a security detection device for embedded firmware disclosed in an embodiment of the present invention;
[0078] Figure 5 It is a structural schematic diagram of another security detection device for embedded firmware disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0079] 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.
[0080] 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.
[0081] 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.
[0082] The present invention discloses a security detection method and device for embedded firmware, the method comprising: analyzing the embedded firmware to obtain embedded firmware information; the embedded firmware includes hard disk firmware, graphics card firmware and network equipment; the embedded firmware information includes hard disk firmware information, graphics card firmware information and network equipment information; processing the hard disk firmware information to obtain the hard disk firmware security detection result; processing the graphics card firmware information to obtain the graphics card firmware security detection result; processing the network equipment information to obtain the network equipment security detection result; integrating the hard disk firmware security detection result, the graphics card firmware security detection result and the network equipment security detection result to obtain the embedded firmware security detection result. The present invention effectively realizes the implantation function of the hard disk, graphics card and network equipment firmware security detection model, and realizes the remote monitoring, information acquisition and security detection of devices such as smart TVs, smart cameras and smart locks. The following is a detailed description of each.
[0083] Embodiment 1
[0084] See also Figure 1 , Figure 1 1 is a flow chart of a security detection method for embedded firmware disclosed in an embodiment of the present invention. Figure 1 The described security detection method for embedded firmware is applied to the field of network security technology. It studies the implantation technology of security detection models for specific hard disks, graphics cards, and network devices. It uses official driver vulnerability information to explore the utilization mechanism of hard disk firmware and Flash chip firmware, and implements customized executable code injection into firmware to enhance the anti-detection, persistence, and concealment of the control. Figure 1 As shown, the security detection method for embedded firmware may include the following operations:
[0085] S1, analyzing the embedded firmware to obtain embedded firmware information; the embedded firmware includes hard disk firmware, graphics card firmware and network equipment;
[0086] The embedded firmware is embedded firmware for devices such as televisions, smart cameras and smart locks;
[0087] Hard disk firmware includes nearly 20 hard disk versions of mainstream hard disk brands such as Seagate, Western Digital, Samsung, etc.; graphics card firmware includes graphics cards of mainstream brands such as NVIDIA, AMD, Intel, ASUS, etc.; network equipment includes routers, switches, firewalls, etc.
[0088] The embedded firmware information includes hard disk firmware information, graphics card firmware information and network device information;
[0089] Hard disk firmware information includes the underlying data read error rate, start / stop times, remapped sectors, cumulative power-on time, spindle spin-up retries, hard disk calibration retries, hard disk power-on times, temperature, parity error rate, and write error rate. The manufacturer specifies the critical values, current values, worst values, and data values of these parameters. Based on the changes in these values, the status of the hard disk firmware can be determined.
[0090] Graphics card firmware information includes core frequency, video memory capacity, number of CUDA cores, temperature, video memory bit width, video memory bandwidth, and number of stream processor units;
[0091] Network equipment information includes bandwidth, latency, and bandwidth-delay product;
[0092] S2, processing the hard disk firmware information to obtain a hard disk firmware security detection result;
[0093] S3, processing the graphics card firmware information to obtain a graphics card firmware security detection result;
[0094] S4, processing the network device information to obtain a network device security detection result;
[0095] S5, integrating the hard disk firmware security detection result, the graphics card firmware security detection result and the network device security detection result to obtain an embedded firmware security detection result.
[0096] The evaluation matrix E is obtained by analyzing the hard disk firmware, graphics card firmware and network equipment:
[0097] E=[w1,w2,w3]
[0098] Among them, w1 is the weight of the hard disk firmware, w2 is the weight of the graphics card firmware, w3 is the weight of the network device, w1+w2+w3=1; the weight value is determined according to the specific embedded firmware and is not limited by the embodiment.
[0099] Optionally, the analyzing the embedded firmware to obtain the embedded firmware information includes:
[0100] S11, processing the hard disk firmware to obtain hard disk firmware information;
[0101] S12, processing the graphics card firmware to obtain graphics card firmware information;
[0102] The graphics card firmware is tested using preset testing software to obtain graphics card firmware information, including core frequency, video memory capacity, number of CUDA cores, temperature; video memory bit width, video memory bandwidth, number of stream processor units; or the information is obtained by testing using existing testing tools, which is prior art and is not limited in this embodiment.
[0103] S13, analyzing the network device to obtain network device information.
[0104] The network equipment is analyzed by using preset detection software to obtain network equipment information; or the information is obtained by using existing detection tools for detection. This is the prior art and is not limited in this embodiment.
[0105] Optionally, the processing the hard disk firmware to obtain the hard disk firmware information includes:
[0106] S111, when API access is supported, hard disk firmware data is read by using the API method when the hard disk driver is installed to obtain hard disk firmware information;
[0107] S112, when API access is not supported, reading the register address, MMIO address and physical memory address of the hard disk firmware to obtain hard disk firmware information.
[0108] MMIO (Memory-mapped I / O) is memory-mapped I / O;
[0109] Optionally, the processing the hard disk firmware information to obtain a hard disk firmware security detection result includes:
[0110] S21, implanting a first security detection model into the hard disk firmware according to the hard disk firmware information;
[0111] S22, using the first security detection model, processing the hard disk firmware before the operating system is loaded to obtain a hard disk firmware security detection result.
[0112] Hard disk firmware information includes low-level data read error rate, start / stop times, remapped sectors, cumulative power-on time, spindle spin-up retries, hard disk calibration retries, hard disk power-on times, temperature, parity error rate, and write error rate;
[0113] Processing the hard disk firmware information to obtain a hard disk firmware information test index judgment matrix A;
[0114] The capacity, speed, rotation speed, cache and response time of the hard disk firmware information are normalized to values between 0 and 1 to obtain the test index judgment matrix A;
[0115] Using a first geometric mean model, the judgment matrix A is processed to obtain a geometric mean of all elements in each row of the judgment matrix A;
[0116] The first geometric mean model is:
[0117]
[0118] Among them, the geometric mean of all elements in each row of the judgment matrix A is a ij is the element in the i-th row and j-th column of the judgment matrix A, and the judgment matrix A has n rows and n columns;
[0119] The geometric mean Normalize and get the weight vector w a ;
[0120] The normalization is:
[0121]
[0122] Among them, the weight vector w a =(w a1 ,w a2 ,...w an ), calculate the maximum eigenvalue λamax of the judgment matrix A, Among them (AW a ) i is the vector AW a The ith element of W, a total of n elements, a is the eigenvector corresponding to the largest eigenvalue;
[0123] The first security detection model is used to process the hard disk firmware information test index judgment matrix A to obtain the hard disk firmware security detection result:
[0124] The first safety detection model is
[0125]
[0126] Among them, w ak is the weight vector w a =(w a1 ,w a2 ,...w an ), the kth element in k (x) is the hard disk firmware information membership, the underlying data read error rate membership is u1(x), the start / stop number membership is u2(x), the remapped sector number membership is u3(x), the power-on time cumulative membership is u4(x), the spindle spin-up retry number membership is u5(x), the hard disk calibration retry number membership is u6(x), the hard disk power-on number membership is u7(x), the temperature membership is u8(x), the parity error rate membership is u9(x) and the write error rate membership is u10(x). 10 (x). The membership degree is set by the experiment and is not limited in this embodiment. p1 is the hard disk firmware security detection result.
[0127] Optionally, the processing the graphics card firmware information to obtain a graphics card firmware security detection result includes:
[0128] S31, processing the graphics card firmware information to obtain a correction entry address of the graphics card firmware;
[0129] Specifically, it modifies the PCIOption ROM entry address of the graphics card firmware;
[0130] S32, implanting a second security detection model into the graphics card firmware according to the modified entry address;
[0131] The second security detection model is a preset backdoor code, which is not limited in this embodiment;
[0132] S33, using the second security detection model, perform real mode and protected mode data processing during the BIOS startup process to obtain a graphics card firmware security detection result. Real mode and protected mode are two operating modes of a device, which are prior art.
[0133] Graphics card firmware information includes core frequency, video memory capacity, number of CUDA cores, temperature, video memory bit width, video memory bandwidth, and number of stream processor units. These parameters have standard values and measured values, and the performance of the graphics card firmware can be judged based on their changes.
[0134] Processing the graphics card firmware information to obtain a graphics card firmware information indicator judgment matrix B;
[0135] Normalize the core frequency, video memory capacity, number of CUDA cores, temperature, video memory bit width, video memory bandwidth, and number of stream processor units to obtain the graphics card firmware information indicator judgment matrix B;
[0136] Using a second geometric mean model, the judgment matrix B is processed to obtain a geometric mean of all elements in each row of the judgment matrix B;
[0137] The second geometric mean model is:
[0138]
[0139] Among them, the geometric mean of all elements in each row of the judgment matrix B is a pq is the element in the p-th row and q-th column of the judgment matrix B, and the judgment matrix B has m rows and m columns;
[0140] The geometric mean Normalize and get the weight vector w b ;
[0141] The normalization is:
[0142]
[0143] Among them, the weight vector w b =(w b1 ,w b2 ,...w bm ), calculate the maximum eigenvalue λbmax of the judgment matrix B, Where (BW b ) p is the pth element of vector BWb, with a total of m elements, and Wb is the eigenvector corresponding to the maximum eigenvalue.
[0144] Using the second security detection model, real mode and protected mode data processing is performed during the BIOS startup process to obtain a graphics card firmware security detection result, including:
[0145] Using the second security detection model, the graphics card firmware information indicator judgment matrix B is processed to obtain the graphics card firmware security detection result p2;
[0146] The second safety detection model is:
[0147]
[0148] Among them, w bk is the weight vector w b =(w b1 ,w b2 ,...w bm ), u k (x) is the graphics card firmware information membership; the core frequency membership is u1(x), the memory capacity membership is u2(x), the CUDA core number membership is u3(x), the temperature membership is u4(x), the memory bit width membership is u5(x), the memory bandwidth membership is u6(x), and the stream processor unit number membership is u7(x).
[0149] Optionally, the processing the network device information to obtain a network device security detection result includes:
[0150] S41, performing a vulnerability exploitation test on the network device according to the network device information to obtain vulnerability information;
[0151] Vulnerability information includes operating system vulnerabilities, application vulnerabilities, network service vulnerabilities, configuration errors, and known vulnerabilities in the vulnerability library; these vulnerability information are evaluated to obtain their scores, and the score values are normalized;
[0152] S42, implanting a third security detection model in the network device according to the vulnerability information;
[0153] S43, using the third network security detection model to perform security detection on the network device to obtain a network device security detection result, including: processing the network device information to obtain a judgment matrix C;
[0154] Evaluate operating system vulnerabilities, application vulnerabilities, network service vulnerabilities, configuration errors, and known vulnerabilities in the vulnerability library to obtain their scores, and normalize the score values to obtain the judgment matrix C;
[0155] The judgment matrix C is processed using the third geometric mean model to obtain the weight vector w c ;
[0156] Using a third geometric mean model, the judgment matrix C is processed to obtain a geometric mean of all elements in each row of the judgment matrix C;
[0157] The third geometric mean model is:
[0158]
[0159] Among them, the geometric mean of all elements in each row of the judgment matrix C is a i′j′ is the element in the i′th row and j′th column of the judgment matrix C, and the judgment matrix C has n′th rows and n′th columns;
[0160] The geometric mean Normalize and get the weight vector w c ;
[0161] The normalization is:
[0162]
[0163] Among them, the weight vector w c =(w c1 ,w c2 ,...w cn′ ), calculate the maximum eigenvalue λcmax of the judgment matrix C, Among them (CW c ) i′ is the vector CW c The i′th element of W, a total of n′ elements, c is the eigenvector corresponding to the largest eigenvalue.
[0164] Using the third network security detection model, the network device is subjected to security detection to obtain a network device security detection result, including:
[0165] The third network security detection model is:
[0166]
[0167] Among them, w ck is the weight vector w c =(w c1 ,w c2 ,...w cn′ ), u k (x) is the network device membership; the operating system vulnerability membership is u 18 (x), the application vulnerability membership is u 19 (x), the network service vulnerability membership is u 20 (x), the configuration error membership is u 21 (x), the membership degree of known vulnerabilities in the vulnerability database is u 22 (x), the network device security detection result is p3.
[0168] Optionally, the hard disk firmware security detection result, the graphics card firmware security detection result, and the network device security detection result are integrated to obtain the embedded firmware security detection result, including:
[0169] Using a security detection fusion model, the hard disk firmware security detection result, the graphics card firmware security detection result and the network device security detection result are integrated to obtain an embedded firmware security detection result;
[0170] The safety detection fusion model expression is:
[0171] E=λ1q1+λ2q2+λ3q3
[0172] Among them, E is the embedded firmware security detection result, λ1 is the weight of the hard disk firmware security detection result, q1 is the hard disk firmware security detection result, λ2 is the weight of the graphics card firmware security detection result, q2 is the graphics card firmware security detection result, λ3 is the weight of the network device security detection result, q3 is the network device security detection result, λ1+λ2+λ3=1.
[0173] It can be seen that the present invention realizes a security detection method and device for embedded firmware, by analyzing the embedded firmware, obtaining embedded firmware information; and processing the embedded firmware information to obtain the embedded firmware security detection result. The present invention effectively realizes the function of implanting the firmware security detection model of hard disk, graphics card and network equipment, and realizes remote monitoring, information acquisition and security detection of devices such as smart TVs, smart cameras and smart locks.
[0174] Embodiment 2
[0175] This embodiment discloses a security detection method for embedded firmware, which focuses on solving the problems of poor concealment of attack methods and weak persistence of control time. It studies the backdoor code implantation technology of specific models of hard disks, graphics cards, and network devices, uses official driver vulnerability information, explores the utilization mechanism of hard disk firmware and Flash chip firmware, realizes customized executable code injection into firmware, and enhances the anti-detection, persistence, and concealment of control.
[0176] By implanting backdoor code in the hard disk firmware, bookit can be executed before the operating system is loaded. By implanting backdoor code in the graphics card firmware, executable code can be loaded into the memory during the system startup process. By implanting backdoor code in network devices, remote monitoring and information acquisition of smart TVs, smart cameras and smart locks can be achieved.
[0177] First, use the hard disk driver installation and loading technology to access the firmware using the API method. If API access is not supported, load the driver and analyze and obtain the register address, MMIO address or physical memory address by itself to complete the firmware data interaction (read and write) operation in SATA (IDE) mode or AHCI mode. For details, see Figure 2 .
[0178] Second, modify the PCIOption ROM entry address of the graphics card firmware to enable it to execute our code, implement real mode and protected mode HOOK transmission technology during the BIOS startup process, and break through the kernel security protection mechanism; combine the firmware's available space expansion technology to expand the original 1KB available space to about 3KB, and realize the customized implantation of complex functional payloads.
[0179] Third, in the implantation of backdoor code in the network device firmware, the target network device is tested for vulnerability exploitation using fingerprint scanning technology, combined with the fingerprint data and vulnerability data stored in the system database, to determine whether the target has a specific vulnerability. The firmware upgrade function of the network device is used to push the customized firmware file to the target network device for local firmware upgrade replacement. For details, see Figure 3 .
[0180] Through the research and application of the above technologies, the firmware backdoor code implantation function of hard disks, graphics cards and network devices has been effectively realized. It can support the implantation of backdoor codes for nearly 20 versions of hard disks of mainstream hard disk brands such as Seagate, Western Digital, Samsung, etc., the firmware implantation of graphics cards of 5 mainstream brands, and the implantation of backdoors for various network devices such as routers, switches, firewalls, IPS, cameras and TVs, realizing control functions such as rebound shell and port reuse.
[0181] Embodiment 3
[0182] See also Figure 4 , Figure 4 : is a schematic diagram of a security detection device for embedded firmware disclosed in an embodiment of the present invention. Figure 4 The described security detection device for embedded firmware is applied in the field of network security technology. It studies the implantation technology of the first security detection model for specific hard disks, graphics cards, and network devices. It uses official driver vulnerability information to explore the utilization mechanism of hard disk firmware and Flash chip firmware, and implements customized executable code injection into firmware to enhance the anti-detection, persistence, and concealment of the control. Figure 4 As shown, the security detection device for embedded firmware may include the following operations:
[0183] S301, an embedded firmware analysis module, used to analyze embedded firmware to obtain embedded firmware information; the embedded firmware includes hard disk firmware, graphics card firmware and network equipment;
[0184] The embedded firmware information includes hard disk firmware information, graphics card firmware information and network device information;
[0185] S302, a hard disk firmware processing module, used to process the hard disk firmware information to obtain a hard disk firmware security detection result;
[0186] S303, a graphics card firmware processing module, used to process the graphics card firmware information to obtain a graphics card firmware security detection result;
[0187] S304, a network device processing module, configured to process the network device information to obtain a network device security detection result;
[0188] S305, a security detection module is used to merge the hard disk firmware security detection result, the graphics card firmware security detection result and the network device security detection result to obtain an embedded firmware security detection result.
[0189] Embodiment 4
[0190] See also Figure 5 , Figure 5 is a schematic diagram of the structure of another security detection device for embedded firmware disclosed in an embodiment of the present invention. Figure 4 The described security detection device for embedded firmware is applied in the field of network security technology. It studies the implantation technology of the first security detection model for specific hard disks, graphics cards, and network devices. It uses official driver vulnerability information to explore the utilization mechanism of hard disk firmware and Flash chip firmware, and implements customized executable code injection into firmware to enhance the anti-detection, persistence, and concealment of the control. Figure 5 As shown, the security detection device for embedded firmware may include the following operations:
[0191] A memory 401 storing executable program codes;
[0192] a processor 402 coupled to the memory 401;
[0193] The processor 402 calls the executable program code stored in the memory 401 to execute the steps of the security detection method for embedded firmware described in the first and second embodiments.
[0194] Embodiment 5
[0195] 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 security detection method for embedded firmware described in Embodiment 1 and Embodiment 2.
[0196] 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.
[0197] 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.
[0198] Finally, it should be noted that the security detection method and device for embedded firmware disclosed in the embodiment of the present invention only discloses 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, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced 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 embodiments of the present invention.
Claims
1. A security detection method for embedded firmware, It is characterized in that The method comprises: S1, analyzing the embedded firmware to obtain embedded firmware information; the embedded firmware includes hard disk firmware, graphics card firmware and network equipment; The embedded firmware information includes hard disk firmware information, graphics card firmware information and network device information; S2, processing the hard disk firmware information to obtain a hard disk firmware security detection result; S3, processing the graphics card firmware information to obtain a graphics card firmware security detection result; S4, processing the network device information to obtain a network device security detection result; S5, integrating the hard disk firmware security detection result, the graphics card firmware security detection result and the network device security detection result to obtain an embedded firmware security detection result.
2. The security detection method for embedded firmware according to claim 1, It is characterized in that The embedded firmware is analyzed to obtain embedded firmware information, including: S11, processing the hard disk firmware to obtain hard disk firmware information; S12, processing the graphics card firmware to obtain graphics card firmware information; S13, analyzing the network device to obtain network device information.
3. The security detection method for embedded firmware according to claim 2, It is characterized in that The hard disk firmware is processed to obtain hard disk firmware information, including: S111, when API access is supported, hard disk firmware data is read by using the API method when the hard disk driver is installed to obtain hard disk firmware information; S112, when API access is not supported, reading the register address, MMIO address and physical memory address of the hard disk firmware to obtain hard disk firmware information.
4. The security detection method for embedded firmware according to claim 1, It is characterized in that The processing of the hard disk firmware information to obtain a hard disk firmware security detection result includes: S21, implanting a first security detection model into the hard disk firmware according to the hard disk firmware information; S22, using the first security detection model, processing the hard disk firmware before the operating system is loaded to obtain a hard disk firmware security detection result.
5. The security detection method for embedded firmware according to claim 1, It is characterized in that The processing of the graphics card firmware information to obtain a graphics card firmware security detection result includes: S31, processing the graphics card firmware information to obtain a correction entry address of the graphics card firmware; S32, implanting a second security detection model into the graphics card firmware according to the modified entry address; S33, using the second security detection model, performing real mode and protected mode data processing during the BIOS startup process to obtain a graphics card firmware security detection result.
6. The security detection method for embedded firmware according to claim 1, It is characterized in that The processing of the network device information to obtain a network device security detection result includes: S41, performing a vulnerability exploitation test on the network device according to the network device information to obtain vulnerability information; S42, implanting a third security detection model in the network device according to the vulnerability information; S43, using the third security detection model, performing a security detection on the network device to obtain a network device security detection result.
7. The security detection method for embedded firmware according to claim 1, It is characterized in that The step of fusing the hard disk firmware security detection result, the graphics card firmware security detection result, and the network device security detection result to obtain the embedded firmware security detection result includes: Using a security detection fusion model, the hard disk firmware security detection result, the graphics card firmware security detection result and the network device security detection result are integrated to obtain an embedded firmware security detection result; The safety detection fusion model expression is: E=λ 1 q 1 +λ 2 q 2 +λ 3 q 3 Where E is the embedded firmware security detection result, λ 1 is the weight of the hard disk firmware security detection result, q 1 is the hard disk firmware security test result, λ 2 is the weight of the graphics card firmware security detection result, q 2 is the graphics card firmware security detection result, λ 3 is the weight of the network device security detection result, q 3 is the network equipment security detection result, λ 1 +λ 2 +λ 3 =1.
8. A security detection device for embedded firmware, It is characterized in that The device comprises: An embedded firmware analysis module is used to analyze embedded firmware to obtain embedded firmware information; the embedded firmware includes hard disk firmware, graphics card firmware and network equipment; The embedded firmware information includes hard disk firmware information, graphics card firmware information and network device information; A hard disk firmware processing module, used to process the hard disk firmware information to obtain a hard disk firmware security detection result; A graphics card firmware processing module, used to process the graphics card firmware information to obtain a graphics card firmware security detection result; A network device processing module, used to process the network device information to obtain a network device security detection result; The security detection module is used to merge the hard disk firmware security detection result, the graphics card firmware security detection result and the network device security detection result to obtain the embedded firmware security detection result.
9. A security detection device for embedded firmware, It is 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 security detection method for embedded firmware as described in any one of claims 1-7.
10. A computer storable medium, It is characterized in that The computer storable medium stores computer instructions, and when the computer instructions are called, they are used to execute the security detection method for embedded firmware as described in any one of claims 1-7.
Citation Information
Patent Citations
Device information security protection method and apparatus
CN108256330A
Firmware vulnerability detection method and device, storage medium and electronic equipment
CN111611591A
Method and system for testing comprehensive quality performance of solid state disk
CN116610469A
Heterogeneous hard disk system fault early warning method and device
CN117421145A
Video card starting system and method and storage medium
CN117786700A
Cited By
Display card firmware security detection method and device
CN119903513A
Information read-write control method and device for network equipment firmware
CN119906633A
