[00:00.000 --> 00:03.820] Is everybody ready for this? So like I said, I said I'd be dressed as a clown. I'm not [00:03.820 --> 00:14.840] dressed as a clown. I'm dressed as Pikachu, kind of. Some kind of fucked up Pikachu. Now, [00:14.840 --> 00:17.720] I'm going to use the word fuck a lot in this, so if you're offended by the word fuck, probably [00:17.720 --> 00:21.560] best to leave the room. I'll try to keep it to the minimum, but that's probably quite [00:21.560 --> 00:27.540] high level. I'd imagine most of you here know what BitFi is. So this is a BitFi thing. I [00:27.540 --> 00:31.500] don't really know what you should call it. It's a device. It's not the wallet, but there's [00:31.500 --> 00:35.120] one there. We've got one that's broken, one that's working. But the claim that BitFi said [00:35.120 --> 00:40.760] was it was unhackable. They said the device was completely unhackable. Now, to work out [00:40.760 --> 00:43.880] why they said it's unhackable, we've got to go into cryptocurrencies a bit. So the way [00:43.880 --> 00:48.120] that cryptocurrencies work is you've got a private public key pair. You deposit funds [00:48.120 --> 00:51.960] onto the public key and you need to use the private key to spend those funds. It's pretty [00:51.960 --> 00:56.220] simple. Now, the problem is if someone gets hold of your private key, they take your private [00:56.220 --> 01:01.040] key, they can steal your funds. So protecting that private key is important. So what people [01:01.040 --> 01:06.000] started doing at first is they started moving their keys onto USB sticks. So the key wasn't [01:06.000 --> 01:10.580] always stored on your laptop. Now, that kind of works. It adds some protection. But the [01:10.580 --> 01:14.600] problem is you have to move that key back to the laptop to sign. When you do that, if [01:14.600 --> 01:20.600] your laptop's compromised, you'll lose your key. You've lost your funds. Now, the next [01:20.600 --> 01:24.580] problem, people, they invented things called wallets. And those wallets, they're a black [01:24.580 --> 01:29.100] box that holds your key. So they store the key inside. The key never has to leave. The [01:29.100 --> 01:33.120] idea is you send a transaction through to the wallet and it will sign it. Now, the problem [01:33.120 --> 01:37.280] there is if someone steals your wallet, they can still send a transaction to it and sign [01:37.280 --> 01:41.600] it. So to combat this, what they did was they added pin numbers to the wallets. So you can [01:41.600 --> 01:46.460] type a pin number in to protect that key. So ledger, trezor, you will type a pin number [01:46.460 --> 01:50.880] in before you can use that key. Again, this is added protection. Things are getting better [01:50.880 --> 01:55.420] and better. So the next stage, what people do, is they said, well, what happens instead [01:55.420 --> 01:59.980] of saying send one bitcoin to cyber Gibbons, what happens if I say send 100 bitcoins to [01:59.980 --> 02:04.880] McAfee? The device, you don't know what it's signing. You can't tell what it's signing. [02:04.880 --> 02:08.400] So they added displays to them. So it will say the transaction you're trying to carry [02:08.400 --> 02:14.120] out. Next problem, if I ask someone to generate a password, they'll make a bad password. So [02:14.120 --> 02:18.380] instead of letting users choose passwords, what they do is they use a random number generator [02:18.820 --> 02:22.840] that's inside the device, and that will generate the password for you. So it becomes [02:22.840 --> 02:27.520] unpredictable. So we've got these four things that normal hardware wallets do. BitFi is [02:27.520 --> 02:31.180] different, though. BitFi is very different. Do we actually have anyone from BitFi here? [02:33.820 --> 02:40.320] Maybe not admitting it, then. We'll see. So what BitFi does is the user has the key. The [02:40.320 --> 02:44.340] user has a seed and a phrase, and every time they want to do a transaction, they'll type [02:44.340 --> 02:48.940] it into the device. It will then sign that transaction and send it. Now, most people [02:48.940 --> 02:54.320] would call this a brain wallet. It's stored in your brain. So their kind of thing was, [02:54.320 --> 02:59.780] your private keys are never stored anywhere except your own brain. Now, to me, this sounds [02:59.780 --> 03:04.980] like bullshit. That has got to be typed into the device. There's no way that key doesn't [03:04.980 --> 03:10.520] also exist on the device. So they set up this bounty. This is what got us really interested. [03:10.520 --> 03:14.340] It was actually my colleague at the back there who I'm not going to, not going to name [03:14.340 --> 03:20.060] because I don't know what his name is. Dave? G? Whatever. Ali G. Let's go for that. Now, [03:20.060 --> 03:23.800] this bounty, it said that they deposit the coins onto a BitFi. Then they give you the [03:23.800 --> 03:28.260] BitFi. They'll send a BitFi to you, and you have to recover the keys from that device. Now, [03:28.260 --> 03:32.840] this kind of sounds like a rigged fairground, fairground game to me. The bounty here, it's, [03:32.840 --> 03:37.100] it's only going to cover one very, very specific attack, which is just attacking the device [03:37.100 --> 03:40.940] they've sent you. They made this really weird statement. The bounty program is not [03:40.940 --> 03:45.180] intended to help BitFi identify security vulnerabilities, since we already claim that our [03:45.180 --> 03:49.640] security is absolute. So they're saying that, that, that device cannot be hacked. So what's [03:49.640 --> 03:53.500] the point in setting up a bounty program if your device can't be hacked? So what they [03:53.500 --> 03:58.180] actually mean by unhackable is it's not vulnerable to one very, very specific attack. Them [03:58.180 --> 04:02.660] sending you a device that they've put a seed and phrase on, probably turned the power off, [04:02.660 --> 04:06.700] sent it to you for days in the post, and then you tried to recover the funds off that. So [04:06.700 --> 04:11.580] what we're looking at here is a rigged cold boot attack versus evil maid. If I can backdoor [04:11.580 --> 04:15.400] your device, that's a much more powerful attack. Now everything I'm going to talk about [04:15.400 --> 04:20.180] here, it wasn't me. I'm, I'm just a dick on the internet, to be honest. Most other people [04:20.180 --> 04:25.280] did the work here, so I'm presenting other people's work. So we have got the team. Oddly [04:25.280 --> 04:28.920] we got known as Thickmcascale, which is the hacker collective mistakenly known as [04:28.920 --> 04:34.160] CyberGift, and somehow sometimes called Oversoft. The media actually took this and [04:34.160 --> 04:38.800] ran with it. They started calling it Thickmcascale in, in stories. Um, it was mainly made up [04:38.800 --> 04:43.560] of me, a couple of colleagues who don't want to be named, um, Spadawea, who's somewhere [04:43.560 --> 04:48.440] between the age of four and 16, depending on who you speak to, um, Oversoft, uh, Ryan [04:48.440 --> 04:53.300] Castellucci, who may well be here, I'm not sure, but lots and lots of different people. [04:53.760 --> 04:59.600] Now the claims that BitFi made, now, you all know John McAfee, yeah? Yeah? The inventor [04:59.600 --> 05:04.340] of cybersecurity? Well, he was involved with the marketing of this product, and the first [05:04.340 --> 05:08.360] thing he does is he says, there is no memory to hack in this device. No data, all of your [05:08.360 --> 05:12.660] money is stored in a memorable phrase of your choice in your head. There's no memory to [05:12.660 --> 05:19.320] hack. So we got the BitFi. Um, that, that chip, the one that says 4C in big letters [05:19.320 --> 05:25.820] is, is a EMMC flash memory chip. Hmm. So we kind of challenged him on this, uh, and he [05:25.820 --> 05:35.140] says, there is no RAM. There is no RAM on the device. That, that, that, that says LPDDR3, [05:35.140 --> 05:41.160] which low power DDR RAM, that's, that's RAM. Hmm. It's not looking good here, is it really? [05:41.160 --> 05:45.880] The BitFi wallet is only 120 US dollars. As a computing device, it's much more costly to [05:45.880 --> 05:53.540] manufacture than ordinary hardware wallets. It's a shitty media tech phone. It's a, there's [05:53.540 --> 05:59.560] nothing to it. You can buy these devices on AliExpress for 30 bucks. There's nothing to [05:59.560 --> 06:05.700] it. Uh, we call it a phone. Um, it's absolutely not a cell phone or anything even resembling a [06:05.700 --> 06:13.580] cell phone. All cell phones are hackable. That fucking looks like a phone to me. There was [06:13.580 --> 06:22.220] some kind of corroborating evidence here though. Yeah. Sim one. Subscriber identity module [06:22.220 --> 06:26.620] maybe? I, I don't know. This isn't my specialist subject to be honest. There's their [06:26.620 --> 06:37.780] website. The image on their own site. Smartphone dash one dot PNG. Fucking hell. Key [06:37.780 --> 06:42.040] functions. Now this is from the FCC documentation. If you sell a device in the US that [06:42.040 --> 06:47.000] transmits Wi-Fi cellular, you have to get it FCC certified. Now we were quite surprised they [06:47.000 --> 06:51.160] actually went to this extent. Um, it's, it's fairly common. We, we've actually managed to [06:51.160 --> 06:56.580] get a, a, was it a Bluetooth cock ring? I think. Withdrawn from the market because it didn't [06:56.580 --> 07:01.200] have FCC certification. But anyway, that's another story for another time. But the FCC [07:01.200 --> 07:08.640] certification calls it a phone. I'm fairly sure that McAfee is wrong here. Now people are [07:08.640 --> 07:12.260] asking, can't someone just look over your shoulder and see what phrase they are typing? No, [07:12.260 --> 07:17.700] no, no. The bit five wallet has a screen with an extremely narrow viewing angle. Try it. [07:17.700 --> 07:24.240] No, you won't be able to see anything. Again, I'm not an expert in angles or anything like [07:24.240 --> 07:29.740] that. That, that, that looks not narrow to me. You can read my phrase off that. It got better [07:29.740 --> 07:35.500] though. So, uh, some guy, uh, who I think was kind of a bit of a, a shill, uh, posted this image [07:35.500 --> 07:41.140] saying that you can't read the key off the screen. Um, so what we did was we, we enhanced the [07:41.140 --> 07:45.800] contrast and reduced the brightness slightly. Um, and thanks to Ryan's help, we wrote a little [07:45.800 --> 07:51.540] script that allowed us to convert that. Um, and what we found out was that the passphrase was [07:51.540 --> 07:58.180] in fact, why is Dan so crazy about Monero? And the seed was test 70 at bit five dot com. Um, so [07:58.180 --> 08:02.780] we'd reconstructed that key from someone posting an image on the internet, proving the point [08:02.780 --> 08:06.960] that had a narrow viewing angle. Uh, we were quite kind about the way we demonstrated this. [08:06.960 --> 08:14.720] We stole his money. Um, we, we transferred it to another account, um, and paid the [08:14.720 --> 08:19.420] transaction fees like, cause we're nice people fundamentally. Um, the get, the best thing was [08:19.420 --> 08:26.200] another one of these kind of guys, he kept on pimping it on, um, on Twitter. Uh, he said, but [08:26.200 --> 08:30.580] in this case, thanks to image editing software or techniques such as techniques required to [08:30.580 --> 08:35.340] read Poison's passphrase, it would be possible to attain his phrase. Without changing [08:35.340 --> 08:42.420] brightness contrast, his funds would have been safe. These are advanced tools. You thought [08:42.420 --> 08:50.300] the NSA had good stuff? I've got paint. So we're going to move on to the actual hacks. Now, the [08:50.300 --> 08:54.480] first thing that, that seemed weird was, uh, I don't know if Elliot, whose name I've forgotten [08:54.480 --> 08:59.880] is here either. Um, he got his, and what he noticed was the serial number that's printed in [08:59.880 --> 09:04.620] the back of the case differed to the serial number that was on the box that he received. Now, [09:04.620 --> 09:08.680] this isn't great for something where supply chain tampering could be a problem. In fact, it's [09:08.680 --> 09:12.100] quite a big problem that it might have been tampered with. Um, they didn't really have a [09:12.100 --> 09:15.080] particularly good response to that, to be honest. They didn't really have a particularly good [09:15.080 --> 09:20.180] response to any of this. Um, the first attack we came up with was really simple. Um, the [09:20.180 --> 09:24.180] digitizer, the thing on the screen that detects where your finger goes is I2C, a serial [09:24.180 --> 09:30.680] protocol. Um, and it's unencrypted and exposed. So I could take a bit file and I can attach to [09:30.680 --> 09:36.280] the I2C bus and sniff the key presses. It's exposed, so you can see the ribbon there where [09:36.280 --> 09:40.060] it's got those on. You, it's even labeled them for me. So you could definitely fit that in [09:40.060 --> 09:43.660] this case. There's a lot of room. It's not a very advanced attack. So the next thing we [09:43.660 --> 09:47.480] wanted to do was root it. Now, I, I'd imagine a few people in this room have worked with [09:47.480 --> 09:51.440] MediaTek phones before. And they kind of got this reputation for being really, really easy [09:51.440 --> 09:57.080] to root. First thing we do is we use their own tool to pull the uh, flash memory out through [09:57.080 --> 10:02.260] USB. Um, that gives us access to all of the partitions, which is pretty easy. The data [10:02.260 --> 10:06.480] partition was actually encrypted, which was unexpected, so we had to root it by modifying [10:06.480 --> 10:11.440] the RAM disk, and at which point we had root on that device. What we then did was took a [10:11.440 --> 10:16.000] memory dump off my device, so I'd made a transaction, sent the memory dump to Ryan, and he [10:16.100 --> 10:21.160] wrote a little script, um, that pulled out potential candidates. And you can see there, [10:21.160 --> 10:25.380] one, one, one, one, two, two, two, two, two. That's my seed in phrase. So he could now steal [10:25.380 --> 10:30.060] my funds. Now, at this stage, BitFi had already been kicking off a bit, and we won a pony. So [10:30.060 --> 10:33.820] this was last year. Well, I say we won a pony, BitFi won a pony, but I think it might have [10:33.820 --> 10:39.680] been a bit more to do with us. So we got this little gold pony, which is great. Um, it got [10:39.680 --> 10:47.900] better, though. Um, we had root, and, uh, so what we decided to do was, uh, the typical thing, [10:47.900 --> 10:53.980] play Doom on it. So this is, this is, uh, this is Salim Spadawaya, who's, um, who's doing [10:53.980 --> 11:00.480] this. Um, we posted this to prove we rooted the device. Um, BitFi said that this wasn't a [11:00.480 --> 11:02.860] problem. You might have noticed right at the beginning of that, there was some wires [11:02.860 --> 11:07.880] taped onto the back, and the back was open. You don't need to do that. It, we were just [11:07.880 --> 11:12.580] using it to distract from the fact that it was so easy to root. Now, the thing was, they [11:12.580 --> 11:17.300] said you could purchase it from any source. Now, Tracer and Ledger, the supply chain [11:17.300 --> 11:20.940] tampering issue, if someone intercepts the Tracer or the Ledger and puts their own [11:20.940 --> 11:25.000] firmware, changes the hardware, this is a problem. These guys were claiming that it [11:25.000 --> 11:29.400] wasn't a problem, so someone couldn't man in the middle the hardware. They said it [11:29.400 --> 11:32.640] didn't work because each device has a specific digital signature. And they were so [11:32.640 --> 11:39.320] confident about this, they actually started another bounty. So, I got a BitFi. I rooted it, [11:39.320 --> 11:42.860] and there you can see the two different processes running, the Knox admin one that does [11:42.860 --> 11:47.880] the bulk of the firmware stuff and the Rokits one that does the actual wallet. I can see [11:47.880 --> 11:52.560] it establishing connection out there. I put my own certificate on the device, and I could [11:52.560 --> 11:57.560] intercept all the requests coming to and from the device. So now when it asks me to sign [11:57.560 --> 12:02.280] and pay, as an attacker, I've got the ability to send arbitrary transactions to a device. I [12:02.280 --> 12:06.840] can man in the middle them. So this digital signature thing, it's crap. It doesn't exist. [12:07.280 --> 12:11.360] The next attack was after we'd rooted it, what we realized was on Android it's really easy [12:11.360 --> 12:16.360] to find the coordinates where you touch the screen. So you can just read out the ITC, the [12:16.360 --> 12:20.140] coordinates, where it's coming from the digitizer. So I wrote a little script to deal [12:20.140 --> 12:26.680] with this, and what that does, you type in the seed and phrase, and if we skip a bit [12:26.680 --> 12:33.160] because it's a bit slow, and I can't work out how to do that, um, we do that. It, it [12:33.160 --> 12:36.880] harvests those events, and it sends them through to a remote computer. So now again, we've [12:36.880 --> 12:41.620] got the seed and passphrase. It wasn't a particularly advanced attack, um, but we made a [12:41.620 --> 12:44.680] transaction with the man in the middle bit fi, we'd recovered the seed and phrase, it's [12:44.680 --> 12:52.560] done. Selim, of course, is about 80 times more hardcore than me, and he made a much better [12:52.560 --> 12:57.360] attack. Um, he made it so that it automatically sent it. There was none of this messing [12:57.360 --> 13:01.800] about coordinates. He recovered it from memory. It was much more effective. We pretty [13:01.800 --> 13:08.500] much demonstrated that evil made was a real problem. We told them, and they canceled the [13:08.500 --> 13:16.240] bounty. So once we got the bounty, they said the bounty wasn't there anymore. Uh, up until [13:16.240 --> 13:19.880] this point, they hadn't admitted the keys were ever in RAM. Uh, and then in the direct [13:19.880 --> 13:23.440] message exchange, they did actually say the keys do stay in RAM for a brief period of time. [13:23.440 --> 13:29.160] So if someone can extract that memory, they can get them. This is kind of what a bit fi [13:29.160 --> 13:32.500] looks like. You've got USB going into the microcontroller. You've got the keys, which [13:32.500 --> 13:37.400] will be stored in DDR RAM at some point. Now they've made an assumption. They said, we [13:37.400 --> 13:40.440] think that if the guy was able to retrieve the private key from the device or something [13:40.440 --> 13:45.140] like that, it would have to be done on a rooted device. But if you root a device, you have [13:45.140 --> 13:52.380] to restart it. And it wipes the RAM clean. Now we're hackers. When you restart it, it wipes [13:52.380 --> 13:57.500] the RAM clean. Now Ryan, who I've just spotted, said much of hacking is about understanding [13:57.500 --> 14:00.540] systems better than those who built them and using that knowledge to do what's supposed to [14:00.540 --> 14:06.380] be impossible. So they, they'd assumed because we rebooted the device, there'd be no way to [14:06.380 --> 14:13.440] pull those keys from RAM. They were wrong. Once again, Salim, he wrote an app, and this was [14:13.440 --> 14:17.580] incredible. It was an Android app. So we've got an unmodified bit file there. He's typing [14:17.580 --> 14:23.400] his, don't be too salty, and my very, very salty tears, or whatever it is, is his salt and [14:23.400 --> 14:32.400] phrase. Once he's done that, oh, there's no sound. Oh, okay, it doesn't matter. It processes [14:32.400 --> 14:37.280] that request. So it sent that transaction. Success. He's now going to power off the device. [14:37.300 --> 14:42.680] So he's proving it's not modified like a magician. Plugs in USB, reboots the device. The [14:42.680 --> 14:47.600] attacking device then routes it after it's rebooted, scans the memory, and within a few [14:47.600 --> 14:54.180] seconds, it's recovered the key. Now, this is a complete break of the device. Not only is evil [14:54.180 --> 14:59.380] made a problem, but cold boot is also a problem. It's, it's not better than storing it on a USB [14:59.380 --> 15:04.540] stick, to be honest. Then it gets fun. That's the technical bit. Now the fun starts. It's their [15:04.540 --> 15:10.940] response. No one gets a RAM and penny from the wallet. All these hack claims are [15:10.940 --> 15:20.020] meaningless. No one came, came close to taking the coins from it. It took a bit of a dark turn. [15:20.020 --> 15:24.520] So McAfee was denying it and then BitFi tweeted this out. This is my last tweet as my shift is [15:24.520 --> 15:27.620] ending. But did you guys ever bother to look into who you picked a fight with and the [15:27.620 --> 15:32.080] resources these people have? Not wise. Remember the lies and deception you deliberately [15:32.080 --> 15:37.160] spread about BitFi can have consequences. That's quite a threatening tweet in the general [15:37.160 --> 15:42.680] scheme of things. I mean, it's, I'd rather get that than a dick pic, but when it comes down to [15:42.680 --> 15:48.180] it, well. Now they claimed that it was actually to do with this. Now we modified their logo [15:48.180 --> 15:55.560] somewhat. My colleague over there, he's a genius at stuff like this. I couldn't have done it so [15:55.560 --> 16:03.000] good. That was my avatar for a while. It, it did appear to irritate BitFi quite a bit. I guess [16:03.000 --> 16:07.280] that was the point. They also came out with some other brilliant stuff. We also think it's [16:07.280 --> 16:10.600] rather disappointing that a lot of media picked up on claims made by some person hiding [16:10.600 --> 16:15.060] behind a picture of a cat. Now we're not quite sure if they're actually talking about Daniel [16:15.060 --> 16:20.160] Gallagher, who is also part of the team, or me. I mean, I kind of look like a cat with the [16:20.160 --> 16:25.100] hood up a bit, I guess, but I don't really know. Very strange. And if you look at that guy who's [16:25.100 --> 16:29.220] been posting all this, CyberGimmons, the guy posts something every two seconds, 24 hours a [16:29.220 --> 16:33.880] day, like he doesn't sleep or something. No, I don't. If somebody had a real job in cyber [16:33.880 --> 16:43.120] security, they wouldn't have so much time to spend on Twitter. Might have a point. Now here's [16:43.220 --> 16:46.800] a smart dude making some sense around here. The yellow cat took too much acid and lost it. [16:46.800 --> 16:52.820] Now this was a, this was an account that was shilling, um, for BitFi on Twitter. Um, now an [16:52.820 --> 16:57.320] interesting thing that we noticed is that when you try and recover a password on Twitter, it [16:57.320 --> 17:01.780] leaks some information. So it leaks the last two digits of the phone number, and it leaks the [17:01.780 --> 17:10.500] first two letters of the first part, the email, and the last bit as well. Now, bitfi.com is [17:10.500 --> 17:19.380] fivecharacters.com, and Daniel Kaysen, the CEO or something of BitFi, would fit in that first [17:19.380 --> 17:25.900] bit there. You can also note that down the bottom there, lovecrypto as well, 58. Um, this was [17:25.900 --> 17:31.480] clearly linked to BitFi. Uh, McAfee really got involved at this point. Am I a wannabe? I [17:31.480 --> 17:39.760] fucking invented cyber security. Get your fucking facts right. I mean, he, he, he wasn't [17:39.760 --> 17:44.380] being about for a while. I don't, I can't remember who made this, but they sent it to me. I [17:44.380 --> 17:52.400] just, just love it. He put a challenge out to me. Okay, I have 20 million on my BitFi. I will pay [17:52.400 --> 17:56.380] your way to the states, put you up at my house for as long as you need. If you give my, if I [17:56.380 --> 18:00.040] give you the wallet. So he was putting a challenge down, 20 million, if I went to the [18:00.040 --> 18:06.140] states and attacked his wallet to get those 20 million in coins. Um, now, I don't know if you [18:06.140 --> 18:10.060] know McAfee, you don't, I don't know if you follow him on Twitter, um, but about the same [18:10.060 --> 18:15.460] time, serious dudes on a serious mission just received an order of one-off M4s. That's his [18:15.460 --> 18:25.960] house. He's got guns, really serious guns. He also hasn't been sober for 41 years. So he's [18:25.960 --> 18:29.540] invited me into his house with big guns and he hasn't been sober for 41 years. I mean, it's [18:29.540 --> 18:34.640] already sounding bad. Anti-virus inventor John McAfee went on a naked shooting spree [18:34.640 --> 18:38.500] because the Belize government wants to assassinate him. He was in the middle of having [18:38.500 --> 18:44.220] sex with his wife when the dogs started barking and he shot holes in the ceiling. I don't [18:44.220 --> 18:50.440] think it's really worth 20 million, to be honest. He then got a bit threatening on DM. Your [18:50.440 --> 18:55.320] career's finished. You'll be the laughingstock of the world. You lost dude. Go hide under a [18:55.320 --> 18:59.460] rock. He keeps on going with this and then he sends me this weird link. Now, I don't know if [18:59.460 --> 19:03.360] you've heard of Clone Zone. It's like this website. It used to be able to take, uh, the New [19:03.360 --> 19:06.900] York Times and various websites, clone it and you could modify it and then, you know, make [19:06.900 --> 19:10.100] spoof articles about other people. So he made the, well, I don't know if he made it. Someone [19:10.100 --> 19:15.720] made this one about me. Andrew Tierney, that's me, aka Cyber Givens Me, cyber security [19:15.720 --> 19:22.700] professional, cyber pervert enthusiast. This, this whole story is about how I'm some kind of [19:22.700 --> 19:30.400] like Pikachu pervert but it had this absolutely brilliant phrase in it, smash my jigglypuff. I [19:30.400 --> 19:37.840] still haven't actually found my jigglypuff. So 11 months later, we thought it all died down. [19:37.840 --> 19:43.540] We didn't really think that much was going to happen. Um, but Daniel Cason, uh, came along [19:43.540 --> 19:50.460] and set up his own Twitter account. Um, and he started getting a bit, um, responsive. Your [19:50.460 --> 19:53.480] tweets are boring and annoying. You keep trying to prove to the world that Bitfire's not [19:53.480 --> 19:57.600] perfect, yet everyone knows it's not perfect and we're not saying it's perfect. Now, the thing [19:57.600 --> 20:01.160] was, they still haven't informed the customers that they have these problems with their [20:01.160 --> 20:04.540] device. They haven't told them about the evil maid, the cold boot. They haven't allowed their [20:04.540 --> 20:12.520] customers to adjust to the change in the threat landscape. This tweet's brilliant. They're not in [20:12.520 --> 20:18.040] RAM, they are in RAM, for much less than a second, making extraction impossible. Now, we all [20:18.040 --> 20:22.280] work in security, we know things aren't binary like that. Some things are hard, some things are [20:22.280 --> 20:27.380] easy. Things are very, very rarely impossible. It's the bit at the bottom though. How many [20:27.380 --> 20:32.020] innocent people's lives have you put at risk if you're a clown act? I mean, I think it's a bit [20:32.020 --> 20:36.900] unfair calling me a clown, but I'm just thinking what I'm doing right now, stood on this stage, [20:36.900 --> 20:44.160] and yeah, maybe I am. Even more threatening stuff, when the marketing machine turns on and the [20:44.160 --> 20:47.540] media is covering all this, your incompetence, arrogance, ill intent towards others, [20:47.540 --> 20:52.760] manipulation, irresponsible security practices, an endless list of epic disasters will be fully [20:52.760 --> 21:01.280] revealed to the world. I mean, come on, it's just a vulnerability. This is epic. [21:02.820 --> 21:06.740] We aren't doing the testing. So they were claiming that they were getting a third party into test. [21:06.740 --> 21:10.100] I don't know if they are. I've got no way of telling if anything they say is true. But they aren't [21:10.100 --> 21:13.120] doing the testing. They're saying that Cellbrite are doing the testing. Now, I've got lots of [21:13.120 --> 21:18.340] respect for Cellbrite. They do some very impressive stuff. But it's a bold claim to say that on the [21:18.340 --> 21:23.640] internet, and then the VP of research at Cellbrite comes along and says, they did contact us with [21:23.640 --> 21:36.720] the request, which we declined. Muppets. Now, just to kind of actually give some kudos to them, [21:36.720 --> 21:40.500] and they said they were going to open source the code. Oh, this is so hot. They said they were [21:40.500 --> 21:44.840] going to open source the code. And they did actually allow access to the code. Now, to get [21:44.840 --> 21:50.160] access to it, you've got to download a binary and do some crazy stuff and send them a key, and [21:50.160 --> 21:54.240] eventually you get access to this tool. And you get access to the source code. Now, we were [21:54.240 --> 21:59.220] kind of expecting some things to have changed since last year. Not really. Now, it's important [21:59.220 --> 22:06.020] to note that if you ever want to wipe keys from memory in a device, simply overwriting them with [22:06.020 --> 22:11.400] zeros is really not enough. I mean, this is, this is really bad. This is not the kind of code. [22:11.400 --> 22:17.360] This is the sort of thing you do when you're 17 and messing about. It's really bad. It's not [22:17.360 --> 22:20.880] going to wipe keys from memory. An important thing to note about the way that BitFi works is [22:20.880 --> 22:25.680] it's running on an Android device. So you've got the bare metal on the outside. You've got the [22:25.680 --> 22:31.360] Android OS within that. Then you've got the Android ART inside of that. But it's also mono. [22:31.360 --> 22:35.360] It's C sharp. So it's got another layer of indirection and finally you've got the BitFi [22:35.820 --> 22:41.680] application within that. So we're talking a lot of different layers where things can go wrong. [22:41.720 --> 22:46.360] If you wipe memory within mono, it's not going to wipe it all the way up the stack. C sharp and [22:46.360 --> 22:50.420] mono use garbage collection. So if you put something on the heap, you've actually got no idea [22:50.420 --> 22:54.960] where it's going to stay on the heap. Things can move about. This is why we could originally [22:54.960 --> 22:59.580] recover the keys. Now they've, they've come up with this really, uh, interesting way of [22:59.580 --> 23:05.400] obfuscating the keys. So previously they were stored simply as, uh, ASCII bytes, I believe. I [23:05.400 --> 23:09.800] think that was how it was. So now what they do to combat us scraping the memory for ASCII [23:09.800 --> 23:18.700] bytes, those long base 64 encoded strings are PNGs of the characters. So it's a PNG of the [23:18.700 --> 23:24.040] letter A. So rather than have one byte that represents the letter A, you've now got about 60 [23:24.040 --> 23:28.940] bytes that represent the letter A. Now our cold boot attack sometimes failed. Sometimes the [23:28.940 --> 23:32.540] memory would degrade somewhat. You'd lose a bit of that memory and you'd have to guess the [23:32.540 --> 23:37.480] remaining characters. With this scheme, loads of that can degrade and you're still able to [23:37.480 --> 23:44.140] recover the data. Which we did quite easily. Um, we lost one character from that. You can see [23:44.140 --> 23:47.900] the, the, the second byte in the sort there is set to zero. That has actually been [23:47.900 --> 23:52.840] successfully wiped. Which is quite bad. So a guy called Ben Tasker did a code review. A [23:52.840 --> 23:57.440] really, really in-depth code review. It's, it's way too much for me to cover here. Um, he [23:57.440 --> 24:03.160] went through, um, a memory dump. And he, he can recover what my sort and, uh, phrase are [24:03.160 --> 24:06.960] from that. So you can see we've lost that letter E in one location in memory. That's it. [24:06.960 --> 24:12.480] That's how ineffective it is. Just looking at the rest of the code quality as well. Um, this [24:12.480 --> 24:16.900] is the, uh, SSL validator. So it makes a connection out using SSL to their servers. Now [24:16.900 --> 24:21.540] you've got to check that that connection's valid. And you can see there it says starts with [24:22.640 --> 24:29.880] www.bitfi.com. Now if you've ever done code review, I can register www.bitfi.com.cybergibbons.com [24:29.880 --> 24:36.560] and I can intercept SSL communications to these devices. This code is garbage. It's [24:36.560 --> 24:41.240] really bad. We haven't even gone into the other parts of it that to sign Bitcoin [24:41.240 --> 24:45.440] transactions, sign Apollo transactions, they've just imported arbitrary third party [24:45.440 --> 24:50.700] libraries that don't take account of this. So we got a pony last year, which Ryan [24:50.700 --> 24:57.360] collected, which was absolutely awesome. Uh, but we also got a pony this year. So I think [24:57.360 --> 25:01.860] this is the first time that we've managed it at, at one product's got a pony twice for the [25:01.860 --> 25:05.480] same thing. So lamest vendor on both of them. The thing I most like about getting the pony [25:05.480 --> 25:17.010] is this though. That's Charlie Miller. Look at his face. Now kind of getting a bit into [25:17.010 --> 25:21.630] more how we'd fix this. Now they always say the keys are never stored in RAM. That's a [25:21.630 --> 25:24.870] very different thing saying the keys are stored in RAM for a very, very short period of [25:24.870 --> 25:28.810] time. Now in reality, the bottom part is what's happening. But if you threat model for [25:28.810 --> 25:33.090] that top bit, assuming the keys are never in RAM, you're not going to be truthful to your [25:33.090 --> 25:37.690] customers. There will always be a way to recover those keys from RAM, whatever it is. So [25:37.690 --> 25:41.170] they need to communicate to this, this to their users. They need to say this device is [25:41.170 --> 25:46.610] broken. So can it be fixed? Well, maybe. Could we improve the existing hardware? Well, [25:46.610 --> 25:50.170] yeah, if it had secure boot, if they locked the boot loader so the USB just couldn't pull it [25:50.170 --> 25:55.170] out, if they cut the USB data lines, um, which I know was recommended to them, and if they [25:55.170 --> 25:59.270] made it take longer than two minutes to root it, it might be a little bit more secure. Could [25:59.270 --> 26:02.810] they improve the software? Well, yeah, if they stripped down Android a little bit, it was [26:02.810 --> 26:07.890] running, uh, a browser, uh, an alarm clock, you know, the standard Android stuff in the [26:07.890 --> 26:12.270] background. So it was always attack surface they had that was unnecessary. If you get [26:12.270 --> 26:15.710] closer to the metal, if you look at ledger and tracer, they're running on microcontrollers [26:15.710 --> 26:21.650] using custom code. It's much easier to validate that. Secure development practices, um, [26:21.650 --> 26:26.990] would be a good thing to do. And also just fucking test the thing. It took a, a kid, like [26:26.990 --> 26:31.870] Salim is not, he's not had the world experience. He's not spent hundreds of hours working [26:31.870 --> 26:36.510] on these things. It took him probably three or four days to go from nothing to a fully [26:36.510 --> 26:41.830] working cold boot attack. That's really quite extreme. If they're going with new hardware, [26:41.830 --> 26:45.710] well, we'd suggest they use a microcontroller, secure element, minimize the OS and things [26:45.710 --> 26:50.790] like that. But I think fundamentally the thing with BitFi is they need new people. They've [26:50.790 --> 26:55.170] abused the trust of their customers. You know, this device is not secure. It never has been [26:55.170 --> 26:59.550] secure for the last 11 months. As far as we're aware, nothing's changed. Now, they could [26:59.550 --> 27:03.790] demonstrate they've changed. They could get someone to pen test it. I'm not fucking doing [27:03.790 --> 27:08.050] it. Um, but they are gonna be here tomorrow, they say. So, I'm not sure if they're gonna be [27:08.050 --> 27:12.330] here or over in the hardware hacking village. So, I'd suggest maybe if someone could be [27:12.330 --> 27:16.370] bothered to take a look at themselves. Um, we can certainly give you some guidelines on how [27:16.370 --> 27:20.790] to root it, how to recover stuff from the memory. Um, the results might be interesting. [27:22.570 --> 27:40.500] Anyway, that's the end of the talk. You're all staring at me. If anyone's got any questions, [27:40.520 --> 27:53.250] uh, please ask. Oh, hi, Ryan. Oh, yeah, yeah, yeah. Okay. So, yeah, if you just want another [27:53.250 --> 27:58.310] amusing story, they, they did send us a, um, a bounty device eventually. It took a lot of [27:58.310 --> 28:02.990] convincing. Um, and when they sent us a bounty device, we rooted it and we found that Daniel [28:02.990 --> 28:09.170] Kaysen's, uh, SSID and PSK for his Wi-Fi, his home Wi-Fi, were stored in the device and left [28:09.170 --> 28:14.190] in the device. So, provisioned it at home, put the, the funds onto it, and, uh, left them [28:14.190 --> 28:23.170] in there, which allowed us to geolocate his house. Um, good OPSEC. There's a million funny [28:23.170 --> 28:26.730] things that happened that I've probably completely forgotten about. It was, it was good [28:26.730 --> 28:37.830] fun. Anything else from anybody? Am I going to get jumped on the way out by BitFi? Hope so. [28:38.790 --> 28:39.970] Thank you, people.