Amun Hack

Reported loss $300K
Ethereum Polygon
Controlled Rebalance Manipulation

What happened

Amun issued index tokens that gave holders exposure to a basket of assets, rebalanced regularly and redeemable for the underlying tokens. On December 26, 2022, an attacker took control of the address Amun used to run rebalances for its PECO (Polygon Ecosystem Index) and DFI tokens and drained the underlying assets, worth about $300,000 at the time.

The address 0xd7948f06256831d1f0287d81bf1e6b19185aa69a was the only one allowed to rebalance the tokens, and Amun said it considered it compromised. The attacker created fake tokens and a fake exchange, pointed PECO's rebalance manager at that exchange, and forced a rebalance that swapped all the real underlying tokens for the fake ones, sending the real tokens to the attacker, who swapped them for MATIC. Amun said the attacker then minted 80 billion tokens and sold them on every available DEX, draining the liquidity pools. The same steps were repeated on DFI, which used the same rebalancer address. Amun has not said how the address was compromised.

Amun moved the manager contract under company multisig control. 21.co, Amun's parent company, set up a relief fund paying eligible PECO and DFI holders in USDC based on their balances at hack-time prices (PECO $2.60, DFI $0.61), and Amun proposed a governance vote to freeze the tokens on February 8, 2023 and later terminate them.

Attacker: 0xf8b17df4da32fafdda970ae1f76d2dbff7091913

How it happened

  1. The attacker gained control of 0xd7948f06256831d1f0287d81bf1e6b19185aa69a, the single address Amun used to execute PECO and DFI rebalances. How it was compromised is not disclosed.
  2. Starting around 12:55 AM UTC on December 26, 2022, the attacker used it to create fake tokens and a fake exchange.
  3. The attacker set PECO's rebalance manager to route rebalances through the fake exchange, then forced a rebalance that swapped all real underlying tokens for the fake ones. The real tokens went to the attacker's wallet and were swapped for MATIC.
  4. Amun says the attacker then minted 80 billion tokens and sold them on all available DEXs, emptying the liquidity pools.
  5. The same sequence was run against DFI. Total loss of underlying funds was about $300,000.

Protocol details

Classification Protocol Logic / Access Control
Protocol Type Indexes
Protocol links @amun

Security review history

Understand the attack patterns

Build your security review skills

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