Automated and Accurate Token Transfer Identification and Its Applications in Cryptocurrency Security
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.
Authors
- Leqing Wang
- Zheyuan He (ORCID: https://orcid.org/0000-0003-2131-1046)
- Shuwei Song (ORCID: https://orcid.org/0000-0003-4368-0950)
- Xiaodong Lin (ORCID: https://orcid.org/0000-0001-8916-6645)
- Ao Qiao (ORCID: https://orcid.org/0009-0007-5131-8114)
- Xiapu Luo (ORCID: https://orcid.org/0000-0002-9082-3208)
- Wensheng Zhang (ORCID: https://orcid.org/0000-0002-1989-1224)
- Ting Wang (ORCID: https://orcid.org/0000-0003-4927-5833)
- Ting Chen (ORCID: https://orcid.org/0000-0001-9165-8331)
- Peng He (ORCID: https://orcid.org/0000-0003-0094-7213)
- Xiaosong Zhang (ORCID: https://orcid.org/0000-0001-9886-1412)
Institutions
- Hong Kong Polytechnic University (HK)
- University of Electronic Science and Technology of China (CN)
- Stony Brook University (US)
- University of Guelph (CA)
Publication Details
- Journal
- Proceedings of the ACM on software engineering.
- Published
- 2025-06-19
- DOI
- https://doi.org/10.1145/3715766
- Primary Topic
- Blockchain Technology Applications and Security
- Type
- article
- Field-Weighted Citation Impact
- 0.00