We use a few cookies

Essential cookies keep the library working. With your permission, we'd also like to use analytics to see what's useful and improve the experience. Read our Privacy Policy or Cookie Policy.

Skip to main content
Home/e-Resources/Mathematics/HGAT: smart contract vulnerability detection method based on hierarchical graph attention network
PeriodicalsMathematics

HGAT: smart contract vulnerability detection method based on hierarchical graph attention network

Checking your access to this record.

Abstract & Overview

With the widespread use of blockchain, more and more smart contracts are being deployed, and their internal logic is getting more and more sophisticated. Due to the large false positive rate and low detection accuracy of most current detection methods, which heavily rely on already established detection criteria, certain smart contracts additionally call for human secondary detection, resulting in low detection efficiency. In this study, we propose HGAT, a hierarchical graph attention network-based detection model, in order to address the aforementioned issues as well as the shortcomings of current smart contract vulnerability detection approaches. First, using Abstract Syntax Tree (AST) and Control Flow Graph, the functions in the smart contract are abstracted into code graphs (CFG). Then abstract each node in the code subgraph, extract the node features, utilize the graph attention mechanism GAT, splice the obtained vectors to form the features of each line of statements and use these features to detect smart contracts. To create test data and assess HGAT, we leverage the open-source smart contract vulnerability sample dataset. The findings of the experiment indicate that this method can identify smart contract vulnerabilities more quickly and precisely than other detection techniques.

Cite this record

Chuang Ma, Shuaiwu Liu, Guangxia Xu (2023). HGAT: smart contract vulnerability detection method based on hierarchical graph attention network. Journal of Cloud Computing Advances Systems and Applications, 12(1), 93. https://doi.org/10.1186/s13677-023-00459-x

Copy in another style

Ma, C., Liu, S., & Xu, G. (2023). HGAT: smart contract vulnerability detection method based on hierarchical graph attention network. Journal of Cloud Computing Advances Systems and Applications, 12(1), 93. https://doi.org/10.1186/s13677-023-00459-x
Author names are used as deposited, so check their order before you submit.

Metadata is harvested from open-access indexes and can be incomplete. Check a citation against the published version before relying on it — see our open access & attribution policy.