1 00:00:00,000 --> 00:00:03,040 so everyone give a round of applause for joe 2 00:00:07,000 --> 00:00:12,580 all right we're in oh uh everyone thanks for coming it's great to see you all here 3 00:00:12,580 --> 00:00:17,820 uh my name is joseph gabay and today i'm going to be talking to you about smart shopping cart wheels 4 00:00:18,260 --> 00:00:24,500 uh if this seems familiar uh i two years ago my first time at defcon actually i gave a presentation 5 00:00:24,500 --> 00:00:29,800 about when i first started my work on these i did a little bit of early exploration and uh 6 00:00:29,800 --> 00:00:34,200 found some cool things you could do with them that i'll be talking about now but uh this talk is a 7 00:00:34,200 --> 00:00:40,360 continuation of that i found a completely new brand of wheel and did a good amount of reverse 8 00:00:40,360 --> 00:00:46,140 engineering and i'd like to take you all on that journey with me so before i get any further i want 9 00:00:46,140 --> 00:00:49,300 to give a quick disclaimer especially because a couple of my co-workers are out in the audience 10 00:00:49,300 --> 00:00:54,480 here today uh this is a personal project this has all been done on my own personal time with 11 00:00:54,500 --> 00:01:00,200 my own personal equipment uh with my own personal curiosity uh none of this reflects my employer or 12 00:01:00,200 --> 00:01:04,980 anything i do professionally and uh yeah this is just me doing my thing trying to have some 13 00:01:04,980 --> 00:01:11,980 fun and learn some stuff so what this talk is uh i'm gonna be taking you on the journey that 14 00:01:11,980 --> 00:01:16,900 i went on to reverse engineer this wheel there's a lot of troubleshooting there's a couple dead ends 15 00:01:16,900 --> 00:01:21,020 i'm going to be pulling at some stuff that's oh that's neat but it doesn't go anywhere else 16 00:01:21,020 --> 00:01:24,420 and that's the nature of reverse engineering my ultimate goal with 17 00:01:24,500 --> 00:01:30,760 this project was to try and defeat and bypass the anti-shoplifting features that rocatech introduces 18 00:01:31,200 --> 00:01:36,400 and i think i got to that point and you know my previous talk was kind of more focused on 19 00:01:36,400 --> 00:01:41,180 just that this one's going to be bringing you along on how i did it we're going to be looking 20 00:01:41,180 --> 00:01:45,740 at devices for hardware firmware and security vulnerabilities we're going to be playing around 21 00:01:45,740 --> 00:01:51,860 with debuggers and programmers like pick kits logic analyzers like sales and cool software 22 00:01:51,860 --> 00:01:54,440 stacks like yudra and audacity do some fun stuff 23 00:01:54,500 --> 00:02:00,720 we're going to instrument a shopping cart with a bunch of sdrs and go war shopping we're going to 24 00:02:00,720 --> 00:02:06,660 do some old school audio freaking what this talk isn't this isn't leaked hacking i'm not dropping 25 00:02:06,660 --> 00:02:11,480 some hot new zero days uh this isn't an endorsement or instructions on how to shoplift 26 00:02:11,480 --> 00:02:15,940 any more than the lock picking village is instructions endorsement on burglary 27 00:02:15,940 --> 00:02:21,580 uh you know we're hackers we talk a lot about security systems and how to defeat and bypass them 28 00:02:21,580 --> 00:02:24,320 and a lot of times that's a purely academic and intellectual 29 00:02:24,500 --> 00:02:29,380 exercise and this is what this was for me and uh yeah at the end of this i'm going to show you how 30 00:02:29,380 --> 00:02:34,960 to defeat the security system you know use use that power responsibly and also this isn't going to be 31 00:02:34,960 --> 00:02:40,640 a 100 definitive teardown of how this system works this is reverse engineering you know it 32 00:02:40,640 --> 00:02:44,840 was limited in scope i probably got some things wrong and if there's any rocotech engineers out 33 00:02:44,840 --> 00:02:49,060 there listen just be like oh no we didn't do that at all you got that wrong yeah that's the 34 00:02:49,060 --> 00:02:54,300 nature of the beast but at the end of the day i i figured i had to walk out of a shopping 35 00:02:54,500 --> 00:03:01,000 center with a out the cart locking up and i consider that a victory so who am i uh i'm a 36 00:03:01,000 --> 00:03:05,520 hacker i'm a robotics engineer i don't know why that's cut off for some reason but in my previous 37 00:03:05,520 --> 00:03:10,900 life i was a robotics engineer i worked in a lot of startups with embedded systems and electronics 38 00:03:11,400 --> 00:03:18,420 i jump out of airplanes for fun i freak shopping carts and i really question has anyone ever seen 39 00:03:18,420 --> 00:03:24,300 the other side of the moon and who i'm not i'm not an expert at some of these things i'm not a 40 00:03:24,500 --> 00:03:29,900 nervous engineering expert you know i do pull some code off of the micro controller and i do open up 41 00:03:29,900 --> 00:03:33,840 gamer and look at it it's pretty basic so there isn't a whole lot to do there you know maybe 42 00:03:33,840 --> 00:03:38,940 someone with a sharper eye than me could see some stuff that i missed but that wasn't instrumental 43 00:03:38,940 --> 00:03:42,660 to getting to the end results but i still think that's an important part of the journey to look at 44 00:03:42,660 --> 00:03:46,720 i'm also not a radio engineer an electrical engineer and there's equally some stuff i missed 45 00:03:46,720 --> 00:03:51,920 there again i'm also probably not 100 correct here so if you see anything that i missed or i 46 00:03:51,920 --> 00:03:54,480 said anything that's completely wrong you know i've got my email address if you want to talk to me 47 00:03:54,500 --> 00:04:00,320 at the end of this, shoot me an email. I'd love to learn stuff. So I talked about how two years ago 48 00:04:00,320 --> 00:04:05,120 I talked about these wheels, and I want to give a super quick recap. So for those of you who aren't 49 00:04:05,120 --> 00:04:10,040 familiar with security wheels on shopping carts, they're basically a wheel. They're usually on 50 00:04:10,040 --> 00:04:14,460 either one or two of the wheels on a shopping cart, and they have some mechanism that can lock 51 00:04:14,460 --> 00:04:19,560 and unlock the wheel to immobilize the cart. Usually these are used to prevent shopping carts 52 00:04:19,560 --> 00:04:24,800 from walking off in urban areas where they're connected directly to sidewalks, but some companies 53 00:04:24,800 --> 00:04:28,460 advertise that you can have anti-shoplifting features, you know, make sure somebody went 54 00:04:28,460 --> 00:04:32,760 through the checkout lane before exiting the store, otherwise it'll lock. And that's one of the big 55 00:04:32,760 --> 00:04:37,880 things Rokitech advertises and that we'll be looking at. There's two main players in this 56 00:04:37,880 --> 00:04:43,640 system, Gatekeeper Systems, and I've seen them all across the country, and then Rokitech, which is 57 00:04:43,640 --> 00:04:48,000 a smaller player that I've only seen in one place. We'll talk about that in a second. But they have 58 00:04:48,000 --> 00:04:49,540 some major commonalities. 59 00:04:49,560 --> 00:04:56,340 The big one is that they have a buried perimeter wire that's broadcasting a radio signal at a very 60 00:04:56,340 --> 00:05:01,960 low frequency, usually around 10 kilohertz, and that's a big pain to transmit at. We'll get into 61 00:05:01,960 --> 00:05:07,180 that later, but it's very similar to those invisible fence systems you'll see for, like, dogs. 62 00:05:08,020 --> 00:05:13,780 They can receive lock and unlock commands at these ultra-low frequency bands, as well as some of them 63 00:05:13,780 --> 00:05:18,860 have capabilities of receiving some commands at 2.4 gigahertz, which is a much friendlier band to 64 00:05:18,860 --> 00:05:19,240 broadcast. 65 00:05:19,240 --> 00:05:26,240 So they have some locking mechanisms. These are both two Gatekeeper Systems wheels, two different 66 00:05:26,240 --> 00:05:32,280 styles. One of them has an internal wheel that will expand and lock the wheel like a clutch, and the 67 00:05:32,280 --> 00:05:36,100 other one has a plastic piece that's spring-loaded and will come down and cover the wheel and prevent 68 00:05:36,100 --> 00:05:40,680 it from rolling forward. And the Rokitech has a slightly different one. We'll get into that during 69 00:05:40,680 --> 00:05:46,440 the mechanical teardown. But this is a picture of the buried wire system that you'll actually see in 70 00:05:46,440 --> 00:05:49,220 the parking lots. A store nearby me was having their parking lot locked. And they had a lot of 71 00:05:49,240 --> 00:05:54,920 parking lot and sidewalk redone. And this wire was nice and exposed for me to look at and play with. 72 00:05:55,040 --> 00:05:59,680 So that was pretty fortuitous. But this is what it actually looks like underneath that seam you'll 73 00:05:59,680 --> 00:06:04,120 see in the parking lot. Or inside supermarkets, you'll sometimes see them integrated directly 74 00:06:04,120 --> 00:06:11,080 underneath, like, the tile, you know, for, like, the Pro-Check system. And last, this is the real 75 00:06:11,080 --> 00:06:18,460 fun part of the last talk, is the methods I used to capture these signals. So these signals are in the 76 00:06:18,460 --> 00:06:24,240 tens-of-kilohertz range. That's ultra-low frequency. Anything that we normally deal with is almost 77 00:06:24,240 --> 00:06:29,060 always going to be over at least a megahertz. So that's a couple orders of magnitude lower than we're used to 78 00:06:29,060 --> 00:06:36,780 dealing with. And it gets weird dealing with that. But one of the interesting things we'll notice is 10 79 00:06:36,780 --> 00:06:42,900 kilohertz isn't the audio range. If that were sound waves, we'd be able to hear it. So we need some sort of 80 00:06:42,900 --> 00:06:48,440 electronics. We need some device to convert the radio waves into electronic signals. And then some device to 81 00:06:48,460 --> 00:06:52,600 something that can deal with 10 kilohertz electronic signals, like an audio amplifier. 82 00:06:53,680 --> 00:06:58,660 So to do this, I made a loopstick antenna, which is a pretty basic kind of antenna. They're not 83 00:06:58,660 --> 00:07:04,320 very good at transmitting, but they're okay at receiving. And it's a ferrite core and some 84 00:07:04,320 --> 00:07:09,420 enamel wire, both you can grab them off Amazon, put it into a cordless drill and put on some 85 00:07:09,420 --> 00:07:14,100 Netflix and just wind the antenna. The more loops you have, the more pickup you're going to get. 86 00:07:14,820 --> 00:07:20,940 You have to do a little bit of balancing for the impedance matching and whatnot, but you can find 87 00:07:20,940 --> 00:07:27,560 a ham radio handbook if you really want to dive deep into that math. And you take this and you 88 00:07:27,560 --> 00:07:32,780 solder it to a headphone jack. You'll see there's a little resistor that's hooked up there, and what 89 00:07:32,780 --> 00:07:38,040 that does is it actually convinces your phone or audio device that instead of a headphone jack, 90 00:07:38,180 --> 00:07:43,900 it's a microphone jack, so you can use this to record. So I had to dig through my old 91 00:07:43,900 --> 00:07:44,080 electronics and I made a loopstick antenna. So I'm going to show you what I did with this. 92 00:07:44,100 --> 00:07:47,320 electronics bin to find a phone that actually had a headphone jack. Anyone remember those? 93 00:07:49,180 --> 00:07:55,100 But eventually I found one, and this is the method that I was using to capture the ultra-low 94 00:07:55,100 --> 00:08:00,160 frequency signals, and we'll talk about how to broadcast those later. So I mentioned there's a 95 00:08:00,160 --> 00:08:05,580 new kind of wheel, and that's Rokitech. How I came across this involves a funny story with my dad. 96 00:08:06,320 --> 00:08:12,380 So my dad's a weird guy, as you can imagine, if you know me, and he loves collecting curios. He 97 00:08:12,380 --> 00:08:18,080 recently retired, so he's had a lot of time to scour eBay and local garage sales, and this is 98 00:08:18,080 --> 00:08:23,620 his workshop, and you can see all the fun stuff he has. And yes, that is a functional phone booth 99 00:08:23,620 --> 00:08:28,920 in the back. He's got three of them. No, he doesn't realize how cool that would make him here. 100 00:08:29,520 --> 00:08:33,140 This is completely unrelated to hacking. He just thinks they're cool, and I love him for that. 101 00:08:34,120 --> 00:08:40,100 But anyway, so one day I get a call from my dad. Hey, Joe, I got one of those shopping carts that 102 00:08:40,100 --> 00:08:42,040 has the smart wheel, but it's locked. 103 00:08:42,380 --> 00:08:46,740 Do you have any chance you could help me unlock it? And I'm like, yeah, sure. This is my thing, I guess. 104 00:08:47,820 --> 00:08:52,920 So, you know, I head up to my parents' house in the garage, and he not only has the wheel, 105 00:08:52,980 --> 00:08:58,820 he has the whole cart attached to it, which I don't ask where he gets these things, and I think 106 00:08:58,820 --> 00:09:04,380 it's better that way. But I take a look at the wheel, and lo and behold, it's one I've never 107 00:09:04,380 --> 00:09:09,840 seen before. And no wonder, you know, he's trying to use the website that has the little buttons to 108 00:09:09,840 --> 00:09:12,300 unlock it, and it wasn't working, and he was wondering why. I said, well, of course, 109 00:09:12,380 --> 00:09:18,360 because I haven't seen this before. So I go and look it up, and that's how I discovered Rokitech. 110 00:09:18,520 --> 00:09:22,520 So this is what the wheel looks like, and you can see some of their marking material. This was 111 00:09:22,520 --> 00:09:28,680 actually, I took this from a store, a grocery store near my house. You know, Rokitech focuses 112 00:09:28,680 --> 00:09:33,420 a lot more heavily on the anti-shoplifting angle in their technology than Gatekeeper Systems, 113 00:09:33,620 --> 00:09:40,180 which is more about retaining your carts on property. So just slight different approaches, 114 00:09:40,400 --> 00:09:42,260 but Gatekeeper Systems does also. 115 00:09:42,380 --> 00:09:45,720 advertise that they have a similar system to what we're going to talk about, but I haven't ever 116 00:09:45,720 --> 00:09:52,640 seen it used. So now my curiosity was piqued, and also I had to unlock this cart for my dad. 117 00:09:53,320 --> 00:09:58,380 So I need to do some research. There's a couple great wells of information I go to when I'm 118 00:09:58,380 --> 00:10:05,000 trying to do OSINT, and so publicly available information, FCC filings, always a huge gold 119 00:10:05,000 --> 00:10:09,360 mine. If you have anything that's going to be broadcasting, receiving anything with radio stuff, 120 00:10:09,540 --> 00:10:12,360 you have to disclose a huge amount of information to the 121 00:10:12,380 --> 00:10:18,960 FCC about the frequencies, the bands, and usually it's easier just to include the whole 122 00:10:18,960 --> 00:10:23,180 instruction manual, because it's going to have all the info they want. If you care about security, 123 00:10:23,380 --> 00:10:27,960 you can carefully redact it and only have what you need. But in this case, Rokitech had quite a 124 00:10:27,960 --> 00:10:32,780 bit of information. What you can also look at is patent information. A lot of times there's very 125 00:10:32,780 --> 00:10:37,560 technical descriptions of how systems work, because that's what a patent is. And in return for 126 00:10:37,560 --> 00:10:42,100 that disclosure, you get protection. But disclosure is disclosure, and that can tell us a lot. 127 00:10:42,640 --> 00:10:48,160 And lastly is marketing information. Companies tell us a lot about how things work when they're 128 00:10:48,160 --> 00:10:52,700 trying to get us to buy things. And we'll talk about what we found there in the next couple 129 00:10:52,700 --> 00:10:57,480 slides, but then afterwards for further research, you have to do some field research and get your 130 00:10:57,480 --> 00:11:02,780 hands dirty. So that's physical disassembly, taking RF captures, and some reverse engineering. 131 00:11:03,540 --> 00:11:08,580 So in terms of marketing material, this is from one of their brochures, and this looks pretty 132 00:11:08,580 --> 00:11:12,240 standard and doesn't seem like it has a lot, but it has a couple things that stand out. 133 00:11:12,380 --> 00:11:18,000 One, it claims that it has an RF receiver that can up and download data. So that immediately 134 00:11:18,000 --> 00:11:23,160 peaked, all right, what data are they uploading? What data are they recording? Because you could 135 00:11:23,160 --> 00:11:27,420 be tracking, all right, where is this cart going in the store? You could be tracking shopping 136 00:11:27,420 --> 00:11:34,860 habits, et cetera. So that piqued my interest. And in terms of thinking about some of the design 137 00:11:34,860 --> 00:11:39,960 assumptions, it's also battery powered, and it lasts very long. That seems a little silly, 138 00:11:40,060 --> 00:11:42,360 but what that tells me is it's 139 00:11:42,380 --> 00:11:46,920 a sealed battery system. It's not meant to be serviced or easily replaced very often. So it's 140 00:11:46,920 --> 00:11:52,320 probably going to be designed and optimized around saving power rather than, say, security. 141 00:11:52,440 --> 00:11:58,880 Because if you're doing encryption every time you send a signal, that's a lot of CPU time, 142 00:11:59,140 --> 00:12:06,020 and if you only have that little unrechargeable battery, that's life. So you see a lot of design 143 00:12:06,020 --> 00:12:11,160 decisions and a lot of security decisions get made and eschewed for other technical design 144 00:12:11,160 --> 00:12:11,600 reasons. 145 00:12:11,660 --> 00:12:12,020 And that's 146 00:12:12,020 --> 00:12:12,360 a big, 147 00:12:12,360 --> 00:12:14,040 big thing that you can look at in reverse engineering. 148 00:12:15,020 --> 00:12:21,680 So moving on to the FCC filings. So the wheel itself had a FCC ID number on it, 149 00:12:21,740 --> 00:12:26,860 and the first three or five letters of that are actually common to the company that makes it. 150 00:12:26,960 --> 00:12:32,420 So you can punch in that first five and get a list of all of the FCC filings that Roketec 151 00:12:32,420 --> 00:12:36,340 has ever made. So from this, you can pivot to seeing stuff like this little box here, 152 00:12:36,480 --> 00:12:40,700 which is what they attach to the checkout counter. And when the payment goes through, 153 00:12:40,760 --> 00:12:42,260 it sends the signal out. 154 00:12:42,260 --> 00:12:44,160 And that's what tells the cart you're allowed to leave. 155 00:12:45,800 --> 00:12:51,060 So this is the FCC filing for it, and I've taken out a couple snippets of it. The big part, 156 00:12:51,120 --> 00:12:56,760 it has a couple information up all above there. It talks about the 2.4 gigahertz of signal, 157 00:12:56,840 --> 00:13:01,660 the B signal it emits. And it also talks a little bit about the test procedure. Now, 158 00:13:02,580 --> 00:13:07,580 this is useful for the 2.4 gigahertz, but I also found the one for the box that 159 00:13:07,580 --> 00:13:12,040 actually connects to the buried loop wires and sends out all of those signals. And, 160 00:13:12,060 --> 00:13:12,240 uh, 161 00:13:12,240 --> 00:13:17,760 it tells us right there the exact frequency that it's using, 8.13 kilohertz. And it also 162 00:13:17,760 --> 00:13:23,780 tells us that there's three different 8.13 kilohertz signals, the A signal, the C signal, 163 00:13:23,880 --> 00:13:29,260 and the H signal. It also tells us a little bit, if the relevant shopping cart casters receive two 164 00:13:29,260 --> 00:13:34,300 A signals and lock. So, all right, if it gets two of those signals, it'll lock. That's probably the 165 00:13:34,300 --> 00:13:38,700 one at the entrance of it. And we can start figuring out how this works. And later on, 166 00:13:38,720 --> 00:13:41,880 we'll turn this into a flow chart and start looking at how we can bypass it. 167 00:13:43,800 --> 00:13:49,300 So, I've talked about loop stick antennas. I've talked about the frequency. How are we going to 168 00:13:49,300 --> 00:13:55,340 actually capture and process these? So, we can do this in the audio frequency. We can use a 169 00:13:55,340 --> 00:14:00,340 loop stick antenna to capture it. And we can actually, because it just comes out as an MP3 170 00:14:00,340 --> 00:14:05,340 file and those radio waves get encoded as sound, we can open up an Audacity, like, 171 00:14:05,380 --> 00:14:12,200 and just treat it as a regular sound file. And then we can play it back as a radio file. So, we have all the parts we need. 172 00:14:12,200 --> 00:14:19,160 It's time to go war-carting. So, this is my little setup. I've got my laptop here. I've got a SDR to capture 173 00:14:19,160 --> 00:14:23,700 some of the signals. And I've got a loop stick antenna connected to my phone with a little dab 174 00:14:23,700 --> 00:14:28,940 of hot glue so nothing comes out because 3.5 millimeter headphone jacks did have some flaws. 175 00:14:30,380 --> 00:14:34,560 Can't do this with Bluetooth though, sadly. But anyway, so I had this all running on an audio 176 00:14:34,560 --> 00:14:41,320 recorder app. And I had a GQRX recording from the SDR for the megahertz and gigahertz signals. 177 00:14:42,200 --> 00:14:47,720 And I put this all into my war-cart. And you can see the smart wheel in the corner there. And 178 00:14:47,720 --> 00:14:52,080 just put my backpack down in there, you know, completely innocent. It's where I keep my reusable 179 00:14:52,080 --> 00:14:58,640 shopping bags and my reusable shopping SDRs and all the important stuff there. So, what my plan 180 00:14:58,640 --> 00:15:05,660 was, my plan was to go into this grocery store, engineer a situation in which my cart would lock, 181 00:15:05,800 --> 00:15:11,300 you know, completely innocently, feign ignorance, and wait for the kind clerk to come up and with a 182 00:15:12,200 --> 00:15:16,740 lock the cart for me. And at which point I would capture a copy of that unlock signal and I'd have 183 00:15:16,740 --> 00:15:21,840 what I need. With the gatekeeper system, thankfully, I was able to buy a couple of the remotes the 184 00:15:21,840 --> 00:15:28,020 stores have on eBay. With Rocotech being a bit more obscure, I wasn't able to, so I had to go 185 00:15:28,020 --> 00:15:34,560 and find these signals a different way. So, that was the method and it worked. So, I went in, used 186 00:15:34,560 --> 00:15:38,920 the Coinstar machine for a bit. Oh, no, I should probably get a bigger cart before I go shopping. 187 00:15:42,200 --> 00:15:47,080 Locked and the alarms went off and the store clerk came rushing out, super apologetic, and I was 188 00:15:47,080 --> 00:15:54,740 like, no, it's okay, I promise. But anyways, I got it. So, this is, you can see there's a couple 189 00:15:54,740 --> 00:15:58,820 different bursts, but towards the right there, that's what the unlock signal was. And we're 190 00:15:58,820 --> 00:16:03,900 gonna clean that up in a little bit and look at that a bit closer, but as a result of this little 191 00:16:03,900 --> 00:16:09,520 war shopping experience, I got a good amount of signals. So, I got a copy of, there's a perimeter 192 00:16:12,200 --> 00:16:15,560 itself. So, if you try to take the cart out of there, the cart will just lock automatically. 193 00:16:16,220 --> 00:16:21,380 There's the arming lock signal, which is at the entrance of the shopping area. So, you take it, 194 00:16:21,420 --> 00:16:25,640 bring it into the market, it gets armed, and then if you try to bring it out again, it'll lock. 195 00:16:25,980 --> 00:16:31,640 There's obviously the unlock signal, which can unlock a locked cart. There's a megahertz level 196 00:16:31,640 --> 00:16:37,600 alarm mute that can mute the alarm once it gets set to that IntelliBox we just saw. And then 197 00:16:37,600 --> 00:16:40,820 there's the per check signal. And that per check signal is what the, 198 00:16:40,840 --> 00:16:40,980 uh, 199 00:16:41,760 --> 00:16:41,900 uh, 200 00:16:41,900 --> 00:16:46,900 a checkout counter is sending to the wheel to say, hey, it's been paid for. If you, once you 201 00:16:46,900 --> 00:16:54,480 get the, uh, exit signal, you know, don't lock. Now, you can see here in GQRX, I did capture a 202 00:16:54,480 --> 00:17:00,260 copy of the 2.4 gigahertz per check signal. Uh, I'm not gonna go too deep into that for reasons 203 00:17:00,260 --> 00:17:04,420 I'll talk about in a second. Uh, there actually wasn't a whole lot happening at 2.4 gigahertz, 204 00:17:04,540 --> 00:17:10,760 but this signal is also repeated at the kilohertz frequency, and that's a lot more useful for what 205 00:17:10,760 --> 00:17:11,380 we're going to do. 206 00:17:11,380 --> 00:17:16,720 Uh, both because it's paradoxically easier to transmit at kilohertz for what we're going to do, 207 00:17:16,780 --> 00:17:22,860 and because a gigahertz capable SDR is slightly annoyingly expensive. You know, 208 00:17:22,880 --> 00:17:27,280 you have to get a HACC RF and, you know, it's, you can't get that high with the, uh, real cheap 209 00:17:27,280 --> 00:17:34,900 SDRs. So, this is what the unlock signal looks like. It's, uh, 8.15 kilohertz tone. Uh, it looks 210 00:17:34,900 --> 00:17:39,200 like it's kind of broken up a little bit, but, uh, in Audacity, I recreated it just from a pure 211 00:17:39,200 --> 00:17:44,260 tone, and it was just a solid noise, and that consistently unlocks the wheels. So, that's, uh, 212 00:17:44,340 --> 00:17:50,180 that appears to be what it's listening for. The arming signal is, uh, again, at 8.15 kilohertz, 213 00:17:50,340 --> 00:17:56,700 but it's 50 millisecond length pulses at a 33% duty cycle. So, it's just kind of pulsing that. 214 00:17:57,020 --> 00:18:02,460 And you're gonna notice, uh, all of these signals are pretty basic. You know, they're either solid 215 00:18:02,460 --> 00:18:08,260 tones, pulses, or very basic shifts. And I'm gonna talk about this at the very end when I speculate 216 00:18:09,200 --> 00:18:14,320 on design decisions, but I, I think this is a very intentional design because it's easy to do with 217 00:18:14,320 --> 00:18:19,660 low processing power. The cost is security, and that's gonna let us do some fun things later, but, 218 00:18:19,740 --> 00:18:25,780 uh, this is the lock signal. This is a 7 kilohertz pulse, 30 milliseconds with a 50% duty cycle. 219 00:18:26,920 --> 00:18:32,560 And then, uh, this is the one that I really wanted to get, the per check signal. So, you can see 220 00:18:32,560 --> 00:18:37,480 there's a couple things I actually, uh, uh, checked out, bought a pack of gum to do it again, so I 221 00:18:37,480 --> 00:18:38,980 could see if there was any difference, you know, 222 00:18:39,200 --> 00:18:43,600 between subsequent ones, and the answer is no. And if we, uh, adjust the contrast a bit and zoom 223 00:18:43,600 --> 00:18:48,240 in, we can see what that looks like. Uh, it might be a little hard if you're not used to reading 224 00:18:48,760 --> 00:18:53,620 spectrograms, but, uh, what you can see is there's a couple lines that are parallel, and 225 00:18:53,620 --> 00:18:57,620 partway through, they dip down a little bit and then go back up, and that's kind of repeated like 226 00:18:57,620 --> 00:19:03,160 a ladder across a bunch of different frequencies. So, what this is, it's a tone, and I'm not sure 227 00:19:03,160 --> 00:19:08,020 what frequency it was originally intended to be at. Things can get a little weird with harmonics, 228 00:19:09,200 --> 00:19:16,860 but you can see, it drops down by 250 hertz, goes back up, and, uh, that is the signal that it's 229 00:19:16,860 --> 00:19:23,680 allowed to leave. And now, if I can, I actually have what that sounds like, uh, if you, you know, 230 00:19:23,700 --> 00:19:28,620 this was a recreation of it, so I cleaned it up a lot, it was very, very faint in the original audio, 231 00:19:28,820 --> 00:19:32,460 but if you take that pattern, and you, uh, retune it, it sounds like this. 232 00:19:36,420 --> 00:19:38,460 And that's all, uh, it takes. 233 00:19:38,600 --> 00:19:38,780 Okay. 234 00:19:39,200 --> 00:19:45,460 Well, that's enough, uh, and that's all it takes to unlock the shopping cart. So, 235 00:19:47,080 --> 00:19:51,540 let's get a little freaky. And for those of you, uh, unfamiliar with what freaking is, 236 00:19:51,620 --> 00:19:56,740 it refers back to, uh, a famous hacker, John Draper, who figured out that you could use the 237 00:19:56,740 --> 00:20:02,400 toy plastic whistle in a Captain Crunch cereal box. If you played it into an old-school payphone, 238 00:20:02,640 --> 00:20:07,620 it was the right frequency as some of the control codes, and it would let you basically access admin 239 00:20:07,620 --> 00:20:07,980 mode. 240 00:20:07,980 --> 00:20:16,060 And so, freaking is kind of one of those fun little, you know, using unconventional signal methods to get control 241 00:20:16,060 --> 00:20:21,360 that you shouldn't have. And I, I think this is adjacent enough to it where, uh, uh, we can call it that. 242 00:20:21,700 --> 00:20:27,480 So, a couple things let us do this really easily. These signals lack any sort of authentication or security. 243 00:20:27,780 --> 00:20:33,440 It's the same signal each time. There's no rolling code, nothing get incremented, it's the same each day, 244 00:20:33,440 --> 00:20:40,540 there's no time stamping. Uh, and again, this was probably done because all of those things are computationally expensive, 245 00:20:40,760 --> 00:20:45,480 and every processor cycle takes a couple joules, and you have a limited amount of those in your lifetime. 246 00:20:45,680 --> 00:20:53,020 And, you know, if you can make the difference between a year, uh, a wheel that lasts two years in the field versus one that lasts five years, 247 00:20:53,180 --> 00:21:03,040 that's huge from a marketing perspective. And, you know, unfortunately, a fact that's not, uh, at heart to people who aren't in this room is security isn't number one. 248 00:21:03,440 --> 00:21:10,720 You know, there's so many other business factors that go into these design decisions, and, uh, a lot of times, security gets put in the wayside. 249 00:21:10,940 --> 00:21:16,420 You know, I don't think their threat model here was super sophisticated. I don't think they expected some random nerd 250 00:21:16,420 --> 00:21:22,660 to get real curious and reverse-engineer it. So, I think it could be forgiven, but, you know, you can see the impact of other 251 00:21:22,660 --> 00:21:29,160 factors and design decisions into the security of a system. And, you know, in my day job, when I do assessments of commercial devices, 252 00:21:29,560 --> 00:21:32,560 you see this a lot more, and it's a lot more pronounced. 253 00:21:32,620 --> 00:21:33,420 You know, you can start to come across posing the same facts about the other ones with the same composers, right? 254 00:21:33,420 --> 00:21:40,060 to see corporate politics in security decisions. So when we're talking about freaking these wheels, 255 00:21:40,140 --> 00:21:46,580 we need to talk briefly about what parasitic EMF is. So whenever you're putting current through a 256 00:21:46,580 --> 00:21:52,360 wire, you're creating a magnetic and a radio field. They're kind of the same thing. It's a 257 00:21:52,360 --> 00:21:56,980 whole physics thing. But basically, you put current through a wire, you're creating radio waves. 258 00:21:57,680 --> 00:22:03,480 And normally, that's a bad thing. You know, you're putting energy into the air that's not going into 259 00:22:03,480 --> 00:22:08,460 the thing you want it to. And in the case of a speaker coil, you know, that's energy that's radio 260 00:22:08,460 --> 00:22:12,780 waves, just a tiny amount, but that's not going to, you know, moving your membrane and creating sound. 261 00:22:13,640 --> 00:22:20,220 But in our case, since we're trying to transmit a signal at the audio range, when we play an audio 262 00:22:20,220 --> 00:22:26,960 file, the parasitic EMF is also in the kilohertz range. So if we play the right audio file, 263 00:22:26,960 --> 00:22:32,100 through our speaker, at a loud enough volume and hold it next to one of these wheels, we can 264 00:22:32,100 --> 00:22:36,280 control the wheels and send the lock and unlock signals. And that's what we're going to be doing. 265 00:22:37,860 --> 00:22:43,080 So I had this successfully working with the Gatekeeper Systems wheels. And the website I'm 266 00:22:43,080 --> 00:22:48,040 going to link to at the end has buttons you can just push play for lock and unlock, and it plays 267 00:22:48,040 --> 00:22:51,240 the little audio and you hold it up to the wheel. And I'll have a demo in the physical security 268 00:22:51,240 --> 00:22:56,820 village if people want to try it themselves. But I was having inconsistent results with these 269 00:22:56,820 --> 00:22:56,940 records. And I was trying to figure out how to do that. And I was trying to figure out how to do 270 00:22:56,940 --> 00:23:01,360 that with the Rokitech wheels. And I couldn't figure out why. So I need to go deeper. And the 271 00:23:01,360 --> 00:23:07,320 only way to do it was physical disassembly. And I have no idea why these things were on eBay. But 272 00:23:07,320 --> 00:23:13,840 I'm not complaining. So I got a couple samples that I could tear down destructively if I needed 273 00:23:13,840 --> 00:23:20,260 to and really dive into it. So now it's time to get into reverse engineering. And this is where 274 00:23:21,880 --> 00:23:26,420 the concept of scope comes in. You know, this is a hobby project. Whenever you're reverse engineering 275 00:23:26,420 --> 00:23:32,380 something, there's near infinite scope available. You can go as deep as you want and deep as you have 276 00:23:32,380 --> 00:23:37,060 time for. And when you're reverse engineering, you need to carefully select that scope. You know, 277 00:23:37,080 --> 00:23:42,340 there were some things that I found was a dead end and I, you know, left them as it was. But if I 278 00:23:42,340 --> 00:23:46,320 wanted to, I could have gone a lot deeper. You know, there's a couple mystery chips that I was 279 00:23:46,320 --> 00:23:51,560 like, all right, that's what this probably is. And I could have fully traced out the PCB and made 280 00:23:51,560 --> 00:23:56,100 more educated guesses. But I didn't because I didn't want to and that's okay. 281 00:23:56,100 --> 00:24:01,020 That wasn't in the scope that I set for this project. You know, reverse engineering can be 282 00:24:01,020 --> 00:24:05,120 sometimes like looking at some footprints and trying to figure out what the person had for 283 00:24:05,120 --> 00:24:08,720 lunch. You know, you're looking at some weird things and trying to intuit something completely 284 00:24:08,720 --> 00:24:14,140 orthogonal. And if you're good, sometimes you can. And it wouldn't be a presentation that I 285 00:24:14,140 --> 00:24:20,200 give if I didn't sneak in a Terry Pratchett quote. And I think this really speaks to the heart of 286 00:24:20,200 --> 00:24:26,000 reverse engineering is what happens to people who ask too many questions? They need answers. And 287 00:24:26,100 --> 00:24:33,280 it serves them right. And we got some answers. So I got this wheel and I started tearing it down. 288 00:24:33,440 --> 00:24:37,460 And mechanically, it's pretty similar to other wheels. You know, it has a battery compartment, a 289 00:24:37,460 --> 00:24:42,740 sealed PCB enclosure, some mechanism to lock it. You know, you have a little locking latch that's 290 00:24:42,740 --> 00:24:47,260 controlled by a pawl and that pawl rotates, releases that latch and then it interferes with that 291 00:24:48,240 --> 00:24:53,640 internal wheel and prevents the wheel from spinning. Nothing too crazy. If we look into that 292 00:24:53,640 --> 00:24:55,920 sealed PCB area, we get 293 00:24:56,100 --> 00:25:00,800 to the circuit board, the real area of interest. So we've got that inductor. You know, that's 294 00:25:00,800 --> 00:25:05,580 going to be the kilohertz antenna. It's basically the loop stick antenna that I made except it has 295 00:25:05,980 --> 00:25:11,560 much better amplifier equipment designed by a real engineer. We see that underneath it, there is 296 00:25:11,560 --> 00:25:16,540 a missing chip footprint. That's going to be a lot of fun in a couple seconds. We see the main 297 00:25:16,540 --> 00:25:25,840 microcontroller, a PIC18F23K20. Of note is this chip doesn't have 2.4 gigahertz capability. 298 00:25:27,640 --> 00:25:33,000 So the 2.4 gigahertz capability they're advertising is kind of curious since they need some sort of 299 00:25:33,000 --> 00:25:38,260 transceiver unless they're doing something really, really basic and weird with raw signal. We see 300 00:25:38,260 --> 00:25:42,380 there's a header that will later turn out to be a programming header and we have some wires that 301 00:25:42,380 --> 00:25:46,860 connect to the battery connector and the motor connector. Looking at the back, we have a mystery 302 00:25:46,860 --> 00:25:54,220 chip. That's going to be fun. It's just labeled N100B and has DE4 printed on it, nothing else. And 303 00:25:54,220 --> 00:25:56,080 we have just a little tactile signal file. And the last one on the left is going to be the PIC18F23K20. 304 00:25:56,080 --> 00:26:00,260 sensor that's used as a limit switch so it can tell, you know, when it's in the locked or unlocked 305 00:26:00,260 --> 00:26:07,480 state. So now we get to use a technique that I really like using for tracing out PCBs, which is 306 00:26:07,480 --> 00:26:12,660 overlaying images. So we have the front and the back of this board, and we can see that the traces 307 00:26:12,660 --> 00:26:16,620 jump from the front to the back, and it's a pain to trace out with a multimeter and try to keep 308 00:26:16,620 --> 00:26:23,040 track of it. So for smaller boards like this, you can sometimes do it, but even on small boards 309 00:26:23,040 --> 00:26:27,920 where you don't have to, I find it's really useful if you take good straight-on photos of the front 310 00:26:27,920 --> 00:26:33,400 and back, you load it up in GIMP or Photoshop and mess with the transparencies, and you can get a 311 00:26:33,400 --> 00:26:39,060 really cool overlay. And so you can kind of see where holes, where traces, where vias and everything 312 00:26:39,060 --> 00:26:45,680 align and what components they talk to. And from here, you can pull up the data sheet for components 313 00:26:45,680 --> 00:26:50,920 that you can identify, and you can start tracing out all of those traces. And having that transparent 314 00:26:50,920 --> 00:26:53,020 image and being able to flip back and forth is super helpful. 315 00:26:53,040 --> 00:27:02,920 So in this case, I traced out these pins, and I found that that header had VPP, VDD, PGD, and all of 316 00:27:02,920 --> 00:27:06,740 those lovely, lovely things that people who work with microcontrollers will recognize as the debug 317 00:27:06,740 --> 00:27:13,360 header. So the next step was to grab a debugger and see what I could find. So this is a pick kit. 318 00:27:14,080 --> 00:27:19,340 It is the standard debugger for pick microcontrollers. They're super cheap on Amazon, 319 00:27:19,520 --> 00:27:22,180 like 20 bucks. I got one and hooked it up. 320 00:27:30,460 --> 00:27:48,540 So you hook it up, and then you load up pick kit 2 plus. Pick kit 2 plus is the premium software 321 00:27:48,540 --> 00:27:53,020 that has all the fancy features, but pick kit 2 minus is the free one that doesn't. 322 00:27:53,040 --> 00:27:57,940 But it has enough for me. You connect it via USB, take care of the bootloader stuff for your pick 323 00:27:57,940 --> 00:28:02,020 kit, select your device, go through the rigmarole, and if you're lucky, we're in. 324 00:28:02,760 --> 00:28:06,520 So we get a couple cool things. We can see that we've got program memory, 325 00:28:07,000 --> 00:28:11,960 we've got some configuration bits, and we've got EEPROM data. Now, a quick word about the 326 00:28:11,960 --> 00:28:17,580 configuration bits, because this is also something I see a lot in the commercial world. Set your 327 00:28:17,580 --> 00:28:22,440 security bits. You know, microcontrollers have code protection. You can code protect it so people 328 00:28:23,040 --> 00:28:27,420 pull off the code. You can write protect it so people can't overwrite the code you put on. 329 00:28:27,620 --> 00:28:31,260 You can even do external block table reads, which I have no idea what they are. 330 00:28:32,120 --> 00:28:36,460 And you can see what they do in the data sheet if you look up that table, 331 00:28:36,520 --> 00:28:41,480 and I'll save you the trouble, none of them are set on this. None of the security bits are set. 332 00:28:41,880 --> 00:28:47,420 So that means we can pull off the code from the microcontroller and open up in a reverse 333 00:28:47,420 --> 00:28:52,660 engineering program, like Ghidra. And interestingly, there's only about 2 kilobytes of actual code. 334 00:28:53,040 --> 00:28:58,940 That I managed to pull off. Everything was set to OXFF. It looks like it was mostly the resets 335 00:28:58,940 --> 00:29:04,180 and the interrupts that were set, and a couple other bits of code. So I'm not an RE expert. I 336 00:29:04,180 --> 00:29:08,060 could be missing things. I had a couple friends who are look at it, and they also agreed that 337 00:29:08,060 --> 00:29:12,780 there was not a lot. So based on the fact that this is a really basic microcontroller, 338 00:29:12,960 --> 00:29:17,480 I'm guessing the fact that it's really just handling the, you know, the limit switch for 339 00:29:17,480 --> 00:29:22,380 the motor, powering the motor, and then maybe doing some super basic signal processing and then 340 00:29:23,040 --> 00:29:27,460 interrupting based on that. And, you know, maybe a couple bits for a state machine and tracking 341 00:29:27,460 --> 00:29:34,960 that. But it really seems like it's that basic and it's not doing any encryption, any data uploading 342 00:29:34,960 --> 00:29:40,060 or downloading or anything like that. And then we've got this mystery chip on the back. And 343 00:29:40,060 --> 00:29:45,000 we've also got that mystery footprint of an unpopulated chip. And I'll talk more about this 344 00:29:45,000 --> 00:29:49,080 in the speculation section, but that's probably where they put the 2.4 gigahertz stuff if they 345 00:29:49,080 --> 00:29:52,620 wanted to implement it later. But from tracing it out early, 346 00:29:53,040 --> 00:29:58,860 I noticed that all of the pins on that mystery chip get broken out to both the main microcontroller 347 00:29:58,860 --> 00:30:05,060 and also that unpopulated header. And that unpopulated header makes it real easy to, well, 348 00:30:05,800 --> 00:30:12,700 easy to connect fly wires. This is miserable work. This is my first attempt at it. I ended up 349 00:30:12,700 --> 00:30:19,160 having to completely redo it. But you take a little 30-gauge wire or some enamel wire, 350 00:30:19,260 --> 00:30:22,640 if you have it, you wrap it around and you solder it real tiny. 351 00:30:23,040 --> 00:30:27,860 Use lots of flux and a small soldering iron tip. From there, you can hook it up to a Saleh 352 00:30:27,860 --> 00:30:33,380 logic analyzer. A logic analyzer is basically a whole bunch of, it's like an eight-channel 353 00:30:33,380 --> 00:30:37,180 oscilloscope. It's not as high resolution, but it can do some really cool stuff. 354 00:30:38,620 --> 00:30:42,960 And run it through the boot and see what we get. And we get some interesting stuff. This 355 00:30:42,960 --> 00:30:48,960 is in digital-only mode. And one thing I noticed is everything was dead until I touched the wheel. 356 00:30:49,320 --> 00:30:52,800 When I moved it, those lines, you see the yellow, green, 357 00:30:53,040 --> 00:30:57,320 and purple ones lit up. So they were sending something. And I was a little confused. 358 00:30:58,900 --> 00:31:02,600 So it looks like there's some sort of accelerometer and it's only listening for 359 00:31:02,600 --> 00:31:07,300 signals when it's in motion. Again, probably a battery-saving feature, but that would explain 360 00:31:07,300 --> 00:31:11,760 why I was getting inconsistent results with my replay attacks, because I had it on the 361 00:31:11,760 --> 00:31:15,960 bench top with the speaker and it wasn't moving, so it was just ignoring any signals. 362 00:31:17,240 --> 00:31:22,740 But looking at some of these signals, they're nearly identical. Slightly different, 363 00:31:23,040 --> 00:31:27,440 but why would they replicate them? So I switched it to analog mode and we see 364 00:31:27,440 --> 00:31:34,900 that they are very similar waveforms, but it's the antenna. I played a couple of the lock signals 365 00:31:34,900 --> 00:31:40,300 and we see those waveforms and we see on the upper traces similar modified waveforms. 366 00:31:40,910 --> 00:31:46,200 My theory is that they're doing, they're filtering in hardware. So they have passive 367 00:31:46,200 --> 00:31:51,900 components and they're doing their radio signal processing and a couple of their mathematical 368 00:31:53,040 --> 00:31:57,160 hardware levels so they don't have to do it in the processor. If they need to find the absolute 369 00:31:57,160 --> 00:32:01,800 value or the magnitude of it, you can do that with passives and save yourself compute time. 370 00:32:02,240 --> 00:32:09,500 So we kind of set the SaleA to a mixed digital and analog mode and got a good capture. This is 371 00:32:09,500 --> 00:32:14,180 the whole boot sequence. You arm it, you put it at the arm thing and you can see it lock and 372 00:32:14,180 --> 00:32:17,600 it goes through this whole thing. If you're wondering if there's any serial data there, 373 00:32:17,740 --> 00:32:22,860 no, there wasn't any serial on any of those lines. I think there is chip-to-chip communication lines, 374 00:32:23,420 --> 00:32:27,260 there, but because that chip is unpopulated, there's just no communication happening. 375 00:32:28,400 --> 00:32:33,740 So with this, we can make a flow chart and that's going to help us bypass this. So we have an idea 376 00:32:33,740 --> 00:32:38,760 of the basic states it can operate in. We have an idea of the signals it's listening for and can 377 00:32:38,760 --> 00:32:44,820 listen for, and we can start thinking of bypasses. So I just put together a quick little flow chart 378 00:32:44,820 --> 00:32:52,020 of how it works. One big caveat is if it gets the arm signal within 30 seconds of the first one, it 379 00:32:53,040 --> 00:32:56,140 doesn't lock. So you brought it through and then brought it back quickly and it doesn't lock and 380 00:32:56,140 --> 00:33:00,380 it goes back to idle and that's going to be important. So looking at this flow chart, we can 381 00:33:00,380 --> 00:33:07,620 see three possible paths to bypass this. One is the very obvious one where we just replay the 382 00:33:07,620 --> 00:33:12,140 per check signal to it and say, hey, yeah, you're okay to leave and you leave and I've tested this 383 00:33:12,140 --> 00:33:17,140 in the store with an empty cart and successfully been able to get the cart back out without it 384 00:33:17,140 --> 00:33:23,020 triggering the alarm. There's other ways too. The 30-second disarm can be exploited. So if you're 385 00:33:23,020 --> 00:33:27,200 in the store, you bring it out and then you bring it up to the buried line again and then back it 386 00:33:27,200 --> 00:33:32,000 out and it's entered the idle state again, thinking it was back into the little cart corral area, 387 00:33:32,220 --> 00:33:35,840 but it's actually in the store and it's not going to arm until you take it back out. 388 00:33:36,440 --> 00:33:40,340 And then the last one, and this is probably the most reliable since the other two give you no 389 00:33:40,340 --> 00:33:45,320 feedback, is to bring it through a lock cycle. So you have a lock signal and an unlock signal. 390 00:33:45,720 --> 00:33:49,460 You bring it into the store, you play the lock signal to force it to lock, 391 00:33:49,640 --> 00:33:51,680 then you play the unlock signal to force it to unlock. 392 00:33:53,020 --> 00:33:56,860 And then it's back in its idle state disarmed because it thinks it's already been through it. 393 00:33:56,960 --> 00:34:03,220 And with that, you have positive feedback knowing that it's working and you're not just playing a 394 00:34:03,220 --> 00:34:08,400 speaker sound at it and hoping it picked it up and it's not going to alarm. So those are the 395 00:34:08,400 --> 00:34:13,320 three main methods for bypassing this that I found. And now, as I promised, it's time for a 396 00:34:13,320 --> 00:34:17,880 quick little bit of speculation. This is me just shooting off the cuff stuff I think they're doing 397 00:34:17,880 --> 00:34:21,440 or is going on that I'm not a hundred percent sure on. 398 00:34:23,020 --> 00:34:24,980 So let's talk a little bit about their 2.4 gigahertz and how they have it. 399 00:34:26,560 --> 00:34:32,240 Their FCC documents and their marketing materials say they do, but their PCB says they doesn't. 400 00:34:32,720 --> 00:34:37,360 You'll notice they have, there's a little trace going around the entire perimeter for that and 401 00:34:37,360 --> 00:34:44,080 those are usually used for gigahertz antennas. But you'll also notice if we zoom in where that 402 00:34:44,080 --> 00:34:50,080 connects to the board, all of the passive components are depopulated. That combined with the 403 00:34:50,080 --> 00:34:52,740 depopulated, you know, what looks like it could be a microcontroller, 404 00:34:53,200 --> 00:34:58,360 I'm going to guess that they designed this to be able to at some point do 2.4 gigahertz, 405 00:34:58,500 --> 00:35:03,280 but either for design reasons, economics, or battery saving reasons, they said, hey, 406 00:35:03,360 --> 00:35:08,640 we can make this only work off, you know, the 8.1 kilohertz range and we don't need to do this 407 00:35:08,640 --> 00:35:13,940 radio stuff. And maybe if a customer did want to do the advanced stuff and be able to upload and 408 00:35:13,940 --> 00:35:18,840 download data, you know, they could have a revision of this that does have that built in, but 409 00:35:19,320 --> 00:35:22,920 I haven't been able to find this and I've gotten a handful of these 410 00:35:22,920 --> 00:35:26,540 wheels off eBay from all different parts of the country and none of them that I've opened up have 411 00:35:26,540 --> 00:35:31,500 had those chips populated or any indicator that it's doing more advanced communications. 412 00:35:32,540 --> 00:35:38,660 So that mystery chip on the back, that could be a crappy little system on chip that's handling the 413 00:35:38,660 --> 00:35:43,300 2.4 gigahertz. I imagine if it were, it would have been closer to that in those antenna traces. 414 00:35:45,020 --> 00:35:49,200 My honest guess is that's an accelerometer and that's how it's actually sensing when it's in 415 00:35:49,200 --> 00:35:52,900 motion. A lot of accelerometers have ultra low power modes, but they're not going to be able to 416 00:35:52,900 --> 00:35:53,480 do that. They're going to be able to do that. They're going to be able to do that. They're going to 417 00:35:53,480 --> 00:35:57,900 send an interrupt signal when it's in motion. So you're not actually doing any communication or 418 00:35:57,900 --> 00:36:02,500 like reading and data processing. You're just, hey, was this in motion within the past couple 419 00:36:02,500 --> 00:36:09,080 seconds? And that's consistent with what I'm seeing on the logic analyzer. And the 2.4 gigahertz 420 00:36:09,080 --> 00:36:14,180 could probably be added later, but probably won't because that's going to use a lot of power that 421 00:36:14,180 --> 00:36:19,440 you don't have. I want to give a couple of thanks and shout outs. First of all, it's my dad for 422 00:36:19,980 --> 00:36:21,860 bringing these wheels to my attention to 423 00:36:22,900 --> 00:36:27,600 the DEF CON staff and goons for making this happen and for somehow letting me on stage again 424 00:36:27,600 --> 00:36:31,140 to talk about shopping carts. Like two years ago, you gave me a stage and I talked about shopping 425 00:36:31,140 --> 00:36:35,080 carts for 20 minutes. And like this year, you guys have no excuse. I told you what I was going 426 00:36:35,080 --> 00:36:39,100 to do. You knew what I was going to do, but you all still showed up here and I'm real thankful 427 00:36:39,100 --> 00:36:42,960 for all of you. I'd also like to thank all of my friends and loved ones, some of whom are here, 428 00:36:43,340 --> 00:36:47,160 some of whom are back home. And we'll see this in video. Hi, mom. Hi, dad. 429 00:36:48,420 --> 00:36:52,840 And then just everyone who's made all of the software stack that I use this, the people who 430 00:36:52,840 --> 00:36:58,420 made Audacity, URH, Ghidra, thanks, NSA, and all the other tools, as well as just the random 431 00:36:58,420 --> 00:37:03,680 people on eBay who have these things for sale. I don't know how people end up with these, but 432 00:37:04,820 --> 00:37:10,880 that's how it goes. This is just a quick references. And that's it. I'm going to 433 00:37:10,880 --> 00:37:15,560 have a demo in the physical security village. I'm going to go set it up right after this, 434 00:37:16,100 --> 00:37:20,640 where we have, I modified some wheels to be transparent so you can see what's going on inside 435 00:37:20,640 --> 00:37:22,820 of them. We have a demo in the physical security village. I'm going to go set it up right after this, 436 00:37:22,840 --> 00:37:28,120 a website, bgaydocrime.com slash carts. It has little play buttons where you can 437 00:37:28,120 --> 00:37:33,280 play these audio files. And if you want, check us out in the Flamingo, in the physical security 438 00:37:33,280 --> 00:37:38,100 village. We've got, I've got four of these wheels, some of the gatekeeper systems, two of 439 00:37:38,100 --> 00:37:43,260 the Rokatex, and you can actually try this yourself with your phone. If anyone has any 440 00:37:43,260 --> 00:37:47,700 questions, happy to answer them. I'll also be around the physical security village if we run 441 00:37:47,700 --> 00:37:51,680 out of time. Thank you. 442 00:37:53,720 --> 00:37:59,840 Thank you. Thank you all for coming. This was a lot of fun to work on. I had 443 00:37:59,840 --> 00:38:03,800 a lot of fun and I'm just real thankful to be here and that you all let me talk about 444 00:38:03,800 --> 00:38:14,860 shopping carts to you for so long. Any questions? Bueller? Bueller? All right. Well, 445 00:38:14,860 --> 00:38:18,380 thank you, folks. Have a good one. If you have any questions, feel free to grab me after the talk. 446 00:38:18,520 --> 00:38:21,140 I've got pretty distinctive hair. All right. Have a good one, folks. 447 00:38:22,840 --> 00:38:23,020 Bye-bye.