Back to search

Wright State University

Solidity Compiler Version Identification on Smart Contract Bytecode

Abstract

dc:description

Identifying the version of the Solidity compiler used to create an Ethereum contract isa challenging task, especially when the contract bytecode is obfuscated and lacks explicitmetadata. Ethereum bytecode is highly complex, as it is generated by the Solidity compiler,which translates high-level programming constructs into low-level, stack-based code. Additionally,the Solidity compiler undergoes frequent updates and modifications, resulting incontinuous evolution of bytecode patterns.To address this challenge, we propose using deep learning models to analyze Ethereumbytecodes and infer the compiler version that produced them. A large number of Ethereumcontracts and the corresponding compiler versions is used to train these models. The datasetincludes contracts compiled with various versions of the Solidity compiler. We preprocessthe dataset to extract opcode sequences from the bytecode, which serve as inputsfor the deep learning models. We use the advanced sequence learning methods such asbidirectional long short-term memory (Bi-LSTM), convolutional neural network (CNN),CNN+Bi-LSTM, Transformer, and Sentence BERT (SBERT) to capture the semantics ofthe opcode sequences.We analyze each model’s performance using metrics such as accuracy, precision, recall,and F1-score. Our results demonstrate that our developed models excel at identifying theSolidity compiler version used in smart contracts with high accuracy. We also compare ourmethods with non-sequence learning models, showing that our models outperform themin most cases. This highlights the advantages of our proposed approaches for identifyingSolidity compiler versions from Ethereum bytecodes.

Degree

thesis:*
Name thesis:degree_name
Master of Science in Cyber Security (M.S.C.S.)
Level thesis:degree_level
masters
Discipline thesis:degree_discipline
Computer Science
Grantor dc:publisher
Wright State University
Year dc:date
2023

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Devasani, Lakshmi Prasanna Katyayani
Contributors dc:contributor
  • Chen, Lingwei

Subjects

dc:subject × 7

Rights

dc:rights
Statement dc:rights
  • unrestricted
  • This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws.
Language dc:language
English

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
OhioLINK
Base URL
etd.ohiolink.edu/acprod/odb_etd/ws/oai/oai
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Devasani, Lakshmi Prasanna Katyayani. Solidity Compiler Version Identification on Smart Contract Bytecode. masters thesis, Wright State University, 2023. http://rave.ohiolink.edu/etdc/view?acc_num=wright1690896469649609