Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for improving coverage of fuzzy test

A technology of fuzz testing and coverage, which is applied in neural learning methods, software testing/debugging, error detection/correction, etc. It can solve problems such as large impact, coarse program analysis granularity, and fine analysis granularity, so as to improve coverage and enhance The effect of pertinence and efficiency

Active Publication Date: 2021-02-05
NAT UNIV OF DEFENSE TECH
View PDF10 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Although AFL records the execution path of the test case and increases the number of test cases that cover the new execution path to increase its coverage of the code, this method can improve the effect of Fuzzing to a certain extent, but there is still a certain blindness In terms of the generation of seed files, the analysis granularity of the program is still relatively coarse, and the pertinence is poor
The improvement of AFL is also to improve the code coverage of fuzz testing. The main improvement of these methods is to increase the coverage branch of the forward execution path from the program entry to the current execution point to improve the coverage. This method is fine-grained and subject to program The execution context has a large impact, and since it starts from the current execution point, the contribution to improving coverage is limited

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
  • Method and system for improving coverage of fuzzy test
  • Method and system for improving coverage of fuzzy test
  • Method and system for improving coverage of fuzzy test

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Apparently, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0027] figure 2 It is a schematic diagram of the overall framework of the technical solution adopted by the present invention. like figure 2 As shown, the right part is the workflow of Fuzzing. When selecting a test case, first take out the seed file from the seed queue to mutate and observe whether it crashes or triggers a new path. The left half is the screening and distance recording of important functions: first, preprocess the target program, analyze the function call relationship of the target progra...

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 provides a method and system for improving the coverage rate of a fuzzy test. The method comprises the steps: S1, preprocessing a target program serving as a test case to obtain a call graph of a function in the target program; S2, determining anchor nodes for fuzzy test in the target program based on the call graph, the anchor nodes comprising a first anchor node based on a complexnetwork and a second anchor node based on a neural network; S3, according to the anchor nodes, determining the distances from the seed nodes to the anchor nodes through an instrumentation tool; and S4, calculating the energy of the seed nodes based on the distance, and selecting the seed nodes of which the energy is higher than a threshold value as a basis for evaluating the mutation test case.

Description

technical field [0001] The invention relates to the field of software testing, in particular to a method and system for improving the coverage rate of fuzz testing. Background technique [0002] Fuzzing testing (fuzzing testing) is a software testing method that provides invalid, unexpected or random input data to the program. Once the program has errors such as crashes or assertion failures, existing defects will be found. Fuzzing test is not only applicable to source software, but also to binary software. It has a wide range of applications. It dynamically executes the target software through a large number of test cases and analyzes the dynamic execution process. The false positive rate is lower than that of static analysis techniques. In addition, the fuzzing implementation principle is simple, without a lot of theoretical derivation and formula calculation, avoiding the path explosion problem in the symbol execution process, with a high degree of automation and a small ...

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): G06F11/36G06N3/08
CPCG06F11/3676G06F11/3684G06N3/08
Inventor 于璐沈毅陆余良潘祖烈杨国正赵军赵家振黄晖
Owner NAT UNIV OF DEFENSE TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products