Massachusetts Institute of Technology
Vulcan : classifying vulnerabilities in solidity smart contracts using dependency-based deep program representations
Abstract
dc:description.abstractAs domain specific languages such as Solidity for Ethereum have emerged to program blockchain distributed ledgers, domain-specific bugs and vulnerabilities have reciprocally arisen. In this thesis, I propose a machine learning approach to designing classifiers which can flag specific lines of programs containing such vulnerabilities. This classification task calls for reasoning beyond what tokens are in a line to reasoning about how each token lies within a control context (e.g. loop) and how its meaning depends on its preceding definition. We present a neural architecture, Vulcan, which employs a distributed representation in a latent feature space to express these properties, while ensuring that lines of similar meaning have similar features. Using paths of the program's abstract syntax tree (AST), Vulcan inputs contextual information about tokens in a line to a bi-directional LSTM with an attention mechanism. It concurrently represents the meaning of a token in a line by recursively embedding all preceding lines where it is defined. In our experiments, Vulcan compares favorably with a state-of-the-art classifier that requires significant preprocessing of programs, suggesting the utility of using deep learning to model program dependence information.
Degree
thesis:*- Name thesis:degree_name
- Master
- Department dc:contributor.department
- EECS
- Grantor dc:publisher
- Massachusetts Institute of Technology
- Year dc:date.issued
- 2020
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Srikant, Shashank.
- Advisor dc:contributor.advisor
-
- Una-May O'Reilly.
Subjects
dc:subject × 1Rights
dc:rights- Statement dc:rights
-
- MIT theses may be protected by copyright. Please reuse MIT thesis content according to the MIT Libraries Permissions Policy, which is available through the URL provided.
- Licence dc:rights.uri
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- OCLC
- 1192495700