The invention discloses an intelligent contract
vulnerability mining method based on feedback information fuzzy testing. Comprising the following steps: in a
static analysis stage, converting a contract
source code into an
abstract syntax tree, extracting a
control flow graph and function
list information of a contract, and defining a function sequence priority calculation method; in the seed
pool and test transaction construction stage, a seed
pool is initialized, and a variation mode of a transaction sequence is defined. Then the
system performs
instrumentation in the EVM for collecting feedback information and defining judgment
modes of different types of contract vulnerabilities; in the dynamic test stage, a
mass fraction formula of a seed case is designed, whether the seed case is reserved or not is determined by comparing
mass fractions, the seeds are varied according to a certain probability, and a seed
pool is updated. According to the method, the fuzzy test technology based on the feedback information in the test process is constructed and is used for carrying out the
vulnerability mining task for the
smart contract, more deep states of the
smart contract can be explored, and the efficiency and the accuracy of the
vulnerability mining task are improved.