WEBVTT

00:00.000 --> 00:01.240
Is everybody ready for this?

00:01.240 --> 00:03.620
So like I said, I said I'd be dressed as a clown.

00:03.620 --> 00:04.840
I'm not dressed as a clown.

00:05.100 --> 00:09.260
I'm dressed as Pikachu, kind of.

00:09.260 --> 00:10.900
Some kind of fucked up Pikachu.

00:13.780 --> 00:18.920
Now, I'm going to use the word fuck a lot in this, so if you're offended by the word fuck, probably best to leave the room.

00:19.400 --> 00:22.340
I'll try to keep it to the minimum, but that's probably quite high level.

00:22.600 --> 00:25.120
I'd imagine most of you here know what BitFi is.

00:25.120 --> 00:26.720
So this is a BitFi thing.

00:27.280 --> 00:29.140
I don't really know what you should call it.

00:29.140 --> 00:30.080
It's a device.

00:30.080 --> 00:31.960
It's not the wallet, but there's one there.

00:31.960 --> 00:33.760
We've got one that's broken, one that's working.

00:33.840 --> 00:36.580
But the claim that BitFi said was it was unhackable.

00:36.580 --> 00:39.280
They said the device was completely unhackable.

00:40.100 --> 00:43.440
Now, to work out why they said it's unhackable, we've got to go into cryptocurrencies a bit.

00:43.560 --> 00:47.080
So the way that cryptocurrencies work is you've got a private public key pair.

00:47.240 --> 00:51.660
You deposit funds onto the public key and you need to use the private key to spend those funds.

00:51.660 --> 00:52.600
It's pretty simple.

00:53.300 --> 00:57.840
Now, the problem is if someone gets hold of your private key, they take your private key, they can steal your funds.

00:57.840 --> 01:00.080
So protecting that private key is important.

01:00.560 --> 01:04.940
So what people started doing at first is they started moving their keys onto USB sticks.

01:05.080 --> 01:07.680
So the key wasn't always stored on your laptop.

01:07.860 --> 01:09.060
Now, that kind of works.

01:09.060 --> 01:10.320
It adds some protection.

01:10.320 --> 01:13.760
But the problem is you have to move that key back to the laptop to sign.

01:13.760 --> 01:17.020
When you do that, if your laptop's compromised, you'll lose your key.

01:17.020 --> 01:18.220
You've lost your funds.

01:19.500 --> 01:23.420
Now, the next problem, people, they invented things called wallets.

01:23.420 --> 01:26.220
And those wallets, they're a black box that holds your key.

01:26.220 --> 01:27.420
So they store the key inside.

01:27.420 --> 01:28.960
The key never has to leave.

01:28.960 --> 01:32.460
The idea is you send a transaction through to the wallet and it will sign it.

01:32.640 --> 01:37.840
Now, the problem there is if someone steals your wallet, they can still send a transaction to it and sign it.

01:38.100 --> 01:41.280
So to combat this, what they did was they added pin numbers to the wallets.

01:41.280 --> 01:43.940
So you can type a pin number in to protect that key.

01:44.280 --> 01:48.080
So ledger, trezor, you will type a pin number in before you can use that key.

01:48.160 --> 01:50.120
Again, this is added protection.

01:50.120 --> 01:51.620
Things are getting better and better.

01:51.980 --> 02:00.780
So the next stage, what people do, is they said, well, what happens instead of saying send one bitcoin to cyber Gibbons, what happens if I say send 100 bitcoins to McAfee?

02:01.080 --> 02:03.320
The device, you don't know what it's signing.

02:03.320 --> 02:04.880
You can't tell what it's signing.

02:04.880 --> 02:06.320
So they added displays to them.

02:06.320 --> 02:09.000
So it will say the transaction you're trying to carry out.

02:09.560 --> 02:13.860
Next problem, if I ask someone to generate a password, they'll make a bad password.

02:13.940 --> 02:22.220
So instead of letting users choose passwords, what they do is they use a random number generator that's inside the device, and that will generate the password for you.

02:22.220 --> 02:23.820
So it becomes unpredictable.

02:24.160 --> 02:27.060
So we've got these four things that normal hardware wallets do.

02:27.200 --> 02:28.180
BitFi is different, though.

02:28.180 --> 02:29.160
BitFi is very different.

02:29.160 --> 02:31.180
Do we actually have anyone from BitFi here?

02:33.820 --> 02:35.220
Maybe not admitting it, then.

02:35.220 --> 02:35.960
We'll see.

02:37.080 --> 02:40.180
So what BitFi does is the user has the key.

02:40.180 --> 02:45.440
The user has a seed and a phrase, and every time they want to do a transaction, they'll type it into the device.

02:45.920 --> 02:48.160
It will then sign that transaction and send it.

02:48.160 --> 02:50.920
Now, most people would call this a brain wallet.

02:51.460 --> 02:52.980
It's stored in your brain.

02:53.020 --> 02:58.320
So their kind of thing was, your private keys are never stored anywhere except your own brain.

02:58.860 --> 03:00.620
Now, to me, this sounds like bullshit.

03:01.020 --> 03:03.340
That has got to be typed into the device.

03:03.340 --> 03:07.020
There's no way that key doesn't also exist on the device.

03:07.500 --> 03:09.020
So they set up this bounty.

03:09.020 --> 03:10.520
This is what got us really interested.

03:10.520 --> 03:15.420
It was actually my colleague at the back there who I'm not going to, not going to name because I don't know what his name is.

