Firmware code analysis method and device

A firmware and code technology, applied in program code conversion, computer components, software maintenance/management, etc., can solve problems such as high cost, increased cost, and time-consuming, and achieve the effect of fast and accurate acquisition

Active Publication Date: 2021-02-23
北京智联安行科技有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] 2. Analysis takes a long time and costs high
[0009] Compared with high-level language, although each sentence of assembly language is shorter, each high-level language often corresponds to multiple assembly languages, and when complex statements such as loop statements and jump statements appear, the corresponding assembly language will be more complicated.
Therefore, reverse analysis requires firmware reverse analysts to have enough patience and spend a lot of time to find out the relationship between massive assembly codes, so as to sort out the relevant information of the firmware, which will undoubtedly increase a lot of costs

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Firmware code analysis method and device
  • Firmware code analysis method and device
  • Firmware code analysis method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to make the object, technical solution, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples.

[0022] Existing firmware reverse analysis schemes are highly dependent on reverse analysts, and it is necessary to develop new solutions that can reduce the dependence on reverse analysts' experience and reduce the workload of reverse analysts. The firmware analysis solution of the present invention first forms a data set by collecting the corresponding relationship between a certain amount of firmware assembly codes and high-level language or descriptive language sentences in the daily work of reverse analysts. In the case of storing a large amount of data, train the Naive Bayesian algorithm model based on discrete features, update the prior probability matrix, and obtain the trained model for subsequent analysis of assembly code to obtain correspondin...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a firmware code analysis method and device. The method comprises the steps: storing a data set comprising a plurality of pieces of data in advance, and enabling each piece of data to comprise a corresponding relation between a firmware assembly code and a senior language or descriptive language statement; training a naive Bayesian algorithm model based on discrete featuresaccording to the data set, and updating a prior probability matrix to obtain a trained model; and when a firmware code needs to be analyzed, generating an assembly code by the firmware code, and inputting the assembly code into the naive Bayesian algorithm model based on the discrete features to obtain a corresponding high-level language or descriptive language statement. By adopting the method and the device, the firmware code can be quickly and accurately analyzed.

Description

technical field [0001] The invention relates to the technical field of firmware, in particular to a firmware code analysis method and device. Background technique [0002] With the rapid development of smart home, Internet of Vehicles, etc., various smart devices emerge in an endless stream, the number of firmware is blowing up, and various potential security and privacy issues follow. Therefore, everyone is concerned about the reliability and security of firmware. There are also higher requirements. Mastering the reverse analysis technology of firmware will not only help novices understand the execution process and functions contained in the firmware, but also help third-party individuals / organizations to perform security vulnerability detection and private data leakage investigation on the firmware. [0003] However, there are different firmware standards on the market, different manufacturers have their own implementation methods, and the architectures are also different...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/74G06F8/53G06K9/62
CPCG06F8/74G06F8/53G06F18/24155G06F18/214
Inventor 李明春张苏涛
Owner 北京智联安行科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products