AARK (Aark Digital) Hack

Reported loss $1.9M
Arbitrum
Decimal Miscalculation

What happened

On October 25, 2024, Aark Digital, a perpetuals DEX on Arbitrum, lost 1,499,841 USDC and 159.09 ETH, about $1.9 million, after an incorrect balance update inflated one account's value by a factor of about 10^18. Aark first reported the loss as 1,386,085.5 USDC and 24.143 ETH and revised it upward on October 28. The stolen funds were about 67% of all deposits, including futures collateral and LP funds.

The bug came from an operational fix rather than a flaw in a deployed contract. After a GM token burn failed with a callback error, which SlowMist attributes to a change in a third-party contract, Aark upgraded its contracts, delisted GM, and ran a script to convert users' GM balances to USDC. During that run one user's USD value jumped from 0.498942 to 498,942 × 10^12, and the attacker withdrew against it. Aark offered a 15% bounty for the funds' return, set up a recovery bounty on Arkham, and worked with exchanges including Binance and with law enforcement. It traced the funds to three wallets, suspended team salaries, and said it could refund 33% of affected users' deposits, with further monthly distributions as funds were recovered.

How it happened

  1. A routine burn of GM tokens failed with a callback error, which SlowMist attributes to a modification in the third-party contract.
  2. To unwind GM positions, Aark upgraded its contracts, delisted GM and ran a script that converted each holder's GM to USDC. The script took the target user, amount, token address and decimals from event data.
  3. The conversion wrote a wrong balance for one account: its USD value went from 0.498942 to 498,942 × 10^12, roughly 10^18 times too large.
  4. The attacker withdrew against the inflated balance, taking 1,499,841 USDC and 159.09 ETH, and split the proceeds across three wallets: 0x58f87E302371550f7F525aFD96086731D05dd582, 0x64aD619e56611148A19Bb8f89EC7251e0Df791Bd and 0xCF87FCa11DF4185760B92056c68f3e52ee54bE33.

Protocol details

Classification Token & Share Accounting
Protocol Type DeFi Protocol
Implementation language Solidity

Build your security review skills

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