ContractGuard: Defend Ethereum Smart Contracts with Embedded Intrusion Detection
Xinming Wang, Jiahao He, Zhijian Xie, Gansen Zhao, and Shing-Chi, Cheung

TL;DR
ContractGuard is an innovative intrusion detection system embedded within Ethereum smart contracts that detects malicious attacks by monitoring abnormal control flow, effectively defending against real-world vulnerabilities with minimal overhead.
Contribution
This paper introduces the first IDS for Ethereum smart contracts that is embedded and optimized for the blockchain's decentralized and gas-sensitive environment.
Findings
ContractGuard detects attacks on all real-world vulnerabilities.
It incurs only 36.14% deployment and 28.27% runtime overhead.
Successfully defends against 83% of seeded vulnerabilities.
Abstract
Ethereum smart contracts are programs that can be collectively executed by a network of mutually untrusted nodes. Smart contracts handle and transfer assets of values, offering strong incentives for malicious attacks. Intrusion attacks are a popular type of malicious attacks. In this paper, we propose ContractGuard, the first intrusion detection system (IDS) to defend Ethereum smart contracts against such attacks. Like IDSs for conventional programs, ContractGuard detects intrusion attempts as abnormal control flow. However, existing IDS techniques/tools are inapplicable to Ethereum smart contracts due to Ethereum's decentralized nature and its highly restrictive execution environment. To address these issues, we design ContractGuard by embedding it in the contracts to profile context-tagged acyclic paths, and optimizing it under the Ethereum gas-oriented performance model. The main…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
