Unlock instant, AI-driven research and patent intelligence for your innovation.

Source code file matching rate analysis method

A source code file and analysis method technology, applied in the field of source code file matching rate analysis, can solve the lack of source code analysis functions and other problems

Inactive Publication Date: 2020-07-03
北京关键科技股份有限公司
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the China Open Source Security Alliance currently only implements security vulnerability scanning and analysis for binary code, lacking the function of source code analysis

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
  • Source code file matching rate analysis method
  • Source code file matching rate analysis method
  • Source code file matching rate analysis method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The implementation of the method for analyzing the matching rate of source files of the present invention will be described in detail below with reference to the accompanying drawings.

[0032] At present, the domestic forming software for software code analysis is the China Open Source Security Alliance researched and developed by Tongfang Industry Co., Ltd., which can provide users with free binary code security scanning and analysis applications, but the China Open Source Security Alliance currently only implements binary code Security vulnerability scanning analysis, lack of the function of source code analysis. In order to overcome the above drawbacks, the present invention builds a source code file matching rate analysis method, which can effectively solve the corresponding technical problems.

[0033] figure 1 This is a step flow chart of a source code file matching rate analysis method according to an embodiment of the present invention, which is used to analyze the ...

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 relates to a source code file matching rate analysis method. The method comprises the following steps: 1) respectively extracting file-level features of a first source code file and a second source code file; 2) comparing file hash values of the first source code file and the second source code file, and if the file hash values are the same, determining that the matching rate of thetwo files is 100%; 3) respectively extracting function-level features of the first source code file and the second source code file; 4) respectively comparing the hash values of the functions in the first source code file and the second source code file, and counting the number of code lines of one or more functions with the same hash value to obtain a first number of code lines; and step 5) counting the effective code line number of the first source code file to serve as a second code line number, and multiplying the first code line number by the second code line number by 100% to obtain a matching rate of the first code line number and the second code line number, thereby completing effective detection of the matching rate of the source code file on the basis of source code multistage feature extraction.

Description

Technical field [0001] The invention relates to the field of information security, in particular to a method for analyzing the matching rate of source code files. Background technique [0002] Domestic code composition and security risk analysis technology research is in a stage where a hundred flowers bloom and a hundred schools of thought contend. Some university professors and security experts are engaged in research in some subdivided technical fields. [0003] Professor Wang Fengyu of Shandong University is studying binary code matching and analysis technology based on function layer features. This method needs to disassemble malware and analyze the assembly code to obtain the features of the function. Therefore, the features of the function will be interfered by the obfuscation technology and need to be adopted. The method of combining static analysis and dynamic analysis is used for research. This method is mainly used to realize the detection of malware. The existing resear...

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
IPC IPC(8): G06F21/56G06F16/14
CPCG06F16/152G06F21/563
Inventor 巨李岗从慧珅赵亚舟
Owner 北京关键科技股份有限公司