03:15.420 --> 03:16.100
Dave?

03:16.800 --> 03:17.460
G?

03:17.500 --> 03:18.100
Whatever.

03:18.100 --> 03:18.820
Ali G.

03:18.820 --> 03:19.780
Let's go for that.

03:19.780 --> 03:22.920
Now, this bounty, it said that they deposit the coins onto a BitFi.

03:22.920 --> 03:24.500
Then they give you the BitFi.

03:24.500 --> 03:27.900
They'll send a BitFi to you, and you have to recover the keys from that device.

03:28.040 --> 03:31.520
Now, this kind of sounds like a rigged fairground, fairground game to me.

03:31.520 --> 03:38.080
The bounty here, it's, it's only going to cover one very, very specific attack, which is just attacking the device they've sent you.

03:38.600 --> 03:40.000
They made this really weird statement.

03:40.000 --> 03:46.840
The bounty program is not intended to help BitFi identify security vulnerabilities, since we already claim that our security is absolute.

03:46.980 --> 03:49.400
So they're saying that, that, that device cannot be hacked.

03:49.400 --> 03:52.580
So what's the point in setting up a bounty program if your device can't be hacked?

03:53.020 --> 03:58.000
So what they actually mean by unhackable is it's not vulnerable to one very, very specific attack.

03:58.000 --> 04:06.360
Them sending you a device that they've put a seed and phrase on, probably turned the power off, sent it to you for days in the post, and then you tried to recover the funds off that.

04:06.380 --> 04:10.800
So what we're looking at here is a rigged cold boot attack versus evil maid.

04:10.800 --> 04:14.020
If I can backdoor your device, that's a much more powerful attack.

04:14.200 --> 04:16.680
Now everything I'm going to talk about here, it wasn't me.

04:16.720 --> 04:18.980
I'm, I'm just a dick on the internet, to be honest.

04:19.340 --> 04:22.580
Most other people did the work here, so I'm presenting other people's work.

04:22.720 --> 04:24.060
So we have got the team.

04:24.920 --> 04:31.680
Oddly we got known as Thickmcascale, which is the hacker collective mistakenly known as CyberGift, and somehow sometimes called Oversoft.

04:32.800 --> 04:34.600
The media actually took this and ran with it.

04:34.600 --> 04:37.480
They started calling it Thickmcascale in, in stories.

04:37.500 --> 04:53.300
Um, it was mainly made up of me, a couple of colleagues who don't want to be named, um, Spadawea, who's somewhere between the age of four and 16, depending on who you speak to, um, Oversoft, uh, Ryan Castellucci, who may well be here, I'm not sure, but lots and lots of different people.

04:53.760 --> 04:58.300
Now the claims that BitFi made, now, you all know John McAfee, yeah?

04:58.480 --> 04:59.180
Yeah?

04:59.180 --> 05:00.520
The inventor of cybersecurity?

05:00.700 --> 05:07.440
Well, he was involved with the marketing of this product, and the first thing he does is he says, there is no memory to hack in this device.

05:07.440 --> 05:10.980
No data, all of your money is stored in a memorable phrase of your choice in your head.

05:11.620 --> 05:13.340
There's no memory to hack.

05:13.520 --> 05:14.560
So we got the BitFi.

05:15.680 --> 05:22.740
Um, that, that chip, the one that says 4C in big letters is, is a EMMC flash memory chip.

05:23.220 --> 05:23.700
Hmm.

05:23.700 --> 05:27.800
So we kind of challenged him on this, uh, and he says, there is no RAM.

05:27.800 --> 05:29.680
There is no RAM on the device.

05:32.160 --> 05:38.640
That, that, that, that says LPDDR3, which low power DDR RAM, that's, that's RAM.

05:38.640 --> 05:39.360
Hmm.

05:39.460 --> 05:41.160
It's not looking good here, is it really?

05:41.160 --> 05:43.860
The BitFi wallet is only 120 US dollars.

05:43.860 --> 05:48.400
As a computing device, it's much more costly to manufacture than ordinary hardware wallets.

05:48.880 --> 05:51.460
It's a shitty media tech phone.

05:51.460 --> 05:54.440
It's a, there's nothing to it.

05:54.440 --> 05:58.980
You can buy these devices on AliExpress for 30 bucks.

05:58.980 --> 06:00.200
There's nothing to it.

06:00.360 --> 06:01.660
Uh, we call it a phone.

06:01.660 --> 06:06.060
Um, it's absolutely not a cell phone or anything even resembling a cell phone.

06:06.060 --> 06:07.840
All cell phones are hackable.

06:08.320 --> 06:10.800
That fucking looks like a phone to me.

06:12.700 --> 06:15.540
There was some kind of corroborating evidence here though.

06:16.300 --> 06:16.860
Yeah.

06:16.920 --> 06:18.460
Sim one.

06:20.840 --> 06:22.720
Subscriber identity module maybe?

06:22.720 --> 06:23.380
I, I don't know.

06:23.380 --> 06:25.540
This isn't my specialist subject to be honest.

06:26.060 --> 06:27.480
There's their website.

06:28.240 --> 06:29.920
The image on their own site.

06:30.060 --> 06:32.480
Smartphone dash one dot PNG.

06:34.680 --> 06:36.240
Fucking hell.

06:37.340 --> 06:38.360
Key functions.

06:38.360 --> 06:40.320
Now this is from the FCC documentation.

