Esim: EVM Bytecode Similarity Detection Based on Stable-Semantic Graph
Not on the map. Why?
Abstract (arXiv)
Decentralized finance (DeFi) is experiencing rapid expansion. However, prevalent code reuse and limited open-source contributions have introduced significant challenges to the blockchain ecosystem, including plagiarism and the propagation of vulnerable code. Consequently, an effective and accurate similarity detection method for EVM bytecode is urgently needed to identify similar contracts. Traditional binary similarity detection methods are typically based on instruction stream or control flow graph (CFG), which have limitations on EVM bytecode due to specific features like low-level EVM bytecode and heavily-reused basic blocks. Moreover, the highly-diverse Solidity Compiler (Solc) versions further complicate accurate similarity detection. Motivated by these challenges, we propose a novel EVM bytecode representation called Stable-Semantic Graph (SSG), which captures relationships between 'stable instructions' (special instructions identified by our study). Moreover, we implement a prototype, Esim, which embeds SSG into matrices for similarity detection using a heterogeneous graph neural network. Esim demonstrates high accuracy in SSG construction, achieving F1-scores of 100% for control flow and 95.16% for data flow, and its similarity detection performance reaches 96.3% AUC, surpassing traditional approaches. Our large-scale study, analyzing 2,675,573 smart contracts on six EVM-compatible chains over a one-year period, also demonstrates that Esim outperforms the SOTA tool Etherscan in vulnerability search.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 12 of its 50 references that are in the map. First posted on arXiv 17 Nov 2025.
Builds on
12 of 50 references.
References · 12
- 2020Exploring Simple Siamese Representation Learningcited by 2,853
- 2019Heterogeneous Graph Attention Networkcited by 732
- 2020MAGNN: Metapath Aggregated Graph Neural Network for Heterogeneous Graph Embeddingcited by 304
- 2019Graph Matching Networks for Learning the Similarity of Graph Structured Objectscited by 202
- 2017Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detectioncited by 65
- 2022jTrans: Jump-Aware Transformer for Binary Code Similaritycited by 44
- 2018Beyond One-hot Encoding: lower dimensional target embeddingcited by 42
- 2018Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairscited by 25
- 2018Vandal: A Scalable Security Analysis Framework for Smart Contractscited by 18
- 2023FINER: Enhancing State-of-the-art Classifiers with Feature Attribution to Facilitate Security Analysiscited by 12
- 2019Characterizing Code Clones in the Ethereum Smart Contract Ecosystemcited by 7
- 2021EtherSolve: Computing an Accurate Control-Flow Graph from Ethereum Bytecodecited by 4
Built on by
Not cited yet.