Work

Seeing Through EVM Bytecode Obfuscation

Year: 2026
Type: article
Abstract: The Ethereum Virtual Machine (EVM) executes smart contracts using low-level, stack-based bytecode instructions. As these contracts grow in complexity and financial value, they increasingly attract adversaries who seek to evade detection by employing bytecode obfuscation, rewriting control flow and instruction layout while preserving malicious behavior. However, the real-world effectiveness and impact on malware detection systems of such techniques remain largely unexplored. In this work, we present the first systematic study of EVM bytecode obfuscation and its implications for smart contract malware detection. Leveraging two state-of-the-art obfuscators, BOSC and EVeilM, we generate 27 distinct obfuscation configurations applied to two state-of-the-art datasets: the PhishingHook one, containing 3,458 phishing contracts, and the HoneyBadger one, containing 546 unique honeypots. We comprehensively evaluate the resulting obfuscated contracts along four key dimensions: runtime validity, semantic preservation, gas consumption, and detectability by machine learning-based classifiers. Our results show that BOSC produces valid bytecode in only 18-39% of cases and almost never preserves malicious behavior, while EVeilM maintains 84-100% validity but retains semantics in only 15-28% of malicious samples. Most detection models, including opcode histograms, sequence models, and graph neural networks, collapse under obfuscation for phishing samples, often falling to very low ($\leq 0.5$) F1 score. In contrast, the vision-based classifier remains resilient, demonstrating strong robustness to structural transformations. We follow an open science approach and release our code and datasets to the research community.
Source: IEEE Access
Language: English
Open Access status: gold
Estimated APC paid: $2,075
OpenAlex ID: W7128301349
FWCI: 3.761
Cites: 41
Cited by: 2
Related to: 10