Trezor Fault Injection Whitehack

From Quadriga Initiative Cryptocurrency Hacks, Scams, and Frauds Repository
Jump to navigation Jump to search

Notice: This page is a new case study and some aspects have not been fully researched. Some sections may be incomplete or reflect inaccuracies present in initial sources. Please check the References at the bottom for further information and perform your own additional assessment. Please feel free to contribute by adding any missing information or sources you come across. If you are new here, please read General Tutorial on Wikis or Anatomy of a Case Study for help getting started.

Notice: This page contains sources which are not attributed to any text. The unattributed sources follow the initial description. Please assist by visiting each source, reviewing the content, and placing that reference next to any text it can be used to support. Feel free to add any information that you come across which isn't present already. Sources which don't contain any relevant information can be removed. Broken links can be replaced with versions from the Internet Archive. See General Tutorial on Wikis, Anatomy of a Case Study, and/or Citing Your Sources Guide for additional information. Thanks for your help!

Trezor

Early model Trezor hardware wallets were vulnerable to a fault injection attack, since they would put the PIN and key into RAM during the firmware update process. These wallets could be exploited if an adversary gained physical access to the wallet, since they could potentially trigger a firmware update and read the private key off the RAM. This was used to recover $2m worth of funds for a user who forgot their password to access their funds.

This is a global/international case not involving a specific country.[1][2][3][4][5][6][7][8][9][10][11][12]

About Trezor

[13][14]

"The safe place for your coins." "Store your coins with Trezor." "Hardware wallet is the safest way to manage & trade your cryptocurrencies."

About Reich and Friends

"In 2018, Reich along with a friend decided to spend $50,000 worth of Bitcoin on Theta tokens, which were valued at just 21 cents back then." "Initially, the tokens were held on a China-based exchange but within weeks after a broad crackdown on cryptocurrency by the Chinese government, they had to transfer everything to a hardware wallet."

"When an investor named Dan Reich wanted to withdraw his $50,000 Theta (THETA) investment from his wallet in 2018, he realized that he forgot the password of his Trezor One wallet at that exact time." "After deciding to cash out an original investment of roughly $50,000 in Theta in 2018, Dan Reich, an NYC-based entrepreneur, and his friend realized that they had lost the security PIN to the Trezor One on which the tokens were stored. After unsuccessfully trying to guess the security PIN 12 times, they decided to quit before the wallet automatically wiped itself after 16 incorrect guesses." "The user who entered the security password incorrectly 12 times stopped without the 16th incorrect entry. 16. Incorrect password entry, all assets are automatically deleted. However, the investment rose to $2 million over time, and Reich reached out to Kingpin on this issue."

The Reality

"Hacker Joe Grand, who lives in Portland and is also known as “Kingpin”, actually revealed everything with a YouTube video." "Joe explained he was able to access the PIN needed to get into the funds by using the fault injection attack- which changes the security of the microchips in the hardware to read the RAM."

What Happened

Hacker Joe Grand was able to break into a Trezor wallet and extract the cryptocurrency through a firmware upgrade.

Key Event Timeline - Trezor Fault Injection Whitehack
Date Event Description
January 18th, 2022 Main Event Expand this into a brief description of what happened and the impact. If multiple lines are necessary, add them here.
January 19th, 2022 8:07:52 AM MST Trezor Firmware Upgrades Announced Trezor announces new firmware updates[15]. This is later shared on Reddit[16]. TBD - likely unrelated to this.
January 24th, 2022 2:06:00 PM MST Joe Grand Sharing Tweet Joe Grand shares a tweet about their hacking of the Trezor[17].
January 24th, 2022 3:11:00 PM MST Trezor Confirms Vulnerability Fixed Trezor reports on Twitter that this vulnerability has already been fixed[18].
January 31st, 2022 8:51:00 AM MST Not A Concern For Current Users Trezor reports that the vulnerability was "fixed in 2017" and is "not a concern for current users"[19].

Technical Details

"I was contacted to hack a Trezor One hardware wallet and recover $2 million worth of cryptocurrency (in the form of THETA). Knowing that existing research was already out there for this device, it seemed like it would be a slam dunk. Little did I realize the project would turn into a roller coaster ride with over three months of experimentation, failures, successes, and heart-stopping moments. It reminded me that hacking is always unpredictable, exciting, and educational, no matter how long you've been doing it. In this case, the stakes were higher than normal: I only had one chance to get it right."

"The key to this hack was that during a firmware update, the Trezor One wallets temporarily move the PIN and key to RAM, only to later move them back to flash once the firmware is installed. Grand found that in the version of firmware installed on Reich’s wallet, this information was not moved but copied to the RAM, which means that if the hack fails and the RAM is erased, the information about the PIN and key would still be stored in flash."

"Kingpin managed to find the password after 12 weeks of work. In fact, the key to this hack was the software replacement of Trezor One. Grand noticed that a Trezor One software update had begun saving the PIN and keyword to the Trezor One’s RAM drive. Using what was then known as a fault injection attack, the hacker hacked the RAM drive and displayed the password there."

"We are basically causing misbehavior on the silicon chip inside the device in order to defeat security." "After using a fault injection attack — a technique that alters the voltage going to the chip — Grand was able to surpass the security the microcontrollers have to prevent hackers from reading RAM, and obtained the PIN needed to access the wallet and the funds." "And what ended up happening is that I was sitting here watching the computer screen and saw that I was able to defeat the security, the private information, the recovery seed, and the pin that I was going after popped up on the screen."

