Starstream / Agora Hack
What happened
On April 7, 2022, an attacker drained about 532 million STARS from the Starstream Finance treasury on Metis through an unprotected execute() function in Starstream's new DistributorTreasury contract. The attacker then used the stolen STARS as collateral on Agora DeFi, a lending market on Metis, and borrowed about $8.2 million in METIS, WETH and mUSDC. CertiK puts the total loss across both protocols at about $15 million.
The borrowed funds were bridged to Ethereum, and 900 ETH was sent to Tornado Cash. No recovery was reported, and CertiK says the protocol wound down on June 9, 2022.
How it happened
- Starstream's
DistributorTreasurycontract exposed anexternalexecute()function that made an arbitrary low-level call and had no access control. - The attacker called
execute()to makeDistributorTreasuryinvoke the privilegedwithdrawTokensfunction onStarstreamTreasury, which trustedDistributorTreasury. This moved about 532 million STARS to the attacker. - The attacker deposited the STARS into Agora DeFi's lending contracts as collateral and borrowed about $8.2 million of METIS, WETH and mUSDC.
- The borrowed assets were moved to Ethereum through an exchange proxy, and 900 ETH was sent to Tornado Cash. About 120 ETH was later bridged back to Metis.
Protocol details
Security review history
- Solidity Finance No public report
Evidence
- report Report agora-defi.notion.site
- transaction andromeda-explorer.metis.io address transactions andromeda-explorer.metis.io
- transaction etherscan.io transaction 0x4f11…125d etherscan.io
- transaction etherscan.io transaction 0x596c…aca6 etherscan.io
- transaction etherscan.io transaction 0x80a3…15d0 etherscan.io
- transaction etherscan.io transaction 0xd72b…858d etherscan.io
- address etherscan.io address 0xffd9…9c48 etherscan.io
- analysis Starstream / Agora Incident Analysis certik.com
- analysis Web Archive web.archive.org
- analysis DeFiLlama defillama.com
- analysis Explained: The Starstream and Agora Hack (April 2022) halborn.com
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.