06:40.320 --> 06:45.700
If you sell a device in the US that transmits Wi-Fi cellular, you have to get it FCC certified.

06:45.880 --> 06:48.460
Now we were quite surprised they actually went to this extent.

06:48.460 --> 06:49.700
Um, it's, it's fairly common.

06:49.700 --> 06:54.640
We, we've actually managed to get a, a, was it a Bluetooth cock ring?

06:54.640 --> 06:55.240
I think.

06:55.240 --> 06:58.000
Withdrawn from the market because it didn't have FCC certification.

06:58.000 --> 07:00.200
But anyway, that's another story for another time.

07:00.480 --> 07:04.560
But the FCC certification calls it a phone.

07:05.600 --> 07:07.640
I'm fairly sure that McAfee is wrong here.

07:08.020 --> 07:11.880
Now people are asking, can't someone just look over your shoulder and see what phrase they are typing?

07:11.880 --> 07:13.100
No, no, no.

07:13.100 --> 07:17.040
The bit five wallet has a screen with an extremely narrow viewing angle.

07:17.040 --> 07:17.700
Try it.

07:17.700 --> 07:18.860
No, you won't be able to see anything.

07:21.640 --> 07:24.860
Again, I'm not an expert in angles or anything like that.

07:25.100 --> 07:26.980
That, that, that looks not narrow to me.

07:26.980 --> 07:29.060
You can read my phrase off that.

07:29.160 --> 07:30.120
It got better though.

07:30.120 --> 07:38.580
So, uh, some guy, uh, who I think was kind of a bit of a, a shill, uh, posted this image saying that you can't read the key off the screen.

07:38.780 --> 07:43.020
Um, so what we did was we, we enhanced the contrast and reduced the brightness slightly.

07:43.320 --> 07:48.120
Um, and thanks to Ryan's help, we wrote a little script that allowed us to convert that.

07:48.560 --> 07:54.040
Um, and what we found out was that the passphrase was in fact, why is Dan so crazy about Monero?

07:54.160 --> 07:57.560
And the seed was test 70 at bit five dot com.

07:57.700 --> 08:04.600
Um, so we'd reconstructed that key from someone posting an image on the internet, proving the point that had a narrow viewing angle.

08:04.680 --> 08:06.960
Uh, we were quite kind about the way we demonstrated this.

08:06.960 --> 08:08.140
We stole his money.

08:08.320 --> 08:17.380
Um, we, we transferred it to another account, um, and paid the transaction fees like, cause we're nice people fundamentally.

08:17.760 --> 08:23.680
Um, the get, the best thing was another one of these kind of guys, he kept on pimping it on, um, on Twitter.

08:23.960 --> 08:34.080
Uh, he said, but in this case, thanks to image editing software or techniques such as techniques required to read Poison's passphrase, it would be possible to attain his phrase.

08:34.140 --> 08:38.700
Without changing brightness contrast, his funds would have been safe.

08:40.220 --> 08:42.040
These are advanced tools.

08:42.040 --> 08:43.720
You thought the NSA had good stuff?

08:43.720 --> 08:44.840
I've got paint.

08:46.960 --> 08:49.000
So we're going to move on to the actual hacks.

08:49.740 --> 08:55.300
Now, the first thing that, that seemed weird was, uh, I don't know if Elliot, whose name I've forgotten is here either.

08:55.340 --> 09:04.380
Um, he got his, and what he noticed was the serial number that's printed in the back of the case differed to the serial number that was on the box that he received.

09:04.380 --> 09:08.260
Now, this isn't great for something where supply chain tampering could be a problem.

09:08.260 --> 09:10.940
In fact, it's quite a big problem that it might have been tampered with.

09:10.940 --> 09:13.840
Um, they didn't really have a particularly good response to that, to be honest.

09:13.840 --> 09:16.620
They didn't really have a particularly good response to any of this.

09:16.940 --> 09:19.420
Um, the first attack we came up with was really simple.

09:19.440 --> 09:24.880
Um, the digitizer, the thing on the screen that detects where your finger goes is I2C, a serial protocol.

09:24.900 --> 09:27.680
Um, and it's unencrypted and exposed.

09:27.700 --> 09:33.060
So I could take a bit file and I can attach to the I2C bus and sniff the key presses.

09:33.280 --> 09:37.200
It's exposed, so you can see the ribbon there where it's got those on.

09:37.400 --> 09:38.800
You, it's even labeled them for me.

09:38.800 --> 09:40.600
So you could definitely fit that in this case.

09:40.600 --> 09:41.240
There's a lot of room.

09:41.240 --> 09:42.920
It's not a very advanced attack.

09:43.120 --> 09:44.820
So the next thing we wanted to do was root it.

09:44.820 --> 09:48.960
Now, I, I'd imagine a few people in this room have worked with MediaTek phones before.

09:49.020 --> 09:52.160
And they kind of got this reputation for being really, really easy to root.

09:52.360 --> 09:57.800
First thing we do is we use their own tool to pull the uh, flash memory out through USB.

09:58.140 --> 10:01.760
Um, that gives us access to all of the partitions, which is pretty easy.

10:01.840 --> 10:09.540
The data partition was actually encrypted, which was unexpected, so we had to root it by modifying the RAM disk, and at which point we had root on that device.

10:10.180 --> 10:19.980
What we then did was took a memory dump off my device, so I'd made a transaction, sent the memory dump to Ryan, and he wrote a little script, um, that pulled out potential candidates.

