Vulnerability detection method for smart contract based on low-dimensional byte code features

The invention provides a vulnerability detection method for a smart contract based on low-dimensional byte code features. The method comprises the following steps: constructing an operation code sequence control flow diagram through Ethereum smart contract byte codes; all basic blocks in the operati...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: WANG HAOLONG, REN KUI, JIAN ZHAOLONG, XIE XUESHUO, LI TAO
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a vulnerability detection method for a smart contract based on low-dimensional byte code features. The method comprises the following steps: constructing an operation code sequence control flow diagram through Ethereum smart contract byte codes; all basic blocks in the operation code sequence control flow diagram are recorded and numbered, then edges associated with all the basic blocks are traversed, and an adjacent matrix is established; on the basis of the adjacent matrix, acquiring characteristics of an operation code sequence control flow graph, namely the number of edges, the number of nodes, the maximum out-degree and the maximum in-degree, acquiring vulnerability categories and possibly related operation code categories, and taking the proportion of each category of operation codes in the operation code sequence to the total number of the operation codes as the characteristic; normalizing the features, taking the normalized features as input, taking vulnerability categories as o