Flash loan attack
Attack technique specific to decentralized finance. It uses an uncollateralized loan, repaid within the same transaction, to manipulate prices and drain a protocol of more than a hundred million dollars in a single transaction.
In October 2021, Cream Finance lost 130 million dollars in a single transaction. The attacker borrowed 500 million DAI in a flash loan, manipulated the price of an illiquid collateral token the protocol relied on, then borrowed far more than the real collateral allowed. The whole thing fit in one Ethereum block, about twelve seconds. The flash loan started as a legitimate DeFi tool: you borrow an arbitrary amount with no collateral, provided you repay it within the same atomic transaction, otherwise everything is reverted. It serves arbitrage and instant refinancing. Turned around, it hands the borrower, for a few seconds, enough market power to skew the price oracle and drain the liquidity pools. The attacker never commits capital of their own, every step reverts if the transaction fails, and the flaw usually sits in protocol design rather than in malicious code. DeFi covers struggle to classify the loss: smart-contract bug, market manipulation, or use of a feature open to everyone? The classification decides the cover.
On October 27, 2021, the Cream Finance attacker borrows 500 million DAI in a flash loan from MakerDAO and over 500,000 ETH from Aave, deposits them with Cream and into Yearn's yUSD vault, the illiquid collateral token Cream accepted, then inflates the value of the yUSD share by a plain direct transfer to the vault, whose price Cream read as its oracle. The inflated collateral lets him borrow 130 million dollars he will never repay, all within one Ethereum block, approximately twelve seconds. It was the protocol's third hack of 2021, after 37.5 million in February and 18.8 million in August. No existing DeFi insurance covers the full loss.
- Halborn, "Explained: The Cream Finance Hack (October 2021)"; Immunefi, "Hack Analysis: Cream Finance, Oct 2021" (over 130 million dollars in one transaction)
- Immunefi, "Hack Analysis: Cream Finance, Oct 2021"; Halborn, "Explained: The Cream Finance Hack (October 2021)"
Follow the research
One letter a week. First, the week's underwriting note, when one is published: a dated, argued decision, signed by Paul Bernardski. Then what the observatory published on cyber risk, political risk and insurance. No account, no tracking.
No spam, one-click unsubscribe, no data ever sold.