SmartIntentNN: Towards Smart Contract Intent Detection

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Huang, Youwei, Fang, Sen, Li, Jianwen, Hu, Bin, Zhang, Tao
Natura: Preprint
Pubblicazione: 2022
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910653068869632
author Huang, Youwei
Fang, Sen
Li, Jianwen
Hu, Bin
Zhang, Tao
author_facet Huang, Youwei
Fang, Sen
Li, Jianwen
Hu, Bin
Zhang, Tao
contents 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}.
format Preprint
id arxiv_https___arxiv_org_abs_2211_13670
institution arXiv
publishDate 2022
record_format arxiv
spellingShingle SmartIntentNN: Towards Smart Contract Intent Detection
Huang, Youwei
Fang, Sen
Li, Jianwen
Hu, Bin
Zhang, Tao
Cryptography and Security
Software Engineering
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}.
title SmartIntentNN: Towards Smart Contract Intent Detection
topic Cryptography and Security
Software Engineering
url https://arxiv.org/abs/2211.13670