USENIX Security2020Top-tier venue
TXSPECTOR: Uncovering Attacks in Ethereum from Transactions
Mengya Zhang, Xiaokuan Zhang, Yinqian Zhang, Zhiqiang Lin
Abstract
The invention of Ethereum smart contract has enabled the blockchain users to customize computing logic in transactions. However, similar to traditional computer programs, smart contracts have vulnerabilities, which can be exploited to cause financial loss of contract owners. While there are many software tools for detecting vulnerabilities in the smart contract bytecode, few have focused on transactions. In this paper, we propose TXSPECTOR, a generic, logic-driven framework to investigate Ethereum transactions for attack detection. At a high level, TXSPECTOR replays history transactions and records EVM bytecode-level traces, and then encodes the control and data dependencies into logic relations. Instead of setting a pre-defined set of functionalities, TXSPECTOR allows users to specify customized rules to uncover various types of attacks in the transactions. We have built a prototype of TXSPECTOR and evaluated it for the detection of three Ethereum attacks that exploit: (i) the Re-entrancy vulnerability, (ii) the UncheckedCall vulnerability, and (iii) the Suicidal vulnerability. The results demonstrate that TXSPECTOR can effectively detect attacks in the transactions and, as a byproduct, the corresponding vulnerabilities in the smart contracts. We also show how TXSPECTOR can be used for forensic analysis on transactions, and present Detection Rules for detecting other types of attacks in addition to the three focused Ethereum attacks.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
23 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts cites Making Smart Contracts Smarter
- Sereum: Protecting Existing Smart Contracts Against Re-Entrancy Attacks cites teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
- Sereum: Protecting Existing Smart Contracts Against Re-Entrancy Attacks cites ZEUS: Analyzing Safety of Smart Contracts
- Sereum: Protecting Existing Smart Contracts Against Re-Entrancy Attacks cites Making Smart Contracts Smarter
- Sereum: Protecting Existing Smart Contracts Against Re-Entrancy Attacks cites Securify: Practical Security Analysis of Smart Contracts
- ZEUS: Analyzing Safety of Smart Contracts cites Making Smart Contracts Smarter
- Finding Consensus Bugs in Ethereum via Multi-transaction Differential Fuzzing cites Making Smart Contracts Smarter
- Finding Consensus Bugs in Ethereum via Multi-transaction Differential Fuzzing cites Securify: Practical Security Analysis of Smart Contracts
- Understanding Security Issues in the NFT Ecosystem cites ZEUS: Analyzing Safety of Smart Contracts
- Understanding Security Issues in the NFT Ecosystem cites Making Smart Contracts Smarter
- Understanding Security Issues in the NFT Ecosystem cites SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds
- Understanding Security Issues in the NFT Ecosystem cites Securify: Practical Security Analysis of Smart Contracts
- Efficiently Detecting Reentrancy Vulnerabilities in Complex Smart Contracts cites teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
- Efficiently Detecting Reentrancy Vulnerabilities in Complex Smart Contracts cites ZEUS: Analyzing Safety of Smart Contracts
- Efficiently Detecting Reentrancy Vulnerabilities in Complex Smart Contracts cites Making Smart Contracts Smarter
- Efficiently Detecting Reentrancy Vulnerabilities in Complex Smart Contracts cites SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds
- Efficiently Detecting Reentrancy Vulnerabilities in Complex Smart Contracts cites Securify: Practical Security Analysis of Smart Contracts
- SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds cites teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
- SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds cites Sereum: Protecting Existing Smart Contracts Against Re-Entrancy Attacks
- SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds cites ZEUS: Analyzing Safety of Smart Contracts
- SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds cites Making Smart Contracts Smarter
- SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds cites Smart Contract Vulnerabilities: Vulnerable Does Not Imply Exploited
- SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds cites Securify: Practical Security Analysis of Smart Contracts
- Smart Contract Vulnerabilities: Vulnerable Does Not Imply Exploited cites teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
- Smart Contract Vulnerabilities: Vulnerable Does Not Imply Exploited cites Sereum: Protecting Existing Smart Contracts Against Re-Entrancy Attacks
- Smart Contract Vulnerabilities: Vulnerable Does Not Imply Exploited cites Making Smart Contracts Smarter
- Smart Contract Vulnerabilities: Vulnerable Does Not Imply Exploited cites Securify: Practical Security Analysis of Smart Contracts
- Securify: Practical Security Analysis of Smart Contracts cites ZEUS: Analyzing Safety of Smart Contracts
- Securify: Practical Security Analysis of Smart Contracts cites Making Smart Contracts Smarter
Cited by top-tier papers23
- Understanding Security Issues in the NFT EcosystemDipanjan Das, Priyanka Bose, Nicola Ruaro, Christopher Kruegel et al.CCS 2022 · 173 citations
- Smart Contract Vulnerabilities: Vulnerable Does Not Imply ExploitedDaniel Perez, Benjamin LivshitsUSENIX Security 2021 · 150 citations
- SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in SecondsPriyanka Bose, Dipanjan Das, Yanju Chen, Yu Feng et al.S&P 2022 · 142 citations
- Finding Consensus Bugs in Ethereum via Multi-transaction Differential FuzzingYoungseok Yang, Taesoo Kim, Byung-Gon ChunOSDI 2021 · 57 citations
- Efficiently Detecting Reentrancy Vulnerabilities in Complex Smart ContractsZexu Wang, Jiachi Chen, Yanlin Wang, Yu Zhang et al.FSE 2024 · 27 citations
Builds on6
- Making Smart Contracts SmarterLoi Luu, Duc-Hiep Chu, Hrishi Olickel, Prateek Saxena et al.CCS 2016 · 2,306 citations
- Securify: Practical Security Analysis of Smart ContractsPetar Tsankov, Andrei Marian Dan, Dana Drachsler-Cohen, Arthur Gervais et al.CCS 2018 · 1,108 citations
- ZEUS: Analyzing Safety of Smart ContractsSukrit Kalra, Seep Goel, Mohan Dhawan, Subodh SharmaNDSS 2018 · 595 citations
- teEther: Gnawing at Ethereum to Automatically Exploit Smart ContractsJohannes Krupp, Christian RossowUSENIX Security 2018 · 345 citations
- Sereum: Protecting Existing Smart Contracts Against Re-Entrancy AttacksMichael Rodler, Wenting Li, Ghassan O. Karame, Lucas DaviNDSS 2019 · 298 citations
Related papers
- Uncover the Premeditated Attacks: Detecting Exploitable Reentrancy Vulnerabilities by Identifying Attacker ContractsShuo Yang, Jiachi Chen, Mingyuan Huang, Zibin Zheng et al.ICSE 2024 · 24 citations
- Enhancing Smart Contract Security Analysis with Execution Property GraphsKaihua Qin, Zhe Ye, Zhun Wang, Weilin Li et al.ISSTA 2025 · 1 citation
- ETHBMC: A Bounded Model Checker for Smart ContractsJoel Frank, Cornelius Aschermann, Thorsten HolzUSENIX Security 2020
- Turn the Rudder: A Beacon of Reentrancy Detection for Smart Contracts on EthereumZibin Zheng, Neng Zhang, Jianzhong Su, Zhijie Zhong et al.ICSE 2023 · 52 citations
- SCVHunter: Smart Contract Vulnerability Detection Based on Heterogeneous Graph Attention NetworkFeng Luo, Ruijie Luo, Ting Chen, Ao Qiao et al.ICSE 2024 · 38 citations
