Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
EVeilM: EVM Bytecode Obfuscation
KTH, School of Electrical Engineering and Computer Science (EECS).
2024 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

With the increasing popularity of blockchain technology and smart contracts, the need for secure and private code has become more important than ever. Ethereum, being one of the most widely used blockchain platforms, is no exception. However, the Ethereum Virtual Machine (EVM) bytecode of smart contracts is publicly accessible, making it vulnerable to reverse engineering and exploitation by malicious actors. Obfuscation, which is used to make code harder to understand and reverse engineer, is a potential solution to this problem. This thesis explores the development of obfuscation techniques specifically tailored for EVM bytecode. The research begins by analyzing the complexities involved in smart contract deployment and execution within the EVM, providing a solid foundation for the development of obfuscation methods. The work then presents a range of obfuscation techniques, from established methods to novel approaches designed specifically for the EVM. The primary contribution of this thesis is the design and development of an obfuscator tool for EVM bytecode, aimed at enhancing the security of smart contracts against reverse engineering. The tool is evaluated based on its effectiveness in obfuscating the code while maintaining functionality and gas cost efficiency. The challenge lies in striking a balance between these two factors. In summary, this thesis addresses the significant problem of protecting EVM bytecode from reverse engineering and exploitation by malicious actors. By developing obfuscation techniques and tools tailored for the EVM, the work provides a valuable contribution to the field of smart contract security. The research also highlights the importance of considering both functionality and gas cost efficiency when designing obfuscation techniques for the EVM.

Abstract [sv]

Med den ökande populariteten för blockkedjeteknik och smarta kontrakt har behovet av säker och privat kod blivit viktigare än någonsin. Ethereum, som är en av de mest använda blockkedjeplattformarna, är inget undantag. Ethereum Virtual Machine (EVM) bytecode för smarta kontrakt är dock allmänt tillgänglig, vilket gör den sårbar för reverse engineering och exploatering av skadliga aktörer. Obfuskation, som används för att göra kod svårare att förstå och omvända, är en potentiell lösning på detta problem. Den här avhandlingen utforskar utvecklingen av fördunklingstekniker som är särskilt anpassade för EVM-bytecode. Forskningen börjar med att analysera komplexiteten i distributionen och exekveringen av smarta kontrakt inom EVM, vilket ger en solid grund för utvecklingen av obfuskationsmetoder. Arbetet presenterar sedan en rad fördunklingstekniker, från etablerade metoder till nya metoder som är utformade specifikt för EVM. Det primära bidraget i denna avhandling är design och utveckling av ett obfuscatorverktyg för EVM-bytecode, som syftar till att förbättra säkerheten för smarta kontrakt mot reverse engineering. Verktyget utvärderas baserat på dess effektivitet när det gäller att fördunkla koden samtidigt som funktionaliteten och gaskostnadseffektiviteten bibehålls. Utmaningen ligger i att hitta en balans mellan dessa två faktorer. Sammanfattningsvis behandlar denna avhandling det betydande problemet med att skydda EVM-bytekoden från reverse engineering och exploatering av skadliga aktörer. Genom att utveckla fördunklingstekniker och verktyg som är skräddarsydda för EVM ger arbetet ett värdefullt bidrag till området för säkerhet för smarta kontrakt. Forskningen belyser också vikten av att beakta både funktionalitet och gaskostnadseffektivitet när man utformar obfuskeringstekniker för EVM.

Place, publisher, year, edition, pages
2024. , p. 63
Series
TRITA-EECS-EX ; 2024:1005
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-359674OAI: oai:DiVA.org:kth-359674DiVA, id: diva2:1935522
Supervisors
Examiners
Available from: 2025-02-11 Created: 2025-02-07 Last updated: 2025-02-11Bibliographically approved

Open Access in DiVA

fulltext(5725 kB)146 downloads
File information
File name FULLTEXT01.pdfFile size 5725 kBChecksum SHA-512
0a22ea8ceb74b74669e22878a19bfae0a71342ec4d1d349ef84de94bf2c07673a56b11274d814580380570770c3f1f212983936b611ab4963d7582d409405007
Type fulltextMimetype application/pdf

By organisation
School of Electrical Engineering and Computer Science (EECS)
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 146 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 1194 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf