Recently, I had the exciting opportunity to get my greedy hands on a BitBox 1 hardware wallet—a dream come true for any wallet recovery service. Recovering funds from a hardware wallet is both a challenge and a milestone. Full of anticipation, I met the client at a local coffee shop. The scenario was more complex than expected: the client neither recalled the password nor knew the Bitcoin wallet address!

Within an hour, we managed to recover access to one of his old blockchain.info (now blockchain.com) wallets. While this wallet didn’t show any transactions to the BitBox 1, it did offer valuable hints about possible password fragments. Over a few cups of coffee, we discussed every detail the customer could recall, collected the wallet’s SD backup, and then parted ways. Fast-forward one year, as the Bitcoin bear market provided me with time to tackle this tough case, I discovered just how formidable the BitBox 1 security really is. Shift Crypto—the creators of BitBox 1—are serious about wallet security. Recovering Bitcoin from this wallet put my perseverance to the test. But guess what, ultimately, I succeeded

BitBox 1 Hardware Wallet

Implementing virtual BitBox 1 in Python

When I looked up the encryption of the BitBox 1, I found that the BitBox 1 uses PBKDF2 hashing and key stretching for its encryption. PBKDF2 is resistant to dictionary and rainbow table attacks, but computationally relatively weak. Easy enough I thought, oh boy, I was wrong.

After contacting Shift Crypto, it became quickly clear that everything on BitBox 1 was customized. They sent me a link to their BitBox 1 restore from backup tool. Although this tool allows a user to try and recover a wallet using a seed backup and password, it is incredibly slow and required manual input. In order to recover the wallet, we needed a lightning fast implementation to brute force parts of the password. I start to read up on their JavaScript code and implement a much faster implementation in Python. After multiple rounds of optimization, it turned out my implementation was around 1000-10.000 times faster than the JavaScript recovery code. After reaching out to Shift Crypto, I learned everything about BitBox 1 was custom. They employed BIP38 password-protected mnemonics (BIP39) with 2,048 rounds of PBKDF2 hashing, followed by another 20,480 rounds with a custom salt—totaling 41,943,040 rounds of PBKDF2!

Since the customer did not know the address or the derivation type of the wallet, I had to virtually implement wallet key derivation for BIP44, BIP49 and BIP84 wallets. That had to be all right? It could not get much harder than that? Oops, wrong again.

It turned out that BitBox 1 wallets also had a custom legacy hidden wallet feature that involved swapping the order of bytes in their key derivation, adding yet another derivation type for me to implement. Without knowing the address, this means that for each password, I had to generate four types of virtual wallets and their addresses and to check whether each address exists on the Bitcoin blockchain.
After a month of dedicated work and checking 3 billion addresses, I finally found the right one! The client was astounded when I contacted them after a year and deeply grateful. This experience taught me a few key lessons:

  • Recovering funds from a hardware wallet is extremely challenging.
  • Shift Crypto provides excellent support and robust security.
  • Bear markets are the perfect time for development and problem-solving.

Shift Crypto went above and beyond, helping their customer by sharing security insights and even sending a free BitBox 1, showcasing remarkable customer service. Now, I hope I never have to recover a BitBox 2—it’s even more secure than BitBox 1 and nearly impossible to crack. On the upside, I wouldn’t hesitate to use a BitBox 2 for my own BTC, knowing firsthand how outstanding their support and security measures are.

This story highlights the importance of using secure hardware wallets and working with companies that are committed to customer service and security. BitBox 1 and especially the BitBox 2 with its beefed-up security and open-source ethos are in my opinion a great choice for safeguarding your Bitcoin.