Automated and Accurate Token Transfer Identification and Its Applications in Cryptocurrency Security
Open Access
- 19 June 2025
- journal article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Software Engineering
- Vol. 2 (FSE) , 1068-1090
Abstract
Cryptocurrency tokens, implemented by smart contracts, are prime targets for attackers due to their substantial monetary value. To illicitly gain profit, attackers often embed malicious code or exploit vulnerabilities within token contracts. Token transfer identification is crucial for detecting malicious and vulnerable token contracts. However, existing methods suffer from high false positives or false negatives due to invalid assumptions or reliance on limited patterns. This paper introduces a novel approach that captures the essential principles of token contracts, which are independent of programming languages and token standards, and presents a new tool, CRYPTO-SCOUT. CRYPTO-SCOUT automatically and accurately identifies token transfers, enabling the detection of various malicious and vulnerable token contracts. CRYPTO-SCOUT's core innovation is its capability to automatically identify complex container-type variables used by token contracts for storing holder information. It processes the bytecode of smart contracts written in the two most widely-used languages, Solidity and Vyper, and supports the three most popular token standards, ERC20, ERC721, and ERC1155. Furthermore, CRYPTO-SCOUT detects four types of malicious and vulnerable token contracts and is designed to be extensible. Extensive experiments show that CRYPTO-SCOUT outperforms existing approaches and uncovers over 21,000 malicious/vulnerable token contracts and more than 12,000 transactions triggering them.Keywords
Funding Information
- National Natural Science Foundation of China (62332004)
- Sichuan Provincial Natural Science Foundation for Distinguished Young Scholars (2023NSFSC1963)
- Hong Kong RGC Projects (PolyU15224121, PolyU15231223)
This publication has 25 references indexed in Scilit:
- TokenCat: Detect Flaw of Authentication on ERC20 Tokens2022
- The Eye of Horus: Spotting and Analyzing Attacks on Ethereum Smart Contracts2021
- Identification of token contracts on Ethereum: standard compliance and beyondInternational Journal of Data Science and Analytics, 2021
- Characteristics of Wallet Contracts on Ethereum2020
- Characterizing Types of Smart Contracts in the Ethereum Landscape2020
- An exploratory study of smart contracts in the Ethereum blockchain platformEmpirical Software Engineering, 2020
- Scenario-based creation and digital investigation of ethereum ERC20 tokensForensic Science International: Digital Investigation, 2020
- Detecting Token Systems on Ethereum2019
- Measuring Ethereum-Based ERC20 Token Networks2019
- RWset: Attacking Path Explosion in Constraint-Based Test Generation2008