10:20.040 --> 10:22.660
And you can see there, one , one, one, one, two, two, two, two, two.

10:22.740 --> 10:24.240
That's my seed in phrase.

10:24.240 --> 10:26.000
So he could now steal my funds.

10:26.360 --> 10:29.780
Now, at this stage, BitFi had already been kicking off a bit, and we won a pony.

10:29.780 --> 10:30.700
So this was last year.

10:30.700 --> 10:35.200
Well, I say we won a pony, BitFi won a pony, but I think it might have been a bit more to do with us.

10:35.540 --> 10:38.200
So we got this little gold pony, which is great.

10:38.440 --> 10:40.460
Um, it got better, though.

10:41.340 --> 10:48.880
Um, we had root, and, uh, so what we decided to do was, uh, the typical thing, play Doom on it.

10:50.040 --> 10:54.640
So this is, this is, uh, this is Salim Spadawaya, who's, um, who's doing this.

10:54.660 --> 10:58.240
Um, we posted this to prove we rooted the device.

10:58.240 --> 11:00.800
Um, BitFi said that this wasn't a problem .

11:00.800 --> 11:05.900
You might have noticed right at the beginning of that, there was some wires taped onto the back, and the back was open.

11:05.900 --> 11:07.340
You don't need to do that.

11:07.340 --> 11:11.080
It, we were just using it to distract from the fact that it was so easy to root.

11:11.920 --> 11:14.560
Now, the thing was, they said you could purchase it from any source.

11:14.560 --> 11:23.540
Now, Tracer and Ledger, the supply chain tampering issue, if someone intercepts the Tracer or the Ledger and puts their own firmware, changes the hardware, this is a problem.

11:23.700 --> 11:27.940
These guys were claiming that it wasn't a problem, so someone couldn't man in the middle the hardware.

11:28.700 --> 11:32.160
They said it didn't work because each device has a specific digital signature.

11:32.160 --> 11:35.240
And they were so confident about this, they actually started another bounty.

11:35.820 --> 11:37.580
So, I got a BitFi.

11:38.060 --> 11:46.600
I rooted it, and there you can see the two different processes running, the Knox admin one that does the bulk of the firmware stuff and the Rokits one that does the actual wallet.

11:47.360 --> 11:49.540
I can see it establishing connection out there.

11:49.900 --> 11:55.460
I put my own certificate on the device, and I could intercept all the requests coming to and from the device.

11:56.320 --> 12:02.200
So now when it asks me to sign and pay, as an attacker, I've got the ability to send arbitrary transactions to a device.

12:02.200 --> 12:03.380
I can man in the middle them.

12:03.380 --> 12:05.500
So this digital signature thing, it's crap.

12:05.500 --> 12:06.840
It doesn't exist.

12:07.280 --> 12:13.640
The next attack was after we'd rooted it, what we realized was on Android it's really easy to find the coordinates where you touch the screen.

12:13.980 --> 12:18.240
So you can just read out the ITC, the coordinates, where it's coming from the digitizer.

12:18.280 --> 12:31.920
So I wrote a little script to deal with this, and what that does, you type in the seed and phrase, and if we skip a bit because it's a bit slow, and I can't work out how to do that, um, we do that.

12:32.560 --> 12:36.200
It, it harvests those events, and it sends them through to a remote computer.

12:36.200 --> 12:38.220
So now again, we've got the seed and passphrase.

12:38.220 --> 12:45.080
It wasn't a particularly advanced attack, um, but we made a transaction with the man in the middle bit fi, we'd recovered the seed and phrase, it's done .

12:47.280 --> 12:53.400
Selim, of course, is about 80 times more hardcore than me, and he made a much better attack.

12:53.620 --> 12:56.680
Um, he made it so that it automatically sent it.

12:56.680 --> 12:58.260
There was none of this messing about coordinates.

12:58.260 --> 12:59.680
He recovered it from memory.

12:59.680 --> 13:01.160
It was much more effective.

13:01.280 --> 13:05.420
We pretty much demonstrated that evil made was a real problem.

13:05.880 --> 13:09.260
We told them, and they canceled the bounty.

13:11.360 --> 13:15.080
So once we got the bounty, they said the bounty wasn't there anymore.

13:15.480 --> 13:18.740
Uh, up until this point, they hadn't admitted the keys were ever in RAM.

13:18.760 --> 13:23.440
Uh, and then in the direct message exchange, they did actually say the keys do stay in RAM for a brief period of time.

13:23.440 --> 13:26.160
So if someone can extract that memory, they can get them.

13:27.800 --> 13:29.580
This is kind of what a bit fi looks like.

13:29.580 --> 13:31.620
You've got USB going into the microcontroller.

13:31.620 --> 13:34.720
You've got the keys, which will be stored in DDR RAM at some point.

13:35.640 --> 13:36.920
Now they've made an assumption.

13:36.920 --> 13:43.520
They said, we think that if the guy was able to retrieve the private key from the device or something like that, it would have to be done on a rooted device.

13:43.640 --> 13:46.400
But if you root a device, you have to restart it.

13:46.400 --> 13:48.160
And it wipes the RAM clean.

13:49.100 --> 13:50.440
Now we're hackers.

13:50.620 --> 13:53.700
When you restart it, it wipes the RAM clean.

13:54.160 --> 14:01.460
Now Ryan, who I've just spotted, said much of hacking is about understanding systems better than those who built them and using that knowledge to do what's supposed to be impossible.

