Alpha Finance Hack

Reported loss $37.5M
Ethereum
Debt-share accounting flaw amplified with flash-loan liquidity

What happened

On February 13, 2021, Alpha Homora V2 was exploited through its protocol-to-protocol credit line with C.R.E.A.M.'s Iron Bank. The attacker turned a debt-share accounting edge case in an unused sUSD market into approximately $38 million of unauthorized borrowing.

Technical root cause

Debt-share accounting did not preserve its invariants in an empty market: rounding could leave a residual share, and permissionless reserve resolution increased total debt without a matching increase in total shares. Subsequent borrows could therefore receive zero debt shares.

How it happened

  1. The attacker became the first and only sUSD borrower, then used a rounding error to leave one debt share after repaying.
  2. Because resolveReserve could add total debt without adding debt shares, the attacker repeatedly expanded the debt while later borrows rounded to zero shares.
  3. A custom spell and flash-loan liquidity made it possible to use the resulting position to borrow WETH, DAI, USDC, and USDT from Iron Bank.

Protocol details

Classification Protocol Logic
Protocol Type Exploit/Flash Loan Attack
Affected asset / contract ALPHA
Implementation language Solidity

Funds Recovery

9.9%

Recovered

$3.7M

Net Loss

$33,787,500

Understand the attack patterns

Build your security review skills

Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.