An operation code sequence generation method based on replay of Ethereum transaction data

By instrumenting the Geth client to generate opcode sequences for replaying Ethereum transaction data and marking vulnerability types, the problem of lack of context and insufficient data in smart contract detection is solved, achieving more efficient vulnerability detection.

CN116204885BActive Publication Date: 2026-07-24GUANGZHOU UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGZHOU UNIVERSITY
Filing Date
2022-12-01
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

Existing technologies lack contextual opcode sequences for smart contract vulnerability detection, making it impossible to dynamically detect vulnerabilities. Furthermore, insufficient training data leads to low detection efficiency.

Method used

By instrumenting the Geth client, transaction-related information is collected, an opcode sequence for Ethereum transaction data replay is generated, and vulnerability types are marked on the opcodes. The opcodes are then stored in a MongoDB database, and the control flow graph of the smart contract is constructed to generate a dynamic opcode sequence.

Benefits of technology

It improves the accuracy of smart contract vulnerability detection, provides a rich training data foundation, supports the effective training of deep learning and machine learning models, and enhances the detection capabilities of known and unknown vulnerabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116204885B_ABST
    Figure CN116204885B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of Ethereum smart contract vulnerability detection, and discloses an operation code sequence generation method based on Ethereum transaction data replay, comprising the following steps: S1: Geth client plug-in stage, S2: data replay stage, S3: transaction operation code sequence acquisition stage, and S4: transaction operation code sequence storage stage. When executing in a virtual machine, the bytecode is converted into operation codes by using the API provided by Geth. Therefore, the process of calling a method in a smart contract is actually the process of executing the operation code sequence in the method, and thus it can be considered that the operation code sequence executed in the calling order constitutes a control flow path of a transaction execution. The operation code sequence generation method based on Ethereum transaction data replay collects the operation code sequence in the transaction execution process, is used for machine learning and deep learning model training, and can improve the accuracy of detecting known vulnerabilities and unknown vulnerabilities of a smart contract.
Need to check novelty before this filing date? Find Prior Art