arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2004.00362cs.IRcs.CRcs.LGstat.ML
收藏

Multi-Class classification of vulnerabilities in Smart Contracts using AWD-LSTM, with pre-trained encoder inspired from natural language processing

NetTantra Technologies (India) Pvt. Ltd.(NetTantra技术(印度)私人有限公司);Virtual and Augmented Reality Centre of Excellence, IIT Bhubaneswar(布巴内斯瓦尔印度理工学院虚拟与增强现实卓越中心);School of Minerals, Metallurgical and Materials Engineering, IIT Bhubaneswar(布巴内斯瓦尔印度理工学院矿物、冶金与材料工程学院);Centre of Excellence for Novel Energy Materials, IIT Bhubaneswar(布巴内斯瓦尔印度理工学院新型能源材料卓越中心)

Ajay K. Gogineni, S. Swayamjyoti, Devadatta Sahoo, Kisor K. Sahu, Raj kishore

英文摘要:

Vulnerability detection and safety of smart contracts are of paramount importance because of their immutable nature. Symbolic tools like OYENTE and MAIAN are typically used for vulnerability prediction in smart contracts. As these tools are computationally expensive, they are typically used to detect vulnerabilities until some predefined invocation depth. These tools require more search time as the invocation depth increases. Since the number of smart contracts is increasing exponentially, it is difficult to analyze the contracts using these traditional tools. Recently a machine learning technique called Long Short Term Memory (LSTM) has been used for binary classification, i.e., to predict whether a smart contract is vulnerable or not. This technique requires nearly constant search time as the invocation depth increases. In the present article, we have shown a multi-class classification, where we classify a smart contract in Suicidal, Prodigal, Greedy, or Normal categories. We used Average Stochastic Gradient Descent Weight-Dropped LSTM (AWD-LSTM), which is a variant of LSTM, to perform classification. We reduced the class imbalance (a large number of normal contracts as compared to other categories) by considering only the distinct opcode combination for normal contracts. We have achieved a weighted average Fbeta score of 90.0%. Hence, such techniques can be used to analyze a large number of smart contracts and help to improve the security of these contracts.

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

↑