1 00:00:00,000 --> 00:00:04,380 So it was a long time coming. I want to give a big thanks to my mate Alex. Flew in from 2 00:00:04,380 --> 00:00:10,300 Europe to help me road trip these ATMs to Vegas. We literally threw two ATMs in the back of an 3 00:00:10,300 --> 00:00:15,060 Escalade and gunned up from the Bay Area to Vegas thinking if we get pulled over for this, 4 00:00:15,060 --> 00:00:20,060 mate, we're going to have a hell of a way of trying to explain our way out of it. But we got 5 00:00:20,060 --> 00:00:29,720 here. So yeah, like two ATMs in the back of an Escalade and about 6,000 notes of novelty 6 00:00:29,720 --> 00:00:37,420 currency. What on earth are you boys up to then? So the attraction to target ATMs is fairly 7 00:00:37,420 --> 00:00:44,020 obvious, you know, they're full of cash. But for myself, it's kind of part of a bigger picture and 8 00:00:44,020 --> 00:00:50,140 a bigger plan and that's to explore systems that when compromised have direct and immediate 9 00:00:50,140 --> 00:00:56,880 consequences. So whether they be ATM machines, medical devices, smart meters, you know, the 10 00:00:56,880 --> 00:00:59,700 computer system in your vehicle. Because ATMs are very, very, very expensive. You know, 11 00:00:59,720 --> 00:01:04,340 particularly because they're not often designed with a secure methodology from the get-go. And 12 00:01:04,980 --> 00:01:09,220 as a result of that research, we can use that knowledge to design better and safer products in 13 00:01:09,220 --> 00:01:17,920 the future. So the goal of the talk is to spark discussion on ways to remediate and fix the 14 00:01:18,640 --> 00:01:23,280 vulnerabilities I'm going to be demonstrating. The goal isn't to give a cookbook recipe on how to 15 00:01:23,280 --> 00:01:29,220 hack ATMs. The process of finding vulnerabilities I think is always more interesting. You know, 16 00:01:29,220 --> 00:01:29,700 the journey of finding vulnerabilities is always more interesting. You know, the journey 17 00:01:29,700 --> 00:01:36,000 not the destination. Although the destination is pretty damn cool on this one too. And I hope to 18 00:01:36,000 --> 00:01:43,620 change the way people look at devices that from the outside are seemingly impenetrable. So 19 00:01:43,620 --> 00:01:49,160 current attacks. Probably all are aware of the skimmer, which is certainly a fan favorite. It's a 20 00:01:49,160 --> 00:01:54,500 small overlay that slides over the card slot and the pin pad. Manufactured to blend seamlessly 21 00:01:54,500 --> 00:01:59,680 with the ATM itself. Designed to capture both the tracked data and public and private data. And it's 22 00:01:59,680 --> 00:02:02,940 very easy to use. You can see the pin numbers. And the technology on some of these is no joke too. 23 00:02:03,120 --> 00:02:08,120 You know, it will send you the data over GPS. And some even have, like, tamper protection. So when 24 00:02:08,120 --> 00:02:13,300 they're found out, it will wipe itself out. Interesting. Physical theft and RAM raids. You've 25 00:02:13,300 --> 00:02:17,760 probably seen those various YouTube videos where a couple of good old boys hurl through the front 26 00:02:17,760 --> 00:02:23,480 window of a place, attach a chain to the ATM and the other end to the pickup truck and just gun it 27 00:02:23,480 --> 00:02:29,120 out of there. Not really the most subtle of attacks, of course. But it's kind of ninja status, 28 00:02:29,120 --> 00:02:34,520 compared to some of the other ones. And card trapping and card snooping. It's where someone 29 00:02:34,520 --> 00:02:39,800 inserts a small shim. It's commonly known as the Lebanese loop. It traps your card and it's 30 00:02:39,800 --> 00:02:45,600 designed in such a way that when your card's read, the card won't be returned. And it's often 31 00:02:45,600 --> 00:02:50,180 combined with shoulder surfing to get your pin. But sometimes they'll get your pin in ways which may 32 00:02:50,180 --> 00:02:54,820 not be quite as friendly. Safe cutting of frontal attacks. Basically going in an ATM with a pair of 33 00:02:59,480 --> 00:03:05,960 pins, which I find a little bit odd. Attack is literally tying a bunch of explosives to an ATM and 34 00:03:05,960 --> 00:03:10,640 blowing the crap out of it. Now, you'd think that would be somewhat counterproductive to what you're 35 00:03:10,640 --> 00:03:19,760 trying to accomplish there. And it's big in Australia. So go figure. And data breaches. Hacking 36 00:03:19,760 --> 00:03:25,060 the bank processor. Harvesting the card data and pins. I suppose the best example of that would 37 00:03:29,120 --> 00:03:33,240 certainly be the safest, most technically sophisticated attacks I've seen. And I think about 9 million 38 00:03:33,240 --> 00:03:41,960 were stolen during that attack. And of course, other. Or miscellaneous. So we have the default passcode 39 00:03:41,960 --> 00:03:46,420 attack from a couple of years back. That's where if the operator password was left unchanged on the 40 00:03:46,420 --> 00:03:51,120 ATM, you could reprogram the ATM to think there was a lower denomination than there really was. So you 41 00:03:51,120 --> 00:03:55,920 probably don't think it was full of $5 notes when it's really giving you $20. And I'll be adding more to 42 00:03:55,920 --> 00:03:58,960 the other category. Practical attacks, which I think I'll blow that. 43 00:03:59,120 --> 00:04:07,680 John Connor's attack right out of the water. So I've picked standalone ATMs. There's a few reasons. 44 00:04:08,040 --> 00:04:12,760 One, they're pretty easy to get a hold of. Like anything on the internet, you can jump online and just 45 00:04:12,760 --> 00:04:19,260 add to cart, basically. But getting the ATMs delivered to your house, on the other hand, is interesting. 46 00:04:20,000 --> 00:04:25,980 So I remember when one of the ATM delivery guys came in and he wheeled the ATM into my place. And he 47 00:04:25,980 --> 00:04:28,620 was just like, why on earth do you need an ATM in your house for? 48 00:04:30,920 --> 00:04:35,320 And I was feeling a bit cheeky that day so I just looked at him and was like, oh, I just don't like the 49 00:04:35,320 --> 00:04:36,380 transaction fees, mate. 50 00:04:43,040 --> 00:04:48,920 And also they're everywhere, right? Every bar, convenience store, market, whatever it may be. And they're 51 00:04:48,920 --> 00:04:54,740 often in secluded areas, hidden out by the restroom, tucked away in corners. But I'm going to discuss 52 00:04:54,740 --> 00:04:57,720 attack methods for both standalone and hole-in-the-wall ATMs. 53 00:04:59,120 --> 00:05:03,500 style attacks but then shift focus to the far more important vector in my opinion and 54 00:05:03,500 --> 00:05:08,420 that's the remote attack and what an attacker can leverage with a successful remote compromise. 55 00:05:09,040 --> 00:05:13,140 And when I mean remote, I mean remote default because that's the only way to roll really. 56 00:05:14,320 --> 00:05:20,440 So just to show how popular these ATMs are, this is literally one block just down the 57 00:05:20,440 --> 00:05:24,580 road from my place. Decided I'll just go on a bit of a pub crawl and see what I could 58 00:05:24,580 --> 00:05:32,560 find as far as ATMs go. Literally, yeah, this is half a mile. My favorite is this dude 59 00:05:32,560 --> 00:05:37,060 actually who owns a Mexican restaurant, he's a good sport, and then he's got a Tepetio 60 00:05:37,060 --> 00:05:42,040 resting on top of the ATM there. He doesn't exactly look chuffed to be in this picture. 61 00:05:45,520 --> 00:05:51,900 So the standard specs of a new model retail-style ATM, typically Windows CE running and 62 00:05:51,900 --> 00:05:54,560 ARM processor. New models support both TCP and WiFi. So you have the default network 63 00:05:54,580 --> 00:05:59,460 PIP and dial up by default. Wireless being CDMA not 802.11 64 00:05:59,460 --> 00:06:03,500 so no drive by ATM hacks unfortunately. Thought it would 65 00:06:03,500 --> 00:06:06,740 be cool to drive by a store and have it spit out all its cash. 66 00:06:07,180 --> 00:06:11,420 No such luck. SSL support and the triple desk encrypted pin 67 00:06:11,420 --> 00:06:14,060 pads. Basically the pin pad itself performs all the 68 00:06:14,060 --> 00:06:17,620 encryption on the device. Has anti tampering mechanisms and 69 00:06:17,620 --> 00:06:19,440 I'll talk more about that beast a little bit later too. 70 00:06:26,740 --> 00:06:33,700 Is that better? Okay, so here's the ATM internals, receipt 71 00:06:33,700 --> 00:06:37,240 printer. Over to the right you can see the card reader. And 72 00:06:37,240 --> 00:06:39,560 there's a serial interface that leads down into the safe which 73 00:06:39,560 --> 00:06:42,400 is actually wired into the dispenser. And there's also 74 00:06:42,400 --> 00:06:46,180 various motherboard inputs, multiple USB, SD cards, network 75 00:06:46,180 --> 00:06:49,340 and some debugging ports. Now there's usually a cover that 76 00:06:49,340 --> 00:06:52,780 protects the circuit board and I've only removed it just to 77 00:06:52,780 --> 00:06:54,560 show the internals. I guarantee you it's not going to be 78 00:06:54,580 --> 00:06:55,740 a problem. But I do want to point out that these ATMs are 79 00:06:55,740 --> 00:06:58,740 completely stocked, completely unmodified, totally untouched. 80 00:06:59,140 --> 00:07:02,280 Now funnily enough of all the possible ways that an ATM talk 81 00:07:02,280 --> 00:07:06,220 could get disrupted, it was actually my cat who almost took 82 00:07:06,220 --> 00:07:09,720 it down for me. Had like a USB keyboard plugged in and he was 83 00:07:09,720 --> 00:07:12,700 running around chasing a moth or something and tripped over the 84 00:07:12,700 --> 00:07:15,420 USB cord, pulled it out and pulled out the processor plug in 85 00:07:15,420 --> 00:07:18,580 at the same time. But luckily it was easily soldered back in. 86 00:07:18,720 --> 00:07:19,980 But anyway, bad kitty. 87 00:07:24,580 --> 00:07:28,180 In my opinion, a presentation shouldn't really be a full blown 88 00:07:28,180 --> 00:07:31,160 technical tutorial, so I'm going to be following up later with a 89 00:07:31,160 --> 00:07:34,740 white paper that goes into more technical details. But rather 90 00:07:34,740 --> 00:07:37,080 than digging deep into the ins and outs of Windows CE 91 00:07:37,080 --> 00:07:40,780 internals, I will sum up the security hurdles I faced with 92 00:07:40,780 --> 00:07:44,740 this quote. We were concerned about protection but not about 93 00:07:44,740 --> 00:07:48,020 security. We weren't trying to design an airtight system like 94 00:07:48,020 --> 00:07:54,560 Windows NT. And this was from Thomas Fenwick, the guy who 95 00:07:54,580 --> 00:07:57,860 actually created the Windows CE kernel. And I got that from a 96 00:07:57,860 --> 00:08:00,240 book that was called Inside Windows CE, which was essentially 97 00:08:00,240 --> 00:08:05,100 just a bunch of interviews with the core developers. So obviously 98 00:08:05,100 --> 00:08:07,700 things have changed a little bit since that book was written, 99 00:08:07,820 --> 00:08:09,860 but to be honest, there were not a lot of roadblocks. 100 00:08:12,740 --> 00:08:15,340 So before we can even think about giving the guy from 101 00:08:15,340 --> 00:08:18,340 Terminator 2 a run for his money and actually start devising 102 00:08:18,340 --> 00:08:22,240 attacks, first step is to be able to interface with the ATM 103 00:08:22,240 --> 00:08:24,560 itself, gain access to the file system, and get access to the 104 00:08:24,580 --> 00:08:27,440 file system. And with access to the file system, we can then 105 00:08:27,440 --> 00:08:29,600 pull the executables off to be able to do some reverse 106 00:08:29,600 --> 00:08:33,220 engineering. Now unfortunately when the ATM boots, it boots 107 00:08:33,220 --> 00:08:35,440 directly to a proprietary application, so there's no 108 00:08:35,440 --> 00:08:38,940 Explorer shell. So we need a shell to make things easy, and 109 00:08:38,940 --> 00:08:42,080 originally I thought I could just naively, I thought I could 110 00:08:42,080 --> 00:08:45,100 just plug in a keyboard and just alt tab, but that wasn't to be 111 00:08:45,100 --> 00:08:48,600 the case, of course. So to get a shell, we'll need Explorer to 112 00:08:48,600 --> 00:08:53,620 somehow execute at boot time. The CE application boot sequence 113 00:08:53,620 --> 00:08:54,560 is pretty straightforward. It's a little bit more complicated, 114 00:08:54,580 --> 00:08:59,040 the kernel NKEXE runs filesys.exe, it initializes the 115 00:08:59,040 --> 00:09:01,740 registry in the file system, and then executes the applications 116 00:09:01,740 --> 00:09:06,540 listed in the HKLM in the registry key. So the trick is to 117 00:09:06,540 --> 00:09:09,820 patch the application we want executed into this boot list. 118 00:09:11,480 --> 00:09:14,460 So we want to get Explorer easy into the boot list, and there's 119 00:09:14,460 --> 00:09:16,640 two approaches. The first approach assumes you actually 120 00:09:16,640 --> 00:09:20,320 have a copy of the C ROM image, the registry file can then be 121 00:09:20,320 --> 00:09:24,060 extracted, modified, recompiled into the image, but this requires 122 00:09:24,060 --> 00:09:26,160 a way, of course, to rewrite the flash, whether it be over 123 00:09:26,160 --> 00:09:29,280 serial, Ethernet, JTAG, or what have you. Now the other approach 124 00:09:29,280 --> 00:09:31,940 is to patch and explore while you're debugging, which of course 125 00:09:31,940 --> 00:09:36,820 requires debugging capability, JTAG, and so on. So I decided to 126 00:09:36,820 --> 00:09:38,960 go with JTAG, because it's a fairly straightforward way to 127 00:09:38,960 --> 00:09:42,060 accomplish our goals. JTAG is essentially a hardware debugging 128 00:09:42,060 --> 00:09:45,260 interface, which will give you unrestricted debugging access to 129 00:09:45,260 --> 00:09:48,020 the processor core. Now the hardware for this stuff used to 130 00:09:48,020 --> 00:09:52,140 be pretty pricey, but these days with OpenOCD and some of the 131 00:09:52,140 --> 00:09:54,040 open source developments, you get the hardware, you get the 132 00:09:54,060 --> 00:09:56,680 debugger for less than a hundred bucks now. So with JTAG access, 133 00:09:56,800 --> 00:09:59,700 we can remotely debug with GDB, debug the kernel, bootload, and so 134 00:09:59,700 --> 00:10:03,980 on. JTAG's been talked about to death, so I'm not going to dwell 135 00:10:03,980 --> 00:10:08,380 on it too much. So this is the hardware debugger just connected 136 00:10:08,380 --> 00:10:11,260 to the motherboard. Now it probably seems obvious, but the 137 00:10:11,260 --> 00:10:13,400 use of hardware debuggers and things of that nature have 138 00:10:13,400 --> 00:10:15,800 absolutely nothing to do with the ATM attacks I'll be 139 00:10:15,800 --> 00:10:19,120 demonstrating, simply used to initially gain access to the 140 00:10:19,120 --> 00:10:21,780 file system so we can reverse engineer to find vulnerabilities. 141 00:10:22,540 --> 00:10:26,160 Now, speaking of JTAG, I learned a valuable lesson when I was 142 00:10:26,160 --> 00:10:29,800 actually messing around one of the ATMs. I had the JTAG hooked 143 00:10:29,800 --> 00:10:32,840 up, screwing around, and I accidentally wiped out a massive 144 00:10:32,840 --> 00:10:35,820 chunk of the firmware, which unfortunately overwrote some of 145 00:10:35,820 --> 00:10:39,320 the core ATM files. Now at the time, I was unable to get the 146 00:10:39,320 --> 00:10:43,220 software for the ATM to fix it, so I had to call a licensed ATM 147 00:10:43,220 --> 00:10:50,480 technician. And three of them came over to my house, and again, 148 00:10:50,640 --> 00:10:51,760 you know, why do you have ATMs? I don't know. So I had to call a 149 00:10:51,780 --> 00:10:51,940 licensed ATM fixer. Yeah, NEW Entertainment 150 00:10:51,940 --> 00:10:52,420 after you got the ATMs in your house. 151 00:10:54,580 --> 00:10:56,700 I said, oh, you know, I haven't moved into the Then 152 00:10:56,700 --> 00:11:01,720 Yeah. So anyway, yes, what happened? I've never seen 153 00:11:01,720 --> 00:11:03,740 something completely annihilated stuff like that, and I was like, 154 00:11:03,800 --> 00:11:07,960 just trying to change the splash screen. I put in this little card and it's 155 00:11:07,960 --> 00:11:19,800 crapped out, and he's like,desper Valley via actual app.s volt everybody 156 00:11:19,800 --> 00:11:24,560 completely stupid. It teaches me a lot about hacking ATMs. I got his business card, we 157 00:11:24,560 --> 00:11:31,080 kept in touch, but I think possibly after this presentation that relationship may be 158 00:11:31,600 --> 00:11:36,060 severed. So yeah, the lesson was always back up your firmware. 159 00:11:38,680 --> 00:11:42,860 So now that we can debug, we need a way to inject. Now, with the debugger connected, 160 00:11:43,060 --> 00:11:47,660 we set a break point on create process, offset found by dumping the memory from the ATM and 161 00:11:47,660 --> 00:11:52,000 just doing a byte compare with an offline version of core DLL. Now, when working with 162 00:11:52,000 --> 00:11:55,820 the ARM processor, the parameters and parser function are parsed via registers before they 163 00:11:55,820 --> 00:12:00,600 utilize the stack. So R0, being the first parameter, is going to have the executable 164 00:12:00,600 --> 00:12:04,860 that we want to execute. Now, we simply replace the string of the ATM executable, reads from 165 00:12:04,860 --> 00:12:09,860 the registry, overwrite it with explorer.exe. Now, explorer.exe has to exist in the image 166 00:12:09,860 --> 00:12:14,520 for this to actually work. If not, you need to put a copy of explorer on a removable disk 167 00:12:14,520 --> 00:12:16,740 and parse the full name to create process. 168 00:12:17,540 --> 00:12:21,300 But then you get a shell. So as simple as that, really. Now, when I was first playing 169 00:12:21,300 --> 00:12:25,420 with these ATMs, I was actually quite excited to have a shell on it, have my ATMs play 170 00:12:25,420 --> 00:12:32,420 movies and whatnot. But probably not really surprising, the ATMs are pretty crap for 171 00:12:32,420 --> 00:12:38,460 playing movies. Fairly slow frame rate and a six-inch screen, so they won't be replacing 172 00:12:38,460 --> 00:12:39,360 the home theater. 173 00:12:41,560 --> 00:12:46,020 Okay. So with explorer, we can plug in a USB drive and keyboard and copy off the files 174 00:12:46,020 --> 00:12:50,980 for reverse engineering. Modify the registry so explorer is always going to boot. Remote 175 00:12:50,980 --> 00:12:55,260 debugging with JTAG, of course, is not the ideal. With GDB, it's not the ideal way to 176 00:12:55,260 --> 00:13:00,060 debug a Windows machine. So the next step is to actually set up a more sort of user-friendly 177 00:13:00,060 --> 00:13:03,740 debugging environment. So there's a way to debug Windows C applications without having 178 00:13:03,740 --> 00:13:08,040 active sync, and that's a bug with Visual Studio over Ethernet. You simply build an 179 00:13:08,040 --> 00:13:11,540 empty project, overwrite the local executable with the executable from the device you want 180 00:13:11,540 --> 00:13:15,820 to debug. With the TCP settings correct, it will copy a file from the device, run it 181 00:13:15,820 --> 00:13:16,000 on a debugger, and then you can debug it. So that's the first step. The next step is to 182 00:13:16,000 --> 00:13:18,540 debugger, and then you have application debugging in Visual Studio. 183 00:13:18,980 --> 00:13:22,360 So now we finally have everything in place to be able to reverse engineer the software, 184 00:13:22,540 --> 00:13:27,680 to locate the vulnerabilities, but also to test any software we create for the ATM. 185 00:13:29,200 --> 00:13:33,520 So finally, we can get to planning an attack. Now, of course, there's a limited attack surface, 186 00:13:33,680 --> 00:13:38,940 obviously. We have the card reader, but assuming we have an overflow or some other string-based 187 00:13:38,940 --> 00:13:43,820 attack via the card tracks, there's an extremely limited amount of characters and a very restricted 188 00:13:43,820 --> 00:13:44,580 character set. 189 00:13:44,820 --> 00:13:45,980 I mean, I'm not going to say it's not going to be a very restrictive character set, but 190 00:13:45,980 --> 00:13:49,460 it's not possible, but I would say it would be unlikely to be practical or all that reliable. 191 00:13:50,240 --> 00:13:55,300 The keypads, possibly a long shot, but you never know, maybe master passwords left in 192 00:13:55,300 --> 00:14:00,960 by developers, back doors, what have you. And then the network, so any open ports, answering 193 00:14:00,960 --> 00:14:05,880 phone line, any options for any possible remote attacks. And, of course, the various inputs 194 00:14:05,880 --> 00:14:09,280 on the motherboard itself, but, of course, this requires access to the motherboard itself. 195 00:14:11,180 --> 00:14:15,480 Now, of course, progress is never really made without a few failures along the way, and 196 00:14:15,480 --> 00:14:21,320 in my attempt to come up with a Terminator 2-esque hack, I made this device. It's basically 197 00:14:21,320 --> 00:14:26,160 an electromagnet wired up to an amp, which is connected to a media player. A web file 198 00:14:26,160 --> 00:14:30,080 is created to simulate the data on a mag stripe. The electromagnet is plugged into 199 00:14:30,080 --> 00:14:34,680 the card slot. You play the web, and the ATM thinks it's just a random magnetic stripe. 200 00:14:35,040 --> 00:14:38,280 Technically it works fine, but it didn't help me for shit for finding vulnerabilities. 201 00:14:40,760 --> 00:14:45,460 Okay. So the walk-up attack. The goal, of course, is to execute code on the network. 202 00:14:45,460 --> 00:14:51,480 On the ATM. Now, the cash dispenser is housed, at the very least, by a safe. That's if you 203 00:14:51,480 --> 00:14:55,100 take the cheapest option. If you spend more, you can get some fairly heavy duty vault 204 00:14:55,100 --> 00:15:01,220 style protections. But the motherboard, on the other hand, is protected by one key fits 205 00:15:01,220 --> 00:15:09,880 all lock. And this is standard practice, as you can see. And, like everything else 206 00:15:09,880 --> 00:15:14,960 on the Internet, they're easily available to add to cart, and you can get keys for pretty 207 00:15:15,460 --> 00:15:22,380 much every major vendor. So one key, say, will open all the models from that same manufacturer, 208 00:15:22,780 --> 00:15:27,820 the cabinet. Now, funny enough, the D-ball keys used to be available last year, but they've 209 00:15:27,820 --> 00:15:31,720 somehow vanished. I'm sure with a little creativity they can still be acquired. 210 00:15:34,500 --> 00:15:39,000 So now with your master key, you have access to the USB slots and whatever other inputs. 211 00:15:39,360 --> 00:15:43,580 So you can pop open the motherboard compartment, insert a USB key within a couple of seconds. 212 00:15:43,980 --> 00:15:45,440 It's a lot faster than installing a USB key. So we'll talk about that in a minute. 213 00:15:45,440 --> 00:15:49,880 Now, even though the attack time here is short, of course, it's still the possibility 214 00:15:49,880 --> 00:15:54,820 for detection. That's the great thing about these retail and stand-alone type ATMs. They're 215 00:15:54,820 --> 00:15:59,180 in bars, they're out by the restrooms, out of sight, off by the SIGgy machine or something. 216 00:15:59,840 --> 00:16:04,320 But then there's also kind of the psychological aspect of ATMs. It's considered kind of rude 217 00:16:04,320 --> 00:16:08,100 to look over the shoulder of someone as they're using the ATM. Unless you're, of course, a 218 00:16:08,100 --> 00:16:11,540 criminal, and if he was looking over my shoulder, well, he would learn a trick or two, I suppose. 219 00:16:13,200 --> 00:16:15,240 Now, all ATMs need ways to upgrade. 220 00:16:15,240 --> 00:16:18,100 The ATMs need ways to upgrade the firmware. And this is most often leveraged via the removable 221 00:16:18,100 --> 00:16:23,740 drives. So the ATM application will check the drive for a valid upgrade. A valid firmware 222 00:16:23,740 --> 00:16:30,160 is found. It will load it up, install, and upgrade the device. And, of course, we can 223 00:16:30,160 --> 00:16:31,980 install whatever code we want to. 224 00:16:32,600 --> 00:16:37,420 Now, of course, the firmware is typically a proprietary format. Executables encapsulate 225 00:16:37,420 --> 00:16:42,420 in the firmware. There are checksums and encryption. But these algorithms are easily 226 00:16:42,420 --> 00:16:45,240 figured out by reverse engineering the code on the ATM side. 227 00:16:45,740 --> 00:16:49,660 So once you can create your own firmware package, it has the correct format. But you 228 00:16:49,660 --> 00:16:52,020 can then upgrade, but, of course, with a few modifications. 229 00:16:53,500 --> 00:16:59,060 Now the remote attack, which is obviously the most important vector. So most, if not 230 00:16:59,060 --> 00:17:04,120 all ATMs that are running some sort of Windows-based OS support some form of remote monitoring and 231 00:17:04,120 --> 00:17:08,520 remote configuration. So this allows you to log into your ATM remotely, review or change 232 00:17:08,520 --> 00:17:11,500 your settings, get stats, change splash screens, and so on. 233 00:17:11,620 --> 00:17:12,400 But another use case is when you're using the ATMs, and you're using the ATMs, and you're 234 00:17:12,420 --> 00:17:12,540 using the ATMs. 235 00:17:12,540 --> 00:17:16,360 The other useful feature is the ability to remotely upgrade the software. Now, this is 236 00:17:16,360 --> 00:17:19,620 sometimes a feature, but it's always something you can leverage if you have a vulnerability, 237 00:17:19,940 --> 00:17:20,080 right? 238 00:17:20,520 --> 00:17:25,680 Now, obviously, authentication is required to be able to do anything remotely. And this 239 00:17:25,680 --> 00:17:30,620 particular model, you require both a serial number and a password. And they're both made 240 00:17:30,620 --> 00:17:34,380 up of a combination of numbers and letters. Five-second delay is forced after each connection 241 00:17:34,380 --> 00:17:36,740 attempt. So brute force is basically out of the question. 242 00:17:37,080 --> 00:17:42,280 So we require a vulnerability within the authentication process itself. And it's just 243 00:17:42,280 --> 00:17:42,700 so happens. 244 00:17:43,840 --> 00:17:50,080 So introducing Dillinger. Dillinger is my remote ATM attack or administration tool, 245 00:17:50,280 --> 00:17:55,300 whatever way you want to look at it. So we've talked about loading code locally on an ATM 246 00:17:55,300 --> 00:17:59,820 machine. With the master key and the flash drive and the correctly formed firmware, you're 247 00:17:59,820 --> 00:18:03,540 basically set. But the obvious drawback here is that you need to interact with the machine 248 00:18:03,540 --> 00:18:07,140 in some way. So of course, the ultimate win is to be able to execute code or load 249 00:18:07,140 --> 00:18:12,260 software remotely, and that's where Dillinger comes in. Named after the bank robber, of 250 00:18:12,260 --> 00:18:17,960 course. So Dillinger takes advantage of a fairly serious vulnerability in the ATM remote 251 00:18:17,960 --> 00:18:22,540 management capability. And interestingly, although most operators don't actually use this 252 00:18:22,540 --> 00:18:28,820 capability, remote monitoring is enabled by default on all of this manufacturer's ATMs. 253 00:18:29,000 --> 00:18:29,620 So cha-ching. 254 00:18:30,660 --> 00:18:36,360 Now, typically, to log into the machine remotely will require both knowledge of the serial 255 00:18:36,360 --> 00:18:41,640 number and of the password. Now, due to a pretty awesome vulnerability, I'm able to bypass all 256 00:18:42,260 --> 00:18:45,480 on the device and the remote attack is 100% reliable. 257 00:18:46,380 --> 00:18:51,500 Now Dillinger supports both TCP IP and it also supports dial-up because I heard through 258 00:18:51,500 --> 00:18:56,760 a fairly knowledgeable source that approximately 95% of these standalone type ATMs are using 259 00:18:56,760 --> 00:18:57,360 a dial-up connection. 260 00:18:58,000 --> 00:19:01,500 So of course back in the day trying to find an ATM over the phone line would be a long 261 00:19:01,500 --> 00:19:06,200 process of nights and nights of wall-dialing but thanks to tools like H.D. Moore's Wallbox 262 00:19:06,200 --> 00:19:10,900 you can map out modems on exchange in a matter of hours then just write a custom tool to 263 00:19:10,900 --> 00:19:13,000 find ATMs and you're away. 264 00:19:15,280 --> 00:19:20,100 So Dillinger allows you to manage an unlimited amount of ATMs through its interface so you 265 00:19:20,100 --> 00:19:24,600 could add a group, say a city, under this city you can add each individual ATM that 266 00:19:24,600 --> 00:19:27,220 you've found and either its IP address or its phone number. 267 00:19:27,720 --> 00:19:32,080 Now the heart of the tool of course is the authentication bypass which is the stepping 268 00:19:32,080 --> 00:19:33,700 stone to doing anything useful really. 269 00:19:34,140 --> 00:19:38,100 So one feature in Dillinger is to be able to test the bypass in a way which confirms 270 00:19:38,100 --> 00:19:40,160 the vulnerability but doesn't actually modify. 271 00:19:40,400 --> 00:19:40,880 Okay. 272 00:19:46,100 --> 00:19:52,520 So I've added a feature which can pull the ATM settings which includes all the master 273 00:19:52,520 --> 00:19:57,240 passwords and the receipt data because you know each time you use an ATM you look at 274 00:19:57,240 --> 00:20:00,620 the bottom of the receipt as the location of where it is or at least the name of the 275 00:20:00,620 --> 00:20:01,180 business, right? 276 00:20:02,640 --> 00:20:05,780 Upload a rootkit so that's not really, that's not a bad feature. 277 00:20:06,500 --> 00:20:10,780 Bypasses authentication, initiates the software upload which lets me replace the firmware. 278 00:20:10,780 --> 00:20:11,420 So awesome. 279 00:20:12,400 --> 00:20:16,040 So in general someone's going to need to be at the ATM if you want to get a payout, right? 280 00:20:16,180 --> 00:20:19,320 So I've added another feature so it would be possible to carry out an attack without 281 00:20:19,320 --> 00:20:20,420 ever visiting the ATM. 282 00:20:20,680 --> 00:20:25,120 When someone inserts a card that track data is captured and I can retrieve that track 283 00:20:25,120 --> 00:20:25,620 data remotely. 284 00:20:26,440 --> 00:20:29,940 And finally the remote jackpot which I suppose speaks for itself really. 285 00:20:32,020 --> 00:20:37,040 Now introducing Scrooge, Scrooge is the rootkit I've developed specifically for ATMs. 286 00:20:37,880 --> 00:20:39,840 Implements a typical rootkit technologies. 287 00:20:40,180 --> 00:20:40,760 High performance. 288 00:20:40,780 --> 00:20:45,800 Hides itself by various C system calls, hooks, hides itself from the process list, 289 00:20:46,120 --> 00:20:50,020 hides itself from the file system, filtering the results and so on. 290 00:20:50,680 --> 00:20:54,380 Now there's a hidden pop-up menu which can be activated with both a special key sequence 291 00:20:54,380 --> 00:20:58,140 on the ATM or inserting a card that has some custom track data on it. 292 00:20:58,640 --> 00:21:02,900 It will run on any ARM or X scale based ATM, Intel with a few tweaks. 293 00:21:03,840 --> 00:21:08,080 Originally it was designed for both Intel and ARM but it turns out that CE on x86 is 294 00:21:08,080 --> 00:21:08,840 actually pretty rare. 295 00:21:09,000 --> 00:21:10,760 Basically nonexistent in the ATM world. 296 00:21:10,780 --> 00:21:16,400 So the code for interfacing with the ATMs has to be customized for different ATMs as 297 00:21:16,400 --> 00:21:19,540 they all use different peripherals and fairly non-stated protocols for communicating. 298 00:21:21,900 --> 00:21:26,080 So I just use a standard set windows hook for capturing the side buttons on the ATM 299 00:21:26,080 --> 00:21:31,460 and although the API is actually undocumented in Windows CE it still exists and it works 300 00:21:31,460 --> 00:21:31,920 as expected. 301 00:21:32,340 --> 00:21:34,580 So a combination of keys will trigger the menu. 302 00:21:35,300 --> 00:21:39,280 It's varied enough not to launch by accident but you know if maybe some kid's screwing 303 00:21:39,280 --> 00:21:39,880 around with it. 304 00:21:42,480 --> 00:21:46,860 The card reader is hooked via an inline detour style patch so essentially where you patch 305 00:21:46,860 --> 00:21:50,660 in a branch instruction to a piece of code you'd like to intercept, the branch jumps 306 00:21:50,660 --> 00:21:53,980 your code, your code executes and then returns the original function. 307 00:21:54,520 --> 00:21:59,140 Now with the hook and place there's a check on the rebuffer any time a card is entered 308 00:21:59,140 --> 00:22:03,980 and if the second track matches gimme dilute it will bring up the menu as well. 309 00:22:04,560 --> 00:22:07,320 So the menu functions are fairly standard for what you'd expect. 310 00:22:07,640 --> 00:22:08,980 You can dispense from each cassette. 311 00:22:09,180 --> 00:22:10,120 Print out stats. 312 00:22:10,780 --> 00:22:13,760 Which includes remaining bill count and of course exit. 313 00:22:15,680 --> 00:22:20,940 So to add my own functionality I've added a few inline patches where basically you patch 314 00:22:20,940 --> 00:22:23,980 in a few assembler stubs of the functions you want to hook. 315 00:22:24,100 --> 00:22:28,240 That stub calls functions in external DLL and executes any overwritten instructions 316 00:22:28,240 --> 00:22:29,440 and continues as normal. 317 00:22:29,840 --> 00:22:33,720 So this could be done dynamically but the fact that these specific ATM vulnerabilities 318 00:22:33,720 --> 00:22:39,060 allow me to replace the entire firmware and all the different executables I can make these 319 00:22:39,060 --> 00:22:40,680 patches permanent which is far more reliable. 320 00:22:40,780 --> 00:22:44,720 And it's also a lot easier on ARM as every instruction is 32 bits long. 321 00:22:45,200 --> 00:22:49,120 So I place hooks at the card reader, the pin pad and the parser that handles the remote 322 00:22:49,120 --> 00:22:50,080 configuration commands. 323 00:22:50,740 --> 00:22:55,220 So with those hooks we can add some fairly handy features, save the track data, capture 324 00:22:55,220 --> 00:22:57,720 the pin pad and a few custom remote commands. 325 00:22:58,040 --> 00:23:01,800 So get the track data remotely, sure, remote jackpot, might as well. 326 00:23:02,520 --> 00:23:06,740 So I blitz through these because there's a fair few demos I need to get through. 327 00:23:07,080 --> 00:23:09,740 So I may as well put my money where my mouth is now I suppose. 328 00:23:10,020 --> 00:23:10,140 There we go. 329 00:23:10,780 --> 00:23:11,880 So I guess there's a pun there somewhere. 330 00:23:18,980 --> 00:23:20,940 Let's start with the remote stuff first. 331 00:23:45,520 --> 00:23:47,200 All right. 332 00:23:52,060 --> 00:23:54,160 All right. 333 00:23:54,240 --> 00:23:56,380 All right. 334 00:24:05,340 --> 00:24:08,140 All right. 335 00:24:11,920 --> 00:24:12,560 Okay. 336 00:24:12,740 --> 00:24:15,260 So we can start by adding a group. 337 00:24:18,740 --> 00:24:37,500 So we'll make the group DEF CON, can now add an ATM, my ATM, location I guess would be 338 00:24:37,500 --> 00:24:38,760 on stage at DEF CON. 339 00:24:41,540 --> 00:24:47,480 And so even though I support both modem TCP IP, I just have this wired over crossover 340 00:24:47,480 --> 00:24:50,160 cable just for the ease of demonstration really. 341 00:24:55,880 --> 00:24:56,500 Okay. 342 00:24:56,620 --> 00:25:02,860 So of course I can test the bypass which is important. 343 00:25:03,540 --> 00:25:07,060 This will allow me to ensure that the authentication bypass. 344 00:25:07,060 --> 00:25:10,220 Bypass actually exists but won't modify anything on the system. 345 00:25:11,660 --> 00:25:17,660 So I'm going to attempt connection, connected, testing ATM authentication bypass, success. 346 00:25:18,300 --> 00:25:22,480 Now if you just want to quickly flick over to the ATM there and get that on screen. 347 00:25:22,620 --> 00:25:22,980 Is that possible? 348 00:25:28,420 --> 00:25:34,620 So all that's shown on the ATM is that RMS processes, just is RMS process basically. 349 00:25:36,360 --> 00:25:37,020 That's all. 350 00:25:37,060 --> 00:25:37,440 That's all that's seen. 351 00:25:38,360 --> 00:25:38,760 Okay. 352 00:25:41,540 --> 00:25:44,080 Now let's go back to the computer now please. 353 00:25:47,880 --> 00:25:53,960 Now of course the best is to be able to upload the rootkit which will leverage that same 354 00:25:53,960 --> 00:25:55,760 authentication bypass to get there. 355 00:25:56,180 --> 00:26:01,500 And I'm just going to reiterate that this is default on every single one of these ATMs. 356 00:26:02,760 --> 00:26:05,240 So I'll play the final version of Scrooge. 357 00:26:07,060 --> 00:26:12,100 Connects, sends the authentication bypass, access, initializes the software upload and 358 00:26:12,100 --> 00:26:14,480 now Scrooge is actually uploading to the ATM. 359 00:26:20,220 --> 00:26:22,300 That port is just default. 360 00:26:23,440 --> 00:26:24,280 Say again? 361 00:26:25,880 --> 00:26:31,600 No, I mean that's the port that they specify in the manual which interestingly enough can't 362 00:26:31,600 --> 00:26:32,340 be changed either. 363 00:26:33,260 --> 00:26:33,660 Okay. 364 00:26:40,160 --> 00:26:42,840 If we could flick back to the ATM now. 365 00:26:43,160 --> 00:26:46,720 So basically once the rootkit is being uploaded, the ATM should reboot. 366 00:26:56,800 --> 00:26:58,840 It just says RMS process. 367 00:27:01,540 --> 00:27:04,980 So it realizes someone is managing the ATM. 368 00:27:04,980 --> 00:27:09,940 They just don't realize that it's not legitimate, I suppose. 369 00:27:19,540 --> 00:27:20,280 There we go. 370 00:27:20,480 --> 00:27:21,880 So the rootkit got uploaded. 371 00:27:22,220 --> 00:27:23,320 The ATM is rebooting. 372 00:27:23,600 --> 00:27:30,420 So now as it boots up, it should have my rootkit surreptitiously running in the background. 373 00:27:31,700 --> 00:27:32,260 Okay. 374 00:27:49,140 --> 00:27:51,600 Just let me know when that boots back up. 375 00:27:54,720 --> 00:27:58,900 Well, I tried to cover the vendor's name, but what can you do? 376 00:28:00,400 --> 00:28:00,800 . 377 00:28:05,780 --> 00:28:07,780 Can I take one of those mics over there? 378 00:28:15,860 --> 00:28:23,000 Okay, so as I said, there's two ways to pop up this remote menu. 379 00:28:23,220 --> 00:28:27,220 One is by the gimme the loot cards and the other is by a special key sequence. 380 00:28:27,540 --> 00:28:28,540 So let's try it. 381 00:28:30,380 --> 00:28:30,780 . 382 00:28:32,640 --> 00:28:33,100 Okay. 383 00:28:33,440 --> 00:28:35,420 So it pops up my hidden menu there. 384 00:28:36,520 --> 00:28:41,180 Well, let me dispense 50 notes from A, B, C, or D, which are the four cassettes on the 385 00:28:41,180 --> 00:28:41,500 ATM. 386 00:28:42,360 --> 00:28:44,720 Print out statistics like I told earlier. 387 00:28:44,960 --> 00:28:48,260 So let's just try dump 50 bills from the first cassette. 388 00:28:55,520 --> 00:28:55,980 . 389 00:28:58,020 --> 00:28:58,480 . 390 00:29:10,520 --> 00:29:14,600 So these actually double as invites to the freak show party, by the way. 391 00:29:22,640 --> 00:29:29,580 So, yeah, you can pop up the menu by the card, but also by entering the special key sequence. 392 00:29:35,920 --> 00:29:37,040 And there you go. 393 00:29:37,800 --> 00:29:38,320 . 394 00:29:38,320 --> 00:29:38,780 . 395 00:29:43,660 --> 00:29:44,180 . 396 00:29:44,180 --> 00:29:44,580 . 397 00:29:49,760 --> 00:29:50,320 Okay. 398 00:29:51,160 --> 00:29:52,940 Can we go back to the computer again? 399 00:29:56,380 --> 00:30:00,940 So you've found this ATM, but of course you have no idea where it is. 400 00:30:01,220 --> 00:30:04,540 So that's where we can retrieve the ATM settings. 401 00:30:07,420 --> 00:30:09,340 Again, uses the authentication bypass. 402 00:30:10,600 --> 00:30:12,440 It's received the settings, saved them to disk. 403 00:30:19,660 --> 00:30:25,060 So at the top here you can see the master passwords for my ATM, Barnaby's ATM. 404 00:30:25,360 --> 00:30:28,360 I actually don't live at 123 Kiwi Street, by the way. 405 00:30:29,360 --> 00:30:34,100 But, yeah, so it has your location, the master passwords, as well as the phone numbers and 406 00:30:34,100 --> 00:30:35,140 also the IP address. 407 00:30:35,900 --> 00:30:36,340 . 408 00:30:40,800 --> 00:30:41,240 . 409 00:30:41,240 --> 00:30:41,300 . 410 00:30:41,300 --> 00:30:46,720 All of these attacks have actually required someone to be at the ATM, and I require a 411 00:30:46,720 --> 00:30:48,440 volunteer from the audience now. 412 00:30:50,700 --> 00:30:52,640 Is Brandon actually here? 413 00:30:52,800 --> 00:30:55,480 I think he has a specific card created for this. 414 00:30:57,680 --> 00:31:02,420 By the way, it was just any volunteers would have had all their credit card details displayed 415 00:31:02,420 --> 00:31:07,500 on the screen, so you have to be careful before you raise your hand. 416 00:31:15,760 --> 00:31:18,540 Yes, that's actually another interesting point. 417 00:31:18,700 --> 00:31:24,040 So they build the cameras, you can have the cameras built into these machines, but via 418 00:31:24,040 --> 00:31:29,740 this remote management you can actually turn off the cameras or retrieve the images or 419 00:31:29,740 --> 00:31:31,020 even replace the images. 420 00:31:31,840 --> 00:31:32,040 So... 421 00:31:33,320 --> 00:31:34,520 Thank you. 422 00:31:34,640 --> 00:31:34,780 Thank you. 423 00:31:36,880 --> 00:31:37,480 Thank you. 424 00:31:43,640 --> 00:31:45,380 Did you get your card back? 425 00:31:46,180 --> 00:31:46,640 Okay. 426 00:31:46,740 --> 00:31:51,760 So I assume Brandon knows how to use an ATM, so he's just entered his card. 427 00:31:52,680 --> 00:31:53,140 Okay. 428 00:31:53,180 --> 00:31:54,880 We'll stay on the computer for one sec. 429 00:31:56,260 --> 00:31:58,960 So now I should be able to remotely pull the track data. 430 00:31:59,100 --> 00:32:02,240 So this should have captured anyone's card that's been entered in there. 431 00:32:14,840 --> 00:32:22,760 Now you can see it captured the Gimme the loot card, which was my original one to pop 432 00:32:22,760 --> 00:32:23,400 up the menu. 433 00:32:24,240 --> 00:32:26,960 Brandon's card, Doctorate of the Bustacardi. 434 00:32:27,340 --> 00:32:31,160 I've never seen a credit card that says Leet, Leet, Leet, Leet, Leet, Leet, Leet, Leet, Leet, 435 00:32:31,160 --> 00:32:31,680 Leet, Leet, Leet, Leet before. 436 00:32:33,740 --> 00:32:34,400 Fair play. 437 00:32:43,660 --> 00:32:44,060 Okay. 438 00:32:44,260 --> 00:32:46,040 If we go back to the ATM again, please. 439 00:32:48,440 --> 00:32:50,920 Now of course you can't... 440 00:32:50,920 --> 00:32:53,100 You have to add the remote jackpot. 441 00:32:53,200 --> 00:32:54,420 It would just be rude not to, really. 442 00:32:54,560 --> 00:32:56,100 So let's try that one. 443 00:32:58,020 --> 00:32:58,820 It's connecting. 444 00:32:59,400 --> 00:33:00,200 Sending the... 445 00:33:00,200 --> 00:33:04,960 Will you have a winner and go down to the dispenser? 446 00:33:27,720 --> 00:33:29,120 What's that? 447 00:33:30,520 --> 00:33:31,920 Yeah. 448 00:33:50,320 --> 00:33:51,720 Oops. 449 00:33:52,360 --> 00:33:53,760 Oops. 450 00:34:06,800 --> 00:34:10,180 So I'll talk about that briefly at the end if I have time. 451 00:34:11,400 --> 00:34:12,160 But, yes. 452 00:34:15,340 --> 00:34:20,300 Okay, so, oh, actually, I almost forgot about the other ATM. 453 00:34:20,500 --> 00:34:20,840 I'm sorry. 454 00:34:23,300 --> 00:34:26,120 So you remember that the attack on the other ATM, 455 00:34:26,420 --> 00:34:29,300 actually, let me just make sure I have the correct firmware on it. 456 00:34:29,380 --> 00:34:29,840 One sec. 457 00:34:40,260 --> 00:34:43,020 Okay, so as you remember, the attack on the other ATM 458 00:34:43,020 --> 00:34:46,740 is to simply pop open the compartment with your master key, 459 00:34:46,960 --> 00:34:49,240 insert the USB that has the correct firmware. 460 00:34:50,000 --> 00:34:51,260 I'm not very good at this. 461 00:34:51,380 --> 00:34:54,800 It takes me a while, but it should hopefully be in within three seconds. 462 00:35:14,960 --> 00:35:17,900 So that's the attack essentially carried out on that one. 463 00:35:17,980 --> 00:35:19,960 I don't know if we could zoom in on that one. 464 00:35:23,620 --> 00:35:25,560 Actually, that's probably about perfect, yeah. 465 00:35:26,180 --> 00:35:28,260 It takes a while to boot ARM processors. 466 00:35:28,660 --> 00:35:29,940 You know, ARM9 is not the fastest. 467 00:35:38,580 --> 00:35:40,320 Now, you're going to have to forgive me 468 00:35:40,320 --> 00:35:43,860 because this was tailored originally for Black Hat, 469 00:35:44,060 --> 00:35:47,500 so there might be a bit of, oh, you'll see. 470 00:35:48,640 --> 00:35:51,780 It was also tailored for Vegas as well, which you'll also see. 471 00:35:58,700 --> 00:36:02,700 Okay, so that's just the Black Hat logo. 472 00:36:02,820 --> 00:36:04,880 It floats around the screen, and it's just doing this. 473 00:36:04,960 --> 00:36:06,660 This is the ATMs actually initializing. 474 00:36:06,860 --> 00:36:10,360 So right now, this is actually my firmware running on the device. 475 00:36:10,980 --> 00:36:14,520 It takes a little while to boot up. 476 00:36:14,640 --> 00:36:16,580 These aren't the fastest machines in the world, unfortunately. 477 00:36:21,460 --> 00:36:23,400 Any quick questions while this is happening? 478 00:36:24,940 --> 00:36:25,520 What's up? 479 00:36:25,680 --> 00:36:27,460 How much time have you invested in this? 480 00:36:28,640 --> 00:36:33,300 I would say a year here, on and off, you know. 481 00:36:33,380 --> 00:36:34,240 It's more of a hobby. 482 00:36:34,240 --> 00:36:35,560 Sort of a nighttime job. 483 00:36:48,000 --> 00:36:49,400 And if we go... 484 00:37:07,040 --> 00:37:08,580 I think it has a better effect 485 00:37:08,580 --> 00:37:10,200 if I just open that first cabinet. 486 00:37:28,920 --> 00:37:30,220 Yeah, it'll keep doing that. 487 00:37:34,680 --> 00:37:37,120 Um, I'm just going to disconnect the sound 488 00:37:37,120 --> 00:37:39,060 because it's kind of bugging me a bit. 489 00:37:46,660 --> 00:37:47,220 Uh, yeah. 490 00:37:47,220 --> 00:37:47,440 Yeah. 491 00:37:48,200 --> 00:37:48,500 Yeah. 492 00:38:04,240 --> 00:38:06,160 If you just go back to the, uh, computer again. 493 00:38:11,400 --> 00:38:12,120 So, countermeasures. 494 00:38:13,280 --> 00:38:15,620 So the obvious physical countermeasure, of course, 495 00:38:15,700 --> 00:38:17,300 is to prevent the walk-up attack, 496 00:38:17,500 --> 00:38:20,040 is to offer upgrade options on the physical locks. 497 00:38:20,280 --> 00:38:23,540 And so we have a unique key, uh, for each of the locks. 498 00:38:23,760 --> 00:38:25,480 Of course, if you want to take this into your own hands, 499 00:38:25,540 --> 00:38:27,660 you could just, uh, you know, drill a hole 500 00:38:27,660 --> 00:38:28,920 and put a padlock on it or something. 501 00:38:29,560 --> 00:38:31,500 Uh, if a trusted environment is set up 502 00:38:31,500 --> 00:38:33,580 which allows any signed executables to be run, 503 00:38:33,580 --> 00:38:35,440 this would have prevented the original attack. 504 00:38:35,760 --> 00:38:36,840 And although it wouldn't have prevented 505 00:38:36,840 --> 00:38:38,440 the attack vector of the remote, 506 00:38:38,720 --> 00:38:41,040 uh, it would have added another barrier 507 00:38:41,040 --> 00:38:43,120 for uploading these rogue executables. 508 00:38:43,660 --> 00:38:45,340 Now, unfortunately, in Windows CE5, 509 00:38:45,480 --> 00:38:46,540 implementing the trusted environment 510 00:38:46,540 --> 00:38:48,240 isn't as straightforward as it should be. 511 00:38:48,620 --> 00:38:50,320 Code has to be introduced into the build. 512 00:38:50,500 --> 00:38:52,780 And I think the option to implement a secure environment 513 00:38:52,780 --> 00:38:53,940 should be made a lot easier. 514 00:38:54,560 --> 00:38:57,220 Uh, but what can you do to now prevent the remote attack? 515 00:38:57,460 --> 00:38:58,320 Disable RMS. 516 00:38:58,720 --> 00:39:01,280 Uh, high chances are you're not using that functionality. 517 00:39:01,820 --> 00:39:03,560 Disable it, and that can be done from the office. 518 00:39:03,560 --> 00:39:03,980 Operate a menu. 519 00:39:04,380 --> 00:39:07,080 And finally, it's time to give these devices a proper rehaul. 520 00:39:07,320 --> 00:39:09,000 There hasn't been a secure development methodology 521 00:39:09,000 --> 00:39:10,180 in from the get-go. 522 00:39:10,440 --> 00:39:11,520 Uh, so there's, there's, 523 00:39:11,520 --> 00:39:13,440 you need to play catch-up at this stage. 524 00:39:13,560 --> 00:39:15,580 Have the code audited, penetration tests, 525 00:39:15,800 --> 00:39:18,000 implement these best practices from here on out. 526 00:39:18,840 --> 00:39:20,480 You know, there's been a noticeable surge 527 00:39:20,480 --> 00:39:21,480 in the community I've seen 528 00:39:21,480 --> 00:39:24,240 to research these proprietary devices like ATMs. 529 00:39:24,360 --> 00:39:25,540 And the simple fact is, 530 00:39:25,620 --> 00:39:27,680 these companies who manufacture these devices, 531 00:39:27,780 --> 00:39:28,820 you know, they're not Microsoft. 532 00:39:29,220 --> 00:39:30,920 They haven't had 10-plus years 533 00:39:30,920 --> 00:39:32,720 of continued attacks against their software, 534 00:39:32,920 --> 00:39:33,480 which is, 535 00:39:33,560 --> 00:39:34,420 for secure development. 536 00:39:34,700 --> 00:39:35,800 We've gotten where they are today. 537 00:39:35,940 --> 00:39:37,180 So I think it's important we dig in, 538 00:39:37,240 --> 00:39:38,240 research these devices, 539 00:39:38,520 --> 00:39:39,060 find vulnerabilities, 540 00:39:39,400 --> 00:39:40,120 find solutions, 541 00:39:40,300 --> 00:39:42,740 and ultimately ensure a more secure future. 542 00:39:42,880 --> 00:39:43,640 So, thank you. 543 00:39:43,940 --> 00:39:44,740 Thank you.