• Hacks & Exploits

Ethereum’s Pectra Upgrade Opens the Door to Wallet Draining

5/12/2025
2min read
Denislav Manolov's Image
by Denislav Manolov
Crypto Expert at Airdrops.com
5/12/2025
2min read
Denislav Manolov's Image
by Denislav Manolov
Crypto Expert

What Changed with Pectra?

On May 7, Ethereum activated the Pectra upgrade at epoch 364032. While it brings scalability improvements and enhanced smart account functionality, a new attack vector was quietly born—courtesy of EIP-7702. EIP-7702 introduces transaction type 0x04 (SetCode), which lets users delegate wallet control to a smart contract by signing an offchain message, not a traditional onchain transaction.

That’s the danger: signing alone is now enough to give away wallet control.

“An attacker can drain an EOA’s funds using only an offchain signed message,” confirmed Solidity auditor Arda Usman.

How the Attack Works

A scammer tricks you into signing a message (via phishing site, fake DApp, Discord scam, etc.). That signature sets your wallet’s code to point to their malicious contract. The attacker then executes transactions from your wallet—without you signing another thing. Your funds are gone. Instantly.

This turns even regular Ethereum wallets (EOAs) into programmable contracts under someone else’s control.

“Any valid delegation signature is actionable the moment Pectra was activated,” Usman warned.

Hardware Wallets Are No Longer Immune

Traditionally, hardware wallets were considered safe. But under Pectra, signing a malicious message on a cold wallet has the same catastrophic effect as a hot wallet.

“If done—all the funds are gone in a moment,” said Yehor Rudytsia of Hacken.

Wallets and platforms that don’t recognize transaction type 0x04 or fail to properly flag delegation messages are most vulnerable.

How to Protect Yourself

  • Never sign a message you don’t fully understand.
  • Watch for suspicious delegation requests — especially those including your wallet nonce.
  • If your wallet doesn’t warn you about SetCode messages, switch to one that does.
  • Multisig wallets offer added protection and are currently safer under Pectra.
  • Developers should update wallet UIs to display clear warnings for these signature types.
“From now on, users have to carefully validate what they are going to sign,” Rudytsia cautioned.

Also note: EIP-7702 allows chain-agnostic signatures (with chain_id = 0), so a signed message could be replayed on any Ethereum-compatible chain.

Share with your friends on social media:

Join the community and don't miss a crypto giveaway.

Subscribe for updates by e-mail with the latest research reviews, airdrop news, reward programs, event updates about upcoming airdrops.

By entering your email address you are accepting our Terms & Conditions and Privacy & Cookie Policy.