How to Revoke Unlimited Token Approvals Before Your Wallet Is Drained
To revoke unlimited token approvals, open revoke.cash or Etherscan's Token Approval Checker, review every allowance and revoke anything you no longer use. Approvals persist forever, so if an approved contract is compromised, phished or maliciously upgraded, every approved token can be drained. Check the Permit2 tab for off-chain signatures and repeat the audit every 90 days.
This article is for educational and informational purposes only and does not constitute financial, investment, or trading advice. Cryptocurrency and DeFi investments carry significant risk, including the potential loss of all invested capital. Always conduct your own research (DYOR) and consult a qualified financial advisor before making any investment decisions. Past performance does not guarantee future results.
The Most Common Way Wallets Get Drained in 2026
Every week, someone posts a thread on X describing how they lost their entire portfolio in a single transaction they did not sign. They blame the hardware wallet, the browser extension, the RPC provider. The actual cause, nine times out of ten, is a token approval they granted months earlier and forgot about.
Approval exploits are the leading cause of self-custody losses in 2026. The mechanism is almost embarrassingly simple: you grant a contract unlimited permission to move your tokens once, that permission persists forever, and when the contract is later compromised or phished, every token you approved is free to take.
This guide covers how approvals work at the protocol level, why infinite approvals are the default despite the risk, exactly how attackers weaponize them, and the ten-minute routine that shuts the whole class of attacks down. Every wallet owner should run this audit at least quarterly.
If you want a broader security framing, see our crypto security best practices for 2026 first.
How ERC-20 Approvals Actually Work
The ERC-20 token standard deliberately separates ownership from spending authority. Your wallet owns the tokens. But for any other contract (a DEX, a lender, a bridge) to move them, you must first authorize it.
The authorization mechanism is two functions:
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(address from, address to, uint256 amount) external returns (bool);When you "approve Uniswap to spend USDC", your wallet submits a transaction calling USDC.approve(UniswapRouter, amount). The USDC contract records that the router is allowed to move up to that much USDC from your address. When you then perform a swap, the router calls USDC.transferFrom(you, pool, swapAmount), and the USDC contract checks the allowance, decrements it, and transfers the tokens.
The protocol works well. The problem is the default value of amount.
Why unlimited approvals became standard
Every time you approve exactly the amount you need for one swap, you pay gas for the approval plus gas for the swap. Two transactions. On mainnet that is $10-30 of gas per trade in busy conditions.
To avoid this, every major dApp in DeFi history defaulted to requesting uint256 max (approximately 1.15 x 10^77, a number larger than all tokens that will ever exist). One approval covers every future trade on that dApp.
It is a reasonable UX decision in isolation. In aggregate, it means every active wallet holds dozens of unlimited approvals to contracts the user interacted with once and forgot about. Each one is a persistent attack surface.
How Do Attackers Exploit Token Approvals?
Vector 1: Protocol exploit or malicious upgrade
If an approved protocol is hacked, or upgraded to a new implementation by a compromised admin key, the attacker inherits every outstanding allowance. They call transferFrom against every approved wallet and drain them.
This has happened repeatedly: Multichain (July 2023, $230M drained via custodian compromise), PolyNetwork, BadgerDAO. In each case, users who had long since stopped using the protocol lost funds because they never revoked.
Vector 2: Phishing with a fake approval
The classic wallet drainer. Fake airdrop site, cloned DEX UI, Twitter impersonator posting a limited-time link. User connects their wallet and is prompted to approve a token for an innocuous-looking contract address. That contract is the attacker's drainer.
Approval granted. Tokens drained minutes later.
Wallet warnings have improved, but users still click through, especially when hurried or excited (mint day, new airdrop, "last chance" framing).
Vector 3: Permit and Permit2 signatures
This is the dominant vector in 2026 and the one most users do not understand.
The Permit extension to ERC-20 (and Uniswap's Permit2) let users authorize token movement with an off-chain signed message instead of an on-chain transaction. You sign an EIP-712 structured message; the recipient submits the signature to the token contract when they want to move the funds.
From the user perspective, they signed a message, not a transaction. There is no pending tx in MetaMask history, no gas paid, nothing to see on Etherscan. Many users do not even realize they just granted an approval.
From the attacker perspective, a single malicious signature request can grant unlimited allowance for any duration to any spender. Drainers love Permit2 because one signature can authorize the movement of multiple tokens in a single batch.
Vector 4: Setapprovalforall on NFTs
NFT approvals use a different function, setApprovalForAll(operator, true), which grants the operator permission to transfer any token of that collection from your wallet. Used legitimately by OpenSea, Blur, and other marketplaces. Used maliciously by fake marketplaces, it hands over your entire NFT collection.
The Ten-Minute Audit: Finding and Revoking Approvals
Step 1: Visit revoke.cash
Open revoke.cash. It is a free open-source tool maintained by Rosco Kalis and widely trusted in the security community.
You can connect your wallet (write access, needed to actually revoke) or paste your address for read-only inspection. Select the network (it supports Ethereum, Arbitrum, Optimism, Base, Polygon, BNB Chain, Avalanche, and ~50 others).
Step 2: Review the list
For each approval, revoke.cash shows:
- Token: which ERC-20 or NFT collection you approved.
- Spender: the contract address and often a name (Uniswap V3 Router, OpenSea Seaport, etc.). Unknown spenders show as the raw address — red flag if you do not recognize it.
- Allowance: the amount. "Unlimited" means uint256 max; specific numbers are explicit caps.
- Last updated: when the approval was granted.
Step 3: Revoke anything you do not use
Click Revoke on any approval you do not actively use. You can batch multiple revokes in one transaction to save gas (as of November 2026, batch revoke carries a $1.50 fee for free users). Confirm in your wallet; the approval becomes 0.
Conservative defaults:
- Revoke anything approved more than 6 months ago that you are not using today.
- Revoke anything with "Unknown" or unfamiliar spenders.
- Revoke setApprovalForAll for any NFT collection you are not actively trading.
- Keep approvals only for the 3-5 dApps you actively use (Uniswap, Aave, a DEX aggregator, etc.).
Step 4: Check for signatures (Permit approvals)
Permit-based approvals do not always show in on-chain revoke.cash lists because they are off-chain signatures. To protect against them:
- Review your wallet's recent signature history (MetaMask: Settings > Security & Privacy).
- Revoke any
allowancestored in Permit2 via the Permit2 UI on revoke.cash (there is a dedicated tab). - When signing any EIP-712 message, read the domain, message type, and spender carefully.
Step 5: Enable real-time monitoring
Services like Blockaid watch your wallet for new approvals and flag dangerous ones before or after signing. Wallet Guard, once a name in this category, was sunset as of March 31, 2025, so check that any monitoring tool you rely on is still operating. These are worth the minor setup friction for any wallet holding more than trivial value.
Using Etherscan Directly
If you prefer not to trust a third party, Etherscan has a built-in approval checker.
- Go to etherscan.io/tokenapprovalchecker.
- Paste your address or connect your wallet.
- Review the list of active approvals.
- Click Revoke on any row you want to remove. Etherscan will construct the approve(spender, 0) transaction for you.
The UX is less polished than revoke.cash but the data comes directly from the canonical indexer. Worth using as a cross-check.
For multi-chain wallets, every major explorer has an equivalent: Arbiscan, Optimistic Etherscan, Basescan, PolygonScan all support the same /tokenapprovalchecker path.
Real Drain Case Studies
Case A: The dormant-year approval
Victim granted unlimited USDC approval to a DEX aggregator in 2023 as part of a single swap. Never used that aggregator again. In 2025 the aggregator's admin multisig was phished. Attacker pushed an upgrade that added a drain function.
Approved wallets lost $40M in aggregate. The victim would have been fine if they had ever revoked.
Case B: The fake airdrop page
Victim saw a tweet claiming a well-known L2 project was airdropping to early users. Clicked through to a typo-squat domain (lowercase L instead of I). Connected wallet. Site prompted "approve to verify eligibility".
Approved USDC. Five minutes later, $8,400 of USDC was drained via transferFrom.
The approve transaction was legitimate ERC-20 behavior. The wallet had no way to know the spender was malicious. Only user vigilance (verify domain, verify contract address, ask "why does a claim need my approval?") prevents this.
Case C: The Permit2 signature
Victim using a DEX aggregator. Prompt to sign a Permit2 message to enable "gasless approval". User clicked sign without reading the structure. The signature actually authorized transfer of their entire USDT and DAI balance to an attacker-controlled address with a 1-hour deadline.
Forty minutes later, tokens gone.
No approve transaction ever happened. Revoke.cash did not show anything because there was no on-chain approval. The wallet's own history showed only "Signature request", with no dollar amount. This is why signature hygiene matters as much as approval hygiene.
Prevention Playbook
Wallet separation
Use at least three wallets:
- Cold wallet: hardware-only, never connects to any dApp, holds long-term assets. See what is a crypto wallet for the basics.
- Main wallet: active DeFi wallet with modest balances, only connected to 3-5 trusted dApps with audited approvals.
- Burner wallet: for new, unaudited, or suspicious dApps. Funded per-transaction. Never holds meaningful value.
Signature hygiene
- Read every EIP-712 signature prompt. Look at the domain, the message type, and the fields. If it says
PermitSingle,PermitBatch,SignatureTransfer, or mentionsowner,spender, andvalue, you are authorizing token movement. - Reject any signature you cannot read or do not understand.
- Prefer wallets that show a simulation of what the signature would do (Rabby, Frame, Coinbase Wallet all have this).
Approval hygiene
- Request "exact amount" approvals when the dApp supports it (Uniswap and many others expose a toggle).
- Set a calendar reminder to run the revoke.cash audit every 90 days.
- Treat each approval like a persistent security grant, because that is exactly what it is.
Hardware wallet specifics
- Disable "blind signing" wherever possible (Ledger: Settings > Developer Mode off).
- Verify the destination address on the device screen, not just the browser.
- Use an air-gapped device (Keystone, GridPlus, Cobo Vault) for large balances if you want no USB or Bluetooth attack surface.
Advanced: Monitoring Approvals at Scale
For teams managing many wallets (DAOs, funds, treasuries), use on-chain monitoring tooling:
- Tenderly with alerts on approve events from treasury wallets.
- Chainalysis for institutional flows.
- OpenZeppelin Defender auto-revoke actions triggered by suspicious allowance events (note that OpenZeppelin announced a phased sunset of the Defender platform, with its final shutdown planned for July 1, 2026, so verify its current status or use the open source alternatives).
These setups cost more but eliminate the human-reminder failure mode. For context on the underlying smart contract mechanics see our explainer on what smart contracts are.
The One-Minute Summary
- Open revoke.cash, connect your wallet.
- Revoke every approval older than 6 months that you do not recognize or no longer use.
- Check the Permit2 tab for off-chain approvals.
- Enable Blockaid for ongoing monitoring (Wallet Guard was sunset as of March 31, 2025).
- Set a 90-day calendar reminder.
Do this quarterly and you eliminate the single largest attack surface in modern self-custody.
What to Read Next
- Crypto Security Best Practices 2026
- What Is a Crypto Wallet? Explained
- What Are Smart Contracts? Explained
External references:
- Revoke.cash
- Etherscan Token Approval Checker
- EIP-2612 Permit Extension
- Uniswap Permit2 Repository
- OpenZeppelin ERC-20 Documentation
This post is part of our Web3 security coverage. For a broader self-custody framework, see our [crypto security best practices guide](/blog/crypto-security-best-practices-2026).
Sources
The primary sources this article cites, checked in November 2026:
- Permit extension (eips.ethereum.org)
- Permit2 (github.com)
- etherscan.io/tokenapprovalchecker (etherscan.io)
- OpenZeppelin ERC-20 Documentation (docs.openzeppelin.com)
- How to Revoke Token Approvals (Revoke.cash Learn) (revoke.cash)
- Frequently Asked Questions (Revoke.cash) (revoke.cash)
- Products (Blockaid) (blockaid.io)
- Wallet Guard Sunset Notice (Wallet Guard Academy) (walletguard.app)
- Intro to Alerts (Tenderly Documentation) (docs.tenderly.co)
- Doubling Down on Open Source Tools and Phasing Out Defender (OpenZeppelin) (openzeppelin.com)
Key Takeaways
- Most dApps request an ERC-20 allowance of uint256 max (2^256 - 1), effectively infinite, so one approval covers every future trade on that dApp.
- Approvals persist until revoked; if the approved contract is exploited or maliciously upgraded, the attacker can drain every approved token.
- Revoke.cash, Etherscan's Token Approval Checker and DeBank all list your current approvals; each revocation is an on-chain transaction that costs gas.
- Permit and Permit2 signatures grant allowances off-chain, so one malicious signature can drain tokens with no approve transaction in your history.
- Hardware wallets do not prevent approval exploits; they sign whatever you approve, including infinite allowances to malicious contracts.
- Use separate cold, main and burner wallets, and let Blockaid, Wallet Guard or Harpie flag dangerous approvals in real time.
Frequently Asked Questions
What is a token approval and why is mine unlimited?
An ERC-20 approval lets a spender contract move your tokens through approve(spender, amount). Most dApps, including Uniswap, 1inch, OpenSea and Aave, request the maximum, uint256 max, so you never need to approve again for future trades. That deliberate UX choice avoids repeated gas fees, but it is the largest single source of wallet drain risk.
How do attackers exploit unlimited approvals?
There are three main paths. The approved protocol is exploited or maliciously upgraded, and the attacker calls transferFrom against your existing allowance. You are phished into approving a drainer contract disguised as a legitimate one. Or you sign a Permit or Permit2 message off-chain, granting an allowance with no approve transaction in your history, the dominant drainer vector in 2026.
How do I check what approvals my wallet has granted?
Visit revoke.cash, connect your wallet or paste your address for read-only viewing, and review the list. It shows each approval, its allowance and a revoke button, across roughly 50 chains including Arbitrum, Optimism, Base, Polygon and BNB Chain. Etherscan's Token Approval Checker, DeBank's Approvals tab and Zerion offer similar views for cross-checking.
Does revoking an approval cost gas?
Yes. Each revocation is an on-chain transaction, approve(spender, 0), that sets the allowance to zero. On Ethereum mainnet it costs roughly $1-5 in 2026 depending on network conditions, and on L2s it costs cents. Revoke.cash lets you batch several revokes into one transaction, so clear old approvals together during a low-fee window.
Does a hardware wallet protect me from approval exploits?
Only partly. A hardware wallet keeps your private key away from malware, but it still signs whatever transaction or message you approve on the device. If you authorize an infinite allowance to a malicious contract, the attacker can drain those tokens later. Disabling blind signing helps because the device shows the destination and amount, though many dApps still require it.
About the Author
Fatima Al-Hassan
Security & Privacy Editorial Desk
Security & Privacy Editorial Desk · Web3AIBlog
Fatima Al-Hassan is a pen name for our security and privacy editorial desk. Posts under this byline are written and reviewed by contributors with backgrounds in application security, smart contract auditing, threat modeling, and privacy-preserving cryptography. The desk specializes in attacker-perspective explainers — how exploits actually work, what real recoveries look like, and which defenses survive contact with sophisticated adversaries. We coordinate disclosures responsibly and publish nothing that helps active attackers.