$1.5 Billion Gone in a Single Transaction: What Actually Happened
On February 21, 2025, Bybit's cold wallet was drained of approximately $1.5 billion in ETH and stETH. Not through a flash loan. Not through a reentrancy bug. Through a compromised front-end that convinced legitimate signers to approve a malicious transaction they believed was routine.
That distinction matters enormously — both for understanding this specific attack and for knowing what security tooling can and cannot protect you from.
Bybit used a Safe (formerly Gnosis Safe) multisig wallet for cold storage, which is standard practice for exchanges at this scale. Safe requires M-of-N key holders to sign transactions before execution. On paper, that's a strong security model. In practice, it assumes every signer is looking at an accurate representation of what they're signing.
They weren't.
The Attack Vector: Malicious delegatecall via UI Compromise
Here's the transaction sequence, as reconstructed from on-chain data and Bybit's post-incident reporting:
- The attacker compromised the Safe UI or the signing environment used by Bybit's operators — the exact initial vector is still being investigated, but the effect was a malicious transaction payload being presented as a legitimate one.
- Bybit signers believed they were approving a standard cold-to-warm wallet transfer or a routine contract interaction.
- The actual transaction called
delegatecallto a malicious contract address, substituted in place of the legitimate Safe implementation. - Because
delegatecallexecutes foreign code in the context of the calling contract — using its storage, its balances, its permissions — the attacker's contract ran with full authority over the multisig wallet. - The wallet was drained.
The core vulnerability isn't in Safe's contract code. Safe's contracts are among the most audited in the space. The vulnerability was in the integrity of the signing environment: the UI showed one thing, the blockchain executed another.
Why delegatecall Is Always the Danger Zone
If you're building anything that uses delegatecall, you need to understand exactly why it's dangerous. Here's a simplified version of the pattern that was weaponized:
// Attacker's malicious contract — executed in the context of the Safe wallet
contract MaliciousImplementation {
// Storage layout matches Safe's layout exactly
address internal singleton;
mapping(address => address) internal modules;
address internal fallbackHandler;
// ... matches Safe storage slots
function attack(address payable attacker) external {
// Runs with Safe's storage context — Safe's token balances, Safe's approvals
IERC20(STETH_ADDRESS).transfer(attacker, IERC20(STETH_ADDRESS).balanceOf(address(this)));
}
}
// The Safe proxy — this is how delegatecall works against you
// When Safe's proxy executes delegatecall to maliciousImpl instead of legitimateImpl:
// msg.sender = original caller (legit)
// address(this) = the Safe wallet address (legit)
// storage = Safe wallet's storage (legit)
// But the CODE running is the attacker's
(bool success,) = maliciousImpl.delegatecall(
abi.encodeWithSignature("attack(address)", attackerAddress)
);
This is why substituting the implementation address in a proxy-based system is so catastrophic. The proxy pattern — used by Safe, used by almost every upgradeable contract — is only as safe as the implementation pointer it holds.
What a Pre-Deployment Audit Would Have Caught
Let me be direct here, because too many post-mortems oversell auditing as a universal solution.
A smart contract audit of Bybit's Safe deployment would NOT have prevented this hack.
Safe's contracts are correct. They've been audited by multiple top-tier firms. The code did exactly what it was designed to do. The attack succeeded because the input to that correct code — the implementation address passed via the signed transaction — was maliciously substituted at the UI layer, before it ever touched the blockchain.
No static analysis tool, no formal verification pass, no manual audit of deployed bytecode would have caught a runtime UI compromise. That's an operational security problem, not a code problem.
What auditing WOULD have caught, if Bybit had been building custom multisig infrastructure:
- Unguarded
delegatecallto user-supplied addresses — one of the most common high-severity findings in proxy contract reviews - Missing implementation address validation before
delegatecallexecution - Storage collision vulnerabilities between proxy and implementation contracts
- Missing access controls on
upgradeTo()or equivalent upgrade functions - Initialization functions callable post-deployment by arbitrary callers
Cream Finance lost $130M in October 2021 to a flash loan attack that exploited a price oracle and reentrancy — that was a code bug, and a thorough audit likely catches it. Euler Finance lost $197M in March 2023 to a donation attack that exploited flawed health check logic in their liquidation flow — again, a code bug, auditable in principle. Bybit is a different category entirely.
Similar Attacks That Follow This Pattern
Bybit isn't the first time attackers targeted the gap between what signers see and what the blockchain executes.
The Ronin Bridge hack ($625M, March 2022) was also fundamentally an operational security failure — compromised validator private keys, not buggy contracts. Attackers got control of 5 of 9 validator keys through social engineering of Sky Mavis employees. The bridge contract code was never the problem.
The Nomad Bridge hack ($190M, August 2022) sits closer to the code-bug end of the spectrum — a flawed initialization in the Replica contract set a trusted root to 0x0, which made every message automatically valid. That one an audit should catch. But the reason it cascaded into $190M was that the bridge held that much liquidity and had no circuit breaker. Operational decisions, not just code.
The pattern across all three: the higher the TVL, the more valuable the operational attack surface becomes relative to the code attack surface. Nation-state level attackers — the Lazarus Group has been publicly attributed to Bybit — don't need to find a reentrancy bug when they can compromise a laptop.
What Protocols Using Multisig Infrastructure Actually Need
If you're deploying a protocol that will hold significant value and relies on multisig governance or multisig-controlled treasury, here's what your security stack actually needs to include — not just an audit:
1. Transaction simulation and verification tooling
Every transaction your multisig signers approve should be simulated against a fork before signing, with the decoded calldata displayed in plain language. Tools like Tenderly, Ape, or custom Foundry scripts can do this. The goal is to make it impossible to sign a transaction without understanding exactly what it will do on-chain — no matter what the UI shows.
2. Implementation address allowlisting
If your contracts use delegatecall, the set of valid implementation addresses should be hard-coded or registry-controlled on-chain, not passed as parameters at call time. This is auditable. If you're building custom proxy infrastructure, this is exactly the kind of pattern an AI audit flags immediately.
// Safer pattern: validate implementation before delegatecall
contract SaferProxy {
mapping(address => bool) public approvedImplementations;
address public admin;
modifier onlyApprovedImpl(address impl) {
require(approvedImplementations[impl], "Implementation not approved");
_;
}
function executeWithImpl(
address impl,
bytes calldata data
) external onlyApprovedImpl(impl) returns (bytes memory) {
(bool success, bytes memory result) = impl.delegatecall(data);
require(success, "delegatecall failed");
return result;
}
}
3. Hardware signing with decoded transaction display
Ledger and Trezor both support Safe. But the signing device needs to display decoded calldata, not just a hash. If your signers are approving transactions based on what a browser tab shows them, you have the same attack surface Bybit had.
4. Smart contract audit for any custom multisig logic
If you're using vanilla Safe with no custom modules, your contract-level risk is low. If you've added custom modules, guards, or hooks — those need to be audited. Safe modules run with significant permissions and the interaction surface between modules and the core Safe contracts is non-trivial.
What AI Auditing Catches in Multisig-Adjacent Code
Bybit's hack wasn't a code problem. But plenty of protocols are one bad proxy implementation away from the same outcome through a different attack path. AI auditing catches the code-layer risks in this category fast:
- Unvalidated delegatecall targets — any
delegatecallto a user-controlled or parameter-supplied address gets flagged immediately - Storage collision in proxy patterns — EIP-1967 slot violations, unstructured storage misuse
- Unprotected initializers —
initialize()functions withoutinitializermodifiers, callable post-deployment - Missing access control on upgrade functions —
upgradeTo(),upgradeToAndCall()exposed to non-admin callers - tx.origin authentication in multisig guard logic — bypassable by any contract call in the chain
What it won't catch: a compromised developer laptop, a poisoned npm package injected into your signing UI, or a social engineering attack on your key holders. That's not a limitation of AI auditing specifically — it's a limitation of any code-analysis approach, automated or manual.
The honest answer is that Bybit-scale operational security requires a security program, not just an audit. For the code layer of that program, you need something fast and accurate enough to keep pace with development — especially for the proxy infrastructure and access control logic where the highest-severity vulnerabilities live.
SmartContractAuditor.ai detects unvalidated delegatecall targets, storage collision vulnerabilities, unprotected initializers, and broken access control patterns in under 60 seconds — free to start at https://contractgenius.vercel.app. If you're deploying anything that touches upgradeable proxies or multisig-controlled logic, run it before you deploy. The code bugs are the part you can actually prevent.
Related Articles
Continue exploring smart contract security with these related insights
Cream Finance Hack October 2021: $130M Oracle Attack
On October 27, 2021, Cream Finance lost $130 million in a single transaction. The attacker didn't break the math — they fed the protocol a lie, and the protocol believed it. Here's exactly how that happened, what the vulnerable code looked like, and why this class of attack keeps working.
The DAO Hack 2016 Explained: $60M Reentrancy
In June 2016, an attacker drained 3.6 million ETH from The DAO — roughly $60M at the time — using a reentrancy bug so simple it fits in ten lines of code. This wasn't a cryptographic breakthrough or a zero-day in the EVM. It was a function that made an external call before it updated a balance. Eight years later, variants of that same pattern still appear in production contracts.
Nomad Bridge Hack Analysis: $190M Bug Explained
On August 1, 2022, Nomad Bridge lost $190M in one of the strangest hacks in DeFi history — not because of a sophisticated exploit, but because a routine upgrade accidentally set a trusted root to zero, turning message verification into a free-for-all. What followed wasn't a single attacker draining funds. It was a mob. Here's exactly what went wrong.
Explore more insights on smart contract security andblockchain vulnerabilities