Multi-Class classification of vulnerabilities in smart contracts using AWD-LSTM, with pre-trained encoder inspired from natural language processing. (3rd December 2020)
- Record Type:
- Journal Article
- Title:
- Multi-Class classification of vulnerabilities in smart contracts using AWD-LSTM, with pre-trained encoder inspired from natural language processing. (3rd December 2020)
- Main Title:
- Multi-Class classification of vulnerabilities in smart contracts using AWD-LSTM, with pre-trained encoder inspired from natural language processing
- Authors:
- Gogineni, Ajay K
Swayamjyoti, S
Sahoo, Devadatta
Sahu, Kisor K
Kishore, Raj - Abstract:
- Abstract: 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 use of smart contracts increases rapidly, their analysis becomes difficult using these traditional tools. Recently, a machine learning technique called Long Short Term Memory (LSTM) has been used to predict the vulnerability of a smart contract. In the present article, we present how to classify smart contracts into Suicidal, Prodigal, Greedy, or Normal categories using Average Stochastic Gradient Descent Weight-Dropped LSTM (AWD-LSTM), a variant of LSTM. We reduced the class imbalance by considering only distinct opcode combinations for normal contracts and achieved a weighted average F1 score of 90.0%. Such techniques can be utilized in real-time to analyze a large number of smart contracts and to improve their security.
- Is Part Of:
- IOP SciNotes. Volume 1:Number 3(2020)
- Journal:
- IOP SciNotes
- Issue:
- Volume 1:Number 3(2020)
- Issue Display:
- Volume 1, Issue 3 (2020)
- Year:
- 2020
- Volume:
- 1
- Issue:
- 3
- Issue Sort Value:
- 2020-0001-0003-0000
- Page Start:
- Page End:
- Publication Date:
- 2020-12-03
- Subjects:
- machine learning -- smart contracts -- LSTM -- AWD-LSTM -- classification -- invocation depth
500 - Journal URLs:
- https://iopscience.iop.org/journal/2633-1357 ↗
- DOI:
- 10.1088/2633-1357/abcd29 ↗
- Languages:
- English
- ISSNs:
- 2633-1357
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library HMNTS - ELD Digital store
- Ingest File:
- 15161.xml