14:02.300 --> 14:07.860
So they, they'd assumed because we rebooted the device, there'd be no way to pull those keys from RAM.

14:08.200 --> 14:09.180
They were wrong.

14:09.860 --> 14:13.860
Once again, Salim, he wrote an app, and this was incredible.

14:13.860 --> 14:14.940
It was an Android app.

14:15.020 --> 14:17.020
So we've got an unmodified bit file there.

14:17.040 --> 14:24.200
He's typing his, don't be too salty, and my very, very salty tears, or whatever it is, is his salt and phrase.

14:26.160 --> 14:28.760
Once he's done that, oh, there's no sound.

14:29.200 --> 14:30.640
Oh, okay, it doesn't matter.

14:31.640 --> 14:33.120
It processes that request.

14:33.120 --> 14:34.440
So it sent that transaction.

14:34.780 --> 14:35.520
Success.

14:35.520 --> 14:37.280
He's now going to power off the device.

14:37.300 --> 14:39.440
So he's proving it's not modified like a magician.

14:39.600 --> 14:41.920
Plugs in USB, reboots the device.

14:42.480 --> 14:50.440
The attacking device then routes it after it's rebooted, scans the memory, and within a few seconds, it's recovered the key.

14:51.120 --> 14:53.380
Now, this is a complete break of the device.

14:53.380 --> 14:56.820
Not only is evil made a problem, but cold boot is also a problem.

14:57.100 --> 15:00.620
It's, it's not better than storing it on a USB stick, to be honest.

15:01.040 --> 15:02.140
Then it gets fun.

15:02.140 --> 15:03.140
That's the technical bit.

15:03.140 --> 15:04.220
Now the fun starts.

15:04.220 --> 15:05.520
It's their response.

15:07.400 --> 15:09.920
No one gets a RAM and penny from the wallet.

15:09.920 --> 15:11.560
All these hack claims are meaningless.

15:11.560 --> 15:14.260
No one came, came close to taking the coins from it.

15:15.320 --> 15:20.020
It took a bit of a dark turn.

15:20.020 --> 15:22.840
So McAfee was denying it and then BitFi tweeted this out.

15:22.920 --> 15:24.940
This is my last tweet as my shift is ending.

15:24.940 --> 15:29.240
But did you guys ever bother to look into who you picked a fight with and the resources these people have?

15:29.240 --> 15:30.280
Not wise.

15:30.340 --> 15:34.440
Remember the lies and deception you deliberately spread about BitFi can have consequences.

15:34.720 --> 15:37.780
That's quite a threatening tweet in the general scheme of things.

15:37.780 --> 15:44.260
I mean, it's, I'd rather get that than a dick pic, but when it comes down to it, well.

15:44.360 --> 15:46.900
Now they claimed that it was actually to do with this.

15:46.900 --> 15:49.000
Now we modified their logo somewhat.

15:51.320 --> 15:54.780
My colleague over there, he's a genius at stuff like this.

15:54.780 --> 15:56.220
I couldn't have done it so good.

15:56.880 --> 15:58.880
That was my avatar for a while.

15:59.260 --> 16:02.680
It, it did appear to irritate BitFi quite a bit.

16:02.680 --> 16:03.840
I guess that was the point.

16:04.680 --> 16:06.680
They also came out with some other brilliant stuff.

16:06.740 --> 16:12.380
We also think it's rather disappointing that a lot of media picked up on claims made by some person hiding behind a picture of a cat.

16:12.520 --> 16:17.500
Now we're not quite sure if they're actually talking about Daniel Gallagher, who is also part of the team, or me.

16:17.900 --> 16:22.380
I mean, I kind of look like a cat with the hood up a bit, I guess, but I don't really know.

16:22.580 --> 16:23.640
Very strange.

16:24.320 --> 16:30.980
And if you look at that guy who's been posting all this, CyberGimmons, the guy posts something every two seconds, 24 hours a day, like he doesn't sleep or something.

16:30.980 --> 16:32.000
No, I don't.

16:32.280 --> 16:36.460
If somebody had a real job in cyber security, they wouldn't have so much time to spend on Twitter.

16:39.340 --> 16:42.020
Might have a point.

16:42.800 --> 16:44.620
Now here's a smart dude making some sense around here.

16:44.620 --> 16:46.800
The yellow cat took too much acid and lost it.

16:46.800 --> 16:52.120
Now this was a, this was an account that was shilling, um, for BitFi on Twitter.

16:52.200 --> 16:58.680
Um, now an interesting thing that we noticed is that when you try and recover a password on Twitter, it leaks some information.

16:58.680 --> 17:07.640
So it leaks the last two digits of the phone number, and it leaks the first two letters of the first part, the email, and the last bit as well.

17:07.640 --> 17:20.300
Now, bitfi.com is fivecharacters.com, and Daniel Kaysen, the CEO or something of BitFi, would fit in that first bit there.

17:20.360 --> 17:24.360
You can also note that down the bottom there, lovecrypto as well, 58.

17:24.420 --> 17:27.220
Um, this was clearly linked to BitFi.

17:27.720 --> 17:29.920
Uh, McAfee really got involved at this point.

17:30.260 --> 17:31.300
Am I a wannabe?

17:31.300 --> 17:33.380
I fucking invented cyber security.

17:33.380 --> 17:35.500
Get your fucking facts right.

17:38.580 --> 17:41.180
I mean, he, he, he wasn't being about for a while.

