Case file · Hack · 2023
Euler Finance: about $197 million
A code flaw let an attacker drain about $197 million from DeFi lender Euler, but after weeks of talks the attacker returned all recoverable funds.
- Date
- 13 March 2023
- Target
- Euler Finance
- Amount
- about $197 million (Euler Labs)
- Networks
- Ethereum
What happened
On 13 March 2023 an attacker exploited Euler's donateToReserves function, which had no health check 1. The attacker donated their own collateral to make their position eligible for liquidation, then liquidated it themselves to collect a bonus larger than the donated amount 1. The function had been added in July 2022 to patch a different bug 1. The attack used flash loans and took about $197 million 2.
Timeline
The attacker deployed exploit contracts at 8:50 UTC, drained about $197 million from Euler and sent 100 ETH to Tornado Cash at 10:38 UTC 5.
Euler sent its first on-chain message the same day, asking whether the attacker would discuss "next steps" 5.
Euler warned on-chain that if 90% of the funds were not returned within 24 hours it would launch a $1 million reward for information 5.
The attacker moved 2,500 ETH to another address, sent 1,000 ETH to Tornado Cash, and refunded 100 ETH to a victim who had asked for help 5.
The attacker sent 100 ETH to an address linked to North Korea's Lazarus Group from the Ronin theft, which Elliptic assessed as "likely to be misdirection" 4.
The first returns arrived, totalling 3,000 ETH (about $5.3 million) that day 5.
The Ronin-linked address sent the attacker an encrypted message, and Euler publicly warned: "Do NOT use the suggested decryption tool" 5.
The attacker opened a private email channel with Euler, signing as "Jacob" 5.
The attacker returned 51,000 ETH (about $90 million) and about 1.23 million DAI 5.
The attacker apologized on-chain and returned another 5 million DAI 5.
Final returns completed the recovery, which Euler values at about $240 million because ETH rose during the negotiation 5.
Following the money
Elliptic put the loss at $199 million across USDC, DAI, WBTC and staked ether, found the attack was funded from a Monero-linked wallet, and reported that proceeds were already being laundered through Tornado Cash 4. Euler's own timeline records 100 ETH sent to Tornado Cash on March 13 and another 1,000 ETH on March 16, and the attacker split funds across four new addresses during the negotiations before returning almost everything 5.
How investigators traced it
Euler decompiled the exploit contract, traced funds through Tornado Cash and other protocols, and worked with on-chain investigators and white hats 5. Pressure came mainly from public on-chain messages with deadlines, a $1 million reward for information and warnings about legal action, followed by private email and messages verified on-chain 5. Euler says the attacker's real identity has not been established and that "Jacob" is clearly not a real name 5. Elliptic assessed the transfer to the Lazarus-linked address as likely misdirection rather than a sign that Lazarus carried out the attack, and reported Euler's warning that the 'decryption tool' sent to the attacker might be malware aimed at stealing the attacker's keys 4.
What happened next
Euler offered a 10% bounty, and on 3 April 2023 said the exploiter had returned 'all of the recoverable funds' 2. Redemptions for users opened on 12 April 2023, and 1,100 ETH sent to Tornado Cash was labeled irrecoverable 3. Euler Labs later said users' assets were fully recovered (about $240 million, helped by a rising ETH price) and rebuilt the protocol as Euler V2 1.
What it teaches
- An audit does not guarantee safety; Euler's flaw came from an audited code change.
- Spread your funds across several DeFi protocols instead of keeping everything in one.
- During an incident, follow only the protocol's official channels for claim instructions; fake 'claim' sites appear quickly.
If you were affected
The 2023 redemption process is over, so former depositors should use only Euler's official site and channels and ignore unsolicited 'claim' links.
Sources
- War & Peace: Behind the Scenes of Euler's $240M Exploit Recovery Euler Labs, 10 January 2024
- Euler hacker returns $31 million, marking end to 'recoverable funds' in DeFi exploit The Block, 4 April 2023
- Euler Finance opens redemptions after hacker returns funds Cointelegraph, 12 April 2023
- Euler Finance loses $199 million in flash loan attack Elliptic
- War & Peace: Behind the Scenes of Euler's $240M Exploit Recovery Euler Labs, 10 January 2024