Unlock instant, AI-driven research and patent intelligence for your innovation.

Intelligent contract vulnerability detection method and device

A smart contract and vulnerability detection technology, applied in the field of vulnerability detection, can solve the problems of waste of resources, complicated functions, and time-consuming, and achieve the effect of improving efficiency

Pending Publication Date: 2022-06-24
SUN YAT SEN UNIV
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

As the application scope of smart contracts increases and the functions realized become more complex, many serious loopholes appear
[0003] Aiming at the vulnerability security of smart contracts, most of the current methods are artificial static analysis of smart contract codes. Since the vulnerability codes only account for a very small part of the entire smart contract code, it takes a huge operating cost and a lot of time to analyze the vulnerabilities. As a result, resources are wasted. How to improve the efficiency of finding code loopholes in smart contracts from the functional level is a concern of people.

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 and device
  • Intelligent contract vulnerability detection method and device
  • Intelligent contract vulnerability detection method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0064] figure 1 A flowchart of a smart contract vulnerability detection method provided in the embodiment of the present application, the method may include the following steps:

[0065] Step S100, acquiring the code of the smart contract to be tested.

[0066] Specifically, the smart contract code can be a piece of code stored on the blockchain, and the smart contract code to be tested can be obtained in various ways, such as computers...

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 a smart contract vulnerability detection method and device, and the method comprises the steps: obtaining a to-be-detected smart contract code, converting the to-be-detected smart contract code into a static single assignment form, compiling the to-be-detected smart contract code in the static single assignment form into an abstract syntax tree through a compiler, and carrying out the detection of the vulnerability of a smart contract. Splitting the abstract syntax tree according to a preset rule to obtain a plurality of function-level syntax trees containing functions, searching for vulnerability tags corresponding to the functions contained in the function-level syntax trees for each function-level syntax tree according to a preset function data set, and forming a target data set by the function-level syntax trees and the corresponding vulnerability tags, and performing vulnerability classification on the target data set to obtain a classification result. According to the method, the to-be-detected smart contract code is converted into the static single assignment form, the static single assignment form is converted and split into the function-level syntax tree, and vulnerability detection is performed on the function-level syntax tree, so that compared with the prior art, the efficiency of finding out the code vulnerability of the smart contract from the function degree is improved.

Description

technical field [0001] The present application relates to the field of vulnerability detection, in particular to a method and device for vulnerability detection of smart contracts. Background technique [0002] With the development of social science and technology, blockchain technology has been widely used, in which a large number of smart contracts are applied to different fields, including financial services, public services, Internet of Things, etc. As the scope of application of smart contracts has increased and the functions implemented have become more complex, many serious vulnerabilities have emerged. [0003] In view of the vulnerability security problem of smart contracts, most of the current methods are artificial static analysis of smart contract code. Since the vulnerability code only accounts for a very small part of the entire smart contract code, the analysis of vulnerabilities requires huge operating costs and a lot of time. As a result, resources are wast...

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): G06F21/57G06F8/30G06F8/41G06K9/62G06N3/04G06N3/08
CPCG06F21/577G06F8/37G06F8/42G06N3/084G06N3/045G06F18/214G06F18/24
Inventor 郑子彬郝偲成钟志杰
Owner SUN YAT SEN UNIV