17:41.800 --> 17:44.380
I don't, I can't remember who made this, but they sent it to me.

17:44.380 --> 17:45.680
I just, just love it.

17:47.520 --> 17:49.060
He put a challenge out to me.

17:49.060 --> 17:51.540
Okay, I have 20 million on my BitFi.

17:52.000 --> 17:54.980
I will pay your way to the states, put you up at my house for as long as you need.

17:55.140 --> 17:57.220
If you give my, if I give you the wallet.

17:57.220 --> 18:03.640
So he was putting a challenge down, 20 million, if I went to the states and attacked his wallet to get those 20 million in coins.

18:03.980 --> 18:14.380
Um, now, I don't know if you know McAfee, you don't, I don't know if you follow him on Twitter, um, but about the same time, serious dudes on a serious mission just received an order of one-off M4s.

18:15.020 --> 18:16.200
That's his house.

18:16.200 --> 18:19.220
He's got guns, really serious guns.

18:20.700 --> 18:23.720
He also hasn't been sober for 41 years.

18:25.360 --> 18:29.300
So he's invited me into his house with big guns and he hasn't been sober for 41 years.

18:29.300 --> 18:30.940
I mean, it's already sounding bad.

18:31.620 --> 18:37.540
Anti-virus inventor John McAfee went on a naked shooting spree because the Belize government wants to assassinate him.

18:37.680 --> 18:42.360
He was in the middle of having sex with his wife when the dogs started barking and he shot holes in the ceiling.

18:43.720 --> 18:46.440
I don't think it's really worth 20 million, to be honest.

18:48.240 --> 18:50.020
He then got a bit threatening on DM.

18:50.200 --> 18:51.760
Your career's finished.

18:51.820 --> 18:53.580
You'll be the laughingstock of the world.

18:53.580 --> 18:54.220
You lost dude.

18:54.220 --> 18:55.640
Go hide under a rock .

18:56.200 --> 18:58.900
He keeps on going with this and then he sends me this weird link.

18:58.900 --> 19:00.320
Now, I don't know if you've heard of Clone Zone.

19:00.320 --> 19:01.280
It's like this website.

19:01.280 --> 19:08.140
It used to be able to take, uh, the New York Times and various websites, clone it and you could modify it and then, you know, make spoof articles about other people.

19:08.140 --> 19:09.820
So he made the, well, I don't know if he made it.

19:09.820 --> 19:11.640
Someone made this one about me.

19:11.920 --> 19:18.680
Andrew Tierney, that's me, aka Cyber Givens Me, cyber security professional, cyber pervert enthusiast.

19:20.160 --> 19:27.720
This, this whole story is about how I'm some kind of like Pikachu pervert but it had this absolutely brilliant phrase in it, smash my jigglypuff.

19:29.880 --> 19:32.900
I still haven't actually found my jigglypuff.

19:35.340 --> 19:37.840
So 11 months later, we thought it all died down.

19:37.840 --> 19:40.100
We didn't really think that much was going to happen.

19:40.420 --> 19:45.120
Um, but Daniel Cason, uh, came along and set up his own Twitter account.

19:45.120 --> 19:50.120
Um, and he started getting a bit, um, responsive.

19:50.220 --> 19:51.520
Your tweets are boring and annoying.

19:51.520 --> 19:57.040
You keep trying to prove to the world that Bitfire's not perfect, yet everyone knows it's not perfect and we're not saying it's perfect.

19:57.120 --> 20:01.760
Now, the thing was, they still haven't informed the customers that they have these problems with their device.

20:01.760 --> 20:03.860
They haven't told them about the evil maid, the cold boot.

20:03.860 --> 20:07.840
They haven't allowed their customers to adjust to the change in the threat landscape.

20:10.280 --> 20:11.580
This tweet's brilliant.

20:12.000 --> 20:17.560
They're not in RAM, they are in RAM, for much less than a second, making extraction impossible.

20:17.680 --> 20:20.840
Now, we all work in security, we know things aren't binary like that.

20:20.960 --> 20:22.960
Some things are hard, some things are easy.

20:22.960 --> 20:25.320
Things are very, very rarely impossible.

20:25.660 --> 20:26.840
It's the bit at the bottom though.

20:26.840 --> 20:30.720
How many innocent people's lives have you put at risk if you're a clown act?

20:31.260 --> 20:38.420
I mean, I think it's a bit unfair calling me a clown, but I'm just thinking what I'm doing right now, stood on this stage, and yeah, maybe I am.

20:40.300 --> 20:54.160
Even more threatening stuff, when the marketing machine turns on and the media is covering all this, your incompetence, arrogance, ill intent towards others, manipulation, irresponsible security practices, an endless list of epic disasters will be fully revealed to the world.

20:54.700 --> 20:57.220
I mean, come on, it's just a vulnerability.

20:59.720 --> 21:01.280
This is epic.

21:02.820 --> 21:04.060
We aren't doing the testing.

21:04.060 --> 21:06.740
So they were claiming that they were getting a third party into test.

21:06.740 --> 21:07.600
I don't know if they are.

21:07.600 --> 21:09.640
I've got no way of telling if anything they say is true.

21:09.640 --> 21:10.680
But they aren't doing the testing.

21:10.680 --> 21:12.400
They're saying that Cellbrite are doing the testing.

21:12.400 --> 21:13.980
Now, I've got lots of respect for Cellbrite.

21:13.980 --> 21:15.780
They do some very impressive stuff.

