Research
Timechain
Search Donate
Sponsors
Cake Wallet, private Bitcoin and Monero walletSideShift.ai, no-signup crypto exchangeOrangeRock, non-custodial bitcoin spot and perps tradingBraiins Hashpower, buy and sell Bitcoin hashrateLayer Two Labs, drivechains for Bitcoin
S8 · E6 · 2:21:18

Lazy Ninja on Hacking Hardware Wallets (S8 E6 Full Article)

25 Apr 2021 · by Vlad Costea · 6 min read
Published at block 680,496
Cover art for S8 E6, Lazy Ninja on Hacking Hardware Wallets
MP3 (194 MB)

The audio keeps playing while you browse the site.

Read the transcript21,317 words, every line links to the minute it was said

Ask this episode

Embed this episode

Paste this on your site or blog. It is a small player that streams from here: no trackers, no cookies, no ads.

Preview the player

Lazy Ninja is the pseudonymous hardware wallet hacker who found vulnerabilities in the Coldcard and the BitBox02 that other experts had missed. It isn't his full-time job. "It's not my career," he told me, "but if wallets paid significantly more, I would spend a whole lot more time doing this."

We first recorded together in December 2019, when there were fewer hardware wallets around. For Season 8, the hardware wallet season, I wanted his take on everything that had happened since. It became a long conversation about chips, passphrases, multisig, metal plates and the incentives behind security research. The original show notes have the short version.

Tropic Square and Verifying Your Device

I asked every guest this season about Tropic Square, the open source secure chip project from the Trezor team. Lazy Ninja was excited but cautious. "It's a really huge undertaking to develop a piece of silicon like that as a relatively small company."

He had a wish for chip makers. When you receive a device, "you don't actually know what code's on" it, even if the project has an open source repo and deterministic builds. He would love "a chip-level native way to get a hash of the image on the chip," so users could check the firmware themselves and mitigate supply chain attacks.

He had also reviewed the Cobo Vault and liked its device verification and interface. "I'm sort of a sucker for user interface," he said, because "good user interfaces help encourage people to use best security practices."

The Passphrase

The passphrase came up again and again. "It's a tough thing for most people to get used to," but "I really do think passphrase is an important security layer in hardware wallets." It gives you "the ability to have a single-sig device that's effectively a multisig device."

His preferred setup: "a strong passphrase and then also store that separate, so you effectively have a two-of-two multisig on your seed." You can also use passphrases to create separate wallets, like a spending wallet and a cold wallet.

How He Broke the Coldcard Mk3

The Coldcard, the BitBox02 and the Passport all use the ATECC608 secure chip. Lazy Ninja explained that it's a fixed-function device, "just a storage mechanism with crypto engines," unlike the programmable secure element in a Ledger.

The Coldcard was designed so that even a fully backdoored secure element wouldn't expose your seed. But when a secure element vulnerability became public, he got suspicious and looked closer. "They forgot to protect the PIN login to the device in the same way." He sent a chip to a lab with a known attack on the 608, and with the values it returned, he could "replace it with my own login, and then be able to log into the device."

The fix was small. "It's actually like a one line of code fix." And yes, he was paid. "I did get paid a bounty for this bug I found, just full disclosure there."

Air-Gapped PCs Are Hardware Wallets Too

He tried to calm one of the louder debates on Twitter. "An air gap PC is no different than a hardware wallet. There's just differences in complexity." With a PC, you trust "this giant operating system and all the hundreds or thousands of programs" in it. A hardware wallet is simple enough that there is "actually hope" of verifying it.

He described an attack that works over any air gap. Signatures include random data, so malicious firmware can keep re-signing until a byte of the signature leaks a byte of your seed. It's slow, "but this attack can be carried out over a long period of time and ultimately pull out any information you want."

The only real benefit of a PC, in his view, is privacy: you can buy a laptop and nobody knows it's for Bitcoin. But hyperfocusing on that one risk "is sort of not being mentally honest with yourself."

Why He's Not a Multisig Fan

"I'm generally an anti-multisig guy. I'm really sort of an outlier there." He thinks "most people think they're getting more out of a multisig in Bitcoin than they actually are." You can get geographic distribution with single-sig by splitting a 24-word seed into 12 and 12, or storing your seed and passphrase in different places.

He admitted the one thing true multisig gives you: "true immunity to an exploit on your single device," if you use multiple devices. But multisig means backing up more material, and "as soon as you start talking about putting redeem scripts on USB drives and things like that, I just get a little uneasy."

He applied the same reasoning to the air-gapped multisig setups popular at the time. If all the keys live on one PC, a compromised machine can still corrupt every key. What you gain is robustness against failed media, which he thinks metal plates already give you.

Pirate Treasure on Metal Plates

This was my favorite part. With single-sig and a passphrase, "it is just trivial to put that information onto metal plates." "You can literally go bury your Bitcoin in the ground like a pirate treasure." Someone could dig up your plates in a few hundred years and recover the coins.

He also warned about the most common mistake. People put a strong PIN on the device and "put their plates in the next drawer next to it," when "the plates are sitting right next to it."

Plan for Your Heirs

