EIP-7702: Set EOA account code

You can check this using eth.getCode(<target_address>). If you get a string that starts with 0xef0100 and is 23 bytes in size, then it’s an EIP-7702 authorization. Note that the last 20 bytes are the implementation address, similar to proxy contracts. This is also how explorers like Etherscan identify it.

EIP-3074 has long been withdrawn, so there are no official versions available on the mainnet. The address you provided is actually a 7702 authorization.

This address’s behavior is similar to using DELEGATECALL - it will load the code of the authorized address (the last 20 bytes in the authorization indicator) and make changes to itself. However, it doesn’t increase call depth and will reflect the full execution result instead of bubbling up like CALLx opcodes because they belong to two different worlds, one belongs to the client while the other belongs to the EVM. This makes it look more like a minimal proxy (EIP-1167) than the original DELEGATECALL prototype.

Essentially, this is a transition towards account abstraction, and you can absolutely use it in production. In the future, we will have post-quantum smart accounts, for example EIP-8141, which could be a smart replacement for EIP-7702.

@vbuterin @SamWilsn Post-incident notes: the 29 Oct 2026 Binance 14 drain and what it does (and does not) say about EIP-7702

Public analyses so far (Threat Landscape, Blockaid, TRM) agree on the main point: the authorization that delegated Binance 14 to the malicious sweeper was signed by the wallet’s own key. Wallets on other chains were drained simultaneously with ordinary signed transfers. This confirms a compromise of the signing path rather than a protocol flaw. EIP-7702 behaved exactly as specified, and no change to it would have prevented the initial breach. Because reported dollar figures still vary across sources, it makes sense to anchor any discussion here to the on-chain mechanics rather than press totals.

The incident is still worth examining in this thread, because EIP-7702 changed the operational shape of the attack in three clear ways:

  1. An authorization has no time bound; only the nonce bounds it. Blockaid reports 50 authorizations signed across consecutive nonces (18,914,775 to 18,914,824). Because a tuple is valid whenever nonce(authority) == auth.nonce (step 6) and increments the authority’s nonce upon execution (step 8), submitting a sequential batch guarantees that once a single tuple matches the live nonce, every subsequent tuple in the batch executes in sequence. More importantly, any pre-signed tuple with a higher nonce acts as a dormant capability off-chain until the account’s nonce catches up. For a busy hot wallet, a window of 50 nonces spans minutes to hours; for a quiet wallet, it can last indefinitely. Signing pipelines that treat a signature as “used once, right now” fail to model this.

  2. Delegation persists and eliminates the transfer race. Before 7702, an attacker with signing access had to win a transfer-by-transfer race against the defender, and every sweep required ETH in the victim account for gas. With a sweeper delegate attached, a single call moves dozens of assets atomically, an external relayer can sponsor the gas, and any subsequent deposits (including an exchange’s automated internal consolidation flows) are immediately exposed without requiring another signature from the compromised enclave.

  3. Recovery is fragile when pre-signed tuples exist. The owner can clear the delegation by setting the target to 0x0, and the attacker can re-delegate if they still have signing access. Worse, even if defenders immediately sever the attacker’s access to the signing service and broadcast a 0x0 clearing transaction, that recovery transaction itself increments the account’s nonce. If the attacker kept higher-nonce authorization tuples in reserve off-chain, they can immediately replay the next matching tuple to re-hijack the account without touching the signing enclave again.

Questions for investigators
What chain_id did those 50 tuples carry? If any were signed with chain_id == 0, they remain valid across every 7702-enabled EVM chain where Binance 14 shares the same address and eventually reaches that nonce range. Has anyone verified whether cross-chain replay is a live risk here on L2s?

Mitigations that need no fork
The authorization digest uses keccak(0x05 || rlp([chain_id, address, nonce])), which cleanly separates it from standard transaction signing. Institutional HSM and MPC policy engines should refuse the 0x05 domain prefix by default for operational hot wallets, and flag bursts of sequential authorization requests as an immediate compromise indicator. On the monitoring side, custody systems should alert the moment eth_getCode on an EOA returns the 0xef0100 delegation prefix. Finally, if a compromise occurs, defenders must intentionally burn through the compromised nonce range before refilling the wallet or resuming automated sweeps.

Possible protocol follow-ups (open questions, not proposals)

  • An expiry field (valid_until or block deadline) in future authorization formats: Cheap to verify and effective against leaked or withheld pre-signed batches, though it obviously cannot stop an attacker with live signing access.
  • An irreversible per-account “never delegate” flag for custody EOAs: It would need to be permanent so a compromised signer could not simply revoke it. This would block atomic sweeper delegation, forcing an attacker back into slower, standard transfers that are easier for off-chain circuit breakers to catch.
  • Native smart custody accounts: Moving policy enforcement into on-chain code rather than relying on raw ECDSA keys, which aligns with the direction of EIP-7851 (deactivating ECDSA for delegated accounts).

Since EIP-7702 is Final, the practical home for most of these lessons is custody architecture and signing-policy standards (perhaps an informational ERC for HSM/MPC handling of 0x05 digests) rather than a spec change. Still, I would be curious to hear from the authors whether nonce-only validity was actively weighed against an explicit expiry during the design phase.

I propose requiring each authorization to sign a recent execution block header hash and its block number. This would bound delayed use of unused authorizations, including those signed for future nonces.

The full draft is in ethereum/EIPs PR 12601.

Extend the authorization to:

[chain_id, address, nonce,
 anchor_block_number, anchor_block_hash,
 y_parity, r, s]

The authority signs:

keccak256(0x05 || rlp([
    chain_id, address, nonce,
    anchor_block_number, anchor_block_hash
]))

For inclusion in execution block N, native authorization processing requires:

max(0, N - 256) <= anchor_block_number < N
anchor_block_hash == ancestor_hash(N, anchor_block_number)

Age 256 is eligible; age 257 is rejected. The current block is excluded. The signed number enables an indexed ancestor lookup, while the signed hash binds the authorization to that execution history. A future expiry height alone would still permit signatures to be prepared arbitrarily far in advance.

Check freshness before signature recovery and authority-specific state access. An expired or mismatched anchor skips that authorization without consuming its authority nonce; malformed encodings invalidate the transaction. Existing nonce, chain ID, signature, and code checks remain. The same rule applies to installation, replacement, and zero-address revocation.

This requires a fork and a breaking authorization-format change. The draft updates type 0x04, retains 0x05, and rejects every legacy six-field authorization after activation. An optional format would leave old signatures usable indefinitely. Existing installed delegation remains in effect.

The limit concerns authorization inclusion, not the lifetime of installed delegation. An attacker with live signing access can still obtain and promptly use fresh signatures, and an already-installed sweeper can continue operating. The Binance reporting does not establish that old signatures were stolen from storage, so I would not claim this would have prevented that incident.

The 256-block interval matches the existing BLOCKHASH window. It measures produced blocks, not elapsed time; halts and reorganizations affect eligibility accordingly.

The main design questions are whether to change type 0x04 or introduce a new type while disabling the legacy path, whether to allocate a new signing prefix, and whether the inclusion headroom is practical for wallet and recovery workflows. Gas and transaction-size benchmarks would also be needed before retaining the current authorization charges.