21:16.360 --> 21:26.620
But it's a bold claim to say that on the internet, and then the VP of research at Cellbrite comes along and says, they did contact us with the request, which we declined.

21:30.800 --> 21:31.680
Muppets.

21:33.160 --> 21:38.520
Now, just to kind of actually give some kudos to them, and they said they were going to open source the code.

21:38.520 --> 21:39.760
Oh, this is so hot.

21:39.760 --> 21:41.960
They said they were going to open source the code.

21:42.000 --> 21:44.520
And they did actually allow access to the code.

21:44.520 --> 21:52.040
Now, to get access to it, you've got to download a binary and do some crazy stuff and send them a key, and eventually you get access to this tool.

21:52.060 --> 21:53.720
And you get access to the source code.

21:53.720 --> 21:56.940
Now, we were kind of expecting some things to have changed since last year.

21:56.960 --> 21:57.880
Not really.

21:57.880 --> 22:08.620
Now, it's important to note that if you ever want to wipe keys from memory in a device, simply overwriting them with zeros is really not enough.

22:08.740 --> 22:10.080
I mean, this is, this is really bad.

22:10.080 --> 22:11.400
This is not the kind of code.

22:11.400 --> 22:14.860
This is the sort of thing you do when you're 17 and messing about.

22:14.860 --> 22:16.240
It's really bad.

22:16.780 --> 22:18.720
It's not going to wipe keys from memory.

22:18.720 --> 22:22.560
An important thing to note about the way that BitFi works is it's running on an Android device.

22:22.560 --> 22:24.240
So you've got the bare metal on the outside.

22:25.300 --> 22:27.380
You've got the Android OS within that.

22:27.540 --> 22:30.260
Then you've got the Android ART inside of that.

22:30.260 --> 22:31.360
But it's also mono.

22:31.360 --> 22:32.280
It's C sharp.

22:32.280 --> 22:37.220
So it's got another layer of indirection and finally you've got the BitFi application within that.

22:37.340 --> 22:41.680
So we're talking a lot of different layers where things can go wrong.

22:41.720 --> 22:45.740
If you wipe memory within mono, it's not going to wipe it all the way up the stack.

22:45.900 --> 22:48.100
C sharp and mono use garbage collection.

22:48.120 --> 22:51.680
So if you put something on the heap, you've actually got no idea where it's going to stay on the heap.

22:51.680 --> 22:53.040
Things can move about.

22:53.720 --> 22:56.140
This is why we could originally recover the keys.

22:56.240 --> 23:01.400
Now they've, they've come up with this really, uh, interesting way of obfuscating the keys.

23:01.440 --> 23:05.320
So previously they were stored simply as, uh, ASCII bytes, I believe.

23:05.320 --> 23:06.420
I think that was how it was.

23:06.420 --> 23:17.760
So now what they do to combat us scraping the memory for ASCII bytes, those long base 64 encoded strings are PNGs of the characters.

23:17.760 --> 23:19.480
So it's a PNG of the letter A.

23:19.480 --> 23:25.880
So rather than have one byte that represents the letter A, you've now got about 60 bytes that represent the letter A.

23:25.880 --> 23:28.140
Now our cold boot attack sometimes failed.

23:28.180 --> 23:30.240
Sometimes the memory would degrade somewhat.

23:30.240 --> 23:33.780
You'd lose a bit of that memory and you'd have to guess the remaining characters.

23:33.800 --> 23:38.600
With this scheme, loads of that can degrade and you're still able to recover the data.

23:38.880 --> 23:40.920
Which we did quite easily.

23:41.180 --> 23:43.760
Um, we lost one character from that.

23:43.760 --> 23:47.020
You can see the, the, the second byte in the sort there is set to zero.

23:47.020 --> 23:49.480
That has actually been successfully wiped.

23:49.620 --> 23:50.740
Which is quite bad.

23:50.780 --> 23:52.720
So a guy called Ben Tasker did a code review.

23:52.720 --> 23:54.440
A really, really in-depth code review.

23:54.440 --> 23:56.340
It's, it's way too much for me to cover here.

23:56.340 --> 23:59.580
Um, he went through, um, a memory dump.

23:59.780 --> 24:03.580
And he, he can recover what my sort and, uh, phrase are from that.

24:03.580 --> 24:06.440
So you can see we've lost that letter E in one location in memory.

24:06.440 --> 24:06.960
That's it.

24:06.960 --> 24:08.620
That's how ineffective it is.

24:09.300 --> 24:11.820
Just looking at the rest of the code quality as well.

24:12.000 --> 24:14.320
Um, this is the, uh, SSL validator.

24:14.320 --> 24:16.820
So it makes a connection out using SSL to their servers.

24:16.820 --> 24:18.980
Now you've got to check that that connection's valid.

24:18.980 --> 24:24.420
And you can see there it says starts with www.bitfi.com.

24:24.460 --> 24:33.580
Now if you've ever done code review, I can register www.bitfi.com.cybergibbons.com and I can intercept SSL communications to these devices.

24:33.780 --> 24:35.360
This code is garbage.

24:36.220 --> 24:37.600
It's really bad.

24:37.600 --> 24:48.160
We haven't even gone into the other parts of it that to sign Bitcoin transactions, sign Apollo transactions, they've just imported arbitrary third party libraries that don't take account of this.

24:48.600 --> 24:52.800
So we got a pony last year, which Ryan collected, which was absolutely awesome.

