[00:12.640 --> 00:14.700] I thank you. [00:15.400 --> 00:21.740] This will be a technical talk, but it's a technical talk being delivered at DefCon. [00:22.200 --> 00:24.720] So, you take your chances. [00:26.580 --> 00:28.520] Am I close enough? [00:30.460 --> 00:32.240] I don't know. [00:40.860 --> 00:42.860] I think it works. [00:43.340 --> 00:44.800] Does it work? [00:45.500 --> 00:47.100] Great, okay. [00:47.100 --> 00:54.280] What I said was, this will be a technical talk, but it is a technical talk at DefCon. [00:54.720 --> 00:58.420] So that makes it a little bit special. [00:59.500 --> 01:04.880] I'm going to talk about the ATM machines. [01:06.220 --> 01:11.260] That's where I get all my money. I don't know about you, but if I need some money... [01:11.260 --> 01:12.500] Louder? [01:14.360 --> 01:17.260] I think, well, okay. [01:22.740 --> 01:28.140] The ATM machines and the ATM system. [01:28.460 --> 01:30.880] I'll be talking about vulnerabilities. [01:30.880 --> 01:34.140] Now, this is going to be good. Pay attention. [01:35.700 --> 01:40.540] I'm going to tell you how to avoid being cheated by the ATM system. [01:40.540 --> 01:44.180] People lose an amount of money that you just wouldn't believe. [01:44.180 --> 01:47.900] It isn't just millions per year. It's more than that. [01:49.460 --> 01:54.180] I don't have an accurate figure, but then I'm not a bank, so I don't care much. [01:56.820 --> 01:59.760] Of course, the other banks don't care much either. [02:01.120 --> 02:07.320] Now, here I am. I'm standing in front of one of these here ATM machines. [02:08.800 --> 02:11.920] And, louder again, oh Lord. [02:14.240 --> 02:24.400] Well, okay. I'm standing at an ATM machine in the little town of Kirkenes, Norway. [02:25.140 --> 02:32.180] Now, most of you have probably never heard of Kirkenes, but it is the furthest north city in the world. [02:33.000 --> 02:40.080] It is an amount above the Arctic Circle that I just don't even know. [02:40.740 --> 02:50.080] A story about Kirkenes. It's hard to get any sleep there because if you visit in June, the sun never goes down. [02:50.540 --> 02:57.380] Well, around midnight, I was walking around the town and talking louder and louder and louder. [02:57.380 --> 03:05.740] I was talking to a lady who I suppose lived there, and I asked her, what country is this? [03:06.300 --> 03:08.220] And she said, well, I'm not sure. [03:10.220 --> 03:16.680] And went on to say, well, Norway plows the snow. Does that answer your question? [03:16.780 --> 03:20.080] Well, partly it did, and partly it did not. [03:20.280 --> 03:32.200] But the point is that I wanted some money, and I went to an ATM machine in this, not God forsaken, that wouldn't be right to say that, [03:32.200 --> 03:40.920] but a little town in extreme northern Norway, not very far from North Cape. [03:41.000 --> 03:47.540] North Cape, in fact, is the furthest north land in Europe. [03:49.080 --> 03:51.040] I wanted some money. [03:51.200 --> 03:53.450] Okay, so I go up to... yeah, hey. [03:54.600 --> 03:59.470] You've got to continually, during this, remember Willie Sutton. [03:59.470 --> 04:04.310] Willie Sutton was asked, why do you rob banks? [04:05.370 --> 04:07.010] And you know the answer. [04:07.010 --> 04:08.390] Because it's there! [04:08.590 --> 04:10.670] Yeah, you got it. [04:11.770 --> 04:18.830] Well, that's changed a little bit, and I'm talking about the slightly changed arrangements nowadays, [04:18.830 --> 04:24.310] in that it's not any longer really true that the money is in the bank. [04:24.310 --> 04:27.270] The money is actually in the ATM machine. [04:27.270 --> 04:35.730] And if you go up to a bank on Friday afternoon before a three-day weekend, [04:36.150 --> 04:44.610] you will find that the ATM machines at the bank have a lot more money than the bank had at any time during the week. [04:44.730 --> 04:47.970] The amounts tend to be really enormous. [04:48.490 --> 04:56.610] For a three-day weekend, having $10,000 in the ATM machine is simply not enough at most banks. [04:57.650 --> 05:03.410] Okay, so what I do is, I stick a card into the ATM machine. [05:03.570 --> 05:05.030] And this is a card... [05:06.110 --> 05:07.790] You're going to say it louder. [05:12.020 --> 05:13.940] I may need help. [05:15.400 --> 05:18.800] I'll appeal for help if this gets much worse. [05:19.320 --> 05:21.820] So I stick a card in the machine. [05:21.820 --> 05:27.820] And this is a card that was issued to me by my own bank somewhere in central New Hampshire. [05:27.820 --> 05:36.780] Now the connection between extreme northern Norway and central New Hampshire is not particularly obvious. [05:37.380 --> 05:41.760] They are distant from almost any point of view that you take. [05:44.180 --> 05:48.720] The card that I was issued has a magnetic stripe on the back. [05:48.720 --> 06:05.500] And as it turns out, what's in that magnetic stripe is simply an address for the bank and some other information about the bank and the account associated with that card. [06:07.900 --> 06:10.800] That's on that magnetic stripe on the back. [06:10.800 --> 06:19.160] Which you ought to learn more about from somebody else because there are some real problems associated with these stripes on the backs of cards. [06:19.380 --> 06:25.220] The machine then asks me for a pin and asks me how much money do I want. [06:25.860 --> 06:31.000] Hey, being a fairly honest guy, I'll tell them I want a reasonable amount of money. [06:31.420 --> 06:35.020] If I was different, I would say, well, just give me all of it. [06:36.100 --> 06:37.720] Some people do that. [06:41.560 --> 06:50.380] Now, the machine, after it's got the pin, gurgles for a while. [06:50.380 --> 07:02.140] And then in a surprisingly short period of time, usually of the order of 10, 20, 30 seconds at most, delivers the money to me. [07:02.740 --> 07:09.960] Since I was in Norway, of course it delivers Norwegian kroner, whatever a kroner is. [07:11.900 --> 07:16.580] I suppose in English it would be called a crown, but it's not that big a deal. [07:18.380 --> 07:36.760] So after I put my card in the machine, type in the four-digit pin, I walk away and the machine is now happy and the transaction is completed after it delivered me my money. [07:36.760 --> 07:54.860] Now, one question I have is that in this whole transaction, where I inserted a card into the machine, typed in a pin, and undoubtedly there were messages going back and forth between various banks and things of that sort, [07:55.800 --> 07:58.200] a real question is, what happened? [07:58.520 --> 08:04.380] And to some degree, I'm going to leave that as a homework exercise for you, it's not easy. [08:04.380 --> 08:20.520] A surprising amount of attention has to be paid to actually who knew what at the beginning of this process and what they found out, what information they sent and what information they received. [08:20.700 --> 08:24.300] Which I'll sum up by saying, what happened? [08:24.300 --> 08:39.740] It is not particularly easy. In fact, obviously the bank in extreme northern Norway never heard of a bank in the boondocks of central New Hampshire. [08:39.860 --> 08:52.340] So somehow or other, messages had to be transferred back and forth between these two entities, which are not, from any other point of view, close to each other in any possible sense. [08:52.340 --> 09:03.820] And so you have to remember that it's not clear with these messages just who is sending it to who and what information is being sent. [09:03.820 --> 09:08.560] That's the thing you have to think about. And I will help with that. [09:09.760 --> 09:29.740] Now, the parties to this overall transaction are me, that's the guy standing in front of the ATM machine, the bank in Norway that owns the ATM machine and the bank in New Hampshire of which I am a customer. [09:30.680 --> 09:37.420] This is all not supposing, nobody was telling any lies or anything of that sort. It's all straight stuff. [09:39.480 --> 09:49.240] Now, there are a number of requirements that are particularly obvious as this transaction goes on. [09:49.720 --> 09:57.560] And the parties to this transaction have their own needs that may well not intersect to any degree. [09:58.080 --> 10:10.840] The customer, that's me, wants some money and does not want, obviously, the system to drain his checking account, which is the kind of thing that might happen. [10:10.840 --> 10:26.820] I mean, you guys know about identity theft. Well, this is the same general kind of thing, differently detailed, but about the same in the general sense that you wind up with a heck of a lot less money and somebody else winds up with a heck of a lot more money. [10:28.740 --> 10:36.700] But the other... so I just want the money and I don't want the system to drain my checking account. [10:37.060 --> 10:52.700] I also probably don't want my PIN to be broadcast all over the world. The PIN is something I care about and I would prefer to keep that a little bit close to the chest. [10:53.860 --> 11:11.120] The bank in Norway has just distributed a thousand dollars or so, I'm sorry, a thousand kroner or so, and it wants some assurance that it's going to get back its money. [11:14.060 --> 11:22.420] And that's about it. I am not a customer of this bank, so it doesn't care about me very much. It knows that I'm not a customer. [11:22.700 --> 11:27.800] It mostly cares about its own customers, not about me. [11:29.460 --> 11:43.580] The bank in New Hampshire, I am a customer of that bank. They want to keep me reasonably happy, but they've got some other problems facing them. [11:43.580 --> 11:56.920] They have to make sure that I am really who I say I am and that I've actually got the money in the account to pay this amount out. [12:00.560 --> 12:12.180] So it doesn't want any responsibility, for example, of a customer. A customer is actually not the person that he claims he is or she. [12:14.960 --> 12:25.300] The bank in Norway simply wants the whole transaction to settle down with it not either gaining or losing any money. [12:25.300 --> 12:38.760] Again, I'm not a customer of that bank, but it mainly wants to make sure that it is someday reimbursed for the money it gave me. [12:38.760 --> 12:47.600] It gave me a thousand something or others, a thousand kroner, and it wants to get that back somehow from the ATM system. [12:47.600 --> 13:01.940] Now the ATM system is a very large, very widespread system that exists all over the world, in fact, and I have used it in quite a few foreign countries, including Norway. [13:04.860 --> 13:18.920] So there are three pieces here. There's the ATM machine that you're standing in front of, the ATM system that in some sense is worldwide or very nearly worldwide. [13:19.120 --> 13:28.580] I know that it works in almost any European country. I was in Hungary last week. I didn't try it there. I don't know what would have happened. [13:28.580 --> 13:43.400] I guess. When I was staying in Budapest, I asked, is the hotel air-conditioned? The answer was, well, it has Hungarian air-conditioning. [13:44.680 --> 13:59.840] Nice place, very pretty place. It does... and it's not a third world country by any means, but it is not quite up to our standards for high range hotels. [14:00.800 --> 14:20.720] Okay. We have these parties to the transaction. Me, the ATM that I'm in front of, the bank that owns the ATM, and then some network that I'm not going to describe. [14:20.720 --> 14:32.600] It would bore you to tears. It actually connects all this together in a worldwide sense. And I'll call that just the ATM network. It is important. [14:32.600 --> 14:44.160] Without that, you wouldn't be able to use the ATM card in a whole lot of places without the ATM network existing. [14:48.980 --> 14:56.860] Well, what does one have to do to make all this work out? [14:58.560 --> 15:19.800] When you type the PIN into the ATM that you're standing near, right behind you, over your right or left shoulder, there is a person who is busily writing down the PIN you typed, which you can easily see over your shoulder. Fine. [15:19.800 --> 15:38.620] It's called shoulder surfing. And that is actually a major loss to the financial system because that kind of thing happens much more than you would believe. It is not just millions of dollars, it is more than millions of dollars. [15:41.080 --> 15:49.480] And that is the first vulnerability I'd like to talk about, and it is a serious vulnerability. [15:49.880 --> 16:02.420] I would advise you when you're at an ATM and about to punch in your PIN, just look over your shoulder, both shoulders, and see who is there copying it down. [16:03.400 --> 16:18.760] This is not unusual. It has not happened to me, but it has, for example, happened to my wife, where someone managed to see what PIN she was typing in and used it to extract quite a lot of money from the system. [16:18.760 --> 16:35.380] There is normally some limit of the amount that you can get out of ATMs per day, and that limit is designed so that you don't go broke if somebody steals your PIN or your card. You just get a little bit poorer. [16:36.400 --> 16:40.260] So that is the first vulnerability. [16:43.100 --> 16:52.060] There are others. I was in... why am I talking about Norway? Well, because I spent a lot of time in Norway last year. [16:52.060 --> 17:15.340] I walked up to an ATM machine in Bergen, that's in Norway, and I put in my card. It told me to punch in my PIN. I punched in the PIN. It gurgled for a while, and then said, sorry, we can't pay you. [17:15.880 --> 17:29.420] Eh? It's got all the information on my card, which tells it all about my bank account. It's got my PIN, and now it tells me it's not going to complete the transaction. [17:29.420 --> 17:55.940] What I did may seem a bit extreme to you, but I called the police, told them, and also pointed out to the bank, which arrived just behind the police, that right near my right hand was a fire axe, and if it didn't give me my card back, I was going to use that fire axe. [17:57.140 --> 18:13.760] Actually, they came in and gave me the card back, and in fact, no money had been withdrawn, so the whole transaction ended just fine. But still, a fire axe did enter the negotiations. [18:23.220 --> 18:49.790] What does this say? Why do my notes say, at this point, forklift truck? Forklift truck? Give that man a prize. Definitely. [18:50.750 --> 19:11.890] Forklift truck deserves to be at this point in the presentation, because it is the principal tool for cheating ATM machines. You slide it in, lift, slide it back, put it in the truck, drive away, and at home, all you need is an acetylene cutting torch, and you have the thing open in 20 minutes. [19:13.610 --> 19:34.990] So, forklift trucks are part of... by the way, I have promised, and I will tell you before the end of this talk, important things you should do and not do when dealing with ATM machines, because I mean to send you away knowing a good deal more about the down-to-earth vulnerabilities of ATM machines. [19:34.990 --> 20:08.770] None of this high-flown theoretical stuff, just things like forklift trucks. It's important, and people do that. I can't estimate what the losses are to forklift trucks, but they do exist, and it is mainly, in fact, an American habit. [20:08.770 --> 20:16.250] I have a slightly different habit, and that is... why am I all of a sudden louder? Somebody turn me up. [20:24.020 --> 20:35.540] The best deal at this point is you want to get money out of an ATM machine. [20:35.540 --> 20:45.120] You go to eBay, and on eBay you buy an ATM machine. [20:45.800 --> 20:57.500] Hey, they'll sell it to you. They really are there, and they don't cost very much. It's actually in the general range of $10,000 for an ATM machine. [20:57.500 --> 21:11.740] Now what you do is you install that ATM machine right over there in some obvious place where people pass by, and the ATM machine is reprogrammed. [21:11.740 --> 21:14.720] It's not a difficult reprogramming job. [21:14.720 --> 21:22.360] When somebody puts their card in, punches it in the pen, it says, sorry, try again tomorrow. [21:24.120 --> 21:27.780] If you don't happen to have a fire axe, you've got a problem. [21:29.500 --> 21:36.200] But that is probably more the British scheme than the U.S. scheme, though it doesn't matter very much. [21:38.740 --> 21:46.480] So what you have with this scheme is just you have a new machine. [21:47.280 --> 21:57.900] And I would advise you that if you see an ATM in a place where you've never seen one before, don't use it. [22:01.660 --> 22:07.760] Well, again, I'm giving advice, but what can I say? [22:08.020 --> 22:20.680] You want to take a look. In fact, in the town I live in, several times in the last month, in stores and restaurants that I normally go in, I've seen new ATM machines. [22:20.700 --> 22:23.080] I don't have any reason to believe they're fraudulent. [22:23.080 --> 22:27.480] On the other hand, I also don't have any reason to believe that they're honest. [22:27.480 --> 22:30.020] So I typically do not use them. [22:32.200 --> 22:44.540] So pay some attention to the place that the machine is, and if you run into a machine that you haven't seen before, it would be wise not to use it. [22:44.540 --> 22:56.680] Another problem associated with the whole business of ATM machines, and it includes problems with debit cards and things of that sort also, is banks. [22:57.080 --> 23:06.360] Big deal, honest banks all over the world, but I mainly know it from the U.S. and U.K. [23:07.120 --> 23:21.300] If you point out to them that they did not give you the money that you deserved, and you've got fraudulent charges on your debit card or checking out through the ATM machine, [23:21.300 --> 23:26.800] they will simply lie about what has happened. [23:26.800 --> 23:39.020] There's several famous cases, both in the U.S. and in the U.K., where it was perfectly clear that the problem was solved by the bank software, [23:39.020 --> 24:03.480] and the bank denied that it possibly could happen, and simply said that if the customer is claiming to have lost money through an ATM machine or a debit card, that the customer is lying. [24:03.480 --> 24:10.520] One of these cases actually came to court and was well defended, and the bank lost very big. [24:10.520 --> 24:21.260] They still try to do that, but they do it with much less success now, because after one big case has gone against them, it makes it more difficult. [24:21.260 --> 24:33.400] What they did in the first case was actually filed a criminal complaint against the person that was complaining about the loss of money in the ATM system. [24:33.760 --> 24:36.360] And that seems a little bit outrageous. [24:42.670 --> 24:48.810] I better finish all this technical stuff so I can give you all this valuable advice that you want. [24:58.020 --> 25:24.600] The way that the system works, the first thing that happens when you begin an ATM transaction is that the bank associated with the ATM machine you are using sends a message to the bank that issued the ATM. [25:24.600 --> 25:32.740] And there is not much that needs to be said at that point, and in fact, essentially nothing is said. [25:32.800 --> 25:40.600] The message that goes from the ATM machine through the ATM network to the issuing bank simply says, [25:40.600 --> 25:43.520] Hello, I've got a message for you. [25:43.700 --> 25:57.940] The response is that the bank dreams up an encryption key and sends that key back to the customer. [25:58.380 --> 26:02.560] This is fairly standard stuff nowadays in cryptography. [26:02.560 --> 26:21.800] There are any number of ways associated with cryptographic schemes where encryption and decryption, one is much more difficult than the other. [26:22.800 --> 26:35.130] So that all you need to do is send one party to send a key to the other, and now transmissions in the other direction become much, much easier. [26:35.640 --> 26:42.140] And this is not only a common but almost universal practice in cryptography nowadays. [26:49.090 --> 26:56.000] Okay, look over your shoulder when you type in the PIN. Important. [27:01.130 --> 27:12.470] Pay some attention to the place where you see the machine, and if you recognize something as being a new machine, go somewhere else. [27:21.170 --> 27:41.150] A stolen card is not a terribly big deal. I don't know about you generally, but my bank will only let me withdraw $200 per day through the ATM system, which means that the amount of loss is relatively limited. [27:41.150 --> 27:44.130] I mean, that's annoying, but not absolutely disastrous. [27:45.730 --> 28:03.930] Another piece of advice, though, is the ATM machines, mostly after they give you your money and that kind of good stuff, and give you your card back, one hopes, give you information in the form of a receipt. [28:04.130 --> 28:10.090] The receipt talking about what the account was, what the amount was, what the date was, things of that sort. [28:10.090 --> 28:18.590] And my advice about that piece of paper, that receipt, is don't leave it next to the machine. [28:18.590 --> 28:23.830] Don't simply drop it. Take it with you. Take it away from the machine, take it with you. [28:23.830 --> 28:36.290] Because that plus the four-digit key, which the same guy has just read over your shoulder, is enough for him to drain a good deal of money out of your account. [28:36.290 --> 28:43.190] So, when and if a receipt appears, take it with you, don't leave it at the machine. [28:43.670 --> 28:51.210] And that makes it much more difficult and much more inconvenient for anyone to drain the account. [28:54.390 --> 29:00.570] The other advice is, I assume that some of you are going to need money in the next few days. [29:00.570 --> 29:12.610] Yeah, almost certainly. I recommend that when you want money, tomorrow and the day after, please get it from the ATM machine in the lobby of this hotel. [29:14.830 --> 29:22.230] And I don't need to talk anymore. Does anyone want to ask any questions? Or should I talk about something? [29:22.230 --> 29:32.150] I didn't talk at all about cryptography, really. And one of the reasons is that cryptography does not really come up as a prime problem. [29:32.370 --> 29:41.470] What the prime problem is, in fact, is key distribution. It's not the algorithm that you use to do the encryption. [29:41.470 --> 29:48.290] It's who's got the key and where did that entity get the key is the problem. [29:48.290 --> 29:53.870] That's work that Scott's been talking about. And I've run out of data. Thank you for coming. [29:54.050 --> 30:00.270] Unless there's any questions. I see no questions. Have a good day.