start	end	text
0	4580	Good deal. Thank you all for coming. This is the secret life of a rogue device.
5260	9680	My wife told me not to tell anybody who helped me with these slides and make them look beautiful,
9680	13160	so I'm just going to say a beautiful, anonymous woman helped me make these look nice,
13160	16200	and the earlier format was much uglier, I assure you.
18460	23500	So, quick background, I'm Matthew. My friends call me Mandatory. I've worked on a variety of
23500	28500	security projects, things like XSS Hunter, Cursed Chrome, and I write security research
28500	32940	at TheHackerBlog.com. In my professional life, I also lead the red team at Snap.
34500	38080	So, this talk is sort of about, quote-unquote, rogue hardware,
38080	44220	ending up on the second-hand online electronics markets. So, what do I mean by rogue? I mean
44220	48540	things that shouldn't end up there, so this is kind of a few key categories, right? Things like
48540	52760	employee laptops, which you're probably familiar with, right, that shouldn't be resold, maybe has
52760	57760	sensitive data on it, stuff like that. It means things like prototypes, so early development
57760	61880	version of your favorite products, maybe like the iPhones that you enjoy, right, earlier stages
61880	66660	when they were first being built, right, and then sort of like more specialized things like
66660	71240	factory line equipment and, you know, backup hard drives, stuff like that. So, that's sort of what
71240	77000	we'll be covering. The main questions we're going to be answering here is, some of them are
77000	80560	pretty obvious, right, it's like how often does this actually happen, right? Is this a problem,
80560	84360	right? And then for the stuff that does end up here, you know, on these secondary markets,
84360	88880	what's the impact? Is there anything security related that we have to worry about? And then,
88880	92000	you know, ultimately, what is it that actually ends up getting resold like this?
93340	97300	Along the way, we'll sort of figure out like, you know, what are the challenges of doing research
97300	101380	in this space? Once we figure those out, we'll have to scale it up to sort of do all of the
101380	105880	listings across western and eastern markets, and then we'll finish up with everybody's favorite
105880	113680	part, which is like war stories and loot and all that cool stuff. Great, so what are the challenges
113680	119300	to finding rogue hardware? First one is probably pretty obvious, you probably already guessed it,
119300	123580	we've got to get it from somewhere. So what are the places that stuff gets resold on, right? So,
123580	127260	if you're, you know, from the US, you're probably familiar with eBay, right, for the western side
127260	131120	of things. There's also other things like Craigslist and Facebook Marketplace, but those
131120	135160	are generally a little bit more local, right? They might expect you to show up, and, you know,
135160	138620	that's kind of hard to scale out, so we want stuff where you can sort of ship it. So we'll kind of
138620	143800	focus on eBay on this side. On the eastern side, you have sort of where all the electronics are
143800	147840	assembled and actually put together, right, where things are manufactured. There's another market
147840	152020	which you may not be as familiar with. I apologize to the native Chinese speakers here, I'm going to
152020	157420	butcher this word, but ShenYu is the app that they have there, which is much larger than I thought
157420	161060	it was going to be, but this is basically the second-hand market in China, so if you want to
161060	167320	resell something there. So we know the where, but the second challenge is like, sellers don't
167320	171520	usually make listings like this. They're not like, hey, this is a secret, you know, prototype for
171520	175940	this crazy product thing, right? Usually the sellers don't even know what it is that they're
175940	179540	selling, right, in many of these cases, and they're not just going to put that in a listing where we
179540	185220	can easily find it. So how do we deal with that? I'll give you a little spoiler. A lot of the
185220	188920	information that we actually want is more in the images, right? So it's not in any text, but it's
188920	193200	actually in the text embedded in the images themselves. If you have, again, a company laptop,
193200	198460	sticker on the bottom that says property of whatever, or asset tag, you know, whatever. So we
198460	201780	have to dig a little bit deeper to find the answer to this stuff, right, to figure out the real truth
201780	207680	of where these are. So assuming that we get all this stuff from where we've talked about, and then
207680	211280	we sort of analyze those images and do all this stuff, right, we still have to know kind of like
211280	215900	what we're looking for, right? So in the case of prototypes, like I mentioned, there's like secret
215900	220840	code words, secret labeling conventions they use. For, I mentioned before, for employee laptops,
220840	224400	there's special barcode formats and whatever else, right? So we have to sort of figure out what
224400	231000	these are in order to identify when these things show up. And let's talk about sort of building a
231000	236080	pipeline for detecting this rogue hardware at scale. Probably unsurprisingly, the first
236080	239900	challenge is we got to scrape the hell out of a bunch of sites, right? So I mentioned before, we'll
239900	245120	focus on two main sites here, eBay and Sinyou. We'll start off with eBay because it's dramatically
245120	249720	easier to scrape. You'll see why. So on the eBay side, this is pretty simple. You just do searches
249720	253660	for the kind of products you're looking for, right? Something like laptop or phone or whatever
253660	257720	it is. You scrape the resulting listings and you extract the images out of them so you can do
257720	263500	analysis on them. But we have a hurdle. And this is pretty much the case for any major site,
263500	267680	right? They'll have some form of rate limiting, right? To prevent either bots or whatever it is.
267880	272560	In the case of eBay, if you do too many requests, they give you this fake 404 page saying, hey,
272560	275820	you know, you're doing that too much and they're trying to fool you into thinking this page
275820	281440	doesn't exist. Luckily, the modern internet is not quite as simple as it used to be, right? We
281440	285440	have like CDN services in the middle of a lot of things to sort of speed up page loads and
285440	289480	optimize content being served at the edge, right? And we can use this to our advantage to
289480	293800	circumvent this rate limiting. So in the case of eBay, you know, they essentially have an allow
293800	298060	list from all of CloudFlare, which is a popular CDN. It's like IP ranges that said, hey, if it's
298060	302260	coming from here, don't bother with the rate limiting, just allow unlimited requests, right?
302260	306140	So CloudFlare allows you to make workers, which come from like their space, right? So I just
306140	311340	simply upload a CloudFlare worker, which proxy to eBay. And so by using this as a proxy, I can get
311340	316140	around all the rate limiting and do unlimited requests. So super easy. We've got that problem
316140	325040	solved. Moving right along. All right. So in the China side, right, Shen Yu, it's not quite as
325040	328340	easy. In fact, you go to their website and you don't see like anything at all. It just says
328340	333380	like, hey, download our app to continue. You're like, all right. So you go to their, you know,
333380	337200	your local app store, you download their web, their little app, and you start browsing for
337200	341360	listings on this, right? Of course, if we want to do this at scale and do any scraping, this is
341360	346000	not going to cut it. So we got to crack open the app. We remove cert pinning. And under the hood,
346000	351880	we find that it has a total custom signing API for all of their requests. So they basically
351880	355280	generate some cryptographic material. They sign all their requests. They have to be byte perfect
355280	360040	and be signed properly. Otherwise, the servers will just reject your requests. On top of this,
360040	363880	even if you do those requests, you get responses where the fields are actually encrypted in their
363880	368640	proprietary format. So you have to be able to figure out how to get rid of that as well. And of
368640	372280	course, they implement their own capture system. So if you're doing a lot of these requests,
372280	376740	right, you're not logged in, they're going to spawn this and you have to solve this. And you're
376740	382520	like, it's too easy. There's still more. All of that stuff is not done like in the Java where it
382520	387320	might be easier to reverse, right? It's done deep inside the obfuscated JNA binary. So you're
387320	391520	going to have to pull out some assembly and start cooking, right? Really great job, actually,
391520	396460	like by the team. They did a good job of doing the anti-bot stuff here. But for us, this is just
396460	401880	like a skill issue. So we're going to have to get around all of this shit, right? If any of you
401880	405860	have ever done Android reverse engineering before, you have personally been on this scale. You
405860	409840	start off and you're like reading a blog post. You're like, dude, Frida is sick. I can just hook
409840	414060	all of these functions and I don't have to do any reverse engineering. It looked like easy.
414180	418080	But then eventually you start becoming like, I'm the real deal. I learned assembly. I can
418080	422560	reverse engineer stuff. I can actually just figure out their custom thing and re-implement it in my
422560	426620	own language and it's super leet. And then they do an update and it breaks all your shit and
426620	430580	you're like, wait a minute. Every update I'm going to have to do three hours of reversing? No
430580	435200	fucking thank you. And so you go back to Frida, right? So in this case we just skip to the end.
435820	441340	So I wrote a custom thing to basically open the app, click through all the prompts, do an
441340	446520	initial request and do the fun like thumb capsule sliding thing automatically. And then once
446520	450760	it's into the state where it can start actually doing these requests, it does a Frida server and
450760	455720	does an injection. So we can basically hand it an HTTP request that we want it to sign for us and
455720	462180	it will return us the signed request that we can then send to their API server. So this is
462180	465480	essentially what it looks like. You've got like a rooted phone with a server and essentially it
465480	468840	does the signing proxying for us, right? And then we send that off over our residential proxy
468840	473680	to make the request. And the result looks something like this. Again, cable management was
473680	479460	not me. It was much uglier when I did it. So this gives us a good way to sort of find new
479460	482880	sellers, right? We do searches, we get their seller IDs and now we've got a good base to
482880	488300	actually scrape the items that we want here. So when I said that there's like no websites, that
488300	493200	was kind of a lie. They do have a special like preview thing for ostensibly growth reasons,
493200	496460	right? So you can like share a link in the app with somebody else and they don't have to have
496460	500120	the app to see it. And it's like a little, it'll show you the listing information. But then when
500120	504140	you try to buy it, right, it's like download our app. So that sounds like a great way to get
504140	509040	around this, but there's kind of a caveat, right? The rate limiting here is severe. And I don't
509040	513460	mean like, you're like, wow, this is like three previews, you view it and it's like, no, no, no,
513460	517820	no more, no more previews. You've got to log in. And so this means that we're going to need
517820	522620	like a lot of IP addresses. So even for like the crappy budget networks, this is going to be a
522620	529460	lot of IP addresses. So I had to do a little bit of digging, pun intended. And I was like, oh,
529460	534800	it's available over IPv6. Last time I checked, I think there's a lot more IPv6 IPs out there
534800	541580	than IPv4. So I think there might be a solution here. So I went straight to the source for, you
541580	545740	know, for me this is like the North American number registry, which is ARIN, right? You can
545740	551640	apparently get a fat 36 range IPv6, right? Allocation. And it only costs like 250 bucks a
551640	555840	year. And so with this, you actually, the number of IPs is a bigger number that I can even
555840	560600	pronounce. But you essentially have unlimited IP space that you can now utilize. I combine
560600	563720	this with a piece of software that my friend wrote, which essentially takes like if you have a
563720	568240	box where you write all the IP addresses to, this turns it into like a SOCKS proxy server
568240	571660	where every request you make to it, it will randomize it through the outbound range that you
571660	575500	have set up, right? So now we can just start blasting from unlimited, this huge range, right?
575500	580800	With unlimited IPs and rate limiting is, we'll call it more or less solved, right? We may never
580800	587240	come from the same IP twice. Great. Scraping is solved. Let's talk about that second
587240	591300	challenge, right? Again, that challenge is that the secrets that we want are probably not
591300	594880	outright in the listing description, right? They're hidden, right? Maybe the seller doesn't
594880	599580	even know what it is that they're selling. So how do we address this, right? The key way that
599580	605000	we do this is via OCR, right? So there's some problems with this in practice. You've probably
605000	609220	heard of open source solutions, but they have things like this where Apple does their very
609220	614380	chic gray on silver design. And even some humans have issues reading this text, right? And
614380	618760	computers are no different. When I plugged this into the open source Tesseract's model, right?
618760	623540	It basically said, there's no text on this. I have no idea what you're talking about. So that
623540	628740	was like not going to fly. Um, I looked at some like proprietary APIs, right? There's Google
628740	632480	Vision. Google Vision actually did a great job. I was like, wow, it got all the text that I
632480	636600	could, you know, want people to get out of this, right? But then I sort of looked at the pricing
638320	642820	and I was like, oh, one penny for seven images. That's pretty good. But then I was like, wait,
642820	647580	so for a million images, that's 1500 bucks and we're doing hundreds of millions of images. So
648220	653120	yeah, that's not really tenable. Um, but I had sort of a eureka moment when I was actually
653120	656920	using my iPhone. I had one of those old school captures, you know, before the current more
656920	662140	annoying like grid ones, uh, where essentially I held my thumb down and I realized that I could
662140	667400	actually select the warped texts and I could copy it. And I was like, wait, iOS has an OCR
667400	673000	model? This is sick. And I could paste it and it got it exactly right. So I was like, there,
673000	678900	there might be something here. And uh, not only is it available, you can actually like, if you
678900	682500	just write an app, you can integrate with this API and automate it. So I wrote some of the
682500	686920	ugliest Swift code any of you have probably ever seen and made a little HTTP server where I
686920	691840	could send it an image and it would do OCR in English and Chinese and do barcode
691840	697900	detection. And uh, this basically solved it. Um, but you're probably like, okay, you can use an
697900	702340	iPhone, but that's gotta be expensive, right? Like iPhones are super expensive. But in fact,
702340	706740	the GPU acceleration, uh, chip actually goes back as far as the iPhone, uh, second
706740	711740	generation SE. And if you get those on like, you know, cricket wireless or some unpopular
711740	716520	carrier, right? They're sold for as little as 40 bucks. Uh, so you can get these for super
716520	722000	cheap and you can build yourself a high capacity OCR array. So I wired a bunch of these
722000	728300	together, uh, and I had a high capacity array that could do around 50 HD images a second in
728300	733140	English and Chinese, even with a lot of text and barcode detection as well. And to make it
733140	737500	even better, it basically uses no power because the mobile, like, compute was actually super
737500	743000	efficient. So it worked out really well. Great. So we script all this shit, we got all these
743000	746800	images, we can do OCR on all these images, we index all of it, but now we need to know what
746800	751340	we're looking for, right? So I started off with just looking like general examples of like
751340	756420	prototypes and company laptops and sort of built a very early set of keywords to alert on. And
756420	759880	when I found matches to those alerts for products that were listed, anything else on the
759880	764580	laptops that they had, I then added those marks to my list of things to alert for, right? So
764580	768120	maybe I had some text that was like property of, then I get a barcode and I'd see what their
768120	772180	barcode format was and then I would add that to my rules and it's iterative, right? So every
772180	776200	time I get more results, I'm improving my rule set and pretty soon I've got a huge alert list of
776200	780980	keywords that when something comes up, I can immediately get notified of it. I made this a
780980	784780	little easier by building like a nice little data lake UI so I can just type in, if I see
784780	788360	type in a keyword, and it will immediately start showing me matching listings. So I can very
788360	794400	quickly cook these things up. Talked about a lot of pieces overall, but this is kind of the
794400	798940	10,000 foot view. You've got the most convoluted set of like free to server bullshit combined
798940	805040	with like exit proxying combined with like Elasticsearch and iPhone OCRs, but TLDR took a
805040	811640	lot to do this with the level of data that we're doing. Overall we're talking about much more
811640	816060	now, but probably like 50 million listings scraped, right? We're talking over 250 million
816060	822680	images OCRed in total, right? None of the iPhones have exploded yet, very great work. I said
822680	827060	there was only three challenges, there's actually kind of 3.5. So imagine you're selling
827060	831000	something on eBay and some random person in like some remote province of China says, hey,
831000	834360	could you just like ship this to me? And you'd be like, dude, I don't know how to do
834360	838440	paperwork for Canada, let alone like, you know, this place in China, right? And it's so
838440	841960	different if you ask somebody in domestic Chinese markets to say, hey, could you ship this
841960	846000	to me in like, you know, Alabama or whatever it is, right? So we kind of have to figure out
846000	850120	like, how can we work in these markets and buy from local sellers when we ourselves like
850120	852920	don't, maybe don't speak the language, don't understand the culture and want to get it
852920	859140	like exported to us? So where can this secret knowledge be found? Luckily, there's a
859140	862920	community who's very familiar with the domestic Chinese market built around like really
862920	867900	high-end fake fashion replicas. So yeah, your Gucci handbag that's like indistinguishable
867900	871540	or whatever from the real one. There's a community that kind of focuses on basically
871540	875080	getting these from inside of the domestic Chinese market. And they use these agents, which
875080	878280	will actually do the work of communicating with the seller, they'll buy it and they'll
878280	881960	actually like rewrap it for you and do all the export forms to get it to you. So we
881960	885540	basically use the exact same stuff that they use to get these designer clothes and we kind
885540	890900	of have this solved. So this is what you've all been waiting for, I'm sure. Let's go to the
890900	894740	loot and see what we found here. Before we get, we'll start off with employee devices
894740	900020	here. Before we sort of get into these, we'll dispel some very quick like, well, actually
900020	903300	things that I'm sure you're going to want to say. And one of the common rebuttals I hear is
903300	908000	like, sure, you can find this hardware leaking out, but it's probably all locked and it
908000	911420	requires a passcode to access them or whatever. So there's no way that you can like
911420	917020	actually do this, right? My rebuttal in this case is merely a slide. Obviously there's a lot
917020	925980	more examples, but there's only so much space. Plenty of notable examples here, right? And
925980	929580	you're like, okay, okay, okay. They're unlocked, I get it, I get it. But that doesn't mean
929580	933460	that there's actually anything sensitive on the devices, right? And again, I only have a
933460	941120	slide as a rebuttal. Again, many more examples, right? And if you're like, my company's not
941120	945380	affected, if you work for a Fortune 500 company, I guarantee you I've seen your equipment end
945380	950200	up on eBay or some other market, right? Super wide breadth of, if you do any volume of
950200	956220	employee equipment or whatever, it's going to be here. So let's talk about the war stories. I
956220	959780	want to actually do a quick little preface here. All of my examples are for a pretty popular
959780	964760	company called Apple. This is not because Apple like fucked up especially. Actually, it's
964760	968180	pretty much the opposite. They were like a mature hardware company and my point of the
968180	972940	research targeting their stuff was more because if it affects them, we can be pretty sure that
972940	978320	any other company is affected as well, right? They have resources to make this right. So we'll
978320	983840	start out with the story of the time capsule. So I built up a good little database of alerts and
983840	987880	keywords for those things and eventually I got alerted to a time capsule that was listed in the
987880	991500	United Kingdom. And the reason why I got an alert is it had this cool sticker on the
991500	995520	background which said property of Apple Computers, Inc. Expensed Equipment. And I was
995520	1000800	like, hmm, this might be interesting. And I looked at the description and it said this. It
1000800	1005120	said, hey, it was part of an office clearance. Good sign. It's been powered up and lights up as
1005120	1010100	expected but has not been tested beyond this point. This is the perfect description for if you
1010100	1013900	think something is going to be good because it means the device works. We couldn't wipe it
1013900	1017700	ourselves because we couldn't really get it turned on and all set up, right? But we can be
1017700	1022820	pretty sure that it's at least in the original state that maybe they got it in, right? So I
1022820	1025980	also did some Googling and there was actually an office clearance for Apple that like they
1025980	1032560	moved offices so it seemed like it lined up. So I placed a bid. I didn't realize how big the
1032560	1035380	shipping was. It was actually like almost like, it was like more than the actual device
1035380	1039940	itself. So I kind of learned that lesson the hard way. But we'll take a risk. Got into the
1039940	1044400	United States. After sweating with a heat gun and getting the back off and pulling the hard
1044400	1050160	drive out, I was able to connect it up to my laptop to start doing like, to look at the drive,
1050160	1055080	right? And initially I looked at it and I was like, oh shoot, there's no files. Looks like
1055080	1060620	they deleted them. I was like, unless, unless they deleted it and they didn't actually do a
1060620	1064760	secure wipe of it so maybe they're still hanging around. Let's just, just in case, let's do a
1064760	1070300	forensic scan of this thing, right? So I let this thing run. That cooked for around 28 hours
1070300	1075400	for 2 terabytes which is quite a while. And it turns out that's not entirely true. There was
1075400	1079920	data on the device. Things like internal credentials, things like internal support
1079920	1086240	tickets, sales reports and figures, internal documentation, apps, repair guides, internal
1086240	1093040	emails, bank account information, passport and ID scans, and I swear this last one is true,
1093040	1098500	dank internal memes from these Apple stores in Europe. There was literally an entire video
1098500	1103880	done in like the Backstreet Boys style of how to count the inventory in your Apple store. I kid
1103880	1112080	you not. It hurt me so much to like hand this back over. Anyways, I got this and I was like,
1112080	1116860	alright, this is scary. I'm going to tell Apple about this, right? I used the only channel
1116860	1121060	they had for reporting which was like their regular like sort of bug bounty reporting queue
1121060	1125540	thing and said, hey, I've got this time capsule. Looks like it's from like the 2010s. It's got
1125540	1131660	like a bunch of Euro store data and you probably want this. You know, I got this, I
1131660	1134800	originally submitted this actually to them and I got I think some regular like product
1134800	1139620	security person who's like, I do bugs. Like I don't know what this is or what I'm supposed to
1139620	1144460	do with it. And he's just like, I sent an email to our internal people but there's nothing I
1144460	1148040	can do with this. So I originally was like, oh, this is easiest disclosure ever. It's like
1148040	1153640	already over. But then I got an email later from their GSOC in London which was like, hey, we
1153640	1157300	actually do, we would very much like that drive. And you're in the Bay Area, right? Could you
1157300	1163900	just like drive 10 minutes and drop that off for us? And I was like, sure. You know, lunch
1163900	1168020	break, head over there, drop it off to them. And I was like, good deal. And I sent an email
1168020	1173800	saying, we're all good. Disclosure's all finished. And I was like, cool. Done deal. Later
1173800	1178200	on I received an update like later that night where they were like, hey, uh, any other POCs
1178200	1181800	off that drive that you could send us just to assess the impact of the report? And I was
1181800	1186300	kind of like, but I already gave you the drive. So like how would I, how would I do that?
1186300	1189120	Because like obviously I don't have the data. I gave it back to you, right? So I was kind of
1189120	1193100	like, I think it was just communication between the team, but I was kind of like a little bit
1193100	1201640	like, what's the deal here? Cool. So let's talk about prototypes, right? Another one of those
1201640	1206320	like main columns I mentioned. They usually look something like this, right? Lots of scary
1206320	1211540	hardware labels in the back. Usually a phone number to report it being missing. And Apple
1211540	1215660	actually has some pretty interesting prototypes. They're a little bit more valuable than your
1215660	1219840	regular prototype that you might find. Um, here's a bunch of stuff that I was able to get
1219840	1223160	over doing this research. Um, this is actually a small part of a lot of the prototypes those
1223160	1228720	were able to find. Um, so the reason why Apple prototypes are a little bit more interesting is
1228720	1232840	because they have something called dev fusing in a lot of their prototype versions of the
1232840	1237040	iPhone, right? And you're like, what the hell is dev fusing? Essentially in a production iPhone
1237040	1240680	that you buy from a store, right? They actually burn these fuses, which prevent you from being
1240680	1245480	able to do debugging of the application processor and the secure enclave processor, right? And
1245480	1248500	so when you do exploit development, so you've kind of heard these like million dollar or
1248500	1252500	whatever iPhone exploits, having one of these phones is key because it allows you to really
1252500	1256640	easily debug your exploit to make, you know, get a pull it off essentially. So there's like a
1256640	1260180	big gray market spawned off of this. Apple actually has researcher devices that they'll give
1260180	1264600	you, uh, if you follow a bunch of legal procedures to get yourself. Uh, but you know,
1264600	1267680	there's still people that don't want to deal with that. So there's still this big gray market,
1267680	1271520	right? But there's these TLDR, there's these super rare iPhones which are useful for security
1271520	1275260	research, right? Um, this is sort of what that looks like. They have different fusing states.
1275260	1278920	If you have the debugging cable, you can basically plug the iPhone in and say, yes, this is a
1278920	1287220	deaf-used iPhone. So again, uh, on around November 23rd, 2023, I had my pipeline alerted to a
1287220	1291820	bunch of listings being created at once in China. Uh, they were all iPhone 14s. And
1291820	1294740	initially, you know, when I get a bunch of alerts at once, I'm like, oh, somebody's
1294740	1298260	reposted their listing like eight times or whatever. But then I started to look at the photos
1298260	1302260	and I was like, wait a minute, these are all distinct iPhones. This is not like one iPhone
1302260	1306700	that's been repeatedly posted. Uh, so it turned out this was actually a huge cache of these
1307120	1312200	prototype iPhone 14s, which at the time was the latest model of iPhone, right? So, um, this is
1312200	1317800	like a video of the seller. Uh, furthermore, when I actually bought one of these iPhones and
1317800	1322000	imported it here, uh, I realized that the seller, when he was sort of taking pictures to
1322000	1326460	validate the camera worked, he didn't turn off the GPS tagging feature in the photos. So I
1326460	1331140	actually had the exact location in China where the seller actually was. And, uh, worse than
1331140	1336340	that, uh, he also took selfies to validate the camera. So in terms of like finding the source of
1336340	1341040	these leaks, this is a pretty compelling way to do that, right? But I don't want to give you the
1341040	1344480	wrong impression. It's not just that these, you know, prototype iPhones will only come from
1344480	1348060	like, you know, wherever in China that they're made. Actually, ironically, so I live in the
1348060	1351900	Bay Area, it's either in these remote provinces of China or it's a 10 minute drive from my
1351900	1356320	house with very little in between. So in this case, like this was one that was leaked in, uh,
1356320	1362040	San Francisco, right? It's a DVT model iPhone 14 and it did indeed have dev fusing, right? The
1362040	1365640	most hilarious part about this actually is that the sellers oftentimes when they have these,
1365640	1370160	they try to do like a regular restore of the device, only to realize like, this is a weird
1370160	1373700	iPhone, I can't restore this, I have no idea what's going on here. They're just like, I'll
1373700	1378260	sell it for parts, whatever. And so the listings are sold usually for parts when it's actually
1378260	1383960	like a very, you know, expensive prototype iPhone, right? Cool. So we kind of covered a
1383960	1387460	couple examples here, we talked about time capsule, we talked about these rare prototype
1387460	1391820	devices, right? Let's go to the thing, the place where these things are made, right? So in this
1391820	1397260	case the assembly line is Foxconn for Apple for the most part, right? So I looked at a lot of
1397260	1401420	these Chinese listings, uh, things that had like, you know, a bunch of labels that appeared to
1401420	1405020	be related to Foxconn, right? And I started to realize that there was a pattern that was
1405020	1409020	starting to emerge when I looked at these things, right? So if it's used inside of Foxconn, I
1409020	1413160	started to realize that, hey, it usually has this like, you know, three letter, four letter, six
1413160	1418180	digit combo thing that they use to label like, internal equipment. And so I created a quick
1418180	1421920	rule that anytime something like this shows up in China, why don't you let me know and I'll
1421920	1426320	take a look at it, right? I'm sure all of you can sort of see where this might be going. Uh,
1426320	1431860	sometime later, I got an alert for a listing like this, uh, for only 188 yuan. This is like
1431860	1437360	28 dollars, I think, in USD. And uh, when I took a closer look at it, it had all the markings
1437360	1442360	that I wanted. Uh, and I looked at the bottom of it and there was an interesting hole drilled
1442360	1446840	in the bottom. And I was like, oh, okay, so, like, they basically took a drill press to this
1446840	1451440	thing to like, securely destroy it and, you know, what, get rid of the hard drive. Um, but
1451440	1454500	then I thought about it a little bit more and I was like, wait a minute, let me look at a
1454500	1457860	schematic of what this looks like inside. And I was like, okay, so like, the hard drive is
1458600	1464260	here, and uh, that means the magnetic platter is here. And they drilled the hole, like,
1464260	1476260	here. There might be a chance. And this is one of those things where I'm like, there's no way,
1476260	1481240	but it would be too cool if it works. So I bought it, brought it into the United States, again,
1481240	1484860	you know, uh, disassembled it, pulled the hard drive out, I looked inside and I saw that
1484860	1490460	beautiful orange PCB color, and I was like, I think they might have missed it, but let's, let's
1490460	1495280	send it to the experts. Uh, so, I shopped around a little bit, found a cheap lab down in L.A.
1495280	1498820	to, to, that said, hey, they gave me the honest answer, which is exactly what I was looking
1498820	1503100	for, where they were basically like, alright, listen, you drilled a hole in the damn thing,
1503100	1506560	like, if, if you did that, and you didn't turn it on, and there's not a bunch of dust and all
1506560	1510520	these other things, then yeah, I think we can recover it, but don't get your hopes up, like, be
1510520	1515020	aware, right? So I sent it down to them, they basically after some time came back to me and
1515020	1518360	they said, hey, uh, you know, we, we popped this thing open, it looks like it just hit the
1518360	1522560	PCB, and, uh, in order to recover it, we basically had to buy a working drive, go into a
1522560	1526980	clean room, and swap the magnetic platter from one to the other. Obviously, after getting this
1526980	1531320	email, I was like, so just to be clear, you're saying they did miss the magnetic platter, and
1531320	1535660	they were like, yep, it pretty much missed everything, uh, so, it looks like there might be a
1535660	1540400	chance here, there's not a lot of dust even on the platter, so, I think we might be good.
1540400	1545060	Sometime later, I got the email that I was looking for, where they said, hey, I got 99.99
1545060	1551820	whatever percent of the data, and I was like, oh, yeah, it's all coming together. But I was
1551820	1555380	still, like, if you do a lot of this research, you always try to, like, hold off on being too
1555380	1559000	excited, because your dreams have been crushed too many times by it not working out, so I was
1559000	1562240	like, you know, maybe, maybe somebody actually bought it, reused it, and then they drilled the
1562240	1567460	hole in it, so, like, you know, maybe it's not actually the real thing, but it was. Uh, these
1567460	1571060	are the wallpapers from it being used on the factory line, it was used to do Q&A,
1571060	1575520	for, actually, a couple things it looked like, but for iPad Q&A, it looked like. Uh, it came
1575520	1579480	along with a bunch of really tasty internal Apple software for sort of interfacing with their
1579480	1583920	prototype devices and doing Q&A on the line, all of that good stuff, right? It came with
1583920	1588720	internal credentials for the Foxconn factory, and a bunch of other cool stuff. A lot of cool
1588720	1591840	Apple tooling, too, with a bunch of, like, you could tell engineers came up with the name of
1591840	1597540	these tools, right? Like, footing, whatever, so. Uh, another funny story about this one is
1597540	1600400	when I gave this one to Apple, like, the first time there was a lot of mis- there was a lot of
1600400	1603780	miscommunication when it came to the time capsule, like, back and forth to coordinate it. The
1603780	1607320	second time, I was like, hey, I've got this random drive from the Foxconn line, I've got this
1607320	1610740	forensics, I've got all this data, I want to give it back to you, they were just like, here's a
1610740	1615360	prepaid FedEx envelope, you just drop that shit in the mail, get it right to us. I was like,
1618760	1623300	sweet. Great. So we've got some cool POCs, we kind of show off the problem, right? Let's go
1623300	1629560	into, like, maybe what are the high-level, like, takeaways of this whole stuff, right? Uh, so
1629560	1633300	one thing that's kind of interesting is, like, this is not like, you know, you think of, like,
1633300	1637300	the conventional hacking stories and sort of, like, um, you know, cracking code or whatever,
1637300	1641220	but this research raises kind of an interesting question, which is, like, have I done anything
1641220	1644860	sort of unethical or wrong here, right? If you talk about the source of a lot of these other
1644860	1648240	prototypes, we're talking about pretty illicit stuff, right? They're paying somebody, I assume,
1648240	1651880	to take it off the factory line or whatever it is. But we're not, we're not doing that. We're
1651880	1655640	just literally looking for public listings. We come to the table with a little bit more
1655640	1659380	information about what is in those, like, listings and what it actually means, right? And
1659380	1663020	ostensibly they would have been sold anyways, but we just instead buy it in the first place,
1663020	1667220	right? So have we, like, really done anything wrong? You know what I mean? So it's just a very
1667220	1672880	interesting question there. Um, I think another potentially interesting takeaway here is, you
1672880	1676180	know, you're probably more familiar when we have, like, very standardized, uh, full disk
1676180	1680220	encryption and mobile device management for, like, the standard set of things. So you get your
1680220	1684660	work laptop, things are pretty well understood there. You have your, like, work phone, MDM
1684660	1687880	solutions, FD solutions are pretty straightforward. But then when you get into the more
1687880	1691700	custom hardware side, you don't necessarily have that level of maturity. I think it's like the
1691700	1695280	time capsule, right? It's like, is there a clear suite that can, that can actually do, ensure
1695280	1698680	that these things work the way that you expect? And so I would assume that this probably
1698680	1702200	extends to any other type of custom hardware where you don't have this very standardized
1702200	1707660	format of software to protect this. This one is probably obvious for anybody who's done
1707660	1712020	anything related to hardware or who lives through COVID. Uh, supply chains are incredibly
1712020	1715700	difficult, right? You've got multiple sides of the globe on different time zones doing
1715700	1719440	iterations on hardware. And it's not like software where you're halfway through and you're
1719440	1723140	like, ah, let's just can all this and rewrite it. You're kind of, your parameters are slowly
1723140	1726820	narrowing and you've got to like, uh, throughout all this time, make sure none of them leak
1726820	1729740	out and everything's securely destroyed and all this stuff, right? You've got to keep
1729740	1733820	everybody super tight-lipped. So it's very challenging to do this, right? Across many
1733820	1739240	countries and to deliver this final product. Another interesting point, as you noted with
1739240	1744200	one of these examples, is leaks very much point to sources. So you mentioned, like, we
1744200	1748060	found listings where these things sort of bubbled up, right? And we can then take those to go to
1748060	1751560	the sellers to figure out, like, what's the real story here? Where did this shit actually come
1751560	1755020	from? And we can start to understand a full picture of, like, where is my stuff breaking
1755020	1759120	apart? How is this stuff leaking out, right? So it becomes a very good opportunity to sort of
1759120	1764340	identify these sources and ultimately close them if you're the company. I think another
1764340	1767980	really interesting piece of this, too, is I would say that, like, e-waste is a particularly
1767980	1771800	interesting point, right? So if you have your stuff going to e-waste, a lot of people sort of
1771800	1775300	assume, like, oh, it's going to be destroyed. But then you get people who are at the e-waste
1775300	1779460	side who are, like, why are they throwing away 50 good iPhones? Like, this could be
1779460	1784140	resold right now. Like, it's very strange, right? And so a lot of these, I think, leaked out
1784140	1787760	from sort of e-waste recycling centers, right? And this is what causes these problems. So you
1787760	1791280	got to make sure that, like, your stuff is actually being destroyed and not being, you know,
1791280	1797880	essentially diverted and potentially resold. I just want to give a quick special thanks to
1797880	1802120	Apple Demo. He does a bunch of iPhone prototype stuff. Check out his YouTube for helping me
1802120	1806300	sort of the initial research and understanding of this space. And I'd like to thank all of you
1806300	1807400	for coming to this.
