The invention relates to the technical field of
network security and
vulnerability detection, in particular to an intelligent contract
vulnerability detection method and
system based on
hybrid fuzzy
test optimization, and the method comprises the steps: carrying out the
static analysis of compiled EVM
byte codes, generating a first
test case set, carrying out the fuzzy test, and introducing taint analysis to track the transmission of taints in an
instruction stream; in the fuzzy testing process, according to the
length change of the instruction counting set within the execution frequency threshold value, symbol execution
processing is triggered when the
length change value is 0, in the symbol execution
processing process, a constraint cache reuse strategy is adopted to solve an obtained constraint expression, and a solving result is cached and reused, so that a fuzzy test result is obtained; a use case value reaching a complex
branch can be quickly generated through
symbolic execution and is fed back to the fuzzy engine to assist the fuzzy engine in exploring a new path to capture more deep vulnerabilities; and meanwhile, test predictions are designed for three intelligent contract vulnerabilities of
authority control, transaction sequence dependence and denial of service, and
vulnerability detection is more accurate.