Wallet Drainer

A wallet drainer is a malicious script or smart contract, usually hosted on a phishing site, that tricks users into approving a transaction or signing a message that lets an attacker move their tokens and NFTs out of the wallet.

Drainers rarely need a victim's seed phrase. Instead, a fake website asks the visitor to connect a wallet and then presents one or more signature requests. The site often imitates a real project, an NFT marketplace or an airdrop page. The requests may be on-chain approvals that give a contract unlimited spending rights over a token. They may also be gasless off-chain signatures, such as ERC-20 permits, Permit2 authorizations or NFT marketplace listing orders. Once the request is signed, the attacker's code can transfer the approved assets without any further action from the owner.

Many drainers are sold as ready-made kits to scammers, who share part of what they steal with the kit's developers. These kits typically scan the connected wallet and go after its most valuable assets first.

For example, a user follows a link promising a free token claim. The page asks for a signature that looks like a routine login. In reality, the data authorizes an attacker-controlled address to spend the user's stablecoins, and soon afterwards the balance is swept away.

A common misconception is that a hardware wallet makes a user immune. It keeps private keys offline, but it will still sign whatever the user approves, so reading each request carefully matters. Another misconception is that gasless signatures are harmless. Revoking approvals can block losses from permissions that have not yet been used. Transfers that have already happened, however, generally cannot be reversed.

Learn more

Related terms