Lazy Ninja takes inheritance seriously. "This isn't just money to buy Lambos with for you. This is generational money that you're trying to create and protect." Complex schemes with maps and buried keys can backfire. "90% of the time, it's not going to be a fancy hack on your device that's going to steal your money." He even told the funny story of how his wife finally found out how much bitcoin they hold: he had a running bet on the price at which she would finally ask about it, and he called the bet at 60k.

Bug Bounties and Incentives

He was honest about the game theory of finding bugs. He doesn't steal, but he thinks about the trade-off: what if instead of disclosing a bug, he offered to unlock wallets for desperate owners who lost a backup? That could pay "five-figure number potentially," but it's "a theoretical payoff, maybe nobody ever calls me, versus an immediate payoff if I go report the bug." His conclusion: wallets need "enough incentive to get enough eyes on your products."

On the Passport, which builds on Coldcard's open source code, he was generous. "I don't think they did anything wrong." They "made substantive architecture advances," which is "exactly what this type of stuff was meant for." The episode also covers how Coldcard changed its licensing afterwards.

CoinJoin and Holding

Lazy Ninja admitted the Wasabi and Samourai debate frustrated him, because it became "more personal and angry" instead of being about trade-offs. His CoinJoin advice was simple. "You should be CoinJoining." Pick an implementation, "just do the CoinJoin one time," and keep remixing if you want.

He also learned the hard way not to trade. During the 2008 crash, he got scared out of a position and lost "a ton of money," when sticking to his plan would have made "like 10x that amount." Now he just holds. And he was hopeful about what was coming: "I'm really excited, you know, about Taproot coming out and then the DLCs." Taproot activated later that year, in November 2021.

What Makes This Episode Worth Listening To

If you hold bitcoin on a hardware wallet, this is one of the most useful episodes I've recorded. Lazy Ninja's advice is practical: "single-sig, metal, 24-word seed, metal plates, passphrase also on metal."

You can read the full transcript, the original show notes, or visit Lazy Ninja's guest page.

Listen to Lazy Ninja on Spotify, Apple Podcasts, and More

Time stamps:

  1. 00:03:28– Tropic Square
  2. 00:05:33– Hashing the firmware image
  3. 00:08:55– Reviewing the Cobo Vault
  4. 00:09:54– Why passphrases matter
  5. 00:11:59– A two-of-two on your seed
  6. 00:16:37– A fixed-function secure chip
  7. 00:22:38– Breaking the Coldcard Mk3 PIN
  8. 00:23:51– Sending the chip to a lab
  9. 00:28:28– A frustrating debate
  10. 00:29:15– What is an air-gapped PC?
  11. 00:34:20– Leaking a seed through signatures
  12. 00:36:48– The only benefit of a PC
  13. 00:44:01– An anti-multisig guy
  14. 00:46:29– What multisig really gives you
  15. 00:48:05– Redeem scripts and USB drives
  16. 00:54:25– Air-gapped multisig setups
  17. 00:59:19– Pirate treasure
  18. 01:09:50– You should be CoinJoining
  19. 01:17:05– His number one recommendation
  20. 01:19:06– Generational money
  21. 01:21:56– Not a fancy hack
  22. 01:27:49– Plates in the next drawer
  23. 01:31:32– Calling the bet at 60k
  24. 01:43:44– A one line fix
  25. 01:46:48– The Passport did nothing wrong
  26. 01:49:00– Coldcard's licensing
  27. 01:53:22– Getting paid a bounty
  28. 01:55:36– Not his career
  29. 01:58:05– Disclose or sell unlocks?
  30. 02:03:24– Taproot and DLCs
  31. 02:06:43– Getting scared out in 2008

Verify this episode

This is the SHA-256 fingerprint of the MP3 as published here, timestamped in the Bitcoin blockchain with OpenTimestamps. If one byte of the file changes, the fingerprint changes.

SHA-256
2ba536e9dac65ad6ac0c433132c4e74c772cb0d2fdff2ea4efe7bff192327da3
Proof
2021-04-18_btctkvr_s8_e6_lazy_ninja.mp3.ots · all episode hashes (proof)
Status
Anchored in Bitcoin block 974,312
Timestamped
After release. The episode came out on 18 Apr 2021, but this proof was made on 3 Nov 2026 and anchored in block 974,312, so it proves this exact file existed by 3 Nov 2026, not on the release date.
How to check it yourself
  1. Download the MP3 and the proof into the same folder.
  2. Run sha256sum 2021-04-18_btctkvr_s8_e6_lazy_ninja.mp3 (on a Mac: shasum -a 256 2021-04-18_btctkvr_s8_e6_lazy_ninja.mp3). The result must match the SHA-256 above.
  3. Install the OpenTimestamps client (pip install opentimestamps-client) and run ots verify 2021-04-18_btctkvr_s8_e6_lazy_ninja.mp3.ots. It hashes the MP3 again and checks the proof against your own Bitcoin node, then prints the block and the date the file existed by. Without a node, ots info 2021-04-18_btctkvr_s8_e6_lazy_ninja.mp3.ots shows the block height to look up in any block explorer.

Share: X · Email · Link

Related

Comments

Comments run on my own server. No trackers, no tracking cookies.

0:000:00