ZHANG Yanmei,GUO Siying,JIA Hengyue,et al.Detection of smart contract Ponzi schemes based on graph convolutional neural networks[J].Journal on Communications,2025,46(09):292-306.
ZHANG Yanmei,GUO Siying,JIA Hengyue,et al.Detection of smart contract Ponzi schemes based on graph convolutional neural networks[J].Journal on Communications,2025,46(09):292-306. DOI: 10.11959/j.issn.1000-436x.2025156.
Detection of smart contract Ponzi schemes based on graph convolutional neural networks
Ethereum is an application of blockchain that allows developers to create and execute smart contracts. With the rapid development of Ethereum technology
the widespread application of smart contracts has introduced new security challenges
particularly the proliferation of fraudulent contracts such as Ponzi schemes. To achieve early detection of Ponzi schemes in smart contracts
a detection model named PonziGCN based on graph convolutional network (GCN) was proposed. The model integrated semantic features and control flow graph features of smart contracts. By extracting semantic features such as bytecode similarity and opcode frequency
as well as basic and structural features of control flow graphs
a multi-feature fusion detection framework was constructed. Experimental results demonstrate that the PonziGCN model performed excellently in key performance metrics
achieving an accuracy of 0.982
a recall of 0.987
an F-score of 0.978
and an AUC value of 0.983
significantly outperforming existing advanced algorithms. Feature importance analysis indicates that graph structural features and opcode frequency features related to transaction functions in the code hold the highest importance in the model.
关键词
Keywords
references
SZABO N . Smart contracts: building blocks for digital markets [J ] . EXTROPY: The Journal of Transhumanist Thought , 1996 , 18 ( 2 ): 28 .
BARTOLETTI M , CARTA S , CIMOLI T , et al . Dissecting Ponzi schemes on ethereum: identification, analysis, and impact [J ] . Future Generation Computer Systems , 2020 , 102 : 259 - 277 .
ZHANG Y M , KANG S Q , DAI W , et al . Code will speak: early detection of ponzi smart contracts on ethereum [C ] // Proceedings of the 2021 IEEE International Conference on Services Computing (SCC) . Pisca-taway : IEEE Press , 2021 : 301 - 308 .
WU J J , LIU J L , CHEN J Z , et al . ContraPonzi: smart ponzi scheme detection for ethereum via contrastive learning [C ] // Proceedings of the 2023 4th Asia Service Sciences and Software Engineering Conference . New York : ACM Press , 2023 : 155 - 162 .
LIANG R C , CHEN J , HE K , et al . Ponziguard: detecting ponzi schemes on ethereum with contract runtime behavior graph (CRBG) [C ] // Proceedings of the 2024 IEEE/ACM 46th International Conference on Software Engineering (ICSE) . Piscataway : IEEE Press , 2024 : 766 - 777 .
BARTOLETTI M , PES B , SERUSI S . Data mining for detecting Bitcoin ponzi schemes [C ] // Proceedings of the 2018 Crypto Valley Conference on Blockchain Technology (CVCBT) . Piscataway : IEEE Press , 2018 : 75 - 84 .
JIN C X , JIN J , ZHOU J J , et al . Heterogeneous feature augmentation for ponzi detection in ethereum [J ] . IEEE Transactions on Circuits and Systems II: Express Briefs , 2022 , 69 ( 9 ): 3919 - 3923 .
ZHENG Z B , CHEN W L , ZHONG Z J , et al . Securing the ethereum from smart ponzi schemes: identification using static features [J ] . ACM Transactions on Software Engineering and Methodology , 2023 , 32 ( 5 ): 1 - 28 .
CHEN W L , ZHENG Z B , NGAI E C H , et al . Exploiting blockchain data to detect smart ponzi schemes on ethereum [J ] . IEEE Access , 2019 , 7 : 37575 - 37586 .
LINNHOFF-POPIEN C , SCHNEIDER R , ZADDACH M . Digital marketplaces unleashed [M ] . Berlin : Springer , 2018 .
QIAN P , LIU Z G , HE Q M , et al . Towards automated reentrancy detection for smart contracts based on sequential models [J ] . IEEE Access , 2020 , 8 : 19685 - 19695 .
LIU Z G , QIAN P , WANG X Y , et al . Combining graph neural networks with expert knowledge for smart contract vulnerability detection [J ] . IEEE Transactions on Knowledge and Data Engineering , 2023 , 35 ( 2 ): 1296 - 1310 .
ZHUANG Y , LIU Z G , QIAN P , et al . Smart contract vulnerability detection using graph neural network [C ] // Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence . Pisca-taway : IEEE Press , 2020 : 3283 - 3290 .
CHEN C , SU J Z , CHEN J C , et al . When ChatGPT meets smart contract vulnerability detection: how far are we? [J ] . ACM Transactions on Software Engineering and Methodology , 2025 , 34 ( 4 ): 1 - 30 .
VASEK M , MOORE T . Analyzing the Bitcoin ponzi scheme ecosystem [C ] // Financial Cryptography and Data Security . Berlin : Springer , 2019 : 101 - 112 .
TORRES C F , STEICHEN M , STATE R . The art of the scam: demystifying honeypots in Ethereum smart contracts [C ] // Proceedings of the 28th USENIX Conference on Security Symposium . Berkeley : USENIX Association , 2019 : 1591 - 1607 .
CHEN W L , GUO X F , CHEN Z G , et al . Honeypot contract risk warning on ethereum smart contracts [C ] // Proceedings of the 2020 IEEE International Conference on Joint Cloud Computing . Piscataway : IEEE Press , 2020 : 1 - 8 .
ZHANG Y M , YU W Q , LI Z Y , et al . Detecting ethereum ponzi schemes based on improved LightGBM algorithm [J ] . IEEE Transactions on Computational Social Systems , 2022 , 9 ( 2 ): 624 - 637 .
ZHOU Y , KUMAR D , BAKSHI S , et al . Erays: reverse engineering ethereum's opaque smart contracts [C ] // Proceedings of the 27th USENIX Conference on Security Symposium . Berkeley : USENIX Association , 2018 : 1371 - 1385 .
CHEN T , LI Z H , LUO X P , et al . Poster: SigRec - automatic recovery of function signatures in smart contracts [C ] // Proceedings of the 2023 IEEE 43rd International Conference on Distributed Computing Systems (ICDCS) . Piscataway : IEEE Press , 2023 : 1065 - 1066 .
ZHAO K S , LI Z H , LI J F , et al . DeepInfer: deep type inference from smart contract bytecode [C ] // Proceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering . New York : ACM Press , 2023 : 745 - 757 .
ALLEN F E . Control flow analysis [J ] . ACM SIGPLAN Notices , 1970 , 5 ( 7 ): 1 - 19 .
KIPF T N , WELLING M . Semi-supervised classification with graph convolutional networks [J ] . arXiv Preprint , arXiv: 1609.02907 , 2016 .
LOU Y C , ZHANG Y M , CHEN S P . Ponzi contracts detection based on improved convolutional neural network [C ] // Proceedings of the 2020 IEEE International Conference on Services Computing (SCC) . Piscataway : IEEE Press , 2020 : 353 - 360 .
CUTLER A , CUTLER D R , STEVENS J R . Random forests [J ] . Machine Learning , 2004 , 45 ( 1 ): 157 - 176
CHEN T Q , GUESTRIN C . XGBoost: a scalable tree boosting system [C ] // Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining . New York : ACM Press , 2016 : 785 - 794 .
PINKUS A . Approximation theory of the MLP model in neural networks [J ] . Acta Numerica , 1999 , 8 : 143 - 195 .
VELIČKOVIĆ P , CUCURULL G , CASANOVA A , et al . Graph attention networks [J ] . arXiv Preprint , arXiv: 1710.10903 , 2017 .