scispace - formally typeset
Open AccessJournal ArticleDOI

Pied-Piper: Revealing the Backdoor Threats in Ethereum ERC Token Contracts

TLDR
Pied-Piper is proposed, a hybrid analysis method that integrates datalog analysis and directed fuzzing to detect backdoor threats in Ethereum ERC token contracts and can eliminate false positives caused by the static analysis.
Abstract
With the development of decentralized networks, smart contracts, especially those for ERC tokens, are attracting more and more Dapp users to implement their applications. There are some functions in ERC token contracts that only a specific group of accounts could invoke. Among those functions, some even can influence other accounts or the whole system without prior notice or permission. These functions are referred to as contract backdoors. Once exploited by an attacker, they can cause property losses and harm users’ privacy. In this work, we propose Pied-Piper, a hybrid analysis method that integrates datalog analysis and directed fuzzing to detect backdoor threats in Ethereum ERC token contracts. First, datalog analysis is applied to abstract the data structures and identification rules related to the threats for preliminary static detection. Then, directed fuzzing is applied to eliminate false positives caused by the static analysis. We first evaluated Pied-Piper on 200 smart contracts, which are injected with different types of backdoors. It reported all problems without false positives, and none of the injected problems was missed. Then, we applied Pied-Piper on 13,484 real token contracts deployed on Ethereum. Pied-Piper reported 189 confirmed problems, four of which have been assigned unique CVE ids while others are still in the review process. Each contract takes 8.03 seconds for datalog analysis on average, and the fuzzing engine can eliminate the false positives within one minute.

read more

Content maybe subject to copyright    Report

Citations
More filters

Tyr: Finding Consensus Failure Bugs in Blockchain System with Behaviour Divergent Model

TL;DR: Tyr as mentioned in this paper is an open-source tool for detecting consensus failure bugs in blockchain systems with a large number of abnormal divergent consensus behaviors, which can be used to monitor the behaviors of nodes and analyze the violation of consensus properties.
Proceedings ArticleDOI

LOKI: State-Aware Fuzzing Framework for the Implementation of Blockchain Consensus Protocols

TL;DR: LOKI as mentioned in this paper is a blockchain consensus protocol fuzzing framework that detects consensus memory-related and logic bugs by dynamically building a state model that records the state transition of each node and adaptively generating the input targets, types, and contents according to the state model.

Detecting Privileged Parties on Ethereum

TL;DR: In this paper , the authors propose and validate a method to detect privileged parties from binary smart contract code on the Ethereum platform, which can be used to verify claims about zero-trust, reveal ownership structures, forensically analyze networks of virtual shell organizations, and may support auditors when testifying ownership of intangible assets on Ethereum held by conventional legal entities.
References
More filters
Posted Content

Making Smart Contracts Smarter.

TL;DR: Oyente as discussed by the authors is a symbolic execution tool to find potential security bugs in the execution of smart contracts based on Ethereum in an open distributed network like those of Bitcoin and Ethereum.
Book ChapterDOI

A Survey of Attacks on Ethereum Smart Contracts SoK

TL;DR: This work analyses the security vulnerabilities of Ethereum smart contracts, providing a taxonomy of common programming pitfalls which may lead to vulnerabilities, and shows a series of attacks which exploit these vulnerabilities, allowing an adversary to steal money or cause other damage.
Proceedings ArticleDOI

Securify: Practical Security Analysis of Smart Contracts

TL;DR: Securify as mentioned in this paper is a security analyzer for Ethereum smart contracts that is scalable, fully automated, and able to prove contract behaviors as safe/unsafe with respect to a given property.
Proceedings ArticleDOI

ZEUS: Analyzing Safety of Smart Contracts.

TL;DR: This work presents ZEUS—a framework to verify the correctness and validate the fairness of smart contracts, which leverages both abstract interpretation and symbolic model checking, along with the power of constrained horn clauses to quickly verify contracts for safety.
Proceedings ArticleDOI

ContractFuzzer: fuzzing smart contracts for vulnerability detection

TL;DR: ContractFuzzer is presented, a novel fuzzer to test Ethereum smart contracts for security vulnerabilities that successfully detects the vulnerability of the DAO contract that leads to $60 million loss and the vulnerabilities of Parity Wallet that have led to the loss of $30 million and the freezing of $150 million worth of Ether.
Related Papers (5)