From Programming Bugs to Multimillion-Dollar Scams: An Analysis of Trapdoor Tokens on Uniswap
Phuong Duy Huynh, Thisal De Silva, Son Hoang Dau, Xiaodong Li, Iqbal, Gondal, Emanuele Viterbo

TL;DR
This paper analyzes the emergence of Trapdoor scam tokens on Uniswap, classifies their malicious techniques, and introduces TrapdoorAnalyser, a detection tool that outperforms existing solutions and enables large-scale identification of scam tokens.
Contribution
It provides the first systematic classification of Trapdoor tokens, develops a highly accurate detection tool, and creates a large dataset for machine learning-based scam detection.
Findings
TrapdoorAnalyser outperforms GoPlus in accuracy.
A dataset of 30,000 tokens enables effective machine learning detection.
Trapdoor tokens embed concealed malicious code techniques.
Abstract
We investigate in this work a recently emerged type of scam ERC-20 token called Trapdoor, which has cost investors billions of US dollars on Uniswap, the largest decentralised exchange on Ethereum, from 2020 to 2023. In essence, Trapdoor tokens allow users to buy but preventing them from selling by embedding logical bugs and/or owner-only features in their smart contracts. By manually inspecting a number of Trapdoor samples, we established the first systematic classification of Trapdoor tokens and a comprehensive list of techniques that scammers used to embed and conceal malicious codes, accompanied by a detailed analysis of representative scam contracts. In particular, we developed TrapdoorAnalyser, a fine-grained detection tool that generates and crosschecks the error-log of a buy-and-sell test and the list of embedded Trapdoor indicators from a contract-semantic check to reliably…
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.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBlockchain Technology Applications and Security · Auction Theory and Applications · FinTech, Crowdfunding, Digital Finance
