OAK — OnChain Attack Knowledge

Worked example · 2024-05

Gala Games — minter-role key compromised by a third-party contractor, 5 billion GALA minted — GALA token / Ethereum — 2024-05-20

Loss
5 billion GALA were minted without authorisation on 2024-05-20 (Gala incident report). Gala's first notice put the transfer at $200 million worth of GALA (Gala update), and Halborn gives the same estimate (Halborn). The attacker sold part of the supply for ETH; Gala states the attacker sent 5,912 ETH back to the main Gala Finance cold wallet, and Gala's May 21 update says more than $20M in ETH was returned (Gala incident report, Gala update). The total ETH the attacker received from sales is not stated in the pages opened.
OAK Techniques observed
OAK-T11.014 (Operator Privileged-Key Compromise — primary). Gala's incident report says a third-party contractor compromised the private key of an address with a minter role on the Ethereum side of GALA and minted 5 billion tokens, and that the contract itself was never breached (Gala incident report). Halborn describes poor access control over the private key of one of the protocol's privileged minter accounts, which it says had been dormant for approximately six months (Halborn). How the key was obtained is undisclosed. See techniques/T11.014-operator-privileged-key-compromise.md.
Attribution
unattributed. Gala says the actor was a third-party contractor, identified "through usage patterns in other activities and within our network", and that these patterns were previously connected to a smaller exploit (Gala incident report). No person is named in the sources opened, and none is named here. The case was referred to the DoJ and FBI (Gala incident report). Halborn does not confirm an insider attack (Halborn).
Key teaching point
A minter key that one person, or one contractor, can hold alone is a way to print supply; put minting behind a multi-signature and remove access for contractors and dormant accounts. Halborn states that entrusting a single private key with managing privileged access is dangerous and recommends multi-signature wallets (Halborn). Gala's own fix list includes an internal review of contractor access, moving from user-based IAM to Okta SAML with Identity Center, and a redesign of AWS and RBAC permissions (Gala incident report). What contained the damage was a blocklist feature added a year earlier (Halborn), which Gala says froze about 90% of the minted GALA within 45 minutes (Gala update).

Summary

On 2024-05-20 a third-party contractor of Blockchain Game Partners Inc. (Gala) compromised the private key of a minter-role address on the Ethereum side of GALA and minted 5 billion tokens (Gala incident report). Gala says its monitoring flagged the transfer on the afternoon of May 20, it activated the blocklist, and within 45 minutes about 90% of the minted GALA was locked (Gala update). Halborn adds that the attacker traded GALA for ETH in batches of up to 100 ETH, that the blocklist then caught the attacker's address, and that the attacker moved tokens back to the compromised minter account (Halborn).

After Gala said publicly that it knew the actor's identity, the actor sent 5,912 ETH to the Gala Finance cold wallet; Gala bridged it into GalaChain, bought GALA with it and burned it, and made a further burn from Gala's own wallets to cover the amount that price movement left uncovered (Gala incident report). After a vote of the Founder's Node operators, the 5 billion illegally minted tokens were burned by temporarily upgrading the contract with a burnExploitedTokens() function with the exploiter's address hardcoded and an admin-only modifier, calling it from the multi-sig, and upgrading again to remove it, all in a single block (Gala incident report).

Timeline (UTC)

Stages: Entry, Take, Money, Response. No source opened gives times of day; the 45-minute figure is Gala's.

When What happened OAK
Before 2024-05-20 (undisclosed) A third-party contractor obtains the private key of an address with a minter role; how is undisclosed (Gala incident report). Halborn says the account had been dormant for approximately six months (Halborn). T11.014
2024-05-20 5 billion GALA are minted to a personal account (Gala incident report, Halborn). The mint transaction hash and the attacker's address are not printed in the pages opened. T11.014
2024-05-20 The attacker trades GALA for ETH in batches of up to 100 ETH (Halborn). Which venues were used is undisclosed. undisclosed
2024-05-20, within 45 minutes Gala detects the transfer and blocklists the wallet; about 90% of the minted GALA is locked (Gala update). Halborn says the team identified the attack within a couple of hours and that the attacker moved the tokens back to the compromised minter account (Halborn). The two sources differ on the timing. response
By 2024-05-21 Gala reports more than $20M in ETH returned and federal law enforcement contacted (Gala update). response
After the public statement (date undisclosed) The actor sends 5,912 ETH to the Gala Finance cold wallet; Gala bridges it to GalaChain, buys GALA and burns it: 0xfe786355f9e36c490c1f73922cc4e623ff0cffe2e1a3bbb3d32483a0f64dc699, 0xaa6eb41d0cea3ec1c3638db1b6fe980847e7557912592ca5527d19a4008a8781, 0xa0cdf5aaa7fe7360f150879b3347ef287963148c9f6c7df3ff2230bf7e2b1e52, 0xf89a03cf5f9c5fc9c5357bd6cb0a0f5d92bbd69f00079f3af3bedc1099d68487, 0x6bf1f633f4de55e01d07c43df5b1bbcf073a87caa36656ba4e7719e86a9069b4, 0x3d1098c85c727ef94fd5da41247b97fcdf6d98209cc861ac301cd99ec6a0371f, 0x1541280aa8239f6c4cc9f003df7f381c87bb30d52a99d7ba86c7e6aa9ded67c6 (Gala incident report). response
Same report (date undisclosed) A further burn from Gala's wallets covers the remainder: 0xff70c10bac7e81bd99f1e04f5c64b1a572782c00763822518c77898a7ad90dc1 (Gala incident report). The amount is not given. response
After the Founder's Node vote (date undisclosed) The minted supply is burned through a temporary burnExploitedTokens() upgrade, execution and removal in a single block: 0x59d87edc805a83f1c6397f053dc3ffe159e3a752192bf709aac21d9d6bf71fb5 (Gala incident report). response
2024-05-27 Gala publishes the incident report, with the contractor-access review and security changes (Gala incident report). response

Key addresses: the minter-role address, the attacker's address and the Gala Finance cold wallet are not printed in full on any page opened. Only the transactions above are.

Root-cause evidence

Public references

Techniques demonstrated (1)

More incidents