arXiv · 2504.09977
EthCluster: An Unsupervised Static Analysis Method for Ethereum Smart Contract
Abstract
Poorly designed smart contracts are particularly vulnerable, as they may allow attackers to exploit weaknesses and steal the virtual currency they manage. In this study, we train a model using unsupervised learning to identify vulnerabilities in the Solidity source code of Ethereum smart contracts. To address the challenges associated with real-world smart contracts, our training data is derived from actual vulnerability samples obtained from datasets such as SmartBugs Curated and the SolidiFI Benchmark. These datasets enable us to develop a robust unsupervised static analysis method for detecting five specific vulnerabilities: Reentrancy, Access Control, Timestamp Dependency, tx.origin, and Unchecked Low-Level Calls. We employ clustering algorithms to identify outliers, which are subsequently classified as vulnerable smart contracts.
Explore related subjects
Keep this discovery
Hong-Sheng Huang, Jen-Yi Ho, Hao-Wen Chen, Hung-Min Sun. 2025-04-14. EthCluster: An Unsupervised Static Analysis Method for Ethereum Smart Contract. https://arxiv.org/abs/2504.09977
Cite the original work for its findings. Save a collection to share your selection of sources.