StakeDAO
Why it happened
Attack class: Key compromiseThe deployer key was compromised.
What would have stopped it
- Wrap the vsdCRV OFT owner in a multisig (Safe with 3-of-5 or 4-of-7 threshold).
- Add a timelock between any setPeer call and the first accepted message from that new peer. Recommended cooldown is 24 to 72 hours.
Not scored before the exploit
BlackHart had not scored StakeDAO before this exploit.
An attacker stole the private key to StakeDAO's deployer wallet on Arbitrum and used it to redirect the vsdCRV token's trusted cross-chain link to a contract they controlled on Ethereum. They then forged a cross-chain message that minted roughly 5.4 trillion vsdCRV out of thin air, dumped what little liquidity existed for about 43.78 ETH (around $91,000), and bridged the proceeds to Ethereum where the funds still sit untouched. Locked sdCRV collateral on Ethereum, other StakeDAO products, and user deposits were not affected. The team has already locked out the compromised key and reset the cross-chain trust setting.
The attacker, using the compromised StakeDAO deployer wallet, signed a setPeer transaction on Arbitrum that pointed the vsdCRV token's trusted cross-chain peer at an attacker contract on Ethereum. A forged cross-chain message from that contract then minted 5.4 trillion vsdCRV to the attacker's wallet, which dumped them across 28 swaps and bridged the proceeds via Stargate to Ethereum mainnet.
Attack flow
All 9 on-chain stepsThe attack in 5 steps. Step 1, Funding: Tornado Cash (source), Intermediate wallet (source). Step 2, Mint: Compromised deployer (hub), about $91K reached this step. Step 3, Swap: 28 swaps to ETH (swap). Step 4, Bridge: Stargate native ETH bridge (bridge). Step 5, Recipient: Attacker wallet on Ethereum (exit).
Step 1: Funding
- SourceTornado Cash1 ETH withdrawn3-day OPSEC cooldown
- SourceIntermediate walletgas stagingvia Relay aggregator0x58baE3Cb...de2f19
Step 2: Mint
- HubCompromised deployer5.4T vsdCRV minted$91,369 claimed via forged msg0x62d5a5...c833
Step 3: Swap
- Swap28 swaps to ETHto 43.78 ETHCurve, KyberSwap, MetaMask, Enso
Step 4: Bridge
- BridgeStargate native ETH bridge43.78 ETH bridgedArbitrum to Ethereum, 1 min0x8e60b7b6...19286e
Step 5: Recipient
- ExitAttacker wallet on Ethereum43.97 ETH inuntouched at report time0xeF3C054d...77aa25
Why each step worked
- Deployer key compromised0x000755...ff62
- Single EOA ownerno multisig, no timelock on setPeer
- Hijacked cross-chain peersetPeer(eid=30101) repointed Ethereum trust to attacker contract 0x00380b...1106
- Forged message accepted as peeronlyPeer check passed because peers[30101] now pointed at the attacker; no inbound mint rate limit
- No outflow velocity capmissing controlnothing rate-limited the 28 sequential dumps
- No realtime cross-chain alertingmissing control5.4T mint with no source-chain lock went unpaged
- No exchange-flag outreach yetmissing controlfunds sit on Ethereum, recoverable with CEX coordination
Full forensic detail
Step-by-step reconstruction, root cause, counterfactuals, remediation, and disclosure timeline.
Exploit anatomy
Root cause
StakeDAO's vsdCRV token on Arbitrum is implemented as a LayerZero V2 OFT, which lets the contract owner reconfigure the trusted Ethereum-side counterparty at any time via a single setPeer call. The deployer wallet that held this owner authority was a single externally owned account, not a multisig, and there was no timelock or cooldown between a peer change and the first cross-chain message accepted from the new peer. There was also no rate limit on inbound mint amounts. Once the attacker had the private key, the entire cross-chain mint authority on Arbitrum was a single transaction away. The smart contract code is not buggy; the operational architecture around it is the failure surface.
// Simplified architecture of the failure surface
function setPeer(uint32 _eid, bytes32 _peer) external onlyOwner {
peers[_eid] = _peer; // single state write reconfigures cross-chain trust
emit PeerSet(_eid, _peer);
}
function _lzReceive(Origin calldata _origin, ...) internal override {
// onlyPeer check: any caller whose source matches peers[srcEid] passes
require(peers[_origin.srcEid] == _origin.sender, "OFT: invalid peer");
_mint(_recipient, _amount); // attacker-controlled because peer was attacker-controlled
}Prevention analysis
Attack fully prevented. A single key compromise becomes insufficient to call setPeer; the attacker would need to compromise threshold-many signers in coordination.
Attack detected and reversed before any mint can happen. A protocol monitor sees the peer change, raises an alarm, and the team can revert via the multisig before the cooldown expires.
Even if the peer hijack succeeded, the mint would be capped well below 5.4 trillion. The attacker would extract a small fraction of what they got, buying defenders time to pause.
Attack detected in real time. A 5.4 trillion mint with no corresponding Ethereum-side lock would page within minutes of the mint, often before DEX dumps complete.
The single-key extraction vector is eliminated. Even if an internal node is compromised, no single party holds enough cryptographic material to autonomously call setPeer.
Similar incidents
Same cross-chain trust binding architecture, different compromise vector. Kelp was hit at the verifier infrastructure layer (poisoned RPC nodes feeding a single DVN); StakeDAO was hit at the OApp owner layer (one private key exfiltrated). Both end the same way: a forged cross-chain message authorizing unauthorized minting on the destination chain.
Cross-chain bridge admin custody compromised, leading to unauthorized minting and drain of bridge-controlled assets. Identical risk class at the architectural level: privileged custodial role over cross-chain trust binding with insufficient operational hardening.
Single externally owned account holding outsized authority, private key extracted by a flaw in the address-generation tool. Same anti-pattern at a different layer of the stack.
Operational private key compromise, single wallet with admin-equivalent authority over protocol-adjacent value. Same dimensional failure: operational security plus access control. StakeDAO is the more severe variant because the compromised authority controlled cross-chain trust rather than a hot wallet balance.
Admin key compromise leading to a single privileged transaction authorizing large-scale value extraction. Centralized admin authority with no multisig or timelock wrapping.
Remediation
Timeline
Get your protocol scored across 12 dimensions, or request ongoing coverage.