The invention discloses an intelligent contract security
vulnerability mining method and
system based on
artificial intelligence. The invention provides an intelligent contract security vulnerabilitymining method based on
artificial intelligence. The method comprises the following steps of disassembling a binary
system of the intelligent contract according to an
instruction set of an intelligentcontract, converting the
system into
smart contract assembly, dividing the
byte code into different modules according to an intelligent contract
byte code jump instruction; and then according to thesource code block and the target code block of the jump instruction, generating a
control flow graph of the intelligent contract
byte code for
deep learning, thereby greatly reducing the manual intervention cost, and furthest avoiding negligence on security
vulnerability detection caused by manual intervention errors in other defenses. The technology disclosed by the invention can be applied to anindustrial platform in a
large range; the technology disclosed by the invention has an intelligent learning function, and when a novel
vulnerability sample is found, the characteristics of the vulnerability sample can be quickly learned, so that the large-range
diffusion of vulnerabilities is avoided.