Inicio  /  Future Internet  /  Vol: 14 Par: 11 (2022)  /  Artículo
ARTÍCULO
TITULO

Toward Vulnerability Detection for Ethereum Smart Contracts Using Graph-Matching Network

Yujian Zhang and Daifu Liu    

Resumen

With the blooming of blockchain-based smart contracts in decentralized applications, the security problem of smart contracts has become a critical issue, as vulnerable contracts have resulted in severe financial losses. Existing research works have explored vulnerability detection methods based on fuzzing, symbolic execution, formal verification, and static analysis. In this paper, we propose two static analysis approaches called ASGVulDetector and BASGVulDetector for detecting vulnerabilities in Ethereum smart contacts from source-code and bytecode perspectives, respectively. First, we design a novel intermediate representation called abstract semantic graph (ASG) to capture both syntactic and semantic features from the program. ASG is based on syntax information but enriched by code structures, such as control flow and data flow. Then, we apply two different training models, i.e., graph neural network (GNN) and graph matching network (GMN), to learn the embedding of ASG and measure the similarity of the contract pairs. In this way, vulnerable smart contracts can be identified by calculating the similarity to labeled ones. We conduct extensive experiments to evaluate the superiority of our approaches to state-of-the-art competitors. Specifically, ASGVulDetector improves the best of three source-code-only static analysis tools (i.e., SmartCheck, Slither, and DR-GCN) regarding the F1 score by 12.6% on average, while BASGVulDetector improves that of the three detection tools supporting bytecode (i.e., ContractFuzzer, Oyente, and Securify) regarding the F1 score by 25.6% on average. We also investigate the effectiveness and advantages of the GMN model for detecting vulnerabilities in smart contracts.

 Artículos similares

       
 
Rameez Asif, Syed Raheel Hassan and Gerard Parr    
This research paper reviews the potential of smart contracts for responsible AI with a focus on frameworks, hardware, energy efficiency, and cyberattacks. Smart contracts are digital agreements that are executed by a blockchain, and they have the potenti... ver más
Revista: Future Internet

 
Cenk Budayan and Ozan Okudan    
Despite their promising potential, the level of implementation of smart contracts is not at the desired level. To expedite the acceptance and deployment of smart contracts, the barriers to the implementation of smart contracts should be revealed. Past st... ver más
Revista: Buildings

 
Pratik Thantharate and Anurag Thantharate    
With the digitization of healthcare, an immense amount of sensitive medical data are generated and shared between various healthcare stakeholders?however, traditional health data management mechanisms present interoperability, security, and privacy chall... ver más

 
Valerio Mandarino, Giuseppe Pappalardo and Emiliano Tramontana    
The increased penetration of Distributed Energy Resources (DERs) in electricity markets has given rise to a new category of energy players, called Aggregators, whose role is to ensure fair remuneration for energy supplied by DERs, and support the smooth ... ver más
Revista: Future Internet

 
Raman Singh, Zeeshan Pervez and Hitesh Tewari    
The amalgamation of heterogeneous generations of mobile cellular networks around the globe has resulted in diverse data speed experiences for end users. At present, there are no defined mechanisms in place for subscribers of a mobile network operator (MN... ver más
Revista: Future Internet