Skip to main content

What Happened

Bybit’s February 26, 2025 forensic update reports compromise of Safe’s environment and manipulation of the signing flow; it reports no compromise of Bybit infrastructure. The incident illustrates why a valid signature does not establish that the signer saw the transaction’s actual effect. Bybit forensic update.

Attack Mechanism

The compromised signing interface displayed a benign transaction while the signers authorized a different payload. That payload executed a delegatecall in the Safe’s storage context. The delegatecall changed the Safe proxy’s singleton address, replacing the code that governed subsequent withdrawals. The attack crossed two boundaries:
  1. The displayed intent differed from the signed transaction.
  2. The signed transaction changed the wallet’s implementation, so later calls no longer followed the original Safe authorization logic.
Safe stores its singleton in slot zero. An EIP-1967 implementation-slot check would inspect the wrong location for this proxy. The assertion reads the initial slot value and checks every recorded value against it, including an implementation change that is restored before transaction end. Creating a ForkId alone does not select a state: the example passes it to loadStateAt.

Assertion Example

What This Check Covers

The singleton slot must match the deployed Safe layout. Freezing it constrains this implementation-replacement path, not every malicious signed transfer. An approved-recipient policy must inspect actual transfers: unrelated deposits into an approved recipient cannot establish where the Safe’s funds went.