Case Study: Harmony Horizon Multisig Validator Drain¶
Fidelity Level: L2 (Fork-State Behavioral) Date: June 23, 2022 Loss: ~$100M (ETH, WETH, WBTC, BUSD, DAI, USDC, USDT) Chain: Ethereum (EVM-side analysis), Harmony (non-EVM, not forkable)
Overview¶
The Harmony Horizon bridge was exploited on June 23, 2022 when an attacker compromised 2 of the 5 validator keys for the bridge's multisig wallet. Using the legitimate submitTransaction/confirmTransaction flow, the attacker drained approximately $100M in bridged assets from the Ethereum-side bridge contracts.
This was not a smart contract vulnerability ΓÇö the contracts behaved exactly as designed. The vulnerability was in the low multisig threshold (2 of 5) combined with a successful social engineering attack attributed to the Lazarus Group.
Technical Details¶
Contracts¶
| Contract | Address | Role |
|---|---|---|
| HarmonyEthBridge | 0xf9fb1c508ff49f78b60d3a96dea99fa5d7f3a8a6 |
ETH bridging |
| HarmonyErc20Bridge | 0x2dccdb493827e15a5dc8f8b72147e6c4a5620857 |
ERC-20 token bridging |
| HarmonyBusdBridge | 0xfd53b1b4af84d59b20bf2c20ca89a6beeaa2c628 |
BUSD bridging |
Vulnerability¶
The Horizon bridge used a Gnosis-style multisig wallet with a threshold of 2 out of 5 validators:
// Simplified multisig flow
function submitTransaction(address _destination, uint256 _value, bytes memory _data)
external returns (uint256 transactionId) {
// ... create transaction
}
function confirmTransaction(uint256 _transactionId) external {
// Increment confirmation count
// If confirmations >= required (2), execute automatically
}
The attacker compromised 2 validator keys through social engineering (attributed to North Korea's Lazarus Group by the FBI). With 2 keys, they could:
submitTransaction()ΓÇö create a drain transactionconfirmTransaction()ΓÇö confirm it (first of 2 required)- The second compromised key confirms ΓÇö threshold reached, transaction executes
The bridge contracts had no way to distinguish the compromised validators from legitimate ones. The authorization was cryptographically correct.
Fork Point¶
Block 15,005,526 ΓÇö the block before the first exploit-related activity on Ethereum.
Attacker¶
0x0d043128146654c7683fbf30ac98d7b2285ded00
Reproduction Approach¶
This reproduction demonstrates the contract state that enabled the exploit:
- Forks Ethereum at block 15,005,526
- Verifies all 3 bridge contracts exist with non-empty code
- Reads bridge initialization state to confirm contracts were operational
- Demonstrates the
submitTransaction/confirmTransactionflow is executable via Anvil's auto-impersonate feature
The full asset drain sequence is not reproduced ΓÇö it would require real multisig transaction IDs and the actual compromised validator signatures, which are off-chain data not reproducible at the EVM level.
# Simplified reproduction logic
def execute(self, context, phase=None):
client = context.chains.runtime_for("ethereum")
# Verify contracts exist
for name, address in BRIDGE_CONTRACTS.items():
code = client.get_code(address)
assert code and code != "0x"
# Impersonate a validator and demonstrate the flow
# (Anvil auto-impersonate eliminates the need for actual private keys)
client.send_transaction({
"from": ATTACKER,
"to": HARMONY_ETH_BRIDGE,
"data": encode_submit_transaction(...),
})
Reproduction Steps¶
# 1. Configure environment
cp .env.example .env
# Edit .env: set ETH_RPC_URL
# 2. Fork Ethereum
crucible fork --topology single
# 3. Run the experiment
crucible experiment run experiments/horizon_replay.yaml --no-baseline
# 4. Verify determinism
crucible experiment run experiments/horizon_replay.yaml --name run-a
crucible experiment run experiments/horizon_replay.yaml --name run-b
crucible diff <run-a-id> <run-b-id>
Expected Results¶
| Assertion | Expected | Description |
|---|---|---|
bridge_contracts_exist_at_fork_block |
✅ Pass | All 3 bridge contracts have code |
bridge_state_initialized |
✅ Pass | Bridge contracts initialized and operational |
Why This Is L2, Not L3¶
L3 would require replaying the exact historical exploit transaction. Replaying the actual submitTransaction/confirmTransaction flow would succeed but proves nothing ΓÇö the transaction would succeed on any fork because the contracts have no vulnerability. The exploit was an infrastructure compromise, not a contract bug.
L2 correctly demonstrates that contracts were in a state that would have allowed the exploit.
Limitations¶
- Harmony chain non-EVM ΓÇö Harmony ONE is not an EVM chain, so the Harmony-side bridge contracts cannot be forked
- Off-chain key compromise ΓÇö the social engineering vector cannot be reproduced at the EVM level
- No full asset drain ΓÇö real multisig transaction IDs would be needed for the complete drain sequence
- Lazarus Group attribution ΓÇö FBI-attributed but not part of the technical reproduction