EVeilM: EVM Bytecode Obfuscation
2024 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE credits
Student 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
2025-02-112025-02-072025-02-11Bibliographically approved