How I got hacked, lost crypto and what it says about Apple’s security. Part 1
This week I was hacked. The attacker gained access to several of my accounts (Apple Cloud, Yahoo, Gmail, Telegram), found private keys, mnemonic seeds and drained several thousand dollars worth of crypto.
In this article, I’ll try to recreate the exact timeline of events, the damage, commentary on how this could have happened. I’ll also talk about a few moments that I don’t yet understand (mostly around 2FA) and hope my readers will be able to help me out here. I’ll also share a few tips about what you can do today to protect yourself from the attack that happened to me.
The events took place on Sunday morning, October 4th, 2020. Between around 9am and 11am, GMT+8. I was not home, far away from my two MacBooks. They were in the hibernate mode, lids closed, at home. The night before I finished setting up my brand new 2020 MacBook Pro. I received my new (certified refurbished, directly from Apple) MacBook on Friday. Saturday ~8pm I finished setting it up. Sunday, ~9:14am the attack started. I suddenly started receiving 2FA SMS notifications on my phone. Here it goes:
9:14am - I receive a notification of a new login into my Telegram. Prior to that I did not receive any 2FA code from Telegram over SMS, nor in Telegram’s chat history. (Did the attacker delete the code? Telegram doesn’t send you confirmation SMS codes if you are logged in on several devices and instead send the code within the app.
9.15am - Yahoo 2FA SMS. Again, not something I requested.
9.18am - Immediately after, i’m getting this login confirmation email from Yahoo. “We sent a code to
9.18am - the password was changed:
9.20am - Sing in into my old gmail account (Google Apps)
And immediately after, the attacker synched their Chrome with the account. Which means all the passwords that were stored in the Googles Password Manager of that account.
9.28am - Apple 2FA call. I picked it up. The robo-voice pronounced my 2FA and dropped the line.
9.29am - Followed by a login confirmation email from Apple
By 9.40am I managed to reach home. Stress is through the roof + sweaty after the ~3hour morning cycle. I’m opening my laptops, trying to understand what’s going on. Started changing more passwords. When suddenly:
10:09am - I’m receiving first notification that some tokens moved from one of my wallets.
These wallets drained the funds:
A few unauthorized transactions, draining tokens and crypto:
I’m not just stressed anymore. I’m shaking.
I had some old hot wallets stored in my iCloud. Some as a file. Some as a password protected note in Apple Notes. I’m quickly realizing that the issue got escalated to a whole new level. And a few seconds later I realized that I should start withdrawing funds myself from all the wallets that ever touched my iCloud. Transferring crypto is stressful on its one - there is always a risk of sending money to a wrong address, and losing them forever… Doing transfers under pressure, where every second counts, is the next level. I did my best. “Do I transfer all the tokens first? Or all the ether? What’s more valuable? What will the hacker go after first?” — a thousand thoughts race through my head.
Tuesday - I’m trying to investigate what happened. Just in case someone physically accessed my laptops, I decided to look into logs.
|pmset -g log||grep -e “ Sleep “ -e “ Wake “|
gave me a nice output of when both computers were on and off.
I didn’t notice any activity during the hours I was hacked. My laptops were asleep. Lids were closed. I do recall some battery activity, but I didn’t find it meaningful. Most macs wake up for a few seconds or ms to perform some maintenance activity.
Wednesday night - my old laptop is acting a bit slow (as usual), and i’ve decided to restart it. When it started booting up, it went into “Installation” mode. That while screen when mac has a major OS X update. I don’t remember any new OS X versions coming out, or any updated pending installation… So I became suspicious. After waiting for a few minutes for installation to complete, it wasn’t making much progress. I thought that, given the recent hack, I better not risk it. Last thing I want is for some malware to format my hard drive. So I force-shut down my mac. And took it to the Apple store the next day.
Thursday - I got to the Apple Store. I’m quite surprised that no one at Apple seems to understand how to even work with the CLI, once rebooting the computer. The Genius that was assisting me, said that i’m more knowledgeable than he was after 10 min of the conversation. (He was very nice though.) Not what I wanted to hear at that moment. Anywho. We boot up the machine with an external hard drive. I moved my important files out. And we proceed to booting my laptop up again. After 20 min or so, my laptop finally starts. Nothing was formatted. I was happy… for a moment.
Apple Genius managed to find a bit more Senior Genius and handed over the case to him. Just by a coincidence that guy had a background in cyber forensics. However, Apple retail store policies didn’t allow him to share his own opinion or interact with my machines beyond a basic “let’s re-install the OS” level.
Takeaways and mistakes to avoid:
- if you are storing private keys or mnemonics in your Apple Notes or iCloud - they are up for grabs. Even if you have 2FA. And even if your Notes are password protected. Use a hardware wallet for everything, no matter how much crypto you hodl.
- Do set up Telegram 2FA password now. If your Telegram gets hacked and you don’t have a password set - hackers will set it for you. And the only way to reset it would be to reset your whole account.
- Make sure you don’t have any password reuse. Not even partial. Have unique passwords for every new service you sign up for. Store them ina password manager. Don’t store your main email in the password manager. Remember some main master passwords and don’t reuse them either.
- Do not save passwords in your Chrome. Or, if you do, make sure your Google account has multiple levels of 2FA, and SMS is not one of them.
- iCloud has limited security options. Consider using Google Voice number as your trusted 2FA.
- When you leave your laptop unattended, or close it for the night, make sure to turn WiFi off. Or, better, shut it down completely. Closing the lid and putting it in the hibernate mode is not enough. Your laptop can wake up at any time, even when the lid is close and remote code can be executed.
In Part 2 I’ll write about incident response, forensics, chain analysis, and hopefully an identification of the attacker. I’ve reached out to a few friends from cyber sec and blockchain space to help me out and piece together the puzzle. If you’d like to participate, help analyse the attack and (hopefully) identify the attacker please contact me on Twitter (https://twitter.com/ksaitor)
Thank you guys for providing feedback and helping bring more clarity to this incident!