학술논문

TokenAuditor: Detecting Manipulation Risk in Token Smart Contract by Fuzzing
Document Type
Conference
Source
2022 IEEE 22nd International Conference on Software Quality, Reliability and Security (QRS) QRS Software Quality, Reliability and Security (QRS), 2022 IEEE 22nd International Conference on. :651-662 Dec, 2022
Subject
Computing and Processing
Industries
Smart contracts
Software quality
Fuzzing
Decentralized applications
Software reliability
Cryptocurrency
manipulation risk
smart contract security
rarity selection
blockchain
Language
ISSN
2693-9177
Abstract
Decentralized cryptocurrencies are influential smart contract applications in the blockchain, drawing interest from industry and academia. The capacity to govern and manage token behavior provided by the token smart contract adds to thriving decentralized applications. However, token smart contracts face security challenges in technology weakness and manipulation risks. In this work, we briefly describe the manipulation risk and propose TokenAuditor, a fuzzing framework detecting those risks in token smart contracts. TokenAuditor constructs basic blocks based on the contract bytecodes and adopts the rarity selection and mutation strategy to generate test cases. The main idea is to select the test cases that have hit rare basic blocks since the fuzzing started as candidates and perform mutation operations on them. In our evaluation, TokenAudiotr discovered 664 manipulation risks of four types in 4021 real-world token contracts.