0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

What Is Approval Phishing in Crypto and How It Works

0
Posted at

A new crypto wallet user should know that approval phishing tricks you into signing a token approval that lets an attacker move your tokens later without another signature. The risk comes from ongoing spending rights: an approval gives a spender address permission to use specified tokens through a smart contract.

How does approval phishing work?

Approval phishing begins when a site or message persuades you to sign an approval while you think you are claiming a reward, minting an NFT, or connecting your wallet. The approval records permission on the blockchain. It is separate from a transfer: at signing time, the attacker may receive no tokens, so the wallet can look unchanged.

  1. You visit a page that imitates a real project and press a claim or mint button.
  2. The site asks your wallet to sign a token approval for a spender address controlled by the attacker.
  3. The approval gives that spender a right to use your tokens, within the approved limit.
  4. Later, the attacker calls transferFrom through a smart contract to move tokens under that permission.

For ERC-20 tokens, approve(spender, amount) sets how much a spender can take using transferFrom. If the amount is unlimited, the spender may be able to move the full balance you hold in that token, and potentially tokens you receive later, until you revoke the approval or the spender uses it. For ERC-721 NFTs, setApprovalForAll(operator, true) gives an operator control of every NFT in that collection.

Here is an illustrative case: a fake “claim airdrop” button asks for approval to spend your USDC with an unlimited amount. You sign, expecting the claim to proceed. Nothing appears to leave your wallet, but the approval has already given the attacker’s address permission to call transferFrom. The attacker can use that permission later to drain your USDC without asking you to sign each transfer.

How can you spot a malicious approval?

A suspicious approval often names an unfamiliar spender, asks for an unlimited amount, or grants broad NFT control on a page that only claims to offer a mint or reward. Treat the wallet’s transaction details as the meaningful request. A site’s button label or explanation does not establish what permission the transaction grants.

Read the function name in the request as well as the wallet’s warning label. A phishing prompt may call increaseAllowance instead of approve. That function raises an existing ERC-20 spending limit for a spender; it can still give the attacker more room to move tokens. Some wallets display it as a generic contract call, so open the details and look for the function name and spender address. If those details are hidden or unclear, do not sign.

An NFT request deserves the same scrutiny. A mint or claim page that asks for setApprovalForAll is seeking permission over every NFT in that collection, not just the item you might receive. That is a much broader permission than a one-time claim requires, so stop and verify the request through a trusted project channel before proceeding.

Approval management tools let you inspect and manage token permissions already granted by your wallet. For example, revokecash is relevant because its token approval management feature lets you find a spender and revoke its access. The approval may have been signed earlier, but the current spender and permission are what matter when deciding what to remove.

What should you do right after signing a bad approval?

Open revokecash, connect the wallet that signed the request, and look for the unfamiliar spender in its approval records. Confirm the token or NFT collection and the spender address, then revoke the approval. Revoking submits a new blockchain transaction and costs native gas, such as ETH on Ethereum. The transaction updates the permission on-chain; it does not reverse a transfer that already happened.

Before and after, consider the same illustrative case: your wallet holds USDC and has an unlimited approval for the attacker’s spender. Before revocation, that spender can use transferFrom within the allowance. After a successful revocation, the spender no longer has that permission, while the USDC still in your wallet remains there. What changed is the spender’s access; what stayed the same is the token balance that had not already been moved. That distinction matters because revocation blocks future use of the approval, but cannot return funds the attacker has already taken.

If you signed a seed-phrase request, treat the wallet as compromised: a seed phrase gives control of the wallet itself, beyond any one token approval. Move remaining funds and NFTs to a new wallet with a newly generated seed phrase. Also consider moving funds if you signed several unknown approvals or cannot identify what you approved. Do not enter your seed phrase into a site claiming it needs it to revoke an approval; revocation is an on-chain transaction signed by your wallet.

Related questions

How do drainer websites work?

Drainer websites use deceptive prompts to get wallet users to approve spending or sign other harmful transactions. With an approval, the attacker can wait and use the permission later through transferFrom.

Can a fake airdrop steal tokens?

Yes. A fake airdrop can trick you into granting an attacker an ERC-20 allowance or NFT operator approval. The theft may happen after the signature, when the attacker uses the permission.

What should I do right after signing a bad approval?

Find and revoke the unfamiliar approval, then move remaining assets if your seed phrase may be exposed or you signed several unknown requests. You can now inspect the spender and permission before deciding whether to revoke it.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?