Independent discussion of crypto, wallets, cards and markets
Forum Home > Wallets & Self-Custody > Security & Recovery > Wallet drainers: what they actually do and how to not sign one
Wallet drainers: what they actually do and how to not sign one44 replies · 2,802 views
Thread ToolsShow Printable Version · Subscribe to this Thread · Search Thread
Where to open an account: Open a Trustee account.

A drainer does not hack your wallet. It waits for you to sign something that hands it

your tokens.

The mechanism

Token approvals are permissions. When you interact with a contract that moves your

tokens, you often grant it permission to spend a specified amount afterwards.

Set that amount to unlimited and the contract can move any quantity of that token at any

time, without asking you again. A malicious contract with that permission drains the

balance in one transaction, whenever it likes.

How the permission gets granted

  • A fake token website that looks functional and asks you to "connect and claim"
  • A compromised or abandoned project whose contract was upgraded
  • A malicious NFT mint that requests an approval as part of the flow
  • A support agent on Discord or Telegram who sends a link
  • An airdrop claim page that is actually an approval request

The signature itself looks routine. Nothing dramatic appears on screen.

How to not sign one

  1. Read what the transaction does before confirming. Wallet software that decodes calls

into readable text is worth using

  1. If the destination is a contract you do not recognise, treat it as a permission grant
  2. Set allowances to the exact amount needed instead of maximum
  3. Revoke approvals on a schedule, using a reputable tool on the chain in question
  4. Keep a cold wallet for holdings that never connect to a website
  5. Use a separate small-balance wallet for experiments, and treat it as spendable

After a drain

  • Revoke remaining approvals immediately
  • Move remaining assets to a fresh wallet with a new seed
  • Check whether any other tokens in the same wallet were approved by the same contract
  • Report to the platform if funds touched one

Drained funds are almost never recoverable. Prevention is the entire game.

The takeaway

Your private key was never the problem. Your approval history is.

Audit it monthly. Every unlimited permission is a decision you made on someone else's

schedule.

Thread Statistics44 replies · 2,802 views