24:52.800 --> 24:56.080
Uh, but we also got a pony this year.

24:56.280 --> 25:02.300
So I think this is the first time that we've managed it at, at one product's got a pony twice for the same thing.

25:02.300 --> 25:03.740
So lamest vendor on both of them.

25:03.740 --> 25:06.440
The thing I most like about getting the pony is this though.

25:06.440 --> 25:07.600
That's Charlie Miller.

25:07.600 --> 25:09.060
Look at his face.

25:14.670 --> 25:18.430
Now kind of getting a bit into more how we'd fix this.

25:18.430 --> 25:20.970
Now they always say the keys are never stored in RAM.

25:21.010 --> 25:25.270
That's a very different thing saying the keys are stored in RAM for a very, very short period of time .

25:25.330 --> 25:27.690
Now in reality, the bottom part is what's happening.

25:27.690 --> 25:33.490
But if you threat model for that top bit, assuming the keys are never in RAM, you're not going to be truthful to your customers .

25:33.590 --> 25:37.270
There will always be a way to recover those keys from RAM, whatever it is.

25:37.510 --> 25:40.010
So they need to communicate to this, this to their users.

25:40.010 --> 25:41.870
They need to say this device is broken.

25:41.910 --> 25:43.030
So can it be fixed?

25:43.110 --> 25:44.130
Well, maybe.

25:44.410 --> 25:46.250
Could we improve the existing hardware?

25:46.250 --> 25:58.810
Well, yeah, if it had secure boot, if they locked the boot loader so the USB just couldn't pull it out, if they cut the USB data lines, um, which I know was recommended to them, and if they made it take longer than two minutes to root it, it might be a little bit more secure.

25:59.110 --> 26:00.410
Could they improve the software?

26:00.530 --> 26:08.710
Well, yeah, if they stripped down Android a little bit, it was running, uh, a browser, uh, an alarm clock, you know, the standard Android stuff in the background.

26:08.710 --> 26:11.330
So it was always attack surface they had that was unnecessary.

26:11.710 --> 26:17.350
If you get closer to the metal, if you look at ledger and tracer, they're running on microcontrollers using custom code.

26:17.350 --> 26:19.410
It's much easier to validate that.

26:19.730 --> 26:22.630
Secure development practices, um, would be a good thing to do.

26:22.630 --> 26:24.450
And also just fucking test the thing.

26:24.450 --> 26:30.010
It took a, a kid, like Salim is not, he's not had the world experience.

26:30.010 --> 26:32.430
He's not spent hundreds of hours working on these things.

26:32.430 --> 26:37.910
It took him probably three or four days to go from nothing to a fully working cold boot attack.

26:37.910 --> 26:39.430
That's really quite extreme.

26:40.370 --> 26:46.310
If they're going with new hardware, well, we'd suggest they use a microcontroller, secure element, minimize the OS and things like that.

26:46.310 --> 26:49.510
But I think fundamentally the thing with BitFi is they need new people.

26:50.530 --> 26:52.590
They've abused the trust of their customers.

26:52.590 --> 26:54.510
You know, this device is not secure.

26:54.510 --> 26:56.430
It never has been secure for the last 11 months.

26:56.430 --> 26:58.530
As far as we're aware, nothing's changed.

26:58.930 --> 27:01.030
Now, they could demonstrate they've changed.

27:01.030 --> 27:02.850
They could get someone to pen test it.

27:02.870 --> 27:04.370
I'm not fucking doing it.

27:04.510 --> 27:06.930
Um, but they are gonna be here tomorrow, they say.

27:06.930 --> 27:10.010
So, I'm not sure if they're gonna be here or over in the hardware hacking village.

27:10.010 --> 27:14.250
So, I'd suggest maybe if someone could be bothered to take a look at themselves.

27:14.390 --> 27:18.510
Um, we can certainly give you some guidelines on how to root it, how to recover stuff from the memory.

27:18.650 --> 27:20.790
Um, the results might be interesting.

27:22.570 --> 27:24.890
Anyway, that's the end of the talk.

27:36.860 --> 27:38.300
You're all staring at me.

27:39.200 --> 27:43.820
If anyone's got any questions, uh, please ask.

27:43.820 --> 27:44.840
Oh, hi, Ryan.

27:49.410 --> 27:50.890
Oh, yeah, yeah, yeah.

27:50.890 --> 27:51.530
Okay.

27:51.630 --> 27:57.810
So, yeah, if you just want another amusing story, they, they did send us a, um, a bounty device eventually.

27:57.810 --> 27:58.970
It took a lot of convincing.

27:58.970 --> 28:09.970
Um, and when they sent us a bounty device, we rooted it and we found that Daniel Kaysen's, uh, SSID and PSK for his Wi-Fi, his home Wi-Fi, were stored in the device and left in the device.

28:09.970 --> 28:16.970
So, provisioned it at home, put the, the funds onto it, and, uh, left them in there, which allowed us to geolocate his house.

28:17.390 --> 28:20.330
Um, good OPSEC.

28:21.910 --> 28:25.570
There's a million funny things that happened that I've probably completely forgotten about.

28:26.110 --> 28:27.370
It was, it was good fun.

28:28.050 --> 28:29.510
Anything else from anybody?

28:31.790 --> 28:34.490
Am I going to get jumped on the way out by BitFi?

28:36.770 --> 28:37.830
Hope so.

28:38.790 --> 28:39.970
Thank you, people.

