Deep Smart Contract Intent Detection

被引:0
作者
Huang, Youwei [1 ,2 ]
Fang, Sen [3 ]
Li, Jianwen [2 ,4 ]
Hu, Bin [5 ]
Tao, Jiachun [2 ,6 ]
Zhang, Tao [1 ]
机构
[1] Macau Univ Sci & Technol, Macau, Peoples R China
[2] Chinese Acad Sci, Inst Intelligent Comp Technol, Suzhou, Peoples R China
[3] North Carolina State Univ, Raleigh, NC USA
[4] Beijing Normal Univ Hong Kong Baptist Univ United, Zhuhai, Peoples R China
[5] Chinese Acad Sci, Inst Comp Technol, Beijing, Peoples R China
[6] Suzhou City Univ, Suzhou, Peoples R China
来源
2025 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING, SANER | 2025年
关键词
Web3 Software Engineering; Smart Contract; Intent Detection; Deep Learning;
D O I
10.1109/SANER64311.2025.00020
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
In recent years, research in software security has concentrated on identifying vulnerabilities in smart contracts to prevent significant losses of crypto assets on blockchains. Despite early successes in this area, detecting developers' intents in smart contracts has become a more pressing issue, as malicious intents have caused substantial financial losses. Unfortunately, existing research lacks effective methods for detecting development intents in smart contracts. To address this gap, we propose SMARTINTENTNN (Smart Contract Intent Neural Network), a deep learning model designed to automatically detect development intents in smart contracts. SMARTINTENTNN leverages a pre-trained sentence encoder to generate contextual representations of smart contracts, employs a K-means clustering model to identify and highlight prominent intent features, and utilizes a bidirectional LSTM-based deep neural network for multi-label classification. We trained and evaluated SMARTINTENTNN on a dataset containing over 40,000 real-world smart contracts, employing self-comparison baselines in our experimental setup. The results show that SMARTINTENTNN achieves an F1-score of 0.8633 in identifying intents across 10 distinct categories, outperforming all baselines and addressing the gap in smart contract detection by incorporating intent analysis.
引用
收藏
页码:124 / 135
页数:12
相关论文
共 75 条
[1]  
Abadi Martin, 2016, Proceedings of OSDI '16: 12th USENIX Symposium on Operating Systems Design and Implementation. OSDI '16, P265
[2]  
2023, Arxiv, DOI arXiv:2303.08774
[3]  
[Anonymous], 1995, The handbook of brain theory and neural networks
[4]  
[Anonymous], 2015, Advances in Neural Information Processing Systems 28: Annual Conference on Neural Information Processing Systems 2015, December 7-12, 2015
[5]  
Antonopoulos Andreas M., 2018, Mastering Ethereum: Building Smart Contracts and Dapps
[6]  
Bashir Imran, 2017, Mastering Blockchain
[7]   Representation Learning: A Review and New Perspectives [J].
Bengio, Yoshua ;
Courville, Aaron ;
Vincent, Pascal .
IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, 2013, 35 (08) :1798-1828
[8]  
Binance Academy, 2024, Rug pull
[9]  
Binance Academy, 2023, What is a smart contract security audit?
[10]  
Brent L, 2018, Arxiv, DOI arXiv:1809.03981