Hoskinson Expresses Worries Over Binance Sweeper Code in EIP-7702 Debate
Charles Hoskinson, the founder of Cardano, has raised concerns about “seriously dangerous code,” analyzing the rapid depletion of a Binance hot wallet which he attributes to Ethereum’s EIP-7702 delegation feature.
Summary
- Hoskinson provided a technical analysis that suggests the sweeper was tailored for Binance’s wallet infrastructure.
- As per CyberSatoshi, 50 signed authorizations enabled the assailant to exploit the fluctuating transaction nonce of the hot wallet.
- The evaluation highlighted the requirement for either private-key access or unrestricted signing rights to authorize delegation.
- Ethereum’s documentation warns that delegated code has unrestricted access to accounts, necessitating comprehensive security evaluations.
In a post on X, Hoskinson warned, “Exercise caution, there is some seriously dangerous code circulating,” alongside an analysis by CyberSatoshi.
The details shared included reconstructed bytecode for a suspected Binance EIP-7702 sweeper, suggesting that the contract was specifically crafted for the exchange’s operations. Hoskinson’s accompanying remarks did not point to any particular protocol vulnerability or clarify which elements of the analysis he endorsed.
CyberSatoshi’s findings raise two critical security questions: one about how the attacker gained permission to manage the wallet, and another concerning the actions enabled by Ethereum’s delegation feature post-permission acquisition.
Claims of the Binance sweeper bypassing wallet defenses
CyberSatoshi’s analysis revealed that the reconstructed contract left exactly 1 ETH in the wallet while draining its primary balance. This tactic was purportedly designed to prevent Binance’s hot-wallet queue from collapsing due to lack of gas, thus avoiding triggering any alarms.
The evaluation described a token-processing loop that verified balances through low-level calls, continuing even if individual operations failed. CyberSatoshi maintained that this allowed the sweeper to keep processing assets even if a blacklisted or unresponsive token was unable to transfer.
An alleged custom execution function supposedly enabled the compromised wallet to interact with an external vault holding $823 million in USDC. The analysis indicated that the vault recognized Binance 14 as its controller, allowing calls made via that wallet to access funds beyond its immediate balance.
CyberSatoshi framed the contract as intentionally designed for Binance’s ecosystem, with implications for its effect on internal alerts and treasury systems being part of the poster’s exposition of the operation’s mechanics.
Authorization requirements for delegation under EIP-7702
The EIP-7702 documentation delineates a transaction type that permits an externally owned account to delegate execution to code located at another address.
Typically, an externally owned account functions through signatures derived from its private key. Delegation allows it to execute smart contract logic within its own account context, facilitating capabilities like batching multiple operations into a single transaction and letting another account cover transaction fees.
Every authorization denotes a chain, a delegate address, and a nonce, plus a cryptographic signature. The protocol retrieves the authorizing account from this signature and checks its nonce before executing the delegation.
CyberSatoshi acknowledged this necessity, asserting that the alleged attack depended on either the raw private key or unrestricted signing access to Binance 14’s security protocols.
The specification does not clarify how any Binance signing credentials were procured, but it does establish that delegation cannot be assigned to an arbitrary victim account without valid authorization.
Examining Ethereum’s nonce rules and the alleged batch process
CyberSatoshi contended that the attacker submitted 50 pre-signed authorizations covering consecutive nonces to exploit Binance 14 while its transaction count was in flux.
The specification processes authorizations in order. If an authorization fails a check, the processing continues with the next entry. A valid entry establishes the delegation and increments the nonce for the authorizing account.
As a result, successive authorizations for the same account can become valid as the nonce progresses. If multiple valid entries are present, the last valid delegation determines which code address is utilized.
This methodology is more precise than a straightforward batch process where only one authorization can take effect at a time. These rules permit multiple consecutive entries to succeed based on the initial nonce of the account and the provided signatures.
CyberSatoshi argued that delegation consolidated asset transfers into a single operation, thus narrowing the window for potential intervention. The separate assertion that exchange protections would have otherwise blocked the theft after three transactions is the poster’s counterfactual assessment.
Potential risks of delegation highlighted in Ethereum’s design document
The authors of the EIP explicitly warn that authorized code has unrestricted access to an account and must undergo thorough auditing by the wallet’s security team.
The security section outlines essential safeguards for delegate contracts, including replay prevention and signatures covering transaction value, gas, destination, and call data. Inadequate implementation of delegation can provide an attacker nearly total control over the signing account.
Delegation persists beyond the individual transaction that initiates it. The specification indicates that an execution failure does not retract delegation indicators that have already been processed.
To revoke delegation, the protocol allows for a valid authorization pointing to the zero address, effectively clearing the account’s delegation code.
