MyAlgo Hack

Reported loss $9.2M
Algorand
Cloudflare Key Compromised

What happened

Around 25 accounts using MyAlgo, a third-party web wallet for Algorand, were drained between February 19 and 21, 2023. Reported losses were 19.5 million ALGO and 3.5 million USDC plus other assets, valued at about $9.2 million by ZachXBT and TRM Labs and about $9.6 million by CoinDesk. All victims kept mnemonic wallets inside MyAlgo. The Algorand Foundation said the Algorand protocol and SDK were not at fault, and MyAlgo told users to withdraw funds from mnemonic wallets. ChangeNOW froze about $1.5 million of related funds.

MyAlgo's investigation, published in April 2023, concluded that an attacker used a CDN API key to put a malicious proxy in front of wallet.myalgo.com. The proxy served a modified wallet app that captured users' passwords and secret phrases. MyAlgo found no vulnerability in its codebase, and it could not determine how the key was obtained.

How it happened

  1. The attacker obtained an API key for MyAlgo's CDN account. MyAlgo's audit logs showed no creation of such a key, and how it was obtained remains unknown.
  2. On January 21, 2023, the attacker used the CDN to insert malicious code between wallet.myalgo.com and its users, targeting a specific MyAlgo release. The proxy fetched the real app and served users a modified copy.
  3. When victims unlocked mnemonic wallets on desktop, the modified code sent their passwords and secret phrases to the attacker's server.
  4. MyAlgo's mid-February release stopped the injection, but the attacker already held the stolen keys.
  5. Between February 19 and 21, 2023, the attacker drained about 25 accounts. D13 found the thefts were ordinary single-signature transfers clustered within less than six hours, with no rekeying, logic signatures or protocol flaw involved.

Protocol details

Classification Infrastructure / Frontend & Infrastructure
Protocol Type Wallet
Implementation language Javascript

Build your security review skills

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