Intelligent contract vulnerability detection method based on combination of neural network and dynamic fuzzy test

A technology of smart contracts and vulnerability detection, applied in biological neural network models, neural learning methods, neural architectures, etc., can solve the problems of lack of in-depth discussion of seed generation strategies, low path coverage, and high false negative rate, achieving good practical value. , good for reference, improve the effect of misjudgment

Active Publication Date: 2021-08-31
ZHEJIANG GONGSHANG UNIVERSITY
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, since most test cases are often generated randomly, the test case redundancy is high, the path coverage is low, and it is difficult to handle different execution paths in a balanced manner, such as Echidna [Echidna, a smart fuzzer for Ethereum.Trail of Bits Blog, Mar.2018] provides a complete Ethereum smart contract fuzz testing framework, which can analyze and simulate the execution of the smart contract source code, and generate random transaction data that conforms to the contract call specification to fuzz the contract. More effective seed generation strategies are not explored in depth
ContractFuzzer[Bo J, Ye L, Chan W K.ContractFuzzer:fuzzing smart contracts forvulnerability detection[C] / / the 33rd ACM / IEEE International Conference.ACM,2018.] By randomly generating call parameters, transaction amount, transaction sending address The method generates random transactions, and performs offline vulnerability detection by recording the instruction log when the smart contract is executed. However, ContractFuzzer randomly generates test cases, which cannot achieve the ideal path coverage rate and has a high false negative rate.

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
  • Intelligent contract vulnerability detection method based on combination of neural network and dynamic fuzzy test
  • Intelligent contract vulnerability detection method based on combination of neural network and dynamic fuzzy test
  • Intelligent contract vulnerability detection method based on combination of neural network and dynamic fuzzy test

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] In order to describe the present invention more specifically, the technical solutions of the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0034] The present invention is based on a dynamic intelligent contract vulnerability detection method combined with neural network and dynamic fuzzy testing. It mainly converts the intelligent contract into a contract execution flow diagram by means of an automatic extraction tool, further extracts the function execution path in the contract execution flow diagram, and uses the vector conversion tool Convert to vector form, build a feed-forward neural network model to detect vulnerabilities in smart contracts, and use SIF to instrument execution paths that may have vulnerabilities; Corresponding function execution paths; use forward-looking analysis methods to analyze different function execution paths, and assign different test weights; monitor functions...

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 discloses an intelligent contract vulnerability detection method based on combination of a neural network and a dynamic fuzzy test, and the method comprises the steps: carrying out the static analysis of intelligent contract vulnerabilities through constructing a feedforward neural network model, marking a function execution path which may have vulnerabilities, carrying out the instrumentation of the function execution path which may have vulnerabilities through employing an SIF, utilizing a look-ahead analysis method to guide a fuzzy detector to carry out dynamic fuzzy detection on a function execution path which may have vulnerabilities, constructing a feedback mechanism based on a control flow and an intelligent contract state, guiding the fuzzy detector through feedback information to generate an effective test case, and carrying out the strategic dynamic fuzzy detection. Compared with a conventional intelligent contract vulnerability detection tool, the method has the advantages that a new scheme is provided, the situations of misjudgment, missing report and the like of a traditional single static detection or dynamic analysis method are effectively improved, and the method has good practical value and good reference significance.

Description

technical field [0001] The invention belongs to the technical field of blockchain smart contract security, and in particular relates to a smart contract loophole detection method based on the combination of neural network and dynamic fuzzy testing. Background technique [0002] A smart contract is a computer protocol that disseminates, verifies or executes a contract in an informatized manner. It has quickly become the focus of the industry due to its characteristics of decentralization and no need for third-party intervention. As of now, smart contracts deployed on various blockchain platforms control more than $10 billion worth of digital currency; it is worth mentioning that smart contracts allow users to conduct digital currency transactions without third-party intervention, and These transactions are irreversible. [0003] Because smart contracts manipulate huge wealth, they are easy targets for hackers. For example, in the 2016 The DAO attack incident, the attacker u...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/41G06F21/57G06N3/04G06N3/08
CPCG06F8/42G06F21/577G06N3/084G06N3/044G06N3/045
Inventor 刘振广刘灵凤钱鹏徐小俊武思凡
Owner ZHEJIANG GONGSHANG UNIVERSITY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products