2019年5月20日星期一

Sim card hack

The Most Expensive Lesson Of My Life: Details of SIM port hack

I lost north of $100,000 last Wednesday. It evaporated over a 24-hour time span in a “SIM port attack” that drained my Coinbase account. It has been four days since the incident and I’m gutted. I have zero appetite; my sleep is restless; I am awash in feelings of anxiety, remorse, and embarrassment.
This was the single most expensive lesson of my life and I want to share my experience + lessons learned with as many people as possible. My goal is to increase awareness about these types of attacks and to motivate you to increase the security of your online identity.
This is still very raw (I haven’t even told my family yet); please reserve judgement with regards to the naive security practices laid out in this post.

Details Of The Attack

You might be asking yourself, what exactly is a “SIM port attack”? In order to describe the attack, let’s examine a typical online identity. The diagram below should look familiar to most people.
Most of us have a primary email account that is connected to A LOT of other online accounts. Most of us also have a mobile device that can be used to recover your email password should you ever forget it.

Authorized SIM Porting

The ability to port your SIM card to another device is a service that mobile carriers provide to their customers. It allows a customer to request their phone number be transferred to a new device. In most cases, this is a perfectly legitimate request; this happens when we upgrade to a new phone, switch mobile carries, etc.

A SIM Port Attack

A “SIM port attack”, however, is a malicious port performed by an unauthorized source — the attacker. The attacker ports your SIM card to a phone that they control. The attacker then initiates the password reset flow on your email account. A verification code is sent from your email provider to your phone number — which is intercepted by the attacker, as they now control your SIM card. The diagram below outlines the attack step by step.
Once the attacker controls your primary email account, they begin to move laterally across any lucrative online services that you manage via that email address (bank accounts, social media accounts, etc.). If they’re terribly malicious, they can even lock you out of your own accounts with little recourse to reclaim them.
Take a moment to consider the sheer volume of sensitive information tied to a single Google Account:
  • Your address, date of birth, and other private, personally identifiable information
  • Access to potentially compromising photos of you (and/or your partner)
  • Access to your calendar and upcoming travel dates
  • Access to your private emails, documents, and search history
  • Access to your personal contacts and their private information as well as relation to you
  • Access to all other online services for which your primary email address was used as the authentication source

Timeline of Events

With a better grasp on how such an attack is carried out and the scope of what’s at stake, let’s dive into the timeline of this specific attack. I want to paint a picture of how the attack was executed, how I experienced these events, and what you can do differently to protect yourself should you experience similar symptoms.
The timeline is broken out into four sections:
  • What I experienced: The events as experienced from my point of view — if you encounter something similar, these are clear indicators that you are likely under attack.
  • What the attacker was doing: The underlying tactics that the hacker used to work their way into my Coinbase account.
  • My perceived threat level: The threat level I attributed to these events as they were happening.
  • The threat level I should have had: In hindsight, the threat level I wish I would have had as these events unfolded.

Lessons Learned + Recommendations

This was the single most expensive lesson of my life. I lost a meaningful percentage of net worth in a 24 hour period; irreversibly. Below are a few pieces of advice I would encourage others use to better protect themselves:
  • Use A Hardware Wallet To Secure Your Crypto: Move your crypto to a hardware wallet/offline storage/multi-sig wallet whenever you are nottransacting. Do not leave funds idle on exchanges or fiat on-ramps. I treated Coinbase like a bank account and you have absolutely zero recourse in the case of an attack. I knew the risks better than most, but never thought something like this could happen to me. I intensely regret not taking stronger security measures with my crypto.
  • SMS Based 2FA Is Not Enough: Regardless of the assets and/or identities you are trying to protect online, upgrade to hardware based security (ie: something physical that an attacker would have to physically obtain in order to perform an attack). While Google Authenticator and Authy can turn your mobile device into a piece of hardware based security, I would advise going a step further. Pick up a YubiKey that you physically control and cannot be spoofed.
  • Reduce Your Online Footprint: Reduce the urge to needlessly share personally identifiable information (birthdate, location, pictures with geolocation data embedded in them, etc.) online. All of that quasi publicly available data can be turned against you in the event of an attack.
  • Google Voice 2FA: In some cases, an online service will not support hardware-based 2FA (they rely on weaker SMS based 2FA). In these cases, you might be better off creating a Google Voice phone number (which cannot be SIM ported) and using that has your 2-Factor Auth recovery number.
  • Create a Secondary Email Address: Instead of binding everything to a single email address, create a secondary address for your critical online identities (bank accounts, social media accounts, crypto exchanges, etc.). Do not use this email address for anything else and keep it private. Back up that address with some form of hardware-based 2FA.
  • Offline Password Manager: Use a password manager for your passwords. Even better, use an offline password manager like Password Store. lrvick has an excellent comparison chart of various password managers as well as a vetted recommendation for the more technically inclined.

As for reader comments…

Given my naive security practices, I probably deserved to get hacked — I get it. It doesn’t make it hurt any less and passing judgement dilutes the thrust of this story, which is:
  • To let others know how easy it is to be victimized
  • To use that knowledge and the recommendations above to prioritize the security of your online identity
I can’t stop thinking about the small, easy things I could have done to protect myself along the way. My thoughts are clouded with what-ifs and alternate timelines.
However, those thoughts are juxtaposed with two overriding feelings — laziness and survival bias. I never took my online security that serious because I had never experienced an attack. And while I understood my risk profile, I was simply too lazy to secure my assets with the rigor they deserved.
I urge you to learn from these mistakes.

我生命中最昂贵的经验:SIM端口黑客的详细信息

