TokenAware: Accurate and Efficient Bookkeeping Recognition for Token Smart Contracts

Author:

He Zheyuan1ORCID,Song Shuwei1ORCID,Bai Yang1ORCID,Luo Xiapu2ORCID,Chen Ting1ORCID,Zhang Wensheng1ORCID,He Peng1ORCID,Li Hongwei1ORCID,Lin Xiaodong3ORCID,Zhang Xiaosong1ORCID

Affiliation:

1. University of Electronic Science and Technology of China, Chengdu, China

2. The Hong Kong Polytechnic University, Hong Kong, China

3. University of Guelph, Guelph, Canada

Abstract

Tokens have become an essential part of blockchain ecosystem, so recognizing token transfer behaviors is crucial for applications depending on blockchain. Unfortunately, existing solutions cannot recognize token transfer behaviors accurately and efficiently because of their incomplete patterns and inefficient designs. This work proposes TokenAware , a novel online system for recognizing token transfer behaviors. To improve accuracy, TokenAware infers token transfer behaviors from modifications of internal bookkeeping of a token smart contract for recording the information of token holders (e.g., their addresses and shares). However, recognizing bookkeeping is challenging, because smart contract bytecode does not contain type information. TokenAware overcomes the challenge by first learning the instruction sequences for locating basic types and then deriving the instruction sequences for locating sophisticated types that are composed of basic types. To improve efficiency, TokenAware introduces four optimizations. We conduct extensive experiments to evaluate TokenAware with real blockchain data. Results show that TokenAware can automatically identify new types of bookkeeping and recognize 107,202 tokens with 98.7% precision. TokenAware with optimizations merely incurs 4% overhead, which is 1/345 of the overhead led by the counterpart with no optimization. Moreover, we develop an application based on TokenAware to demonstrate how it facilitates malicious behavior detection.

Funder

Hong Kong ITF Project

Research and Development Program of Shenzhen

Hong Kong RGC Projects

National Natural Science Foundation of China

National Key R&D Program of China

Natural Science Foundation of Sichuan Province

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Reference53 articles.

1. 0x Protocol. 2022. 0x Documentation. Retrieved from https://docs.0x.org/introduction/welcome.

2. Eric Banisadr. 2018. How $800k Evaporated from the PoWH Coin Ponzi Scheme Overnight. Retrieved from https://medium.com/@ebanisadr/how-800k-evaporated-from-the-powh-coin-ponzi-scheme-overnight-1b025c33b530.

3. Rhonda Bush and Soohyun Choi. 2019. Forecasting Ethereum STORJ token prices: Comparative analyses of applied bitcoin models. In Proceedings of the International Conference on Data Mining Workshops (ICDMW’19). IEEE, 216–223.

4. Chainalysis. 2019. Why you should be watching ERC-20 Tokens. Retrieved from https://blog.chainalysis.com/reports/why-you-should-be-watching-erc-20-tokens.

5. An Adaptive Gas Cost Mechanism for Ethereum to Defend Against Under-Priced DoS Attacks

Cited by 6 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Nurgle: Exacerbating Resource Consumption in Blockchain State Storage via MPT Manipulation;2024 IEEE Symposium on Security and Privacy (SP);2024-05-19

2. SCVHunter: Smart Contract Vulnerability Detection Based on Heterogeneous Graph Attention Network;Proceedings of the IEEE/ACM 46th International Conference on Software Engineering;2024-04-12

3. PrettySmart: Detecting Permission Re-delegation Vulnerability for Token Behaviors in Smart Contracts;Proceedings of the IEEE/ACM 46th International Conference on Software Engineering;2024-04-12

4. Detecting DeFi securities violations from token smart contract code;Financial Innovation;2024-02-20

5. DeepInfer: Deep Type Inference from Smart Contract Bytecode;Proceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering;2023-11-30

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3