Latest / Bitcoin Audible / Is Rolling Your Own Entropy The New Standard? (Coldcard Q&A P1)
Transcript
- 0:00So it seems like a lot of the news cycle and social feeds have kind of moved on, but there are still a lot of questions that I'm seeing about Cold Card and what happened and what we can get out of it.
- 0:14And so that's what we're going to do today. We're going to try to answer as many questions as we can about the people who are still trying to figure out what the hell happened with Cold Card.
- 0:24all right so we've got a bunch of different posts here what i'm actually going to do in this episode
- 0:31um we're going to go through just one by one a bunch of things that people are asking or
- 0:37commenting about on the cold card situation because i think there's still just a lot to
- 0:41unpack here and i feel like a lot of people are still confused about things so i'm going to do my
- 0:46best to answer them this show is sponsored by bitbox the bitbox hardware wallet uh definitely
- 0:54you know do your own red teaming but i've got some i'm actually going to get them together
- 0:59i've been reading some reports and other things uh in regards to this it is a fully open source
- 1:04hardware wallet it's one that i've used for a really long time and i've always loved uh check
- 1:09them out you got a discount code right down in the show notes but right now let's go ahead and
- 1:13dig a little bit into this cold card situation and answer some questions all right so this one
- 1:19is from RARS01 or Rarson.
- 1:22All that talk about having two secure elements,
- 1:25technically three, but yes, two secure.
- 1:27There were three pieces of the little puzzle.
- 1:30It just seems like security theater now.
- 1:32All of those extra features,
- 1:33and yet the device failed to perform
- 1:35its most basic task, random generation.
- 1:40Man, that couldn't hurt more true.
- 1:43If you wrote it, you couldn't word that better.
- 1:46You know, this is one of the reasons
- 1:47I really loved the cold card.
- 1:49is all the apparent attention to the edge cases,
- 1:52which makes you think,
- 1:54or it made me think that they must have really dealt with the foundation
- 1:58if they've dealt with all of this stuff around
- 2:00whether or not your USB is going to be an attack surface
- 2:04or whether or not you need a brick pen or a fake pen,
- 2:07like all of this stuff.
- 2:09And yet it turns out the exact opposite.
- 2:11They spent all of this time on the edge
- 2:13and didn't even care about the literal heart
- 2:16of what the purpose of this thing was.
- 2:19And that's just really disappointing. That's incredibly disappointing. But what's interesting is I spoke with, I can't remember if it was Taleb or someone else recently, but I spoke with someone talking about their random number generation stuff.
- 2:36And what's interesting about it is that they actually had a whole bunch of overcomplicated moving things around and handing it to a different piece of the device in their firmware, which was a part of the problem.
- 2:52It just needed to be simple and obvious.
- 2:54This is why the bug was so obscure and went unnoticed for so long.
- 3:01It's because the code around getting the random number was nonsense.
- 3:05It was spaghetti and it was doing too much.
- 3:09And so the lesson from this is probably just that simplicity is key.
- 3:15That simple probably means it's going to work better.
- 3:18All right, this is PatF4274.
- 3:22It's also part of the rush to market mentality.
- 3:26Devs actually get a lot of pressure from the suits to deliver quicker
- 3:29and are forced to cut back on things like test harnesses.
- 3:32possibly i mean there's definitely an element of this when you see in like vc
- 3:40this is just a general problem i think in tech because tech is supposed to move so quickly
- 3:46like you have to get your product out you have to get your network or your tool out as fast as
- 3:53possible and you just don't worry about the foundation of it you don't worry about the
- 3:57security of it as much because you're just trying to get those users in and then you could fix all
- 4:01that stuff in post. Do the same thing with films, right? You just, let's get it on film and we'll
- 4:07fix it in post. We'll fix it in post. But that was kind of the beauty of hardware wallets is that
- 4:12you didn't think that was necessary. That wasn't the issue, right? You had time to actually pay
- 4:18attention to it. And it's just crazy that they didn't. They just didn't. And the failure is just
- 4:28so insane. Like I want to know that every single hardware wallet manufacturer is sitting with their
- 4:35hardware wallet plugged in right now, generating keys and with a Kimmy session, Kimmy K3 session
- 4:43that's just open, just beating the thing to death. Like all times, like that would just be a,
- 4:48should just be a permanent session run on all hardware wallets all the time. All right, Debra
- 4:54Martinez 385 cold car didn't do what they were supposed to do it's like buying a car without an
- 5:00engine that's a pretty apt analogy because this is the one thing when you're generating keys it's
- 5:06the one thing that you just have to get right so many of the other things aren important so many of the other things are second like this is the foundation This is like caring so much about what floor one two
- 5:19three, four, and five in your building are doing and getting the windows perfect and all this stuff.
- 5:24And you literally forgot to pour the concrete or mix the concrete right in your foundation.
- 5:30And you just didn't even, you just kind of like threw it in there and then started building on
- 5:35top of it. Nothing matters. Nothing matters if you don't get the random number generation right.
- 5:41And it is wild how much they spent talking about all their other cool features and nonsense
- 5:49when they couldn't get the basics right. It's literally a car without an engine.
- 5:56It's like, okay, your radio is great. You're not going to take me anywhere.
- 6:01Where the hell am I going to go? I'm just going to sit in my car and listen to the radio.
- 6:05Okay, so this is ACP2 and then Rarson again. And this is a really important point that I think leads us back to the idea of it just being too convoluted.
- 6:21So I'm no software tester for mission critical software, but I don't think missing an entropy test was the key missing test. It should be a part of it, but yes. But rather, the test suite was not ensuring full branch path coverage. Seems like there was an if statement that was with that with two paths, true random number generation and pseudo random number generation.
- 6:44If so, then their test suite was not ensuring that under normal conditions, the TRNG path was always taken.
- 6:51And Rarson responded with the hardware RNG was never being used.
- 6:54It wasn't a fallback as much as an improperly implemented library causing the PRNG to be used every single time, which was never supposed to be used at all.
- 7:03This is really the thing. The code should be so simple and there should not be a fallback.
- 7:08There should not be an alternative path. And whether it was an if statement or just a fallback,
- 7:14There shouldn't be a fallback.
- 7:16Whatever the process of key generation is,
- 7:18when you talk about in the cold card,
- 7:21they've got the shoot me and all this stuff
- 7:24to make sure that all the systems are path dependent.
- 7:29Well, this is exactly what you should have
- 7:30with your random number generator.
- 7:32You should put in a TRNG
- 7:33and it should be used to generate the key.
- 7:36And if it's not being used,
- 7:37there should be no handoff.
- 7:39There should be no trading of information.
- 7:41There should be no alternative paths.
- 7:43there should be no fallback. It should just go straight through the one thing that you need to
- 7:48generate a random number, and it should never do anything else. And if it doesn't go through that
- 7:52thing, then it should fail. It should just give back an error and just say nothing worked, and it
- 7:57should not give you a key. Like, the failure mode is everything. You fail to either it not working,
- 8:07or you fail to static. You don't fail in the direction of just, well, just generate a key
- 8:13with nothing, no entropy at all,
- 8:15and give it to the user and hope somebody figures it out.
- 8:19They should all be path dependent.
- 8:21This is a hardware security device.
- 8:25This is its job.
- 8:29So frustrating.
- 8:31Okay, Coach Katana Head.
- 8:34The whole premise of open source code being scrutinized by the OS community
- 8:38seems underpinned by this exploit.
- 8:40Here's the thing.
- 8:41And this is one of the nuances that I didn't appreciate that I am in hindsight. I think now you can forward apply or you can apply to history and that this would actually be a useful new thing to learn from this is that source available and open source aren't the same thing.
- 9:00I did not appreciate that.
- 9:02I did not appreciate the difference there.
- 9:04And the reason is because if you have source available,
- 9:09that means that you're expecting someone else for free or for no particular reason
- 9:13to do the work of checking your software when there's not really any incentive to.
- 9:18They're going to check your firmware or your system.
- 9:21Open source means that other people can use it.
- 9:25CoinKite did not let anybody else use Coldcard to build a new device.
- 9:31If you are actually using it in a new device, builders and developers are actually using your software, and they have every incentive to check it again and make sure it's working.
- 9:43Open source is far more likely, I think, because of that incentive to catch errors and to be actually secure, or to get a security benefit.
- 9:53Whereas source available is just thinking that you're going to get the benefit of open source because you get to tell people that you're open, but you don't have any incentive for anybody to check your work.
- 10:05And so some disastrous, disastrous bug like this can sit there for five years in the most important part of the most important piece of this entire stack.
- 10:16And nobody cares to look because you not even letting them use it And that why I am full on I just done The hardware wallet has to be open source because i i not going to be able to deal with it unless i can i can you know red team it for a couple hours with
- 10:33kimmy if nothing else at the least all right so lahaltho said what the hell man why are you telling
- 10:41people who rolled 100 dice to create entropy to move their funds as soon as possible so when i did
- 10:46this original video, it was after a very, very, very long night of talking to a lot of people,
- 10:53and we had not yet confirmed whether or not dice rolls were even included. I was assuming at the
- 11:00time, also not very much sleep, that the cold card should just not be trusted. That I wasn't
- 11:11even sure if dice rolls were taken into account but i think it was literally within hours of this
- 11:18one getting published that uh the first part i think it was wicked maybe was one of the ones
- 11:24that confirmed by rolling dice on the cold card and then rolling dice on a completely different
- 11:31hardware wallet that they generated the exact same keys with the obviously the same exact entropy
- 11:37and so that was just basically confirmation that it does in fact take the dice rolls properly
- 11:43but 100 dice rolls is more than an i mean 100 dice rolls is i think 256 bits or something if
- 11:49i'm not mistaken i can't remember exactly how the math works out per dice roll but yes if you
- 11:55actually created your own entropy with 100 dice rolls you were 100 fine just part of it was
- 12:03just my mistake but then also part of it was just that i was i was just assuming that we were
- 12:08we were all full-on dead a cold card is just not to be trusted i have no idea how they implement
- 12:15anything so just get it off and i think we now have solid verification that dice rolls are taken
- 12:23to an account and 100 dice rolls is absolutely safe okay so code says if you roll dice or have
- 12:29a really strong passphrase, you are good. I should clarify, if you rolled dice, you are good. No
- 12:34action needed. If you have a really good passphrase, you still need to move, but you can take some
- 12:38more time. Yes, that is the way to think about it, is if you rolled dice, you know exactly how much
- 12:45entropy you have, and that should be taken as your entropy. So if you did it a hundred times,
- 12:51you're safe. You created your seed. Cold card had nothing to do with it. That is a strong,
- 12:56full security of your key. Now, a passphrase. A passphrase is a good backup or what I like to
- 13:05refer to as poor man's multisig because the complexity or the entropy of the passphrase
- 13:12is entirely right now how much entropy your key has. So if you use a real simple passphrase or an
- 13:20easily guessed passphrase, you want to move your funds pretty quick. If it's just like two words
- 13:27or your favorite quote, something from a book or, you know, your pet's name and your date of birth,
- 13:34that is something which generally speaking, using that as a passphrase is actually okay.
- 13:40I have nothing against that. I think it's actually good for a passphrase to be memorable,
- 13:44but never treat it like the full security of your key
- 13:49because those things can be broken
- 13:51and the rest of your key, if you generate it on a cold card
- 13:54is of no consequence whatsoever.
- 13:57You might as well assume somebody has or can get the rest of that.
- 14:01So if you have a really, really, really good passphrase
- 14:04then okay, but think about that as your only seed here.
- 14:10And I would just move it to a newly generated seed phrase
- 14:14and either roll your dice or just make sure you did it on a good device
- 14:20and assume that all you have is a little bit more time
- 14:24as opposed to the passphrase being the thing that really makes it secure.
- 14:29All right, MoritzPish5501 says dice your 24 words every time.
- 14:39You know, a lot of people say that that's ridiculous
- 14:42and expecting people to roll their own dice is too far.
- 14:46And honestly, part of me says,
- 14:49okay, well, yeah, maybe normies or whatever.
- 14:52Maybe there's a degree of like you've gone too far.
- 14:55But I don't know.
- 14:56Entropy is not that difficult of a concept
- 14:59to stack on top of all the other things
- 15:01that we've learned about self-custody
- 15:03and the thing that's important to learn
- 15:05to be responsible about your keys.
- 15:07And we have every bit of incentive now
- 15:10to make that part of the repertoire,
- 15:14adding that on top of keeping 24 words safe
- 15:18and knowing what your key is
- 15:20and not to put it into a website
- 15:22and how to back it up properly
- 15:25and keep your device safe.
- 15:29Just knowing what entropy is
- 15:31and how it being put into it not that tall of a not that much extra work you know So I think it totally fine to be
- 15:42roll your own randomness,
- 15:44being something that we should kind of think of
- 15:47as a really important part of a sovereign Bitcoin stack.
- 15:52Even though for most people,
- 15:54that might be a little bit a step to bad UX, maybe.
- 16:00the alternative would be
- 16:04get a good multi-sig
- 16:06but that kind of has its own
- 16:08caveats too
- 16:09so
- 16:10probably not a bad idea to roll your own seed words
- 16:14if you can
- 16:14if that's
- 16:16a setup you think you can handle, just do it
- 16:20alright so
- 16:21KevinGuero9596
- 16:25says cold card Q
- 16:26is now my dice roll seed phrase
- 16:28generator, that is all
- 16:29and Brad Marcus says
- 16:31I am even afraid of that
- 16:33I will use it to store other keys
- 16:35generated elsewhere
- 16:36I aged 10 years in 3 hours
- 16:39so
- 16:41yeah honestly
- 16:42I was
- 16:44initially on the path of
- 16:47just throw away all my cold cards and stuff
- 16:49but honestly I think it
- 16:51actually isn't that big of a deal to treat it
- 16:53more like a seed signer
- 16:54like it's just a signing device
- 16:56just don't trust it to make keys
- 16:59so that's not a bad way to get use out of your device anymore to either do the roll the dice
- 17:07rolls to generate the seed so that you know you're not trusting the cold card to create your entropy
- 17:12or actually generate a seed somewhere else and then import it into the cold card so that you
- 17:19have a signing device and you can still use it because otherwise the device is fine it's the
- 17:27firmware that was a disaster in the generating of the seed phrase. So that's not a bad way to
- 17:34actually get use out of it so you don't lose a $200 device or whatever it is for no reason.
- 17:40I would just treat it like a signing only. Don't generate the keys.
- 17:48Miss Calabresis, your sincerity is much appreciated. Marty Bent Odell also recommended
- 17:55it to many crazy yeah it's absolutely crazy it really is um i'm i'm glad you appreciate
- 18:04the sincerity um that makes me feel good because i feel like shit about this um i
- 18:12recommended it i had just so you understand i had cold card in every one of my setups
- 18:19Every single multi-sig I had, I had a cold card.
- 18:23I trusted them as much as anybody.
- 18:26I gave it to my best friend in the whole world since we were, I don't even remember how little, to put his entire stack on.
- 18:36And I just never, I just can't believe I got got with this.
- 18:43You know, I've had a lot of failures in Bitcoin.
- 18:46I've made a lot of stupid mistakes.
- 18:47this one just hurts worse because I shared it with so many other people you know and I put other
- 18:57people in harm's way because I just kind of stupidly trusted something that you know maybe
- 19:03I could have I don't know I don't know hindsight is 2020
- 19:09it's a mess it's a mess no matter which way you turn it and I wish I could have had a really
- 19:17good rule. I'm still looking for that heuristic that would have prevented this. And I've got some
- 19:24okay ones, but nothing feels fail safe. So anyway, appreciate the comment.
- 19:33User99, Guy, I know you're grieving over this, but do realize that you've changed many, many lives.
- 19:41You and Foss Orange pilled me. I love that one. Appearance on Liberty Lockdown back in 22.
- 19:47I will forever be grateful to you.
- 19:49You've literally completely changed my life for the better forever.
- 19:55Thanks.
- 19:57That was a good episode on Liberty Lockdown.
- 20:04It's still hard to deal with the fallout for this.
- 20:10I wish I had...
- 20:14I don't know.
- 20:17I've made, I've messed so many things up in my Bitcoin history that I try so hard not to just sit there and think, what could I have done differently? What could I have done differently? Like some part of me thinks that's like really important. But you know, if I dealt, dwelled on the keys that I've lost, oh man, I'd be depressed. Jesus. The, the stuff that happened back in, you know, 2012 to 2014 range.
- 20:42oh god I could
- 20:45I could
- 20:46dig myself into a hole and just
- 20:49go lay there forever thinking about the mistakes I made back then and what I could have or how I
- 20:55could have set myself out now if I didn't do those things. But I'm glad I may have made a
- 21:02difference. I appreciate that. Good episode to get orange pilled on too though. I miss Clint.
- 21:10I need to get an episode together with him or something sometime. Thanks man.
- 21:15All right. We'll cap this off here because there were actually a lot of comments. We're
- 21:19going to do a part two of this and we'll come back to it. I'm trying to answer a lot of people
- 21:23who have questions or comments this way in the future. So I'll be doing a lot of these videos
- 21:27and thank you everybody who does actually ask questions and, you know, engage a little bit.
- 21:33But with that, we'll close this one out. Stay tuned, stay subscribed. Don't forget
- 21:38Guy's Take on YouTube. It is my new channel. Still trying to grow it and get it out there.
- 21:44Don't forget to check out the bit box discount code right down in the show notes
- 21:47and it will be coming to Nuntruck Mobile very soon.
- 21:51I will keep you updated on that.
- 21:53I'm talking to Hugo.
- 21:54And until then, I will catch you on the next episode.
- 21:56And that is my two sets.