上周三我输了10万美元。它在24小时的时间内在“SIM端口攻击”中消失,耗尽了我的Coinbase帐户。事件已经过去了四天,我被摧毁了。我没有胃口; 我的睡眠不安; 我充满了焦虑,懊悔和尴尬的感觉。
这是我生命中最昂贵的一课,我想与尽可能多的人分享我的经验+经验教训。我的目标是提高对这类攻击的认识,并激励您提高在线身份的安全性。
这仍然是非常原始的(我还没有告诉我的家人); 请保留对本文所述的天真安全措施的判断。

攻击的细节

您可能会问自己,究竟什么是“SIM端口攻击”?为了描述攻击,我们来看一下典型的在线身份。对于大多数人来说,下图应该看起来很熟悉。
我们大多数人都有一个主电子邮件帐户,该帐户与很多其他在线帐户相关联。我们大多数人还有一个移动设备,可以用来恢复您的电子邮件密码,如果你忘了它。

授权的SIM移植

将SIM卡移植到另一台设备的能力是移动运营商为其客户提供的服务。它允许客户请求将他们的电话号码转移到新设备。在大多数情况下,这是完全合法的要求; 当我们升级到新手机,切换移动手机等时会发生这种情况。

SIM端口攻击

但是,“SIM端口攻击”是由未经授权的来源(攻击者)执行的恶意端口。攻击者将您的 SIM卡移植到他们控制的手机上。然后,攻击者在您的电子邮件帐户上启动密码重置流程。验证码会从您的电子邮件提供商发送到您的电话号码 - 攻击者会截获该电话号码,因为他们现在控制您的SIM卡。下图逐步概述了攻击。
一旦攻击者控制了您的主电子邮件帐户,他们就会开始横向移动您通过该电子邮件地址(银行帐户,社交媒体帐户等)管理的任何利润丰厚的在线服务。如果他们非常恶意,他们甚至可以锁定你自己的帐户而几乎无法收回它们。
花点时间考虑与单个Google帐户绑定的大量敏感信息:
  • 您的地址,出生日期和其他私人,个人身份信息
  • 访问您(和/或您的合作伙伴)的潜在妥协照片
  • 访问您的日历和即将到来的旅行日期
  • 访问您的私人电子邮件,文档和搜索历史记录
  • 访问您的个人联系人及其私人信息以及与您的关系
  • 访问您的主电子邮件地址用作身份验证来源的所有其他在线服务

活动时间表

通过更好地掌握如何进行此类攻击以及所涉及的范围,让我们深入探讨此特定攻击的时间表。我想描绘一下攻击是如何被执行的,以及我是如何经历这些事件的,以及如果您遇到类似的症状,您可以做些什么来保护自己。
时间表分为四个部分:
  • 我所经历的:从我的观点来看所经历的事件 - 如果你遇到类似的事情,这些都是你可能受到攻击的明确指标。
  • 攻击者正在做什么:黑客用来进入我的Coinbase帐户的基本策略。
  • 我感知到的威胁级别:我在这些事件发生时将其归因于威胁级别。
  • 我应该拥有的威胁级别:事后看来,我希望在这些事件展开时我会拥有的威胁级别。

经验教训+建议

这是我生命中最昂贵的一课。我在24小时内失去了一个有意义的净值百分比; 不可逆的。以下是我鼓励其他人用来更好地保护自己的一些建议:
  • 使用硬件钱包,以确保您的加密:将您的密码到硬件钱包 /离线存储/ 多SIG钱包,只要你不交易。不要将资金闲置在交易所或法定进场。我将Coinbase视为银行账户,并且在发生攻击时你绝对没有追索权。我比大多数人更了解风险,但从未想过这样的事情会发生在我身上。我非常后悔没有采取加密安全措施。
  • 基于SMS的2FA还不够:无论您尝试在线保护的资产和/或身份如何,都要升级到基于硬件的安全性(即:攻击者为实施攻击而必须物理获取的物理内容)。虽然Google Authenticator和Authy可以将您的移动设备转变为基于硬件的安全性,但我建议您更进一步。拿起你实际控制的YubiKey,不能被欺骗。
  • 减少您的在线足迹:减少不必要地在线分享个人身份信息(出生日期,位置,嵌入其中的地理位置数据的图片等)的冲动。在发生攻击时,所有这些准公开数据都可以针对您。
  • Google Voice 2FA:在某些情况下,在线服务不支持基于硬件的2FA(它们依赖于较弱的基于SMS的2FA)。在这些情况下,您最好创建一个Google语音电话号码(无法通过SIM卡移植)并使用具有2-Factor Auth恢复号码的电话号码。
  • 创建辅助电子邮件地址:不是将所有内容绑定到单个电子邮件地址,而是为关键在线身份(银行帐户,社交媒体帐户,加密交换等)创建辅助地址。请勿将此电子邮件地址用于其他任何内容并将其保密。使用某种形式的基于硬件的2FA备份该地址。
  • 脱机密码管理器:使用密码管理器输入密码。更好的是,使用密码存储等脱机密码管理器。lrvick拥有各种密码管理器的优秀对比图表,以及针对更具技术倾向的审查建议。

至于读者评论......

鉴于我天真的安全实践,我可能应该被黑客攻击 - 我明白了。它不会让它受到任何伤害,并且通过判断会削弱这个故事的主旨,即:
  • 让别人知道受害是多么容易
  • 使用该知识和上述建议来优先考虑您的在线身份的安全性
我不禁想到我可以做的小而轻松的事情来保护自己。我的想法被假设和备用时间线所笼罩。
然而,这些想法与两种压倒一切的感觉并列 - 懒惰和生存偏见。我从来没有认真对待我的在线安全,因为我从未经历过攻击。虽然我了解自己的风险状况,但我只是懒得以他们应得的严谨来保护我的资产。
我恳请你们从这些错误中吸取教训。

没有评论:

发表评论