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
- Read what the transaction does before confirming. Wallet software that decodes calls
into readable text is worth using
- If the destination is a contract you do not recognise, treat it as a permission grant
- Set allowances to the exact amount needed instead of maximum
- Revoke approvals on a schedule, using a reputable tool on the chain in question
- Keep a cold wallet for holdings that never connect to a website
- 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.