Papers1 provider Ā· 1 record
November 15, 2024Ā· 2024 4th International Conference on Electronic Information Engineering and Computer (EIECT)
conference-paper

Semantic-Based Detection of Ponzi Smart Contracts: Enhancing Bytecode Analysis with Source Code

Authors:Bingjie WengJianhui Ma

Abstract

The rapid development of blockchain technology has led to many innovations, with the widespread use of smart contracts being particularly notable. However, this trend has spawned diverse blockchain scams, including the Ponzi scheme, which takes the form of Ponzi contracts. Due to blockchain users' misunderstanding of blockchain transparency, this scam can often result in significant financial losses. To complicate matters further, the vast majority of smart contracts deployed on blockchain networks are not open source, and users can only see the contract's bytecode. This situation makes Ponzi contracts even more challenging to identify, making it difficult for users to judge the security and legitimacy of a contract beforehand, thus increasing the risk of being defrauded. Most existing work uses only bytecode for detection and cannot fully utilize the corresponding source code information. In this paper, we propose a novel bimodal learning-fusion framework for enhancing Ponzi contract detection only in the presence of bytecode. Firstly, we employ the semantic-aware neural network to extract semantic feature from source code and bytecode. Then, we propose a modal transformation strategy to learn the relationship between source code and bytecode. Finally, a modal attention mechanism is introduced to construct a fusion representation to detect the contract even in the absence of source code modality. Experimental results show that the method performs better than existing methods that use machine learning for detection of Ponzi contracts.

Community

0 comments
Use Connect Wallet in the navigation

No discussion yet

Be the first to share a question or observation.