arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.13670cs.CRcs.SE
收藏

SmartIntentNN:迈向智能合约意图检测

SmartIntentNN: Towards Smart Contract Intent Detection

Youwei Huang, Sen Fang, Jianwen Li, Bin Hu, Tao Zhang

AI总结:

针对智能合约恶意意图评估的研究空白,提出深度学习工具SmartIntentNN,结合Universal Sentence Encoder、K-means聚类和双向LSTM多标签分类网络检测十类不安全意图,在10,000个合约上F1达0.8633。

摘要:

区块链上的智能合约提供去中心化金融服务,但往往缺乏稳健的安全措施,导致重大经济损失。尽管大量研究集中于识别智能合约中的漏洞,但在评估其开发背后的恶意意图方面仍存在显著空白。为解决此问题,我们引入了SmartIntentNN(智能合约意图神经网络),这是一种基于深度学习的工具,旨在自动化检测智能合约中开发者的意图。我们的方法集成了Universal Sentence Encoder用于智能合约代码的上下文表示,采用K-means聚类算法突出与意图相关的代码特征,并利用基于双向LSTM的多标签分类网络预测十种不同类别的不安全意图。在10,000个真实世界智能合约上的评估表明,SmartIntentNN超越了所有基线,F1分数达到0.8633。演示视频可在https://youtu.be/otT0fDYjwK8获取。

英文摘要:

Smart contracts on the blockchain offer decentralized financial services but often lack robust security measures, leading to significant economic losses. While substantial research has focused on identifying vulnerabilities in smart contracts, a notable gap remains in evaluating the malicious intent behind their development. To address this, we introduce \textsc{SmartIntentNN} (Smart Contract Intent Neural Network), a deep learning-based tool designed to automate the detection of developers' intent in smart contracts. Our approach integrates a Universal Sentence Encoder for contextual representation of smart contract code, employs a K-means clustering algorithm to highlight intent-related code features, and utilizes a bidirectional LSTM-based multi-label classification network to predict ten distinct categories of unsafe intent. Evaluations on 10,000 real-world smart contracts demonstrate that \textsc{SmartIntentNN} surpasses all baselines, achieving an F1-score of 0.8633. A demo video is available at \url{https://youtu.be/otT0fDYjwK8}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