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

A smart contract vulnerability detection method, device, electronic device and storage medium

A smart contract and vulnerability detection technology, applied in the blockchain field, can solve the problems of not actually running the chain code, it is difficult to effectively evaluate the security of the chain code, and the chain code vulnerability cannot be detected, so as to achieve the effect of evaluating security

Active Publication Date: 2022-08-05
安徽深信科创信息技术有限公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, static analysis does not actually run the chain code, and cannot detect possible loopholes in the actual operation of the chain code; and, static analysis often detects errors that do not exist in the actual operation of the chain code; therefore, using static analysis It is difficult to effectively evaluate the security of chain codes without the method of detecting vulnerabilities

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
  • A smart contract vulnerability detection method, device, electronic device and storage medium
  • A smart contract vulnerability detection method, device, electronic device and storage medium
  • A smart contract vulnerability detection method, device, electronic device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0089] The present invention will be described in further detail below with reference to specific embodiments, but the embodiments of the present invention are not limited thereto.

[0090] In order to effectively evaluate the security of the chain code, the embodiments of the present invention provide a smart contract vulnerability detection method, device, electronic device and storage medium.

[0091] The execution body of the smart contract vulnerability detection method provided by the embodiment of the present invention is the smart contract vulnerability detection device provided by the embodiment of the present invention; the device can be applied to electronic equipment. In a specific application, the electronic device can be: a desktop computer, a portable computer, a node server of a blockchain network, etc., which are not limited here, and any electronic device that can implement the present invention belongs to the protection scope of the present invention.

[009...

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, device, electronic device and storage medium. The method includes: obtaining a chain code to be detected; generating a test API file of the chain code, and generating a control flow graph; inserting an overlay label and a detection label in the chain code according to the control flow graph; Execution path; the detection tag is used to record the branch transfer information of the execution path; perform multiple fuzz tests on the instrumentation chain code through the test API file, and obtain the test results of each fuzz test; The test results are updated or not; the input parameters of each fuzz test that are not the first time are generated according to the test collection obtained after the execution of the previous fuzz test; the instrumentation is determined according to the test results of multiple fuzz tests. The loopholes in the chaincode are regarded as the loopholes in the chaincode to be detected. The present invention can effectively evaluate the security of the chain code.

Description

technical field [0001] The invention belongs to the technical field of blockchain, and in particular relates to a smart contract vulnerability detection method, device, electronic device and storage medium. Background technique [0002] Hyperledger Fabric is a blockchain platform proposed and maintained by the Linux Foundation, focusing on privacy and security. The smart contracts it supports are chaincodes; with the widespread adoption of chaincodes, the security of chaincodes requirements are gradually increasing. Therefore, it is necessary to perform vulnerability detection on the chaincode before deploying it to the blockchain to avoid security vulnerabilities in the chaincode deployed on the blockchain. [0003] In the related art, the vulnerability of the chain code is analyzed based on the static analysis method. However, static analysis does not actually run the chain code, so it cannot detect the loopholes that may exist in the chain code when it is actually runni...

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 Patents(China)
IPC IPC(8): G06F21/57
CPCG06F21/577G06F2221/033
Inventor 不公告发明人
Owner 安徽深信科创信息技术有限公司