start	end	text
0	3820	Is everybody ready for this? So like I said, I said I'd be dressed as a clown. I'm not
3820	14840	dressed as a clown. I'm dressed as Pikachu, kind of. Some kind of fucked up Pikachu. Now,
14840	17720	I'm going to use the word fuck a lot in this, so if you're offended by the word fuck, probably
17720	21560	best to leave the room. I'll try to keep it to the minimum, but that's probably quite
21560	27540	high level. I'd imagine most of you here know what BitFi is. So this is a BitFi thing. I
27540	31500	don't really know what you should call it. It's a device. It's not the wallet, but there's
31500	35120	one there. We've got one that's broken, one that's working. But the claim that BitFi said
35120	40760	was it was unhackable. They said the device was completely unhackable. Now, to work out
40760	43880	why they said it's unhackable, we've got to go into cryptocurrencies a bit. So the way
43880	48120	that cryptocurrencies work is you've got a private public key pair. You deposit funds
48120	51960	onto the public key and you need to use the private key to spend those funds. It's pretty
51960	56220	simple. Now, the problem is if someone gets hold of your private key, they take your private
56220	61040	key, they can steal your funds. So protecting that private key is important. So what people
61040	66000	started doing at first is they started moving their keys onto USB sticks. So the key wasn't
66000	70580	always stored on your laptop. Now, that kind of works. It adds some protection. But the
70580	74600	problem is you have to move that key back to the laptop to sign. When you do that, if
74600	80600	your laptop's compromised, you'll lose your key. You've lost your funds. Now, the next
80600	84580	problem, people, they invented things called wallets. And those wallets, they're a black
84580	89100	box that holds your key. So they store the key inside. The key never has to leave. The
89100	93120	idea is you send a transaction through to the wallet and it will sign it. Now, the problem
93120	97280	there is if someone steals your wallet, they can still send a transaction to it and sign
97280	101600	it. So to combat this, what they did was they added pin numbers to the wallets. So you can
101600	106460	type a pin number in to protect that key. So ledger, trezor, you will type a pin number
106460	110880	in before you can use that key. Again, this is added protection. Things are getting better
110880	115420	and better. So the next stage, what people do, is they said, well, what happens instead
115420	119980	of saying send one bitcoin to cyber Gibbons, what happens if I say send 100 bitcoins to
119980	124880	McAfee? The device, you don't know what it's signing. You can't tell what it's signing.
124880	128400	So they added displays to them. So it will say the transaction you're trying to carry
128400	134120	out. Next problem, if I ask someone to generate a password, they'll make a bad password. So
134120	138380	instead of letting users choose passwords, what they do is they use a random number generator
138820	142840	that's inside the device, and that will generate the password for you. So it becomes
142840	147520	unpredictable. So we've got these four things that normal hardware wallets do. BitFi is
147520	151180	different, though. BitFi is very different. Do we actually have anyone from BitFi here?
153820	160320	Maybe not admitting it, then. We'll see. So what BitFi does is the user has the key. The
160320	164340	user has a seed and a phrase, and every time they want to do a transaction, they'll type
164340	168940	it into the device. It will then sign that transaction and send it. Now, most people
168940	174320	would call this a brain wallet. It's stored in your brain. So their kind of thing was,
174320	179780	your private keys are never stored anywhere except your own brain. Now, to me, this sounds
179780	184980	like bullshit. That has got to be typed into the device. There's no way that key doesn't
184980	190520	also exist on the device. So they set up this bounty. This is what got us really interested.
190520	194340	It was actually my colleague at the back there who I'm not going to, not going to name
194340	200060	because I don't know what his name is. Dave? G? Whatever. Ali G. Let's go for that. Now,
200060	203800	this bounty, it said that they deposit the coins onto a BitFi. Then they give you the
203800	208260	BitFi. They'll send a BitFi to you, and you have to recover the keys from that device. Now,
208260	212840	this kind of sounds like a rigged fairground, fairground game to me. The bounty here, it's,
212840	217100	it's only going to cover one very, very specific attack, which is just attacking the device
217100	220940	they've sent you. They made this really weird statement. The bounty program is not
220940	225180	intended to help BitFi identify security vulnerabilities, since we already claim that our
225180	229640	security is absolute. So they're saying that, that, that device cannot be hacked. So what's
229640	233500	the point in setting up a bounty program if your device can't be hacked? So what they
233500	238180	actually mean by unhackable is it's not vulnerable to one very, very specific attack. Them
238180	242660	sending you a device that they've put a seed and phrase on, probably turned the power off,
242660	246700	sent it to you for days in the post, and then you tried to recover the funds off that. So
246700	251580	what we're looking at here is a rigged cold boot attack versus evil maid. If I can backdoor
251580	255400	your device, that's a much more powerful attack. Now everything I'm going to talk about
255400	260180	here, it wasn't me. I'm, I'm just a dick on the internet, to be honest. Most other people
260180	265280	did the work here, so I'm presenting other people's work. So we have got the team. Oddly
265280	268920	we got known as Thickmcascale, which is the hacker collective mistakenly known as
268920	274160	CyberGift, and somehow sometimes called Oversoft. The media actually took this and
274160	278800	ran with it. They started calling it Thickmcascale in, in stories. Um, it was mainly made up
278800	283560	of me, a couple of colleagues who don't want to be named, um, Spadawea, who's somewhere
283560	288440	between the age of four and 16, depending on who you speak to, um, Oversoft, uh, Ryan
288440	293300	Castellucci, who may well be here, I'm not sure, but lots and lots of different people.
293760	299600	Now the claims that BitFi made, now, you all know John McAfee, yeah? Yeah? The inventor
299600	304340	of cybersecurity? Well, he was involved with the marketing of this product, and the first
304340	308360	thing he does is he says, there is no memory to hack in this device. No data, all of your
308360	312660	money is stored in a memorable phrase of your choice in your head. There's no memory to
312660	319320	hack. So we got the BitFi. Um, that, that chip, the one that says 4C in big letters
319320	325820	is, is a EMMC flash memory chip. Hmm. So we kind of challenged him on this, uh, and he
325820	335140	says, there is no RAM. There is no RAM on the device. That, that, that, that says LPDDR3,
335140	341160	which low power DDR RAM, that's, that's RAM. Hmm. It's not looking good here, is it really?
341160	345880	The BitFi wallet is only 120 US dollars. As a computing device, it's much more costly to
345880	353540	manufacture than ordinary hardware wallets. It's a shitty media tech phone. It's a, there's
353540	359560	nothing to it. You can buy these devices on AliExpress for 30 bucks. There's nothing to
359560	365700	it. Uh, we call it a phone. Um, it's absolutely not a cell phone or anything even resembling a
365700	373580	cell phone. All cell phones are hackable. That fucking looks like a phone to me. There was
373580	382220	some kind of corroborating evidence here though. Yeah. Sim one. Subscriber identity module
382220	386620	maybe? I, I don't know. This isn't my specialist subject to be honest. There's their
386620	397780	website. The image on their own site. Smartphone dash one dot PNG. Fucking hell. Key
397780	402040	functions. Now this is from the FCC documentation. If you sell a device in the US that
402040	407000	transmits Wi-Fi cellular, you have to get it FCC certified. Now we were quite surprised they
407000	411160	actually went to this extent. Um, it's, it's fairly common. We, we've actually managed to
411160	416580	get a, a, was it a Bluetooth cock ring? I think. Withdrawn from the market because it didn't
416580	421200	have FCC certification. But anyway, that's another story for another time. But the FCC
421200	428640	certification calls it a phone. I'm fairly sure that McAfee is wrong here. Now people are
428640	432260	asking, can't someone just look over your shoulder and see what phrase they are typing? No,
432260	437700	no, no. The bit five wallet has a screen with an extremely narrow viewing angle. Try it.
437700	444240	No, you won't be able to see anything. Again, I'm not an expert in angles or anything like
444240	449740	that. That, that, that looks not narrow to me. You can read my phrase off that. It got better
449740	455500	though. So, uh, some guy, uh, who I think was kind of a bit of a, a shill, uh, posted this image
455500	461140	saying that you can't read the key off the screen. Um, so what we did was we, we enhanced the
461140	465800	contrast and reduced the brightness slightly. Um, and thanks to Ryan's help, we wrote a little
465800	471540	script that allowed us to convert that. Um, and what we found out was that the passphrase was
471540	478180	in fact, why is Dan so crazy about Monero? And the seed was test 70 at bit five dot com. Um, so
478180	482780	we'd reconstructed that key from someone posting an image on the internet, proving the point
482780	486960	that had a narrow viewing angle. Uh, we were quite kind about the way we demonstrated this.
486960	494720	We stole his money. Um, we, we transferred it to another account, um, and paid the
494720	499420	transaction fees like, cause we're nice people fundamentally. Um, the get, the best thing was
499420	506200	another one of these kind of guys, he kept on pimping it on, um, on Twitter. Uh, he said, but
506200	510580	in this case, thanks to image editing software or techniques such as techniques required to
510580	515340	read Poison's passphrase, it would be possible to attain his phrase. Without changing
515340	522420	brightness contrast, his funds would have been safe. These are advanced tools. You thought
522420	530300	the NSA had good stuff? I've got paint. So we're going to move on to the actual hacks. Now, the
530300	534480	first thing that, that seemed weird was, uh, I don't know if Elliot, whose name I've forgotten
534480	539880	is here either. Um, he got his, and what he noticed was the serial number that's printed in
539880	544620	the back of the case differed to the serial number that was on the box that he received. Now,
544620	548680	this isn't great for something where supply chain tampering could be a problem. In fact, it's
548680	552100	quite a big problem that it might have been tampered with. Um, they didn't really have a
552100	555080	particularly good response to that, to be honest. They didn't really have a particularly good
555080	560180	response to any of this. Um, the first attack we came up with was really simple. Um, the
560180	564180	digitizer, the thing on the screen that detects where your finger goes is I2C, a serial
564180	570680	protocol. Um, and it's unencrypted and exposed. So I could take a bit file and I can attach to
570680	576280	the I2C bus and sniff the key presses. It's exposed, so you can see the ribbon there where
576280	580060	it's got those on. You, it's even labeled them for me. So you could definitely fit that in
580060	583660	this case. There's a lot of room. It's not a very advanced attack. So the next thing we
583660	587480	wanted to do was root it. Now, I, I'd imagine a few people in this room have worked with
587480	591440	MediaTek phones before. And they kind of got this reputation for being really, really easy
591440	597080	to root. First thing we do is we use their own tool to pull the uh, flash memory out through
597080	602260	USB. Um, that gives us access to all of the partitions, which is pretty easy. The data
602260	606480	partition was actually encrypted, which was unexpected, so we had to root it by modifying
606480	611440	the RAM disk, and at which point we had root on that device. What we then did was took a
611440	616000	memory dump off my device, so I'd made a transaction, sent the memory dump to Ryan, and he
616100	621160	wrote a little script, um, that pulled out potential candidates. And you can see there,
621160	625380	one, one, one, one, two, two, two, two, two. That's my seed in phrase. So he could now steal
625380	630060	my funds. Now, at this stage, BitFi had already been kicking off a bit, and we won a pony. So
630060	633820	this was last year. Well, I say we won a pony, BitFi won a pony, but I think it might have
633820	639680	been a bit more to do with us. So we got this little gold pony, which is great. Um, it got
639680	647900	better, though. Um, we had root, and, uh, so what we decided to do was, uh, the typical thing,
647900	653980	play Doom on it. So this is, this is, uh, this is Salim Spadawaya, who's, um, who's doing
653980	660480	this. Um, we posted this to prove we rooted the device. Um, BitFi said that this wasn't a
660480	662860	problem. You might have noticed right at the beginning of that, there was some wires
662860	667880	taped onto the back, and the back was open. You don't need to do that. It, we were just
667880	672580	using it to distract from the fact that it was so easy to root. Now, the thing was, they
672580	677300	said you could purchase it from any source. Now, Tracer and Ledger, the supply chain
677300	680940	tampering issue, if someone intercepts the Tracer or the Ledger and puts their own
680940	685000	firmware, changes the hardware, this is a problem. These guys were claiming that it
685000	689400	wasn't a problem, so someone couldn't man in the middle the hardware. They said it
689400	692640	didn't work because each device has a specific digital signature. And they were so
692640	699320	confident about this, they actually started another bounty. So, I got a BitFi. I rooted it,
699320	702860	and there you can see the two different processes running, the Knox admin one that does
702860	707880	the bulk of the firmware stuff and the Rokits one that does the actual wallet. I can see
707880	712560	it establishing connection out there. I put my own certificate on the device, and I could
712560	717560	intercept all the requests coming to and from the device. So now when it asks me to sign
717560	722280	and pay, as an attacker, I've got the ability to send arbitrary transactions to a device. I
722280	726840	can man in the middle them. So this digital signature thing, it's crap. It doesn't exist.
727280	731360	The next attack was after we'd rooted it, what we realized was on Android it's really easy
731360	736360	to find the coordinates where you touch the screen. So you can just read out the ITC, the
736360	740140	coordinates, where it's coming from the digitizer. So I wrote a little script to deal
740140	746680	with this, and what that does, you type in the seed and phrase, and if we skip a bit
746680	753160	because it's a bit slow, and I can't work out how to do that, um, we do that. It, it
753160	756880	harvests those events, and it sends them through to a remote computer. So now again, we've
756880	761620	got the seed and passphrase. It wasn't a particularly advanced attack, um, but we made a
761620	764680	transaction with the man in the middle bit fi, we'd recovered the seed and phrase, it's
764680	772560	done. Selim, of course, is about 80 times more hardcore than me, and he made a much better
772560	777360	attack. Um, he made it so that it automatically sent it. There was none of this messing
777360	781800	about coordinates. He recovered it from memory. It was much more effective. We pretty
781800	788500	much demonstrated that evil made was a real problem. We told them, and they canceled the
788500	796240	bounty. So once we got the bounty, they said the bounty wasn't there anymore. Uh, up until
796240	799880	this point, they hadn't admitted the keys were ever in RAM. Uh, and then in the direct
799880	803440	message exchange, they did actually say the keys do stay in RAM for a brief period of time.
803440	809160	So if someone can extract that memory, they can get them. This is kind of what a bit fi
809160	812500	looks like. You've got USB going into the microcontroller. You've got the keys, which
812500	817400	will be stored in DDR RAM at some point. Now they've made an assumption. They said, we
817400	820440	think that if the guy was able to retrieve the private key from the device or something
820440	825140	like that, it would have to be done on a rooted device. But if you root a device, you have
825140	832380	to restart it. And it wipes the RAM clean. Now we're hackers. When you restart it, it wipes
832380	837500	the RAM clean. Now Ryan, who I've just spotted, said much of hacking is about understanding
837500	840540	systems better than those who built them and using that knowledge to do what's supposed to
840540	846380	be impossible. So they, they'd assumed because we rebooted the device, there'd be no way to
846380	853440	pull those keys from RAM. They were wrong. Once again, Salim, he wrote an app, and this was
853440	857580	incredible. It was an Android app. So we've got an unmodified bit file there. He's typing
857580	863400	his, don't be too salty, and my very, very salty tears, or whatever it is, is his salt and
863400	872400	phrase. Once he's done that, oh, there's no sound. Oh, okay, it doesn't matter. It processes
872400	877280	that request. So it sent that transaction. Success. He's now going to power off the device.
877300	882680	So he's proving it's not modified like a magician. Plugs in USB, reboots the device. The
882680	887600	attacking device then routes it after it's rebooted, scans the memory, and within a few
887600	894180	seconds, it's recovered the key. Now, this is a complete break of the device. Not only is evil
894180	899380	made a problem, but cold boot is also a problem. It's, it's not better than storing it on a USB
899380	904540	stick, to be honest. Then it gets fun. That's the technical bit. Now the fun starts. It's their
904540	910940	response. No one gets a RAM and penny from the wallet. All these hack claims are
910940	920020	meaningless. No one came, came close to taking the coins from it. It took a bit of a dark turn.
920020	924520	So McAfee was denying it and then BitFi tweeted this out. This is my last tweet as my shift is
924520	927620	ending. But did you guys ever bother to look into who you picked a fight with and the
927620	932080	resources these people have? Not wise. Remember the lies and deception you deliberately
932080	937160	spread about BitFi can have consequences. That's quite a threatening tweet in the general
937160	942680	scheme of things. I mean, it's, I'd rather get that than a dick pic, but when it comes down to
942680	948180	it, well. Now they claimed that it was actually to do with this. Now we modified their logo
948180	955560	somewhat. My colleague over there, he's a genius at stuff like this. I couldn't have done it so
955560	963000	good. That was my avatar for a while. It, it did appear to irritate BitFi quite a bit. I guess
963000	967280	that was the point. They also came out with some other brilliant stuff. We also think it's
967280	970600	rather disappointing that a lot of media picked up on claims made by some person hiding
970600	975060	behind a picture of a cat. Now we're not quite sure if they're actually talking about Daniel
975060	980160	Gallagher, who is also part of the team, or me. I mean, I kind of look like a cat with the
980160	985100	hood up a bit, I guess, but I don't really know. Very strange. And if you look at that guy who's
985100	989220	been posting all this, CyberGimmons, the guy posts something every two seconds, 24 hours a
989220	993880	day, like he doesn't sleep or something. No, I don't. If somebody had a real job in cyber
993880	1003120	security, they wouldn't have so much time to spend on Twitter. Might have a point. Now here's
1003220	1006800	a smart dude making some sense around here. The yellow cat took too much acid and lost it.
1006800	1012820	Now this was a, this was an account that was shilling, um, for BitFi on Twitter. Um, now an
1012820	1017320	interesting thing that we noticed is that when you try and recover a password on Twitter, it
1017320	1021780	leaks some information. So it leaks the last two digits of the phone number, and it leaks the
1021780	1030500	first two letters of the first part, the email, and the last bit as well. Now, bitfi.com is
1030500	1039380	fivecharacters.com, and Daniel Kaysen, the CEO or something of BitFi, would fit in that first
1039380	1045900	bit there. You can also note that down the bottom there, lovecrypto as well, 58. Um, this was
1045900	1051480	clearly linked to BitFi. Uh, McAfee really got involved at this point. Am I a wannabe? I
1051480	1059760	fucking invented cyber security. Get your fucking facts right. I mean, he, he, he wasn't
1059760	1064380	being about for a while. I don't, I can't remember who made this, but they sent it to me. I
1064380	1072400	just, just love it. He put a challenge out to me. Okay, I have 20 million on my BitFi. I will pay
1072400	1076380	your way to the states, put you up at my house for as long as you need. If you give my, if I
1076380	1080040	give you the wallet. So he was putting a challenge down, 20 million, if I went to the
1080040	1086140	states and attacked his wallet to get those 20 million in coins. Um, now, I don't know if you
1086140	1090060	know McAfee, you don't, I don't know if you follow him on Twitter, um, but about the same
1090060	1095460	time, serious dudes on a serious mission just received an order of one-off M4s. That's his
1095460	1105960	house. He's got guns, really serious guns. He also hasn't been sober for 41 years. So he's
1105960	1109540	invited me into his house with big guns and he hasn't been sober for 41 years. I mean, it's
1109540	1114640	already sounding bad. Anti-virus inventor John McAfee went on a naked shooting spree
1114640	1118500	because the Belize government wants to assassinate him. He was in the middle of having
1118500	1124220	sex with his wife when the dogs started barking and he shot holes in the ceiling. I don't
1124220	1130440	think it's really worth 20 million, to be honest. He then got a bit threatening on DM. Your
1130440	1135320	career's finished. You'll be the laughingstock of the world. You lost dude. Go hide under a
1135320	1139460	rock. He keeps on going with this and then he sends me this weird link. Now, I don't know if
1139460	1143360	you've heard of Clone Zone. It's like this website. It used to be able to take, uh, the New
1143360	1146900	York Times and various websites, clone it and you could modify it and then, you know, make
1146900	1150100	spoof articles about other people. So he made the, well, I don't know if he made it. Someone
1150100	1155720	made this one about me. Andrew Tierney, that's me, aka Cyber Givens Me, cyber security
1155720	1162700	professional, cyber pervert enthusiast. This, this whole story is about how I'm some kind of
1162700	1170400	like Pikachu pervert but it had this absolutely brilliant phrase in it, smash my jigglypuff. I
1170400	1177840	still haven't actually found my jigglypuff. So 11 months later, we thought it all died down.
1177840	1183540	We didn't really think that much was going to happen. Um, but Daniel Cason, uh, came along
1183540	1190460	and set up his own Twitter account. Um, and he started getting a bit, um, responsive. Your
1190460	1193480	tweets are boring and annoying. You keep trying to prove to the world that Bitfire's not
1193480	1197600	perfect, yet everyone knows it's not perfect and we're not saying it's perfect. Now, the thing
1197600	1201160	was, they still haven't informed the customers that they have these problems with their
1201160	1204540	device. They haven't told them about the evil maid, the cold boot. They haven't allowed their
1204540	1212520	customers to adjust to the change in the threat landscape. This tweet's brilliant. They're not in
1212520	1218040	RAM, they are in RAM, for much less than a second, making extraction impossible. Now, we all
1218040	1222280	work in security, we know things aren't binary like that. Some things are hard, some things are
1222280	1227380	easy. Things are very, very rarely impossible. It's the bit at the bottom though. How many
1227380	1232020	innocent people's lives have you put at risk if you're a clown act? I mean, I think it's a bit
1232020	1236900	unfair calling me a clown, but I'm just thinking what I'm doing right now, stood on this stage,
1236900	1244160	and yeah, maybe I am. Even more threatening stuff, when the marketing machine turns on and the
1244160	1247540	media is covering all this, your incompetence, arrogance, ill intent towards others,
1247540	1252760	manipulation, irresponsible security practices, an endless list of epic disasters will be fully
1252760	1261280	revealed to the world. I mean, come on, it's just a vulnerability. This is epic.
1262820	1266740	We aren't doing the testing. So they were claiming that they were getting a third party into test.
1266740	1270100	I don't know if they are. I've got no way of telling if anything they say is true. But they aren't
1270100	1273120	doing the testing. They're saying that Cellbrite are doing the testing. Now, I've got lots of
1273120	1278340	respect for Cellbrite. They do some very impressive stuff. But it's a bold claim to say that on the
1278340	1283640	internet, and then the VP of research at Cellbrite comes along and says, they did contact us with
1283640	1296720	the request, which we declined. Muppets. Now, just to kind of actually give some kudos to them,
1296720	1300500	and they said they were going to open source the code. Oh, this is so hot. They said they were
1300500	1304840	going to open source the code. And they did actually allow access to the code. Now, to get
1304840	1310160	access to it, you've got to download a binary and do some crazy stuff and send them a key, and
1310160	1314240	eventually you get access to this tool. And you get access to the source code. Now, we were
1314240	1319220	kind of expecting some things to have changed since last year. Not really. Now, it's important
1319220	1326020	to note that if you ever want to wipe keys from memory in a device, simply overwriting them with
1326020	1331400	zeros is really not enough. I mean, this is, this is really bad. This is not the kind of code.
1331400	1337360	This is the sort of thing you do when you're 17 and messing about. It's really bad. It's not
1337360	1340880	going to wipe keys from memory. An important thing to note about the way that BitFi works is
1340880	1345680	it's running on an Android device. So you've got the bare metal on the outside. You've got the
1345680	1351360	Android OS within that. Then you've got the Android ART inside of that. But it's also mono.
1351360	1355360	It's C sharp. So it's got another layer of indirection and finally you've got the BitFi
1355820	1361680	application within that. So we're talking a lot of different layers where things can go wrong.
1361720	1366360	If you wipe memory within mono, it's not going to wipe it all the way up the stack. C sharp and
1366360	1370420	mono use garbage collection. So if you put something on the heap, you've actually got no idea
1370420	1374960	where it's going to stay on the heap. Things can move about. This is why we could originally
1374960	1379580	recover the keys. Now they've, they've come up with this really, uh, interesting way of
1379580	1385400	obfuscating the keys. So previously they were stored simply as, uh, ASCII bytes, I believe. I
1385400	1389800	think that was how it was. So now what they do to combat us scraping the memory for ASCII
1389800	1398700	bytes, those long base 64 encoded strings are PNGs of the characters. So it's a PNG of the
1398700	1404040	letter A. So rather than have one byte that represents the letter A, you've now got about 60
1404040	1408940	bytes that represent the letter A. Now our cold boot attack sometimes failed. Sometimes the
1408940	1412540	memory would degrade somewhat. You'd lose a bit of that memory and you'd have to guess the
1412540	1417480	remaining characters. With this scheme, loads of that can degrade and you're still able to
1417480	1424140	recover the data. Which we did quite easily. Um, we lost one character from that. You can see
1424140	1427900	the, the, the second byte in the sort there is set to zero. That has actually been
1427900	1432840	successfully wiped. Which is quite bad. So a guy called Ben Tasker did a code review. A
1432840	1437440	really, really in-depth code review. It's, it's way too much for me to cover here. Um, he
1437440	1443160	went through, um, a memory dump. And he, he can recover what my sort and, uh, phrase are
1443160	1446960	from that. So you can see we've lost that letter E in one location in memory. That's it.
1446960	1452480	That's how ineffective it is. Just looking at the rest of the code quality as well. Um, this
1452480	1456900	is the, uh, SSL validator. So it makes a connection out using SSL to their servers. Now
1456900	1461540	you've got to check that that connection's valid. And you can see there it says starts with
1462640	1469880	www.bitfi.com. Now if you've ever done code review, I can register www.bitfi.com.cybergibbons.com
1469880	1476560	and I can intercept SSL communications to these devices. This code is garbage. It's
1476560	1481240	really bad. We haven't even gone into the other parts of it that to sign Bitcoin
1481240	1485440	transactions, sign Apollo transactions, they've just imported arbitrary third party
1485440	1490700	libraries that don't take account of this. So we got a pony last year, which Ryan
1490700	1497360	collected, which was absolutely awesome. Uh, but we also got a pony this year. So I think
1497360	1501860	this is the first time that we've managed it at, at one product's got a pony twice for the
1501860	1505480	same thing. So lamest vendor on both of them. The thing I most like about getting the pony
1505480	1517010	is this though. That's Charlie Miller. Look at his face. Now kind of getting a bit into
1517010	1521630	more how we'd fix this. Now they always say the keys are never stored in RAM. That's a
1521630	1524870	very different thing saying the keys are stored in RAM for a very, very short period of
1524870	1528810	time. Now in reality, the bottom part is what's happening. But if you threat model for
1528810	1533090	that top bit, assuming the keys are never in RAM, you're not going to be truthful to your
1533090	1537690	customers. There will always be a way to recover those keys from RAM, whatever it is. So
1537690	1541170	they need to communicate to this, this to their users. They need to say this device is
1541170	1546610	broken. So can it be fixed? Well, maybe. Could we improve the existing hardware? Well,
1546610	1550170	yeah, if it had secure boot, if they locked the boot loader so the USB just couldn't pull it
1550170	1555170	out, if they cut the USB data lines, um, which I know was recommended to them, and if they
1555170	1559270	made it take longer than two minutes to root it, it might be a little bit more secure. Could
1559270	1562810	they improve the software? Well, yeah, if they stripped down Android a little bit, it was
1562810	1567890	running, uh, a browser, uh, an alarm clock, you know, the standard Android stuff in the
1567890	1572270	background. So it was always attack surface they had that was unnecessary. If you get
1572270	1575710	closer to the metal, if you look at ledger and tracer, they're running on microcontrollers
1575710	1581650	using custom code. It's much easier to validate that. Secure development practices, um,
1581650	1586990	would be a good thing to do. And also just fucking test the thing. It took a, a kid, like
1586990	1591870	Salim is not, he's not had the world experience. He's not spent hundreds of hours working
1591870	1596510	on these things. It took him probably three or four days to go from nothing to a fully
1596510	1601830	working cold boot attack. That's really quite extreme. If they're going with new hardware,
1601830	1605710	well, we'd suggest they use a microcontroller, secure element, minimize the OS and things
1605710	1610790	like that. But I think fundamentally the thing with BitFi is they need new people. They've
1610790	1615170	abused the trust of their customers. You know, this device is not secure. It never has been
1615170	1619550	secure for the last 11 months. As far as we're aware, nothing's changed. Now, they could
1619550	1623790	demonstrate they've changed. They could get someone to pen test it. I'm not fucking doing
1623790	1628050	it. Um, but they are gonna be here tomorrow, they say. So, I'm not sure if they're gonna be
1628050	1632330	here or over in the hardware hacking village. So, I'd suggest maybe if someone could be
1632330	1636370	bothered to take a look at themselves. Um, we can certainly give you some guidelines on how
1636370	1640790	to root it, how to recover stuff from the memory. Um, the results might be interesting.
1642570	1660500	Anyway, that's the end of the talk. You're all staring at me. If anyone's got any questions,
1660520	1673250	uh, please ask. Oh, hi, Ryan. Oh, yeah, yeah, yeah. Okay. So, yeah, if you just want another
1673250	1678310	amusing story, they, they did send us a, um, a bounty device eventually. It took a lot of
1678310	1682990	convincing. Um, and when they sent us a bounty device, we rooted it and we found that Daniel
1682990	1689170	Kaysen's, uh, SSID and PSK for his Wi-Fi, his home Wi-Fi, were stored in the device and left
1689170	1694190	in the device. So, provisioned it at home, put the, the funds onto it, and, uh, left them
1694190	1703170	in there, which allowed us to geolocate his house. Um, good OPSEC. There's a million funny
1703170	1706730	things that happened that I've probably completely forgotten about. It was, it was good
1706730	1717830	fun. Anything else from anybody? Am I going to get jumped on the way out by BitFi? Hope so.
1718790	1719970	Thank you, people.
