EIP-7702 Delegation Attack

EIP-7702 delegation risks arise when attackers trick users into signing unlimited or indefinite token approvals.

SECURITY4 min readBy AlgoSys Editorial TeamPublished Apr 24, 2026Updated Jun 26, 2026
Contents

EIP-7702 introduces a new standard for token delegation (transferring to another address the right to spend your coins) that provides more flexible and temporary access rights. The convenience is obvious, but that same flexibility opens a door for attackers. Attackers target users directly: they trick them into approving excessive or overly long delegation rights. From there the story plays out just like with traditional ERC-20 approvals (Ethereum's token standard), except the potential scope is broader, and it ends in unauthorized asset transfers.

MECHANICS

At the core of delegation is the permit function: it gives a token holder the ability to authorize another address to spend those tokens up to a specified amount or for a specified period. That sounds harmless, and that is exactly what the attack is built on.

A typical scenario starts with a phishing site or a compromised smart contract that shows what looks like a legitimate transaction. The user, not examining the details carefully, approves the delegation and in doing so hands the attacker broad control over their tokens. After that the attacker only needs to call the transferFrom function and, using the permissions obtained, drain the victim's wallet.

RISK INDICATORS

Most dangerous delegations give themselves away before signing, if you know what to look for. A red flag appears when an approval is requested by an unknown or unaudited smart contract, or when the request comes from a suspicious or unverified site. You should also be wary when the parameters themselves are off: an unlimited spending limit or an excessively long (or indefinite) expiration almost always means you are giving away more than necessary.

It helps to cross-check the request against the application's own logic. If a dApp (decentralized application) asks for a delegation that does not fit its normal functionality, that is a reason to stop. Check the delegate function parameters too: unusually high limits or vague expiration dates speak for themselves. Finally, periodically check whether your tokens have accumulated many overlapping or simply redundant approvals, since such layers are easy to lose track of.

PROTECTION

Several simple but discipline-building habits help reduce EIP-7702 delegation risks.

  1. Verify before signing. Always check the signer address and calldata directly on your hardware wallet screen before approving any delegation transaction.
  2. Regularly revoke what you no longer need. Use token allowance checkers like Zapper or DeBank to periodically review your approvals and revoke any that are unnecessary or excessive.
  3. Choose wallets with granular controls. Smart contract wallets often provide fine-grained permission settings and transaction simulation, meaning you can see the consequences before confirming.
  4. Vet dApps in advance. Research an application before connecting your wallet or approving permissions.

To make this more concrete, think of a delegation as a power of attorney. Signing a permit for "no more than 50 USDC for 24 hours" is like handing a courier a one-time check for a fixed amount: even if the paper falls into the wrong hands, the loss is capped at 50 USDC and one day. An approval with an unlimited amount and no expiration is the equivalent of signing a blank power of attorney over your entire account, letting whoever holds it withdraw whenever and however much they want. The difference between the two scenarios is clearer in a table.

Parameter Safe delegation Dangerous delegation
Amount finite limit (e.g. 50 USDC) unlimited
Duration short window (e.g. 24 hours) indefinite
Contract verified, familiar address unfamiliar or unaudited
Losses if compromised capped by amount and duration the entire account

The amount and duration here are not formalities; they are exactly the safeguard that separates a minor inconvenience from a drained wallet.

How to tell a safe request from a dangerous one: a legitimate application asks for exactly what it needs for a specific action, a finite amount and a clear expiration, and its address matches the verified contract. A request for unlimited or indefinite delegation, especially from an unfamiliar contract or a site that does not match what you were trying to do, is almost always a trap.

AFTERMATH

If you suspect that EIP-7702 delegation has been used against you, every minute counts. The very first step is to revoke all suspicious or excessive token delegations through your wallet interface or a dedicated allowance checker tool; this cuts off the attacker's access.

If assets have already left, report the incident to specialized blockchain security firms such as Chainalysis or PeckShield. Record all transaction details and, if appropriate, contact law enforcement. Prompt reporting improves the chances of tracing the illicit funds and recovering what was stolen.

FAQ

What is EIP-7702?

It is an Ethereum Improvement Proposal that defines a new standard for token delegation. It allows more flexible and temporary authorization of token spending, making it more convenient to work with decentralized applications.

How does EIP-7702 differ from ERC-20 approvals?

EIP-7702 offers more dynamic delegation options, including time-limited approvals and simpler permission revocation. Conventional ERC-20 approvals via the approve and transferFrom functions, by contrast, are typically static and permanent.

Can EIP-7702 delegation be used as a weapon in an attack?

Yes. Like any powerful feature, it becomes a weapon when users are tricked into granting excessive permissions. Attackers use social engineering and malicious smart contracts to gain unauthorized access to delegated tokens.

How do you limit the damage from a delegation?

Set a specific amount limit and a short expiration instead of unlimited and open-ended values. That way, even a compromised approval can only drain a limited sum within a limited time window.

What tools can you use to revoke granted approvals?

Token allowance checkers like Zapper or DeBank work well: they show all active delegations, and unnecessary or excessive ones can be revoked directly from the interface.

What should you do if assets have already been stolen?

First, revoke any remaining suspicious delegations to cut off access. Then report the incident to blockchain security firms such as Chainalysis or PeckShield, document the transaction details, and contact law enforcement if appropriate.

Put this to work in the terminal

Live charts, derivatives, on-chain and macro data, free.

Open terminal →