[00:00.000 --> 00:01.020] Alright. [00:10.670 --> 00:12.830] Alright, so we finally made it. [00:12.830 --> 00:17.130] I want to give a big thanks to my mate Alex who flew over from Europe. [00:17.130 --> 00:21.750] He road-tripped the ATMs with me in an Escalade from San Jose to here. [00:21.770 --> 00:25.870] The whole time I'm thinking, please don't get pulled over, please don't get pulled over. [00:26.490 --> 00:31.630] Two ATMs in the back of an Escalade and about 6,000 notes of novelty currency. [00:31.630 --> 00:33.470] What are you boys up to, mate? [00:34.630 --> 00:37.630] We made it, we got into the casino, so we're all good. [00:38.030 --> 00:41.370] The attraction to target ATMs is fairly obvious. [00:41.370 --> 00:42.890] I mean, they're full of cash. [00:42.970 --> 00:46.770] But for myself, it's kind of part of a bigger picture and a bigger plan. [00:46.770 --> 00:52.590] And that's to explore systems that, when compromised, have direct and immediate consequences. [00:52.770 --> 00:55.910] You know, society relies on various proprietary systems, [00:55.910 --> 01:00.510] whether they be ATM machines, medical devices, smart meters, parking meters, [01:00.510 --> 01:02.730] or the computer system in a vehicle. [01:02.730 --> 01:04.750] It's important to research these systems. [01:04.750 --> 01:07.810] Particularly, they're often not designed with a secure methodology. [01:07.950 --> 01:12.610] As a result of that research, we can use that knowledge to design better and safer products in the future. [01:13.830 --> 01:15.050] So, my goal. [01:15.150 --> 01:21.990] The goal of the talk is to spark discussion on the best ways to remediate and prevent the attacks that I'm going to be demonstrating. [01:22.030 --> 01:26.070] The goal definitely isn't to give a cookbook recipe on how to hack ATMs. [01:27.210 --> 01:31.010] I find the process of finding vulnerabilities a little bit more interesting anyway. [01:31.010 --> 01:32.690] The journey, not the destination. [01:32.690 --> 01:36.130] Although, the destination is pretty cool in this one. [01:36.390 --> 01:42.490] And I hope to change the way people look at devices that, from the outside, are seemingly impenetrable. [01:44.090 --> 01:45.710] So, current attacks. [01:45.710 --> 01:48.390] The skimmer, which is certainly a fan favorite. [01:48.770 --> 01:52.550] A small overlay that slides over the card slot and the pin pads. [01:52.610 --> 01:57.370] Manufactured to blend seamlessly with whatever particular ATM it's manufactured for. [01:57.370 --> 02:01.350] Designed to both capture the track data on the cards as well as the pin numbers. [02:01.650 --> 02:04.090] And, you know, technology in some of these is no joke. [02:04.090 --> 02:06.150] Data that gets transmitted over GPS. [02:06.370 --> 02:08.270] Some even have tamper protection. [02:08.310 --> 02:12.270] They wipe themselves and find out and send the remaining data back to the attacker. [02:12.990 --> 02:14.590] Physical theft and ram raids. [02:14.590 --> 02:24.710] You may have all seen those YouTube videos where a couple of good old boys hurl through the front window of a store, attach a chain to an ATM and the other end to their pickup truck and take off with it. [02:24.710 --> 02:30.210] Not the most subtle of attacks, but that's ninja status compared to some of the other ones. [02:30.610 --> 02:32.990] And we have card trapping and card snooping. [02:33.030 --> 02:44.470] Card trapping where someone will insert a small shim, commonly known as a Lebanese loop, into a slot, traps the card, and they're designed in such a way that when the card's read, it'll be read but won't be returned to you. [02:44.470 --> 02:50.310] Often combined with shoulder surfing to get your pin, or they'll get your pin in ways that may not be quite as friendly. [02:50.310 --> 02:55.550] Then safe-cutting and frontal attacks, basically going at the ATM with a pair of pliers and a blowtorch. [02:56.610 --> 03:00.230] Explosives, which is surprisingly popular, which I find a bit odd. [03:00.450 --> 03:05.610] The attacker's literally tying a bunch of explosives to an ATM and blowing the crap out of it. [03:05.930 --> 03:12.070] Now, you'd think blowing up an ATM would be somewhat counterproductive, but this is bigger than Australia, so go figure. [03:12.570 --> 03:13.870] Sorry, Australians. [03:16.930 --> 03:22.810] And data breaches. Hacking the backend, so hacking the bank processor, harvesting the card data. [03:22.810 --> 03:27.630] An example of this would have been the compromise of the Royal Bank of Scotland's Wellpay backend. [03:27.750 --> 03:31.710] Certainly the safest and was the most technically sophisticated attack that I've seen. [03:31.710 --> 03:34.310] I think about 9 million was stolen during that attack. [03:35.690 --> 03:37.890] And then I guess we have miscellaneous. [03:39.190 --> 03:44.170] Other. So there would have been the default passcode attack from a couple of years back, [03:44.170 --> 03:47.390] where if the operator password was left unchanged on the machines, [03:47.390 --> 03:53.510] you could reprogram the ATM to think there was a lower denomination in the machine than there actually was. [03:53.510 --> 03:57.130] So you could probably think it's full of $5 notes, but it's really full of 20s. [03:57.130 --> 03:59.890] And I'll be adding some more to the other category. [03:59.930 --> 04:03.930] Practical attacks, which in my opinion blow John Connor's mind right out of order. [04:05.810 --> 04:10.270] So I've picked standalone ATMs, and there's a few reasons for that. [04:10.270 --> 04:12.750] First off, they're pretty easy to get a hold of. [04:12.750 --> 04:16.630] You jump online, and like anything on the internet, you just add to cart. [04:17.770 --> 04:21.670] Getting the ATMs delivered to your house, though, is actually quite interesting. [04:21.990 --> 04:26.070] I had the ATM delivery guy literally wheel in one of the ATMs. [04:26.950 --> 04:30.090] And he came in, he's like, why on earth do you need an ATM in your house for? [04:30.090 --> 04:36.950] And I was feeling a little bit cheeky at the time, so I just looked at him like, [04:36.950 --> 04:38.970] oh, I don't like the transaction fees, mate. [04:43.710 --> 04:46.590] And he just kind of shook his head and went on his way. [04:48.550 --> 04:52.450] But also, they're everywhere, you know, every bar, convenience store, market, [04:52.450 --> 04:56.510] and they're often in secluded areas, you know, they'll be out by the restroom, tucked away in corners. [04:56.510 --> 05:01.970] But I will be discussing attack methods for both stand-alones and hole-in-the-wall ATMs. [05:02.050 --> 05:06.850] I'll go over walk-up style attacks, but then I'll shift focus to a far more important vector, [05:06.850 --> 05:08.270] and that's remote attacks. [05:08.350 --> 05:11.990] And particularly what an attacker can leverage through a successful remote compromise. [05:12.210 --> 05:15.930] And when I say remote, I mean remote default, because that's the only way to roll, really. [05:17.490 --> 05:21.050] So just to get an idea of how popular these ATMs are, [05:21.050 --> 05:24.370] this is just one block on my street from a bit of a pub crawl. [05:26.510 --> 05:30.490] I must say my favorite is the guy who owns a Mexican restaurant here, [05:30.490 --> 05:33.430] holding his bottle of Tapatio over the top of the ATM. [05:33.850 --> 05:36.470] It doesn't exactly look chuffed to be there, though. [05:40.610 --> 05:44.970] So this is standard specs of a new model retail-style ATM. [05:44.970 --> 05:47.670] Generally Windows CE running an ARM processor. [05:47.810 --> 05:52.650] Our new models support both TCPIP and dial-up by default, optional wireless. [05:52.650 --> 05:56.070] When I say wireless, I mean CDMA, not 802.11. [05:56.070 --> 05:59.370] So no drive-by ATM attacks, unfortunately. [05:59.370 --> 06:02.890] Though it would be kind of cool to ride by and just have ATMs spit out cash. [06:03.450 --> 06:06.530] Although maybe the Grug could possibly do something with this. [06:07.290 --> 06:09.990] SSL support and a triple-desk encrypted PIN pad. [06:09.990 --> 06:13.710] So the PIN pad performs all the encryption within the device itself, [06:13.710 --> 06:18.650] has anti-tampering mechanisms, and I may talk a bit more about that beast a little later. [06:20.270 --> 06:23.070] So this is a typical ATM internals. [06:23.070 --> 06:26.450] A bit hard to see, but there's a receipt printer over to the right, a card reader, [06:26.450 --> 06:30.490] and there's a serial interface that leads down to the safe, which is wired to the dispenser. [06:30.890 --> 06:35.530] And there's various motherboard inputs, multiple USB, SD cards, [06:35.530 --> 06:38.490] the network connection, and some debugging ports. [06:38.570 --> 06:41.970] On this one, there's actually a cover in there that's protecting the circuit board. [06:41.970 --> 06:44.230] I simply just removed it for photo purposes, [06:44.230 --> 06:48.910] but I guarantee both of these ATMs are completely untouched and completely unmodified. [06:48.910 --> 06:54.090] Now, funnily enough, all the ways that an ATM could possibly be disrupted, [06:54.090 --> 06:57.110] it was actually almost my cat who took it down for me. [06:57.290 --> 07:01.290] I had a USB keyboard plugged in and he was chasing a moth or something, [07:01.290 --> 07:05.510] and he ripped out the USB port and then pulled out the processor plug-in at the same time, [07:05.510 --> 07:09.930] but luckily the only damage was the USB plug that was easily soldered back in. [07:09.930 --> 07:11.370] But anyway, bad kitty. [07:13.870 --> 07:19.430] So in my opinion, a presentation shouldn't really be a full-blown technical tutorial. [07:19.710 --> 07:26.250] So I'll be following up later with a white paper that goes into more technical details. [07:26.250 --> 07:29.470] But rather than digging deep into the ins and outs of C internals, [07:29.470 --> 07:33.450] I thought I'd sum up the security hurdles I faced with this quote. [07:33.570 --> 07:37.030] We were concerned about protection, but not about security. [07:37.030 --> 07:40.250] We weren't trying to design an airtight system like Windows NT. [07:40.250 --> 07:46.110] And this is from Thomas Fenwick, who was the creator of the Windows CE kernel. [07:46.110 --> 07:49.010] And this quote came from a book called Inside Windows CE, [07:49.010 --> 07:52.270] which is interviews with the core developers of CE. [07:52.350 --> 07:55.310] And it's an interesting read on the design approach that was taken, [07:55.310 --> 07:58.550] but essentially there were not many roadblocks. [07:58.550 --> 08:02.030] The technical information I think lends itself better to a white paper, [08:02.030 --> 08:03.490] which I'll be following up with. [08:04.890 --> 08:09.810] So before we can even think about giving that dude from Terminator 2 a run for his money [08:09.810 --> 08:12.110] and actually start devising attacks, [08:12.110 --> 08:16.750] the first step is to be able to interface with the ATM and gain access to the file system. [08:16.910 --> 08:20.070] So once we have access to the file system, we can then pull the executables [08:20.070 --> 08:22.050] and be able to do some reverse engineering. [08:22.650 --> 08:26.830] Now unfortunately, when the ATM boots, it boots directly to its own proprietary application, [08:26.830 --> 08:28.330] so there's no explorer shell. [08:28.450 --> 08:30.790] And we need a shell to be able to make things easier. [08:30.890 --> 08:34.590] Originally, I suppose naively, I thought I could just plug in a keyboard and alt-tab, [08:34.590 --> 08:36.670] but of course that wasn't to be the case. [08:36.670 --> 08:40.510] But to get a shell, we'll need to have explorer execute at boot time. [08:42.570 --> 08:46.410] So the CE application boot sequence is fairly straightforward. [08:46.410 --> 08:49.970] The kernel nkexe runs filesys.exe, [08:49.970 --> 08:52.510] filesys sets up the registry and file system, [08:52.510 --> 08:57.450] and then it executes the applications that are listed in the registry key, hklm, and that. [08:57.450 --> 09:01.530] So the trick is to patch the application we want, execute it into that boot list. [09:02.990 --> 09:05.370] So of course we want to get explorer into the boot list, [09:05.370 --> 09:07.030] and there's two approaches basically. [09:07.030 --> 09:11.310] The first approach assumes you have a copy of the CE ROM image. [09:11.710 --> 09:15.870] The registry file can then be extracted, modified, recompiled into the image. [09:15.870 --> 09:17.710] This requires a way to rewrite the flash, [09:17.710 --> 09:20.310] whether it be serial, ethernet, JTAG, or what have you. [09:20.610 --> 09:23.870] The other approach is to patch in explorer while you're debugging. [09:23.890 --> 09:26.230] And this of course requires some sort of debugging capability, [09:26.230 --> 09:28.030] JTAG, ethernet, serial, et cetera. [09:29.030 --> 09:31.250] So I decided to go with JTAG, [09:31.250 --> 09:34.070] because it's a fairly straightforward way to accomplish our goals. [09:34.270 --> 09:36.270] JTAG is a hardware debugging interface, [09:36.270 --> 09:39.730] which essentially gives you unrestricted debugging access to the processor core. [09:39.990 --> 09:42.370] Now the hardware to do this used to be pretty pricey, [09:42.370 --> 09:46.370] but these days with OpenOCD and some of the open source projects, [09:46.370 --> 09:48.810] you get the needed hardware for less than a hundred bucks. [09:49.130 --> 09:52.310] Now with JTAG access, you can remotely debug with GDB, [09:52.310 --> 09:54.490] debug the kernel, the boot loader, and so on. [09:54.490 --> 09:56.190] Now JTAG has been talked about to death, [09:56.190 --> 09:57.230] and I won't dwell on it. [09:57.230 --> 09:59.690] There's a lot of resources online with a lot more information. [10:00.830 --> 10:03.990] So here's just the hardware debugger connected to the motherboard. [10:03.990 --> 10:06.370] Now it's probably obvious, but the use of hardware debuggers [10:06.370 --> 10:09.130] and things of that nature have absolutely nothing to do [10:09.130 --> 10:11.250] with the ATM attacks that I'll be demonstrating. [10:11.250 --> 10:14.070] They're simply used to initially gain access [10:14.070 --> 10:17.230] so we can then go on to find real vulnerabilities. [10:21.110 --> 10:23.970] Speaking of JTAG, I actually learned a valuable lesson [10:23.970 --> 10:26.090] when I was messing with one of the ATMs. [10:26.090 --> 10:28.530] I had the JTAG hooked up and I was screwing around [10:28.530 --> 10:31.550] and I accidentally wiped out a massive chunk of the firmware [10:31.550 --> 10:35.590] and overwrote all the ATM files on it. [10:35.670 --> 10:38.450] Now at the time I couldn't get a hold of the software to reflash it [10:38.450 --> 10:40.990] because I wasn't an ATM distributor. [10:41.070 --> 10:44.130] So I actually had to call a licensed ATM technician [10:44.130 --> 10:45.990] to come around to my house. [10:48.330 --> 10:51.410] Now three guys arrive and of course they ask again, [10:51.410 --> 10:53.210] you know, why are these ATMs in your house? [10:53.210 --> 10:55.130] And I say, oh, I haven't moved them into my store yet [10:55.130 --> 10:56.330] and all this type of thing. [10:57.030 --> 10:59.950] But anyway, see, what happened? How did you remove all this? [10:59.950 --> 11:02.750] Oh, I had it on a card, I was trying to change a splash screen, [11:02.750 --> 11:03.750] it all just wiped out. [11:03.750 --> 11:06.290] He's like, yeah, no, they'll do that, they'll do that. [11:08.790 --> 11:11.770] You know, so he starts going to work on the ATM. [11:11.770 --> 11:13.790] I'm like, firmware, what is that, mate? [11:14.090 --> 11:15.710] Acting completely stupid. [11:16.070 --> 11:19.050] He ends up teaching me a hell of a lot about hacking ATMs. [11:19.050 --> 11:21.310] I got his business card, we kept in touch. [11:21.310 --> 11:23.770] Unfortunately, after this presentation, [11:23.770 --> 11:25.850] that relationship may be severed. [11:27.950 --> 11:31.550] Oh yeah, so the lesson is always back up the firmware first. [11:33.610 --> 11:36.890] So now that we can debug, we need a way to inject. [11:36.910 --> 11:38.270] With the debugger connected, [11:38.270 --> 11:40.910] simply set a breakpoint on create process. [11:42.030 --> 11:44.490] And the opposite was found by simply dumping the memory [11:44.490 --> 11:46.530] from the ATM and just doing a byte compare [11:46.530 --> 11:48.630] to an offline version of Core DLL. [11:48.890 --> 11:50.910] Now when working with the ARM processor, [11:50.910 --> 11:52.810] the parameters when they pass the function [11:52.810 --> 11:56.150] are passed in registers before they utilize the stack. [11:56.150 --> 11:58.010] So R0 will have the first parameter, [11:58.010 --> 12:00.570] which is the executable, what you want to execute. [12:00.570 --> 12:01.950] We simply replace that string [12:01.950 --> 12:04.810] with what would normally be the ATM executable [12:04.810 --> 12:07.450] and overwrite it with explorer.exe. [12:07.450 --> 12:10.230] Now if explorer doesn't exist on the image, [12:10.230 --> 12:12.650] then you can just put a copy of explorer on a removable drive [12:12.650 --> 12:16.170] and pass that full path to create process. [12:17.290 --> 12:19.990] And so then you get a shell on the ATM. [12:19.990 --> 12:22.510] When I first was playing around with the ATMs, [12:22.510 --> 12:24.790] I was quite excited just to have a little shell on them, [12:24.790 --> 12:26.810] so I had them playing movies and whatnot. [12:27.110 --> 12:29.630] But not really surprisingly, [12:29.630 --> 12:32.430] ATMs are pretty crap for playing movies. [12:33.070 --> 12:35.670] Slow frame rate and the 6-inch screen, [12:35.670 --> 12:38.170] so it will not be replacing the flat screen. [12:40.470 --> 12:41.930] So now with Explorer, [12:41.930 --> 12:44.290] we can plug in a USB drive and a keyboard [12:44.290 --> 12:46.950] and copy off the files for reverse engineering. [12:46.950 --> 12:50.170] Then we can modify the registry so Explorer will always boot. [12:50.370 --> 12:53.130] Now remote debugging with JTAG over GDB [12:53.130 --> 12:56.270] is not the ideal way to debug a Windows machine, [12:56.270 --> 12:59.270] so the next step is to set up a better debugging environment. [12:59.330 --> 13:01.910] And there's a way to debug Windows CE applications [13:01.910 --> 13:04.370] without having ActiveSync installed, [13:04.370 --> 13:07.090] and that's to debug with Visual Studio over Ethernet. [13:07.090 --> 13:08.950] So you simply build an empty project, [13:08.950 --> 13:10.890] overwrite the local executable with the executable [13:10.890 --> 13:12.810] from the device that you want to debug, [13:12.810 --> 13:15.130] set the correct TCP settings, [13:15.130 --> 13:17.590] copy the file over, run it under the debugger, [13:17.590 --> 13:19.870] and you have application debugging with Visual Studio. [13:19.990 --> 13:21.670] So now finally we have everything in place [13:21.670 --> 13:23.110] to be able to reverse engineer the software [13:23.110 --> 13:24.810] to locate vulnerabilities, [13:24.810 --> 13:28.070] but to also test any software that we create for the ATM. [13:29.410 --> 13:31.170] So planning an attack. [13:31.170 --> 13:33.950] There's a fairly limited attack surface really. [13:33.950 --> 13:35.610] We have the card reader, [13:35.610 --> 13:37.090] but assuming we have an overflow [13:37.090 --> 13:40.310] or some other string-based attack via the card tracks, [13:40.310 --> 13:41.730] there's a limited amount of characters [13:41.730 --> 13:43.730] and a very restricted character set. [13:43.730 --> 13:45.590] So I'm not going to say it's not possible, [13:45.590 --> 13:46.850] but I will say it would be unlikely [13:46.850 --> 13:48.730] to be practical or reliable. [13:49.190 --> 13:50.970] The keypad, another long shot, [13:50.970 --> 13:52.910] but maybe there's possible master passwords [13:52.910 --> 13:55.010] or backdoors left in by the developers. [13:55.310 --> 13:57.790] Then the network, so any open ports, [13:57.790 --> 13:59.090] an answering phone line, [13:59.090 --> 14:00.990] any options for a remote attack. [14:01.470 --> 14:02.750] And we also have the various inputs [14:02.750 --> 14:03.990] on the motherboard itself, [14:03.990 --> 14:06.410] but of course this requires access to the motherboard. [14:08.210 --> 14:10.030] So of course progress is never really made [14:10.030 --> 14:12.010] without a few failures along the way, [14:12.010 --> 14:15.450] and in my attempt to come up with a Terminator 2 SCAC, [14:15.450 --> 14:17.090] I made this little device. [14:17.170 --> 14:18.970] It's basically an electromagnet [14:18.970 --> 14:21.930] wired up to an amp which is connected to a media player, [14:21.930 --> 14:23.950] and you create a web file which is created [14:23.950 --> 14:26.250] to simulate the data on a magnetic stripe. [14:26.290 --> 14:29.330] The electromagnet, plug into the ATM, [14:29.330 --> 14:31.770] flick the switch, play the web file, [14:31.770 --> 14:34.610] and the ATM will think of magnetic stripes being read. [14:34.610 --> 14:35.670] Technically it works fine, [14:35.670 --> 14:37.350] but it was actually bugger all help. [14:40.050 --> 14:41.790] So the goal, of course, [14:41.790 --> 14:43.990] is to execute code on the ATM. [14:44.590 --> 14:46.790] So I'll talk about these walk-up attacks first. [14:46.810 --> 14:49.810] Now the cash dispenser is housed at the very least by a safe, [14:49.810 --> 14:51.450] if you take the cheapest option. [14:51.450 --> 14:53.970] If you spend a bit more, you can get even more heavy-duty protection. [14:54.090 --> 14:55.590] The motherboard, on the other hand, [14:55.590 --> 14:59.710] is protected by a one-key-fits-all lock. [15:01.730 --> 15:05.990] And this is actually standard practice across the boards, [15:06.310 --> 15:09.270] and these keys, like almost everything else on the internet, [15:09.270 --> 15:11.890] are easily available to add to cart. [15:12.670 --> 15:15.410] And, funnily enough, there used to be Diebold keys, [15:15.410 --> 15:17.070] last year when I was looking, [15:17.070 --> 15:18.190] but they've since vanished, [15:18.190 --> 15:20.850] but I'm sure with a little creativity they could be found. [15:20.890 --> 15:25.390] As you can see, most manufacturers take this approach. [15:27.650 --> 15:29.150] So, the walk-up attack. [15:29.150 --> 15:30.490] So now with your master key, [15:30.490 --> 15:33.670] you have access to the USB slots and what other inputs. [15:33.670 --> 15:35.710] So you can pop open the motherboard compartment, [15:35.710 --> 15:37.870] insert a USB key in a couple of seconds, [15:38.130 --> 15:40.210] a lot faster than installing a skimmer, right? [15:40.510 --> 15:42.670] Now, even though the attack time here is short, [15:42.670 --> 15:45.110] there's still the possibility of being detected. [15:45.270 --> 15:46.370] But, you know, I suppose that's a great thing [15:46.370 --> 15:49.130] about these retail and stand-alone type ATMs. [15:49.130 --> 15:50.510] They're out by the restrooms, [15:50.510 --> 15:51.610] they're out of sight, [15:51.610 --> 15:53.390] off by the SIGGY machine or something. [15:53.730 --> 15:55.870] And I suppose then there's that psychological aspect [15:56.750 --> 15:57.950] of using an ATM machine. [15:57.950 --> 16:00.550] It's kind of considered rude to look over someone's shoulder. [16:01.090 --> 16:02.590] Unless, of course, you're a criminal, [16:02.590 --> 16:04.830] and then he would probably learn a trick or two anyway. [16:05.450 --> 16:07.170] Now, all ATMs need a way [16:07.170 --> 16:08.670] to upgrade their firmware. [16:08.750 --> 16:12.190] And this is most often leveraged via their removable drives. [16:12.190 --> 16:13.310] So the ATM application [16:13.310 --> 16:15.410] checks the drive for a valid upgrade, [16:15.410 --> 16:16.890] the valid firmware is found, [16:16.890 --> 16:20.010] upgrades, install whatever we decide to add in there. [16:20.130 --> 16:21.270] Now, of course, the firmware [16:21.270 --> 16:23.870] is typically a proprietary format. [16:24.130 --> 16:25.550] There are checksums, [16:25.550 --> 16:27.070] encryption, [16:27.070 --> 16:28.990] and the algorithms are easily figured out [16:28.990 --> 16:31.590] by reversing the code on the ATM side. [16:31.910 --> 16:33.330] So once you can create your own [16:33.330 --> 16:36.130] firmware package that adheres to the correct format, [16:36.130 --> 16:37.610] well, then you can upgrade. [16:37.610 --> 16:40.370] But upgrade with a few modifications, of course. [16:41.830 --> 16:43.510] Now, the most important [16:43.510 --> 16:46.070] attack is the remote attack. [16:46.070 --> 16:47.290] Now, most, if not all, [16:47.290 --> 16:49.490] ATMs that run on a Windows-based OS [16:49.490 --> 16:51.590] support some form of remote monitoring [16:51.590 --> 16:53.290] or remote configuration. [16:53.610 --> 16:55.390] So this allows you to log [16:55.390 --> 16:57.450] into your ATM remotely, review [16:57.450 --> 16:59.790] or change the settings, get stats, [16:59.790 --> 17:01.730] change the splash screens, and so on. [17:01.730 --> 17:03.350] Another quite useful feature is [17:03.350 --> 17:06.250] the ability to remotely upgrade the software. [17:06.350 --> 17:08.170] Now, this is sometimes a feature, [17:08.170 --> 17:09.490] but always something you can leverage [17:09.490 --> 17:10.910] if you have a vulnerability. [17:11.210 --> 17:13.230] Now, obviously, authentication is required [17:13.230 --> 17:15.210] to be able to do anything useful. [17:15.470 --> 17:17.430] With the particular model I'll be demonstrating, [17:17.430 --> 17:19.430] both a serial number and a remote password [17:19.430 --> 17:21.510] are required, and they're both made up [17:21.510 --> 17:23.810] of a combination of numbers and letters, [17:23.810 --> 17:25.550] and a five-second delay is forced [17:25.550 --> 17:27.110] after each connection attempt. [17:27.110 --> 17:29.570] So a brute force is basically out of the question. [17:29.570 --> 17:31.390] So we require vulnerability within [17:31.390 --> 17:32.970] the authentication process, [17:33.410 --> 17:35.230] and it just so happens. [17:35.890 --> 17:37.830] So let me introduce Dillinger. [17:37.990 --> 17:39.390] Dillinger is my remote [17:39.390 --> 17:41.910] ATM attack or administration tool, [17:41.910 --> 17:43.470] whatever way you want to look at it. [17:43.470 --> 17:46.050] Dillinger named after the bank robber, of course. [17:46.730 --> 17:47.450] So we've [17:47.450 --> 17:49.230] talked about loading code on a local [17:49.230 --> 17:51.730] ATM machine with a master key and a flash drive [17:51.730 --> 17:53.330] and the correctly formed firmware, [17:53.330 --> 17:55.270] you're basically set. But the obvious [17:55.270 --> 17:57.130] drawback here is you have to interact [17:57.130 --> 17:59.330] with the machine itself. So the ultimate [17:59.330 --> 18:01.310] win would be able to execute code [18:01.310 --> 18:03.230] or load code remotely, and that's [18:03.230 --> 18:04.850] where Dillinger comes in. [18:05.090 --> 18:07.270] So Dillinger takes advantage of a fairly severe [18:07.270 --> 18:09.110] vulnerability in the ATM management [18:09.110 --> 18:11.050] capability. And [18:11.050 --> 18:13.190] interestingly, although most operators don't [18:13.190 --> 18:15.170] use the remote monitoring, it's [18:15.170 --> 18:17.250] enabled by default on this [18:17.250 --> 18:18.730] particular manufacturer, so [18:18.730 --> 18:20.930] shushing! Now, [18:20.930 --> 18:23.270] typically to log into the machine remotely [18:23.270 --> 18:25.070] we require the knowledge [18:25.070 --> 18:27.130] of the serial number and the password, [18:27.130 --> 18:29.150] but due to an awesome vulnerability, I can bypass [18:29.150 --> 18:31.170] all authentication on the device. [18:31.590 --> 18:33.070] And the remote attack is 100% [18:33.070 --> 18:35.370] reliable. So Dillinger [18:35.370 --> 18:36.910] supports TCP IP [18:36.910 --> 18:38.970] and it supports dial-up as well. [18:39.130 --> 18:41.010] And I heard through a fairly knowledgeable [18:41.010 --> 18:43.190] source that most of these stand-ups, [18:43.810 --> 18:45.570] stand-alones, [18:45.570 --> 18:47.050] about approximately 95% [18:47.050 --> 18:49.370] of them are still on a dial-up connection. [18:49.470 --> 18:51.070] Now, of course, back in the day, finding an [18:51.070 --> 18:53.090] ATM over the phone line would be a long [18:53.090 --> 18:55.070] process of nights and nights [18:55.070 --> 18:57.050] of wall dialing, but thanks to tools [18:57.050 --> 18:59.030] like H.G. Moore's Wallbox, you can map [18:59.030 --> 19:01.550] out modems on exchange in a matter of hours. [19:01.550 --> 19:02.870] Then write a custom tool [19:02.870 --> 19:05.090] to find the ATM responses and you're [19:05.090 --> 19:05.750] away. [19:07.970 --> 19:09.370] So, Dillinger features. [19:09.370 --> 19:11.150] So Dillinger will allow you to manage an unlimited [19:11.150 --> 19:13.570] amount of ATMs through its interface. [19:13.710 --> 19:15.030] You can add a group, say you [19:15.030 --> 19:17.050] add a city, under the city you [19:17.050 --> 19:18.910] add each individual ATM, either [19:18.910 --> 19:20.890] its IP address or its phone number. [19:20.890 --> 19:22.870] Now, the heart of the tool, of course, is the [19:22.870 --> 19:25.110] authentication bypass that it exploits. [19:25.110 --> 19:27.090] And this is the stepping stone to be able to do anything [19:27.090 --> 19:28.890] useful. So, one [19:28.890 --> 19:30.910] feature in Dillinger is to be able to test [19:30.910 --> 19:33.210] the bypass in a way which confirms the vulnerability [19:33.210 --> 19:34.810] but doesn't actually modify [19:34.810 --> 19:37.410] the remote ATM in any way or leave any trace. [19:38.050 --> 19:38.930] So, the obvious problem [19:38.930 --> 19:40.990] with finding a remote ATM is that you have no [19:40.990 --> 19:43.030] idea of the location. So, Dillinger [19:43.030 --> 19:45.210] can pull the ATM settings from the device [19:45.210 --> 19:47.130] which includes all the master passwords [19:47.130 --> 19:48.930] but it also includes the receipt data. [19:48.930 --> 19:50.810] And you know when you use an ATM at the bottom of the [19:50.810 --> 19:53.010] receipt, it always has the location or the name [19:53.010 --> 19:53.950] of the business. [19:54.670 --> 19:56.830] So, even if it doesn't have the exact [19:56.830 --> 19:58.450] location, it will have the name of the business. [19:58.950 --> 20:01.090] And, of course, the best feature is [20:01.090 --> 20:02.770] to upload my rootkit. [20:03.190 --> 20:05.170] Again, bypasses all authentication, [20:05.170 --> 20:06.790] initializes the software, uploads [20:07.630 --> 20:08.930] the rootkit, and then [20:08.930 --> 20:10.990] basically lets me overwrite [20:10.990 --> 20:12.650] the entire firmware of the device. [20:13.370 --> 20:14.970] So, in general, someone is going to need to be [20:14.970 --> 20:16.890] at the ATM if you want to get any sort of [20:16.890 --> 20:18.450] payout. So, again, I [20:18.450 --> 20:20.810] added a feature so it would be possible to carry out an [20:20.810 --> 20:22.770] attack without ever visiting the ATM [20:22.770 --> 20:25.250] at all. So, when someone inserts a card, [20:25.250 --> 20:26.630] the track data is captured [20:26.630 --> 20:28.930] and saved and I can then retrieve [20:28.930 --> 20:30.550] that track data remotely. [20:31.050 --> 20:32.830] And finally, the remote jackpot, which [20:32.830 --> 20:34.510] kind of speaks for itself. [20:36.650 --> 20:39.090] So, Scrooge is the ATM rootkit [20:40.150 --> 20:41.190] developed specifically [20:41.190 --> 20:42.830] for ATMs running on [20:42.830 --> 20:45.030] Windows CE. Scrooge implements [20:45.030 --> 20:47.130] the typical rootkit technology [20:47.130 --> 20:49.090] you'd expect. Hides itself and its [20:49.090 --> 20:51.130] friends by various CE system [20:51.130 --> 20:52.970] hooks. Hides itself from the [20:52.970 --> 20:54.970] process list. Hides itself from the file [20:54.970 --> 20:56.850] system by hooking syscalls and filtering [20:56.850 --> 20:59.150] the results. And there's a hidden pop-up [20:59.150 --> 21:00.950] menu which can be activated by [21:00.950 --> 21:02.830] both a special key sequence on the ATM [21:02.830 --> 21:05.170] or by inserting a card with custom [21:05.170 --> 21:07.050] track data. Now, [21:07.050 --> 21:09.650] it'll run on any ARM or XScale based ATM, [21:09.650 --> 21:11.270] Intel with a few tweaks. [21:11.270 --> 21:13.030] Originally, I was designing for both Intel and [21:13.030 --> 21:14.670] ARM, but it turns out that [21:14.670 --> 21:16.910] CE on x86 is actually pretty [21:16.910 --> 21:18.970] rare and basically non-existent in the ATM [21:18.970 --> 21:21.090] world. So, the code [21:21.090 --> 21:22.890] for interfacing the ATMs has to be customized [21:22.890 --> 21:24.990] for the different ATMs as they all use [21:24.990 --> 21:27.070] different peripherals and kind of non-standard [21:27.070 --> 21:28.430] ways of communicating. [21:29.710 --> 21:31.110] So, Scrooge's hidden menu. [21:31.110 --> 21:33.050] I just use a standard set windows hook [21:33.050 --> 21:34.950] filter to capture the side buttons on [21:34.950 --> 21:37.030] the ATM. Although set [21:37.030 --> 21:38.570] windows hook is actually undocumented [21:38.570 --> 21:41.110] in CE, it still exists and it works [21:41.110 --> 21:42.970] as expected. So, a combination [21:42.970 --> 21:44.990] of keys will trigger the hidden menu and it's [21:44.990 --> 21:47.110] varied enough not to be launched by accident, [21:47.110 --> 21:49.070] but maybe if there's a kid playing around with the [21:49.070 --> 21:51.390] ATM, he may end up scoring big, who knows. [21:52.270 --> 21:53.090] And the card [21:53.090 --> 21:55.230] reader is hooked by an inline detour [21:55.230 --> 21:56.990] style patch. So, this is where you [21:56.990 --> 21:59.230] essentially patch a branch instruction into a [21:59.230 --> 22:01.250] piece of code you'd like to intercept, the [22:01.250 --> 22:03.470] branch jumps to your code, your code [22:03.470 --> 22:06.010] executes, then returns the original function. [22:06.010 --> 22:07.390] Now, with the hook in place, there's a check [22:07.390 --> 22:09.090] on the read buffer for track data [22:09.090 --> 22:11.010] that matches gimme the loot, [22:11.010 --> 22:13.170] and if it matches, the menu is brought up [22:13.170 --> 22:15.350] in that way as well. So, the menu functions [22:15.350 --> 22:17.090] are fairly standard for what you'd expect. You can [22:17.090 --> 22:18.930] dispense from each cassette, print out [22:18.930 --> 22:21.030] stats, which include the remaining bill count, [22:21.030 --> 22:21.970] and you can exit. [22:24.010 --> 22:25.050] So, yeah, to add [22:25.050 --> 22:26.970] my own functionality, I've added a few inline [22:26.970 --> 22:27.710] patches. [22:29.170 --> 22:31.090] Essentially, you can patch a small assembler stub [22:31.090 --> 22:32.790] into the functions you want to hook. [22:32.910 --> 22:35.590] The stub then calls a function external DLL, [22:35.590 --> 22:37.550] overwrites any overwritten instructions, [22:37.550 --> 22:39.210] and then continues as normal. [22:39.390 --> 22:41.670] This could be done dynamically, but the fact [22:41.670 --> 22:43.410] that the ATM vulnerabilities allow me to [22:43.410 --> 22:45.550] replace the executables entirely, we can [22:45.550 --> 22:47.470] make these patches permanent, which is actually far more [22:47.470 --> 22:49.450] reliable. And it's also a lot easier [22:49.450 --> 22:51.530] on ARM, as every instruction is 32 bits long [22:51.530 --> 22:53.470] as well. So, I place hooks at [22:53.470 --> 22:55.590] the card reader, the pinpad, and the parser [22:55.590 --> 22:57.350] that handles remote configuration [22:57.350 --> 22:59.450] commands. So, with those hooks, I can now [22:59.450 --> 23:01.490] add my own handy features, so I [23:01.490 --> 23:04.210] can save the track data, capture the pinpad, [23:04.210 --> 23:05.330] have a few custom remote [23:05.330 --> 23:07.730] commands. So, pull the track data, sure. [23:07.890 --> 23:09.590] Remote jackpot, might as well. [23:10.830 --> 23:11.490] Alright. [23:11.730 --> 23:13.410] So, there's going to be quite a lot of [23:13.410 --> 23:15.430] demos, so I went through that a bit [23:15.430 --> 23:17.350] quick, because I think there's probably [23:17.470 --> 23:19.390] a good 25 or so minutes of demos. [23:19.390 --> 23:21.550] So, I might as well put my money where my mouth is, [23:21.550 --> 23:23.830] or the ATM's money where its mouth is, I guess. [23:52.730 --> 23:54.710] Okay, so this is Dillinger's [23:54.710 --> 23:55.650] interface. [23:58.740 --> 24:00.600] I can add a group, so we'll say [24:01.020 --> 24:01.740] blackhat. [24:05.510 --> 24:06.350] Add an [24:06.350 --> 24:07.670] ATM. [24:08.950 --> 24:10.890] Barnaby's ATM. [24:13.900 --> 24:16.000] Location, onstage [24:16.000 --> 24:17.340] at blackhat. [24:19.040 --> 24:19.900] And Dillinger [24:19.900 --> 24:21.740] supports both dial-up and [24:21.740 --> 24:23.460] TCPIP, so [24:23.460 --> 24:25.940] in this case, I'm using TCPIP [24:25.940 --> 24:27.180] of course. [24:28.000 --> 24:29.420] By the way, just to [24:29.420 --> 24:31.920] reiterate, this is by default [24:34.120 --> 24:34.920] remote functionalities [24:34.920 --> 24:35.960] enabled on all of these [24:35.960 --> 24:37.520] ATMs as they ship out. [24:38.260 --> 24:40.220] This one here at least, not the other one. [24:46.440 --> 24:48.000] Okay, so [24:48.000 --> 24:50.120] now I can right-click on my ATM, [24:50.120 --> 24:52.240] I can then test the bypass, [24:52.240 --> 24:54.140] upload the rootkit, reset [24:54.140 --> 24:56.160] to default, get the track settings, get ATM [24:56.160 --> 24:57.260] settings, etc. [24:58.020 --> 25:00.160] So, let's see, I'm trying to think [25:00.160 --> 25:02.020] if we should switch to the ATM. [25:02.900 --> 25:04.440] You know, not just yet, okay. [25:04.440 --> 25:06.000] So, I can test the bypass, [25:06.000 --> 25:08.320] connects to the ATM, testing [25:08.320 --> 25:10.660] ATM authentication bypass success, [25:11.000 --> 25:12.800] and it disconnects. [25:14.960 --> 25:16.260] Now, we'll actually blow up the [25:16.260 --> 25:17.500] ATMs in a sec, but [25:18.680 --> 25:20.200] all that shows on the [25:20.200 --> 25:23.160] ATMs is just RMS process. [25:23.420 --> 25:24.320] I have to wait till that [25:24.320 --> 25:25.520] goes away. [25:27.720 --> 25:28.320] So, it's [25:28.320 --> 25:30.060] nothing too noticeable, you know, if you're [25:30.060 --> 25:32.080] if you see this ATM. [25:36.030 --> 25:37.410] Actually, if someone close [25:37.410 --> 25:39.030] to the thing could let me know when it's [25:40.030 --> 25:41.770] gone? Okay. [25:42.290 --> 25:43.390] So, now, [25:43.390 --> 25:45.290] the most important feature, of course, [25:45.290 --> 25:47.030] is to upload the rootkit. [25:48.310 --> 25:49.810] So, we'll upload [25:49.810 --> 25:53.950] Scrooge, the final version, [25:53.950 --> 25:55.750] connects, [25:55.750 --> 25:57.490] sends a bypass successful, [25:58.250 --> 25:59.630] initiates upload, [25:59.630 --> 26:01.930] and it's uploading it to the ATM now. [26:01.930 --> 26:03.650] This is bypassing all authentication [26:03.650 --> 26:05.630] in the ATM, and by [26:06.010 --> 26:06.410] default. [26:11.400 --> 26:12.940] Now, even though it's over the network, [26:12.940 --> 26:14.760] it takes a little while, because they have their own [26:14.760 --> 26:16.640] proprietary protocol, which [26:16.640 --> 26:18.800] acknowledges each packet, and then has a small [26:18.800 --> 26:20.460] delay, and so on. [26:21.140 --> 26:22.840] Proprietary protocol, of course, has its own [26:22.840 --> 26:24.780] proprietary encryption, and you all know what [26:24.780 --> 26:27.060] happens when people implement proprietary encryption. [26:27.920 --> 26:28.800] It's fairly easy [26:28.800 --> 26:29.940] to make your own. [26:37.460 --> 26:38.260] Okay, so, [26:38.260 --> 26:40.060] when it finishes uploading, the ATM [26:40.060 --> 26:41.680] should reboot, and if we could [26:41.680 --> 26:44.120] flick to the ATM now, on the [26:44.120 --> 26:44.780] screen. [27:00.390 --> 27:01.790] Takes a little while, Windows [27:01.790 --> 27:03.810] CE, you know, it's not the fastest [27:03.810 --> 27:04.910] beast out there. [27:19.380 --> 27:20.560] Yeah, if we could just pan [27:20.560 --> 27:22.020] out just a bit, too. [27:29.220 --> 27:30.180] If we could get the [27:30.180 --> 27:31.860] screen and the dispenser. [27:38.830 --> 27:39.570] Yeah, that's [27:39.570 --> 27:40.210] cool. [27:44.520 --> 27:45.520] What's that? [27:47.320 --> 27:48.660] Oh, they'll be spitting money, [27:48.660 --> 27:49.920] don't worry about that. [27:58.100 --> 27:59.060] Okay. [28:00.740 --> 28:01.600] Let me make sure [28:01.600 --> 28:03.540] I have my little card here. [28:06.540 --> 28:07.140] So, as [28:07.140 --> 28:08.640] I said, there's two ways [28:09.520 --> 28:11.200] to get the remote menu [28:11.200 --> 28:13.140] or the hidden menu to pop up. One [28:13.140 --> 28:15.180] is with special cards with the track [28:15.180 --> 28:17.140] data. So, if we insert... [28:21.100 --> 28:22.060] Okay. [28:23.300 --> 28:24.080] I always say [28:24.080 --> 28:26.060] it's 100% reliable, and why doesn't it [28:26.060 --> 28:26.720] work? [28:30.140 --> 28:31.940] There we go. Okay, so [28:31.940 --> 28:34.180] that card now has popped up my hidden menu. [28:34.620 --> 28:35.900] You can dispense 50 [28:35.900 --> 28:37.980] bills from A, B, C, or D, [28:37.980 --> 28:40.200] which are the four cassettes in the dispenser. [28:40.400 --> 28:42.020] You can print statistics, which give [28:42.020 --> 28:44.180] you the master passwords and so on, [28:44.180 --> 28:46.040] or you can exit. So, I'll just [28:46.540 --> 28:47.820] dispense 50 from [28:47.820 --> 28:49.500] the first cassette. [29:08.070 --> 29:09.990] So, these are million [29:09.990 --> 29:12.070] dollar bills, but it will... [29:12.790 --> 29:14.050] probably not much use at [29:14.050 --> 29:15.250] the craps table. [29:18.680 --> 29:19.760] The other one [29:19.760 --> 29:21.700] will spit out a bit of currency. [29:24.340 --> 29:26.260] Okay, so now we can exit, [29:26.260 --> 29:27.900] and I said there was a [29:27.900 --> 29:29.900] key sequence, which you could also enter to pop [29:29.900 --> 29:35.220] up their menu. [29:35.220 --> 29:36.160] These buttons are [29:36.160 --> 29:37.120] a bit bugged. [29:41.260 --> 29:41.920] Let's try [29:41.920 --> 29:42.900] that again. [29:44.000 --> 29:45.720] I've obviously pressed these [29:45.720 --> 29:48.060] buttons a fair few times. There we go. [29:48.060 --> 29:49.540] So, we can exit from that too. [29:50.060 --> 29:50.840] Okay. [29:52.520 --> 29:53.740] So, can we cut [29:53.740 --> 29:55.620] back to the computer? [29:57.940 --> 29:59.080] Okay, and [30:01.060 --> 30:02.020] it would [30:02.020 --> 30:03.520] be nice to know where this ATM [30:03.520 --> 30:05.540] actually is as well. So, we can [30:05.540 --> 30:07.580] retrieve the ATM settings. [30:07.580 --> 30:09.600] It connects, [30:09.600 --> 30:11.800] retrieves the settings, [30:11.800 --> 30:13.640] and saves them to disk. [30:18.780 --> 30:19.380] Now, [30:19.380 --> 30:21.440] you can see, so [30:21.440 --> 30:23.440] up here are the passwords to the [30:23.440 --> 30:24.880] ATM itself. [30:25.080 --> 30:27.120] I don't actually live on 123 [30:27.120 --> 30:29.160] Kiwi Street, by the way, [30:29.160 --> 30:31.200] but I do live in San Jose. [30:31.200 --> 30:33.300] And then it has the phone numbers as well as the [30:33.300 --> 30:35.060] IP addresses and [30:35.060 --> 30:37.740] the receipt coupons and all that type of thing. [30:40.640 --> 30:41.420] Now, [30:42.000 --> 30:43.160] of course, [30:43.160 --> 30:45.340] one of the greatest things about this [30:45.340 --> 30:47.140] is the fact that you can [30:47.140 --> 30:48.980] retrieve track data from people who insert [30:48.980 --> 30:51.860] cards. So, would anyone like to volunteer? [30:55.040 --> 30:56.980] Is Brandon here? [30:58.420 --> 30:59.740] There he is. [30:59.740 --> 31:01.240] Brandon, I think, has a custom [31:01.240 --> 31:03.300] credit card especially for this. [31:16.550 --> 31:17.270] So, can we [31:17.270 --> 31:19.150] flick to the ATM again, please? [31:26.270 --> 31:26.990] Can we cross [31:26.990 --> 31:27.930] to the ATM? [31:29.810 --> 31:30.750] Okay, so just [31:30.750 --> 31:33.530] insert your card as you normally would use an ATM. [31:40.150 --> 31:42.050] Alright, thank you, sir. [31:42.370 --> 31:44.470] So, back to the computer, please. [31:45.510 --> 31:46.550] So, now, [31:46.550 --> 31:48.470] let's see if we can get the track data that [31:48.470 --> 31:49.750] he just inserted. [31:51.610 --> 31:52.650] Connects, [31:52.650 --> 31:53.770] retrieves the stripe card [31:53.770 --> 31:56.630] data, saves it to disk. [31:58.490 --> 31:59.850] Okay, so you can [31:59.850 --> 32:01.870] actually see from the [32:01.870 --> 32:03.670] first one was the gimme the loot [32:03.670 --> 32:05.430] where I actually had [32:05.970 --> 32:07.790] my demo card. [32:07.950 --> 32:09.930] And then the next track data, this doesn't [32:09.930 --> 32:11.810] look like a credit card, Brandon. [32:12.390 --> 32:13.970] Doctorate of the Bustacardi [32:13.970 --> 32:16.830] with the card leet-leet-leet-leet-leet-leet-leet-leet-leet. [32:24.100 --> 32:26.200] But, of course, it will capture any [32:26.200 --> 32:28.880] credit card that's entered into the machine. [32:30.700 --> 32:31.100] And [32:32.200 --> 32:33.400] finally, [32:33.860 --> 32:35.900] the remote jackpot, which is [32:35.900 --> 32:38.080] always handy. So, go back [32:38.080 --> 32:39.380] to the ATM. [32:44.650 --> 32:45.830] Issue the jackpot [32:45.830 --> 32:46.870] command. [32:47.470 --> 32:48.910] We have a winner! [33:09.020 --> 33:09.620] Now, [33:09.620 --> 33:11.620] before I... I'm not going to [33:11.620 --> 33:13.960] let the other one get off scot-free. [33:14.440 --> 33:15.340] So, I will [33:15.340 --> 33:18.000] quickly demo the walk-up style attack. [33:18.000 --> 33:19.700] Now, I'm not as fast as this as I should [33:19.700 --> 33:21.400] be, but I will try it anyway. [33:22.480 --> 33:23.700] So, remember, the walk-up [33:23.700 --> 33:25.620] attack is simply popping open the [33:25.620 --> 33:27.700] cabinet, inserting a USB, and [33:27.700 --> 33:28.800] restarting it. [33:36.720 --> 33:38.720] Right, so that's the attack done. I wouldn't [33:38.720 --> 33:40.740] be spotted if I was out by the restroom. [33:46.290 --> 33:47.910] I think, just for... [33:48.970 --> 33:49.990] just to make it [33:49.990 --> 33:51.830] look a little better on stage, I might just [33:51.830 --> 33:54.110] open the cabinet here. Not opening the safe, [33:54.110 --> 33:55.470] of course, just the cabinet. [34:01.450 --> 34:01.930] So, [34:01.930 --> 34:04.030] the other attack was somewhat practical. [34:04.030 --> 34:05.890] This one, you'd probably end up on [34:05.890 --> 34:07.890] World's Dumbest Criminals, as you'll probably see [34:07.890 --> 34:09.950] soon. Okay, so [34:09.950 --> 34:11.890] it boots. Right now, it should be reading [34:11.890 --> 34:14.670] the firmware off that USB drive. [34:28.060 --> 34:29.660] It copies the firmware over [34:30.560 --> 34:31.960] as it initializes [34:31.960 --> 34:33.860] the little BlackHat logo floating around [34:33.860 --> 34:36.060] the screen. Obviously, [34:36.060 --> 34:37.880] in the real world, it would be a rootkit, not [34:38.040 --> 34:39.180] a BlackHat logo. [34:41.400 --> 34:41.900] So, I [34:41.900 --> 34:43.940] kind of tailored this for both BlackHat and [34:43.940 --> 34:46.220] for Vegas, as you'll see. [35:03.910 --> 35:06.650] ARM 9 processes are not the fastest. [35:23.940 --> 35:24.420] ... [35:54.940 --> 35:55.420] ... [35:56.800 --> 35:57.280] ... [35:57.280 --> 35:57.840] I just want to see [35:57.840 --> 35:59.880] how long it actually takes to dump [35:59.880 --> 36:01.600] its entire dispenser. [36:05.490 --> 36:06.110] It will [36:06.110 --> 36:08.130] start with million dollar bills and it's going to [36:08.130 --> 36:10.070] switch to IOActive currency, which [36:10.070 --> 36:12.470] also doubles as invites for the party. [36:12.470 --> 36:13.830] So, [36:20.280 --> 36:21.920] I want there to be a big pile [36:21.920 --> 36:22.980] at the end. [36:23.460 --> 36:23.480] ... [36:23.480 --> 36:24.060] ... [36:55.410 --> 36:55.970] ... [36:55.970 --> 36:58.150] It still hasn't got to the IOActive currency. [36:58.150 --> 37:00.210] I should have put that first, I guess. [37:00.590 --> 37:00.970] ... [37:25.900 --> 37:27.380] There we go. [37:27.680 --> 37:28.160] ... [37:36.780 --> 37:39.180] Okay, we can probably flick back to the [37:39.180 --> 37:40.980] presentation now. [37:42.260 --> 37:42.820] ... [37:49.560 --> 37:52.040] Okay, so, countermeasures. [37:54.040 --> 37:54.600] ... [37:54.600 --> 37:55.020] ... [37:55.020 --> 37:56.500] The obvious physical... [37:57.020 --> 37:59.140] I may just disconnect the sounds [37:59.140 --> 38:00.620] really quick. [38:00.860 --> 38:01.580] ... [38:12.150 --> 38:12.870] ... [38:13.910 --> 38:14.270] ... [38:14.630 --> 38:15.210] ... [38:28.320 --> 38:30.500] So, the obvious physical countermeasure [38:30.500 --> 38:32.460] to prevent the walk-up attack is to [38:32.460 --> 38:35.420] offer upgrade options on the locks themselves. [38:35.420 --> 38:36.520] So, there's a unique [38:36.520 --> 38:38.840] key for each ATM. [38:38.840 --> 38:41.260] Now, of course, if you want to take this into your own hands, [38:41.260 --> 38:43.000] just drill a hole and throw a padlock [38:43.000 --> 38:43.840] on it. [38:44.880 --> 38:45.320] ... [38:47.100 --> 38:47.540] ... [38:49.600 --> 38:50.040] ... [38:53.500 --> 38:53.940] ... [38:53.940 --> 38:54.460] ... [38:55.560 --> 38:56.000] ... [38:58.760 --> 38:59.200] ... [38:59.200 --> 38:59.740] ... [39:00.760 --> 39:01.200] ... [39:02.060 --> 39:02.500] ... [39:02.500 --> 39:03.260] ... [39:05.620 --> 39:06.500] ... [39:09.160 --> 39:10.560] ... [39:10.560 --> 39:10.960] ... [39:14.780 --> 39:16.180] ... [39:16.180 --> 39:17.040] ... [39:17.040 --> 39:17.060] ... [39:17.060 --> 39:17.120] ... [39:19.140 --> 39:20.540] ... [39:20.540 --> 39:22.560] ... [39:22.560 --> 39:22.900] ... [39:22.900 --> 39:22.980] ... [39:22.980 --> 39:26.520] And finally, it's time to give these devices a rehaul. [39:26.600 --> 39:30.940] There hasn't been a secure development in methodology in from the get-go. [39:30.940 --> 39:34.800] So there's a need to play catch-up, have the code audited, have penetration tests, [39:34.800 --> 39:37.360] and implement best practices from here on out. [39:39.680 --> 39:45.300] So there's been a noticeable surge in the community of researching proprietary devices like ATMs. [39:45.340 --> 39:48.840] And the simple fact is that the companies who manufacture the devices aren't Microsoft. [39:48.840 --> 39:52.100] They haven't had 10 years of continual attacks against them. [39:52.100 --> 39:58.360] So the software that Microsoft got forced into a secure development, they've gotten where they are today. [39:58.360 --> 40:02.680] We're talking about devices that were developed without secure principles in mind. [40:02.680 --> 40:07.760] I think it's important to dig in, research these devices, find vulnerabilities, find solutions, [40:07.760 --> 40:10.600] and ultimately ensure a more secure future. [40:10.600 --> 40:12.180] So, cheers.