Skip to main content
QUICK REVIEW

[Paper Review] EVulHunter: Detecting Fake Transfer Vulnerabilities for EOSIO's Smart Contracts at Webassembly-level

Lijin Quan, Lei Wu|arXiv (Cornell University)|Jun 25, 2019
Blockchain Technology Applications and SecurityComputer Science6 references24 citations
TL;DR

EVulHunter is a static analysis tool that detects fake-transfer vulnerabilities in EOSIO smart contracts by analyzing WebAssembly (WASM) code at scale. It constructs control flow graphs and applies pattern-based detection with a WASM simulator, achieving 86% accuracy for fake EOS transfer and 100% for fake transfer notice vulnerabilities with low false positives.

ABSTRACT

As one of the representative Delegated Proof-of-Stake (DPoS) blockchain platforms, EOSIO's ecosystem grows rapidly in recent years. A number of vulnerabilities and corresponding attacks of EOSIO's smart contracts have been discovered and observed in the wild, which caused a large amount of financial damages. However, the majority of EOSIO's smart contracts are not open-sourced. As a result, the WebAssembly code may become the only available object to be analyzed in most cases. Unfortunately, current tools are web-application oriented and cannot be applied to EOSIO WebAssembly code directly, which makes it more difficult to detect vulnerabilities from those smart contracts. In this paper, we propose oolname, a static analysis tool that can be used to detect vulnerabilities from EOSIO WASM code automatically. We focus on one particular type of vulnerabilities named extit{fake-transfer}, and the exploitation of such vulnerabilities has led to millions of dollars in damages. To the best of our knowledge, it is the first attempt to build an automatic tool to detect vulnerabilities of EOSIO's smart contracts. The experimental results demonstrate that our tool is able to detect fake transfer vulnerabilities quickly and precisely. EVulHunter is available on GitHub\footnote{Tool and benchmarks: https://github.com/EVulHunter/EVulHunter} and YouTube\footnote{Demo video: https://youtu.be/5SJ0ZJKVZvw}.

Motivation & Objective

  • To address the challenge of detecting vulnerabilities in EOSIO smart contracts when source code is unavailable, relying solely on compiled WebAssembly (WASM) binaries.
  • To develop an automated, static analysis tool capable of identifying fake-transfer vulnerabilities—specifically fake EOS transfer and fake transfer notice—common in EOSIO smart contracts.
  • To overcome the lack of symbolic and type information in WASM binaries by inferring function indexes and supporting evolving Contract Development Toolkit (CDT) variants.
  • To evaluate the tool’s precision, recall, and performance on a real-world benchmark of 241 EOSIO smart contracts, including 159 vulnerable ones.
  • To provide a scalable and efficient solution for vulnerability detection in EOSIO’s high-throughput blockchain ecosystem.

Proposed method

  • EVulHunter parses WASM binaries to extract control flow graphs (CFGs) and performs static analysis using predefined vulnerability patterns.
  • It includes a WASM simulator module to enable simulated execution for deeper analysis of suspicious code paths.
  • The tool identifies fake-transfer vulnerabilities by detecting patterns where unauthorized or unintended token transfers are triggered via action handlers.
  • It supports dynamic adaptation to CDT version changes by analyzing behavioral patterns rather than relying on fixed syntax or structure.
  • A whitelist mechanism is supported to reduce false positives caused by legitimate third-party token accounts.
  • The system is evaluated on a benchmark of 241 real-world EOSIO smart contracts, including 184 for fake EOS transfer and 195 for fake transfer notice detection.

Experimental results

Research questions

  • RQ1Can a static analysis tool detect fake-transfer vulnerabilities in EOSIO smart contracts when only the WASM binary is available?
  • RQ2How accurate and efficient is the detection of fake EOS transfer and fake transfer notice vulnerabilities using pattern-based analysis on WASM code?
  • RQ3What is the impact of CDT version evolution on the reliability and maintainability of vulnerability detection in WASM binaries?
  • RQ4How can false positives caused by legitimate third-party token accounts be minimized without sacrificing detection coverage?
  • RQ5Can the proposed approach scale to large-scale analysis of thousands of smart contracts in practice?

Key findings

  • EVulHunter achieved 86% accuracy in detecting fake EOS transfer vulnerabilities, with 26 false positives attributed to historical versions of the eosbetdice11 contract and legitimate third-party token accounts.
  • For fake transfer notice vulnerabilities, the tool achieved 100% accuracy with no false negatives, indicating high precision and recall in detecting this variant.
  • The detection time for each smart contract ranged from 1 to 3 seconds, increasing linearly with contract size, demonstrating high efficiency and scalability.
  • The tool successfully identified both fake EOS transfer and fake transfer notice vulnerabilities in 159 out of 241 smart contracts, with 184 and 195 contracts used for each respective evaluation.
  • The WASM simulator module enabled deeper analysis of suspicious code paths, improving detection reliability beyond syntactic pattern matching alone.
  • The system can be extended with a customizable whitelist to reduce false positives from legitimate token accounts, enhancing practical usability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.