by dboreham · 4y ago · 0 comments
Since 4 of the 5 compromised keys were under the control of one organization, it seems reasonable to wonder about an inside job.
There's good commentary on Axie Infinity (the Sky Mavis game which got hacked) and links to more detailed explanations here.
https://web3isgoinggreat.com/?id=2022-03-29-0
(particularly by Molly White the owner of the web3isgoinggreat https://blog.mollywhite.net/axie-hack/ )
For clarity: I'm interested in answers to questions such as : how exactly did the attacker gain control of 5 validator private keys? The validators were running a vulnerable version of the Linux kernel, and the private keys were sitting in the filesystem, for example, could be an answer. And: what exactly is the mumble about RPC about? Did they build some sort of master key into the bridge contract, then left that key sitting on a machine with no root password?
And it appears the final key was also under the control of the same organization temporarily.
I don't have more details because I don't think they've released any, but fundamentally, that appears to be the critical vulnerability which made this hack almost inevitable.
They began with a system that was extremely carefully designed to be decentralized (multiple signers) and then they centralized it.
Subsequently, the hacker only had to attack one organization, instead of five
Incompetence? Inside job? Or why not both?
- The bridge was controlled by a 5 of 9 validator set (ie. 5 of the 9 nodes needed to agree to withdrawals and deposits between Ethereum and Ronin)
- 4 of these nodes were run by Sky Mavis themselves (a bad idea), those were compromised because their internal infra was compromised in some traditional social engineering attack (ie. not blockchain related, just a normal cloud infra compromise)
- 1 of the nodes was run by the community-operated Axie DAO. However, that node had whitelisted Sky Mavis' cloud infrastructure a while back to allow them to run transactions through Axie DAO's node in order to use Axie DAO treasury funds to pay gas on user's behalf (to help with onboarding into Ronin).
This was discontinued, but they forgot to remove the whitelist (another critical mistake), so the hackers were able to use that Axie DAO node for the final 5th verification needed to steal bridge funds (because they had compromised the whitelisted Sky Mavis cloud infra).
TLDR: A traditional cloud infra compromise via unspecified social engineering attack, compounded by an insufficiently decentralized validator set allowing the bridge funds to be "withdrawn" to hacker's wallets by forging fake signatures. This is why decentralization is important in blockchain infra, and they learned the hardest way possible.
Hope that helps!
The whitelisting wasn't a secret. Axie DAO is an open community, so it's easy to have known the whitelist existed and was left in. It was a very bad idea, but what can I say, people get cocky and make mistakes. The only difference in crypto is that it has a built-in bug bounty of losing stored funds like this, so you have to take security incredibly seriously, and they didn't.
Why? The concerns (how to steal the money, how to launder/tumble it) seem orthogonal.
Random question: is there a statute of limitations on this type of theft? If so, insiders would be highly incented to steal 600M today and then wait X years before using that one-time, anonymous wallet.
Unless all swap contracts are updated to somehow keep track of any funds associated with the hackers original address, washing up those funds it's just a matter of time, no?