Total Amount Lost

The total amount at risk has been estimated at $2,000,000 USD. No funds were lost.

Immediate Reactions

TBD

Trezor Clarifying On Twitter

[18][19]

Hi, we just want to add that the vulnerability was already fixed, and all new devices are shipped with a fixed bootloader. Thanks to @saleemrash1d for his security audit. Learn more about our Security approach and responsible disclosure program here

Hi, this is an outdated exploit that is not a concern for current users and that we fixed in 2017, right after a report we received through our responsible disclosure program. The attack requires physical access to the device & there is no record of any funds being compromised.

Ultimate Outcome

TBD

"According to a recent tweet from Trezor, this vulnerability, which allows the pin to be read from the wallet’s RAM, is an older one that has already been fixed for newer devices." "Trezor, in a tweet, noted that this could only be possible for older ones of the hardware since it has been fixed in newer devices." "But unless drastic changes are introduced to the microcontroller, the fault injection attacks will still be posing a threat"

"Hi, we just want to add that the vulnerability was already fixed, and all new devices are shipped with a fixed bootloader. Thanks to @saleemrash1d for his security audit."

"Hi, this is an outdated exploit that is not a concern for current users and that we fixed in 2017, right after a report we received through our responsible disclosure program. The attack requires physical access to the device & there is no record of any funds being compromised."

"[T]he vulnerability was fixed by following a firmware update. If your device is updated to firmware 1.8.0 or higher, you are not affected. We suggest always updating Trezor to the latest version (you can check your current FW version in the devices settings section)."

Total Amount Recovered

There do not appear to have been any funds lost in this case.

Ongoing Developments

TBD

"[T]he vulnerability was fixed by following a firmware update. If your device is updated to firmware 1.8.0 or higher, you are not affected. We suggest always updating Trezor to the latest version (you can check your current FW version in the devices settings section)."

Individual Prevention Policies

This case does not appear to have resulted in a loss to any individual.

In general, it should be assumed that a sophisticated adversary with physical access to a hardware wallet could be able to extract the private key information. You can protect against this attack vector by storing wallets securely, setting up a multi-sig, or clearing the wallet data and only keeping the backup seed phrases stored securely. (Backup seed phrases offer more options for secure storage/transport as compared with a physical device.)

Store the majority of funds offline. By offline, it means that the private key and/or seed phrase is exclusively held by you and not connected to any networked device. Examples of offline storage include paper wallets (seed phrase or key written down and deleted from all electronic media), hardware wallets, steel wallet devices, etc...

For the full list of how to protect your funds as an individual, check our Prevention Policies for Individuals guide.

Platform Prevention Policies

This case does not appear to have resulted in a loss to any platform.

For the full list of how to protect your funds as a financial service, check our Prevention Policies for Platforms guide.

Regulatory Prevention Policies

It does not appear that any funds were lost in this case.

For the full list of regulatory policies that can prevent loss, check our Prevention Policies for Regulators guide.

References

  1. Portland Hacker Gets Access to Trezor Wallet, Recovers $2M Theta - CoinQuora (Mar 20, 2022)
  2. 2022 - Unhackable Trezor Wallet Officially Hacked: 2 Million "Lost" Coins Received! - News Text Area (Apr 4, 2022)
  3. Engineer hacks Trezor wallet, recovers $2M in 'lost' crypto (Apr 4, 2022)
  4. How I hacked a hardware crypto wallet and recovered $2 million - YouTube (Apr 4, 2022)
  5. How An Engineer Hacked A Trezor Wallet And Recovered $2M In Crypto (Apr 4, 2022)
  6. Trezor Wallet Has Been Hacked By Engineer | Digital Market News (Apr 4, 2022)
  7. Here’s How $2 Million Worth Of Theta Was Recovered From A Trezor Wallet (Apr 4, 2022)
  8. Asked To Please Restore Account, Kingpin Instead Find Weaknesses Trezor One Wallet (Jun 1, 2022)
  9. Trezor hacked (again) (Jun 1, 2022)
  10. Trezor hacked (again) (Jun 1, 2022)
  11. Hardware Hacker Rescues $2M in Crypto From Trezor Wallet - BeInCrypto (Jun 1, 2022)
  12. https://blog.trezor.io/trezor-suite-update-february-2022-d83615405781 (Jun 1, 2022)
  13. https://trezor.io/security/ (Feb 20, 2022)
  14. https://trezor.io/ (Feb 20, 2022)
  15. Trezor Suite and Trezor Model One Firmware updates January 2022 - Trezor Medium (Jul 18, 2023)
  16. Trezor Suite and Trezor Model One Firmware updates January 2022: TREZOR Reddit (Jun 1, 2022)
  17. Joe Grand - "That time I hacked a @Trezor and recovered $2 million..." - Twitter (Apr 4, 2022)
  18. 18.0 18.1 Trezor - "Hi, we just want to add that the vulnerability was already fixed, and all new devices are shipped with a fixed bootloader. thanks to @saleemrash1d for his security audit. Learn more about our Security approach and responsible disclosure program here" - Twitter (Apr 4, 2022)
  19. 19.0 19.1 Trezor - "Hi, this is an outdated exploit that is not a concern for current users and that we fixed in 2017, right after a report we received through our responsible disclosure program. The attack requires physical access to the device & there is no record of any funds being compromised." - Twitter (Apr 4, 2022)

Cite error: <ref> tag with name "mytokenwallettwitter-7548" defined in <references> is not used in prior text.