1 Introduction
A wallet drainer is a phishing toolkit that tricks a crypto user into signing a transaction or off-chain message that hands control of their assets to an attacker. Instead of stealing a seed phrase, the victim is lured to a convincing fake site (a mint, an airdrop claim, a "compensation" page) and asked to connect a wallet and approve what looks like a routine request. The signature is actually a token approval, a setApprovalForAll for NFTs, an off-chain permit or an ownership change, and the drainer script uses it to move everything of value within seconds.
Drainers are sold as a service: developers rent the kit and back-end to affiliates who run the phishing campaigns, and the stolen funds are split automatically between them. Because the victim technically authorised the transfer, there is no protocol bug to patch and transactions on public chains cannot be reversed, which is why prevention and fast detection matter so much.
$494M
Lost to wallet drainers on EVM chains in 2024, from about 332,000 addresses (ScamSniffer)
16,000+
Phishing domains linked to the Inferno Drainer kit (Group-IB)
20%
Cut of stolen assets taken by Inferno Drainer developers from affiliates
2 Interactive Approval Phishing Walkthrough
Drainer Attack Flow
Victim Wallet Balances
Step 1 - Lure: A hijacked project account, a paid search ad or a Discord message announces a limited airdrop or mint. The link leads to a pixel-perfect copy of a real project site that embeds a drainer script.
3 Detailed Analysis
Common Drainer Signatures
Token approval
An approve call granting a spender an unlimited allowance over an ERC-20 token. The spender can later move the full balance at any time.
setApprovalForAll
Grants an operator control over every NFT the wallet holds in a collection. Popular in NFT mint and marketplace lures.
Off-chain permit
A gasless typed-data signature (EIP-2612 style Permit or Permit2) that the attacker submits on-chain. ScamSniffer found permits behind 56.7% of losses in 2024 thefts over $1 million.
Ownership change
A signature that transfers ownership of a smart-wallet or DeFi proxy, as in the August 2024 theft of about $55 million in DAI.
Legal & Regulatory Framework
There is no drainer-specific offence. In the US, operators and affiliates are exposed to wire fraud (18 U.S.C. §1343), computer fraud (18 U.S.C. §1030) and money laundering charges. In the EU, Directive 2013/40/EU on attacks against information systems requires member states to criminalise illegal system and data interference; in France the conduct falls under escroquerie (Code pénal art. 313-1) and the offences against automated data processing systems (art. 323-1 et seq.). In the UK the Fraud Act 2006 and the Computer Misuse Act 1990 apply.
Where proceeds pass through regulated crypto-asset service providers, AML obligations (the EU AMLR 2024/1624 and the Bank Secrecy Act in the US) require suspicious activity reporting. Victims rarely recover funds unless the stolen asset is a centrally issued stablecoin that the issuer can freeze, as Tether did after the Ledger Connect Kit incident.
Detection Methodology
Wallets and security extensions simulate transactions before signing and warn when a request grants unlimited allowances, setApprovalForAll or ownership changes to a fresh, unverified address. Threat intelligence teams track drainer infrastructure (newly registered lookalike domains, shared script fingerprints, the split contracts that pay developers and affiliates) and feed block lists to wallets. Exchanges and analytics firms label known drainer collector addresses so that deposits of drained funds can be flagged, and users can audit and revoke outstanding approvals with allowance-checking tools.
Notable Cases
BadgerDAO front-end attack (2021) - BadgerDAO post-mortem, reported by The Register
An attacker used an unauthorised Cloudflare API key to inject a script into the BadgerDAO web app that asked users to approve token transfers to the attacker. In December 2021 those approvals were used to drain roughly $120 million in user deposits.
Inferno Drainer (2022-2023) - Group-IB threat research
A drainer-as-a-service kit active from November 2022 that spoofed more than 100 crypto brands across over 16,000 phishing domains, using fake airdrop, mint and compensation pages. ScamSniffer linked it to more than $80 million in thefts; its operators announced a shutdown in November 2023, keeping 20% of each theft.
Ledger Connect Kit supply-chain attack (2023) - Ledger incident report, reported by BleepingComputer
After phishing a former employee's npm account, an attacker published malicious versions 1.1.5 to 1.1.7 of Ledger's Connect Kit library, injecting drainer code into dApps that loaded it. About $600,000 was stolen in December 2023 before the versions were pulled, and Tether froze the stolen USDT.
$55 million DAI theft (2024) - Reported by The Block
On 20 August 2024 a holder signed a phishing transaction that changed the ownership of a DeFi Saver proxy holding 55.47 million DAI, which was then drained. ScamSniffer attributed the theft to the Inferno Drainer kit; it was the largest single drainer loss of 2024.
Red Flags
- A wallet request to approve an unlimited allowance or setApprovalForAll on a site you reached from a social media post, ad or direct message
- Gasless "sign to claim" or "verify wallet" prompts that show typed data (Permit, Permit2, ownership change) instead of a simple message
- Airdrop or mint announcements from an official account that are not echoed on the project's website or other channels
- Newly registered domains that imitate a known project with small spelling changes
- Pressure to act within minutes because the claim or mint is "about to close"
- Unexpected follow-up requests to send native coins after an approval has already been signed
4 Sources & Further Reading
- Scam Sniffer 2024: Web3 Phishing Attacks - Wallet Drainers Drain $494 Million - ScamSniffer
- Group-IB uncovers 16,000+ malicious domains created during Inferno Drainer crypto scam spree - Group-IB
- Directive 2013/40/EU on attacks against information systems - EUR-Lex
- 18 U.S. Code 1030 - Fraud and related activity in connection with computers - Cornell LII
- BadgerDAO coin theft - The Register
- Ledger dApp supply chain attack steals $600K from crypto wallets - BleepingComputer
- Crypto whale loses $55 million in Dai stablecoin to phishing attack - The Block
Links point to primary legislation, regulators, international bodies and official enforcement records. Always check the current version of a text before relying on it.
Related Fraud Types
Address Poisoning & Clipper Malware
Lookalike addresses seeded into wallet history, or swapped in by malware, so victims pay the attacker by mistake.
Fake ICOs, Presales & Airdrops
Token sales built on false claims, and fake airdrop claim pages that steal funds or wallet approvals.
Giveaway & Deepfake Impersonation Scams
Fake celebrity or company "send 1, get 2 back" crypto giveaways pushed via hijacked accounts and deepfake livestreams.
Source: FraudCodex - Educational Platform for Financial Crime
URL: https://fraudcodex.org/page/wallet-drainer
Page: Wallet Drainers & Approval Phishing - Fraud & Scams / Crypto & Digital Assets
Disclaimer: This content is for educational purposes only and does not constitute legal advice.