Multi-Class classification of vulnerabilities in Smart Contracts using AWD-LSTM, with pre-trained encoder inspired from natural language processing
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). First posted on arXiv 21 Mar 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 0; 2023: 1; 2024: 5.
7 papers.
- 2021ESCORT: Ethereum Smart COntRacTs Vulnerability Detection using Deep Neural Network and Transfer Learningcited by 4
- 2023An Automated Vulnerability Detection Framework for Smart Contractscited by 2
- 2024Vulnerability Detection in Ethereum Smart Contracts via Machine Learning: A Qualitative Analysiscited by 2
- 2024Detection Made Easy: Potentials of Large Language Models for Solidity Vulnerabilitiescited by 2
- 2024Machine Learning on Blockchain Data: A Systematic Mapping Studycited by 1
- 2024Vulnerability Detection in Smart Contracts: A Comprehensive Surveycited by 0
- 2024Knowledge Migration Framework for Smart Contract Vulnerability Detectioncited by 0
- 2024Knowledge Migration Framework for Smart Contract Vulnerability Detection15 Dec 2024
- 2024Detection Made Easy: Potentials of Large Language Models for Solidity Vulnerabilities15 Sep 2024
- 2024Vulnerability Detection in Ethereum Smart Contracts via Machine Learning: A Qualitative Analysis26 Jul 2024
- 2024Vulnerability Detection in Smart Contracts: A Comprehensive Survey8 Jul 2024
- 2024Machine Learning on Blockchain Data: A Systematic Mapping Study25 Mar 2024
- 2023An Automated Vulnerability Detection Framework for Smart Contracts20 Jan 2023
- 2021ESCORT: Ethereum Smart COntRacTs Vulnerability Detection using Deep Neural Network and Transfer Learning23 Mar 2021