1 00:00:00,000 --> 00:00:02,560 So, welcome to Practical Cell Phone Spying. 2 00:00:05,000 --> 00:00:07,780 Before we start, a couple of notes on privacy. 3 00:00:09,220 --> 00:00:13,000 First off, cellular phone calls will be recorded during the talk. 4 00:00:15,080 --> 00:00:15,560 Surprise. 5 00:00:16,860 --> 00:00:21,220 If you do not want your cell phone calls recorded, turn your phone off. 6 00:00:21,780 --> 00:00:25,240 If you're on Sprint or Verizon, you're not GSM, 7 00:00:25,360 --> 00:00:29,680 my system is not going to talk to your cell phones at all, so don't even worry about it. 8 00:00:30,000 --> 00:00:33,300 Having said that, I would encourage people to keep their phones on during the talk, 9 00:00:33,860 --> 00:00:35,640 especially if you've got a GSM handset, 10 00:00:35,680 --> 00:00:40,140 because the whole point of this is to show how your phone calls can be intercepted, 11 00:00:40,160 --> 00:00:43,360 and if you're not using your phone, then that kind of doesn't work. 12 00:00:44,480 --> 00:00:44,920 Okay. 13 00:00:46,200 --> 00:00:48,860 This is the machine that's actually running the demo. 14 00:00:49,260 --> 00:00:53,440 I don't know if you can see this big gap here where the hard drive should be. 15 00:00:54,620 --> 00:00:56,780 It's actually booted from this USB key, 16 00:00:56,900 --> 00:00:59,880 and at the end of the talk, I'm going to be cutting that USB, 17 00:01:00,000 --> 00:01:02,420 and I'm going to be cutting that USB key in half with a pair of, with a Leatherman. 18 00:01:02,780 --> 00:01:06,560 So I'm recording all kinds of very, very sensitive information, 19 00:01:06,760 --> 00:01:10,420 all kinds of settings about your phone, logging phone calls, all this kind of stuff, 20 00:01:10,560 --> 00:01:13,580 but it is all going to be destroyed at the end of the talk, 21 00:01:13,720 --> 00:01:16,340 so don't worry about that too much. 22 00:01:16,460 --> 00:01:18,180 Let me just get my power back in here. 23 00:01:21,000 --> 00:01:21,920 Ah, thank you. 24 00:01:22,980 --> 00:01:23,420 Okay. 25 00:01:25,180 --> 00:01:28,340 Finally, I do have a back hole in place here. 26 00:01:28,960 --> 00:01:29,680 I'm currently, 27 00:01:29,680 --> 00:01:35,660 I'm currently connected to my Verizon Droid which is giving me a voice over IP back hole, 28 00:01:35,780 --> 00:01:37,820 so if you do connect to the network, 29 00:01:39,340 --> 00:01:43,140 generally the only way that you'll know that you're connected to the network is when you try and make a call. 30 00:01:43,360 --> 00:01:45,300 If you do make a call from the network, 31 00:01:45,540 --> 00:01:49,080 you'll get a recorded message saying you're being intercepted, yada, yada, yada. 32 00:01:51,340 --> 00:01:53,740 So effectively, keep your phones on during the talk, 33 00:01:53,820 --> 00:01:56,040 and every so often, just dial a number, see what happens. 34 00:01:56,260 --> 00:01:59,660 If you hear that recorded message, then you're attached to my system. 35 00:01:59,680 --> 00:02:02,180 If you don't hear the message, you're fine. 36 00:02:02,760 --> 00:02:07,020 In either case, any time that anyone is connected to this network, 37 00:02:07,220 --> 00:02:09,000 a best effort is going to be made to connect calls, 38 00:02:09,200 --> 00:02:13,900 subject to the limitations of asterisk going over voice over IP going over Verizon. 39 00:02:14,380 --> 00:02:18,500 And given that Verizon's the only cell phone network that, well, one of two, 40 00:02:19,220 --> 00:02:21,200 we may have unpredictable results, but we'll see. 41 00:02:23,320 --> 00:02:23,800 Okay. 42 00:02:24,260 --> 00:02:29,140 So, the whole idea of the talk is, I'm talking about NZ Catchers, 43 00:02:29,140 --> 00:02:29,500 but, 44 00:02:29,680 --> 00:02:32,080 in order to know what an NZ Catcher is, you need to know what an NZ is. 45 00:02:32,720 --> 00:02:35,480 An NZ is an international mobile subscriber identity. 46 00:02:36,180 --> 00:02:38,280 You can think of it kind of like a GSM username. 47 00:02:38,700 --> 00:02:40,720 It's one of two parts of the, 48 00:02:42,060 --> 00:02:44,940 two things that live in your SIM card that authenticate you. 49 00:02:45,360 --> 00:02:46,600 Your NZ is like your username. 50 00:02:46,960 --> 00:02:50,020 KI is the secret key that authenticates you into the network. 51 00:02:50,340 --> 00:02:53,900 So, the NZ lives on the SIM card, obviously. 52 00:02:54,400 --> 00:02:55,600 It's somewhat protected. 53 00:02:55,980 --> 00:02:57,320 When you connect to a network, 54 00:02:57,580 --> 00:02:59,640 one of the first things that that network does, 55 00:02:59,680 --> 00:03:04,160 is it'll say, stop using your NZ, use this temporary NZ instead. 56 00:03:04,660 --> 00:03:07,820 And what I'm going to be showing you on the demo a little later is, 57 00:03:07,900 --> 00:03:10,240 you know, how many of these TNZs have been allocated 58 00:03:10,780 --> 00:03:13,480 as a way of seeing how many people are associated with the base station. 59 00:03:14,860 --> 00:03:16,900 So, an NZ is, it's kind of a secret. 60 00:03:17,680 --> 00:03:21,640 The ICCID, the long string of numbers that's printed on your SIM card, 61 00:03:22,200 --> 00:03:23,700 it's fairly closely related. 62 00:03:24,080 --> 00:03:27,900 For most US networks, and a lot of networks around the world, actually, 63 00:03:27,920 --> 00:03:29,660 you can derive the NZ, and you can derive the TNZ, and you can derive the TNZ, and you can derive the TNZ, and you can derive the TNZ, and you can derive the TNZ, 64 00:03:29,680 --> 00:03:31,320 from the ICCID, and vice versa. 65 00:03:32,000 --> 00:03:33,860 So, it's not really that secret. 66 00:03:34,580 --> 00:03:39,040 Other places do it slightly better, and the ICCID is just a random number. 67 00:03:39,300 --> 00:03:42,380 Either way, the ICCID doesn't really play too much of a part. 68 00:03:42,620 --> 00:03:45,560 I only mention it because you can derive the NZ from it, 69 00:03:45,640 --> 00:03:47,280 in the United States, at least. 70 00:03:49,080 --> 00:03:50,680 So, what's an NZ catcher? 71 00:03:52,340 --> 00:03:55,320 Basic idea is that it's a spoofed GSM tower. 72 00:03:55,600 --> 00:03:57,220 It's a fake base station. 73 00:03:58,020 --> 00:03:59,460 The idea is that, 74 00:03:59,680 --> 00:04:01,380 when your phone is looking for a signal, 75 00:04:01,920 --> 00:04:03,760 it'll look for the strongest tower. 76 00:04:04,340 --> 00:04:07,380 It'll connect to the tower that offers it the best signal. 77 00:04:07,820 --> 00:04:10,980 And in this case, because I'm right in front of you, 78 00:04:11,020 --> 00:04:13,440 with high-gain antennas pointed directly at you, 79 00:04:14,140 --> 00:04:15,700 I'm going to be your strongest signal here. 80 00:04:17,000 --> 00:04:19,740 I'm only emitting about 25 milliwatts here. 81 00:04:20,020 --> 00:04:21,680 Tiny, tiny, tiny amount of power. 82 00:04:22,040 --> 00:04:25,720 But because I'm so close, and because I'm using these directional antennas, 83 00:04:27,100 --> 00:04:28,980 hopefully I'll be your strongest signal, 84 00:04:28,980 --> 00:04:30,860 and you should camp over to my network, 85 00:04:31,000 --> 00:04:32,140 and, you know, have some fun. 86 00:04:33,960 --> 00:04:35,920 Another thing to bear in mind is that in GSM, 87 00:04:36,180 --> 00:04:38,760 it's the base station that picks all of the settings. 88 00:04:39,300 --> 00:04:41,180 So, when you connect to my tower, 89 00:04:41,340 --> 00:04:42,960 it's my tower that gets to instruct 90 00:04:43,600 --> 00:04:44,920 whether or not to use encryption. 91 00:04:45,300 --> 00:04:47,060 Whether or not to use frequency hopping. 92 00:04:47,440 --> 00:04:48,520 All of this kind of stuff. 93 00:04:48,700 --> 00:04:50,680 If I decide not to enable encryption, 94 00:04:50,940 --> 00:04:52,720 then I just disable it. 95 00:04:52,820 --> 00:04:53,960 And your phone just goes, 96 00:04:54,040 --> 00:04:54,900 oh, you've disabled encryption? 97 00:04:55,180 --> 00:04:56,440 That's fine, I'll talk plain text. 98 00:04:58,980 --> 00:05:00,600 But seriously, it's that simple. 99 00:05:02,140 --> 00:05:03,640 There's all kinds of stuff 100 00:05:03,640 --> 00:05:06,160 that the base station can instruct the handset to do. 101 00:05:07,280 --> 00:05:08,620 Please take my word on it 102 00:05:08,620 --> 00:05:10,460 that I'm not doing anything malicious here. 103 00:05:10,580 --> 00:05:12,800 This test is for functionality only. 104 00:05:13,400 --> 00:05:16,520 There should be no permanent changes made to your phones whatsoever 105 00:05:16,520 --> 00:05:17,860 if you do connect to the network. 106 00:05:18,360 --> 00:05:21,480 But if I wanted to, there's all kinds of stuff I could do. 107 00:05:21,580 --> 00:05:22,580 I could update your SIM card. 108 00:05:23,660 --> 00:05:25,020 All kinds of fun to be had. 109 00:05:26,340 --> 00:05:28,180 So, essentially, if you've got 110 00:05:28,180 --> 00:05:31,960 the ability to deliver a reasonably strong radio signal 111 00:05:31,960 --> 00:05:35,000 and your base station will negotiate A50, 112 00:05:35,340 --> 00:05:37,220 which is plain text, you're pwned. 113 00:05:37,280 --> 00:05:38,580 There's nothing you can do about it. 114 00:05:38,740 --> 00:05:41,400 And there's a good chance that you won't even know about it. 115 00:05:41,980 --> 00:05:44,680 If I'm the tower, then not only am I your network, 116 00:05:44,820 --> 00:05:46,420 but I also control your handset as well 117 00:05:46,420 --> 00:05:47,580 to a pretty significant degree. 118 00:05:48,380 --> 00:05:50,460 The actual idea of an IMSI catcher 119 00:05:50,460 --> 00:05:52,720 has been around almost as long as GSM has. 120 00:05:53,060 --> 00:05:55,380 It was originally patented by Roden Schwartz 121 00:05:55,380 --> 00:05:56,620 in Europe in 1993. 122 00:05:57,840 --> 00:06:00,700 I've never seen reference to any U.S. patents for it, 123 00:06:00,780 --> 00:06:01,640 but either way, 124 00:06:01,680 --> 00:06:03,760 patents in Europe are just as public as they are here, 125 00:06:03,900 --> 00:06:06,200 so all of the details of this is all public. 126 00:06:07,160 --> 00:06:10,180 The main important point about this 127 00:06:10,180 --> 00:06:12,160 is that if you were to go to Roden Schwartz 128 00:06:12,160 --> 00:06:13,600 and say, I want to buy an IMSI catcher, 129 00:06:13,700 --> 00:06:15,200 they'll charge you a couple of million dollars. 130 00:06:15,680 --> 00:06:17,880 The equipment that I have laid out on the table here, 131 00:06:18,540 --> 00:06:20,940 by far the most expensive part is the laptop. 132 00:06:21,880 --> 00:06:24,160 Second up is the USRP at about $1,500. 133 00:06:24,940 --> 00:06:26,240 And then, well, 134 00:06:26,240 --> 00:06:27,760 I think the next most expensive thing 135 00:06:27,760 --> 00:06:29,720 is this $20 instant messaging device. 136 00:06:30,280 --> 00:06:34,740 So the whole point is that using these techniques, 137 00:06:34,960 --> 00:06:38,600 you can intercept phone calls for a thousand times less money 138 00:06:38,600 --> 00:06:40,980 than the commercial systems that do exactly the same thing. 139 00:06:43,260 --> 00:06:48,320 So, quick note about the crypto involved in IMSI catchers. 140 00:06:48,900 --> 00:06:51,640 If I'm the attacker and I create the base station, 141 00:06:52,460 --> 00:06:55,500 you have a cell phone that connects to my base station, 142 00:06:55,500 --> 00:06:57,260 I just say, disable crypto. 143 00:06:58,240 --> 00:06:59,760 I don't need to break crypto, 144 00:06:59,960 --> 00:07:01,180 I don't need any rainbow tables, 145 00:07:01,500 --> 00:07:04,380 I don't need any solid state hard drives for fast lookups, nothing. 146 00:07:04,560 --> 00:07:05,960 I just say, turn off encryption. 147 00:07:07,040 --> 00:07:08,040 It's that simple. 148 00:07:08,720 --> 00:07:12,620 In reality, the GSM specification does actually say 149 00:07:12,620 --> 00:07:15,400 that when your handset connects to a network that does not use encryption, 150 00:07:15,760 --> 00:07:17,280 it has to put up a warning message. 151 00:07:17,740 --> 00:07:19,720 But then, if you read further in the spec, 152 00:07:19,920 --> 00:07:21,360 there's another place where it says, 153 00:07:21,540 --> 00:07:23,700 if you want to disable this warning message, 154 00:07:23,920 --> 00:07:25,480 set this little configuration bit, 155 00:07:25,500 --> 00:07:26,160 in the SIM card. 156 00:07:26,560 --> 00:07:29,920 So, every SIM card that I have ever seen in my entire life, 157 00:07:30,060 --> 00:07:33,080 and I've seen a few from various networks around the world, 158 00:07:33,240 --> 00:07:35,440 every single one of them has that bit set, 159 00:07:35,700 --> 00:07:37,820 every single operator that I've ever seen 160 00:07:38,440 --> 00:07:39,740 disables that warning message. 161 00:07:39,960 --> 00:07:42,820 So, no phone, I've never seen a warning message on a cell phone 162 00:07:42,820 --> 00:07:45,860 that actually says, you're connected to an unciphered network, 163 00:07:46,060 --> 00:07:48,840 even though the GSM specification requires it. 164 00:07:49,180 --> 00:07:52,900 So, this is a deliberate choice on the part of the operators. 165 00:07:53,360 --> 00:07:54,580 The idea of it is, 166 00:07:54,580 --> 00:07:56,360 that if you go to a country like India, 167 00:07:56,540 --> 00:07:59,320 in India, they don't support cell phone encryption. 168 00:07:59,580 --> 00:08:00,460 It's actually illegal. 169 00:08:01,860 --> 00:08:04,300 So, obviously, you want to be able to roam in India, 170 00:08:04,400 --> 00:08:05,760 you want to be able to make cell phone calls, 171 00:08:05,900 --> 00:08:07,600 so your phone has to support A50. 172 00:08:08,360 --> 00:08:10,260 And if you're getting a warning every time 173 00:08:10,260 --> 00:08:11,820 that you connect to a new tower in India, 174 00:08:12,360 --> 00:08:14,060 you're going to be wondering what the hell is going on, 175 00:08:14,180 --> 00:08:16,340 and hassling AT&T or whoever. 176 00:08:17,520 --> 00:08:21,460 So, it's one of those areas where functionality and security 177 00:08:21,460 --> 00:08:23,280 are directly at odds. 178 00:08:27,320 --> 00:08:29,300 So, note on spectrum usage. 179 00:08:31,180 --> 00:08:35,760 One of the issues that was raised with this talk in the press 180 00:08:35,760 --> 00:08:39,380 is that operating a transmitter on a US cellular frequency 181 00:08:39,380 --> 00:08:42,060 is a very big FCC no-no. 182 00:08:42,400 --> 00:08:44,260 You get in a lot of trouble for doing that. 183 00:08:44,880 --> 00:08:46,720 Fortunately, we don't actually need to. 184 00:08:47,520 --> 00:08:48,720 The reason for this is, 185 00:08:48,840 --> 00:08:51,080 there's four bands used for GSM around the world. 186 00:08:51,220 --> 00:08:53,220 A50, 900, 1800, 1900. 187 00:08:54,060 --> 00:08:56,880 A50 and 1900 are the two that are used in the USA. 188 00:08:57,120 --> 00:08:59,680 900 and 1800 are used in Europe. 189 00:08:59,980 --> 00:09:03,720 If you actually look at the size of those bands 190 00:09:03,720 --> 00:09:05,140 and the frequencies that they cover, 191 00:09:05,340 --> 00:09:08,740 there is an overlap between European GSM 900 192 00:09:08,740 --> 00:09:13,040 and the United States ISM band at 902 to 928 megahertz. 193 00:09:13,540 --> 00:09:16,000 So, I'm actually running my transmitter here 194 00:09:16,000 --> 00:09:21,080 as a legal ham radio transmitter in the, 195 00:09:21,240 --> 00:09:23,100 I call it the ISM band, 196 00:09:23,220 --> 00:09:24,360 but it's technically a ham radio band. 197 00:09:25,220 --> 00:09:27,120 And as far as your cell phones are concerned, 198 00:09:27,300 --> 00:09:28,960 I'm just a European radio transmitter. 199 00:09:29,200 --> 00:09:30,360 I'm a European tower. 200 00:09:31,100 --> 00:09:33,100 Your phones don't care that I'm in the States. 201 00:09:33,240 --> 00:09:34,340 They don't care that they're in the States. 202 00:09:34,440 --> 00:09:36,860 They don't care that they're on a completely inappropriate band 203 00:09:36,860 --> 00:09:38,480 for the location that they're in. 204 00:09:38,580 --> 00:09:40,020 They just quite happily say, 205 00:09:40,080 --> 00:09:41,640 hey, there's a tower, let's party. 206 00:09:44,380 --> 00:09:45,420 It's pretty crazy. 207 00:09:45,560 --> 00:09:46,840 So, if you've got a European phone, 208 00:09:46,960 --> 00:09:47,900 if you've got a quad band phone, 209 00:09:48,300 --> 00:09:49,220 you'll see the network. 210 00:09:49,740 --> 00:09:52,360 If you've got a US phone that only works on US frequencies, 211 00:09:52,360 --> 00:09:53,760 you will not see the network. 212 00:09:56,380 --> 00:10:00,080 So, the ISM band, industrial scientific medical, 213 00:10:00,400 --> 00:10:03,220 the idea of it is it's for very low power devices 214 00:10:03,220 --> 00:10:05,080 that use very low utilization, 215 00:10:05,460 --> 00:10:07,420 you know, very low actual time on the air. 216 00:10:07,580 --> 00:10:09,440 They change frequency very rapidly, 217 00:10:10,060 --> 00:10:12,320 generally designed to be very non-interfering. 218 00:10:12,840 --> 00:10:14,180 But if you look at the regulations, 219 00:10:14,420 --> 00:10:16,260 ISM is actually secondary in the band. 220 00:10:16,520 --> 00:10:17,660 It's a ham radio band. 221 00:10:18,140 --> 00:10:20,700 Ham radio operators don't tend to like it 222 00:10:20,700 --> 00:10:21,720 because, you know, 223 00:10:21,720 --> 00:10:24,820 there's all this ISM crap cluttering up the place. 224 00:10:25,280 --> 00:10:28,540 So, the noise is too much of a problem 225 00:10:28,540 --> 00:10:29,660 for most ham radio applications, 226 00:10:30,000 --> 00:10:31,840 so, you know, most hams dismiss it. 227 00:10:31,960 --> 00:10:34,380 But for our purposes here, 228 00:10:34,600 --> 00:10:38,800 we can run a GSM base station on a GSM frequency 229 00:10:38,800 --> 00:10:40,620 within a ham radio band. 230 00:10:42,180 --> 00:10:43,200 How do we do that? 231 00:10:43,360 --> 00:10:44,580 Well, first thing we need is a license. 232 00:10:45,600 --> 00:10:47,360 This URL is great. 233 00:10:47,640 --> 00:10:49,380 The licenses for the ham, 234 00:10:49,480 --> 00:10:51,700 the questions set for the ham radio band 235 00:10:51,720 --> 00:10:52,940 and the ham radio exams are all public. 236 00:10:53,320 --> 00:10:54,340 So, if you go to this website, 237 00:10:54,500 --> 00:10:56,480 what they do is they just keep asking you the questions 238 00:10:56,480 --> 00:10:58,200 over and over and over and over and over again 239 00:10:58,200 --> 00:10:58,980 until you get them right. 240 00:10:59,680 --> 00:11:00,940 And if you keep getting it wrong, 241 00:11:00,940 --> 00:11:01,940 then it'll keep asking you. 242 00:11:02,020 --> 00:11:02,680 And if you get it right, 243 00:11:02,740 --> 00:11:03,720 then it'll stop asking you. 244 00:11:03,920 --> 00:11:06,500 And it just beats the right answer into you. 245 00:11:06,600 --> 00:11:08,500 And you can sit down with this site for, you know, 246 00:11:08,520 --> 00:11:11,000 a few hours and walk into a ham radio exam 247 00:11:11,000 --> 00:11:12,060 and just pass it. 248 00:11:12,720 --> 00:11:13,700 I'd recommend that you, 249 00:11:13,820 --> 00:11:15,320 if you do want to get into this stuff, 250 00:11:15,440 --> 00:11:16,440 take the time to learn it. 251 00:11:16,840 --> 00:11:17,920 Take the time to understand. 252 00:11:18,280 --> 00:11:20,940 I certainly learned a lot from taking my ham tests. 253 00:11:20,940 --> 00:11:23,660 And I'd recommend it to all of you. 254 00:11:24,960 --> 00:11:27,000 As we're a ham radio operator now, 255 00:11:27,200 --> 00:11:30,700 we have a 1.5 kilowatt power limit. 256 00:11:31,440 --> 00:11:32,380 That's a lot. 257 00:11:33,820 --> 00:11:37,600 I have another amplifier that I've been using for RFID 258 00:11:37,600 --> 00:11:38,740 that's 600 watts. 259 00:11:39,080 --> 00:11:41,220 And I've yet to turn that on 260 00:11:41,220 --> 00:11:43,680 because it's a terrifying amount of power. 261 00:11:43,760 --> 00:11:45,660 Even 600 is too much. 262 00:11:45,700 --> 00:11:48,220 So, 1,500 should be, you know, plenty for anything. 263 00:11:50,160 --> 00:11:53,360 In terms of what we're actually allowed to transmit, 264 00:11:54,700 --> 00:11:57,920 technically, we're transmitting an unspecified digital code. 265 00:11:58,200 --> 00:12:00,140 It's bits going back and forth 266 00:12:00,140 --> 00:12:01,460 between your phone and my tower. 267 00:12:02,080 --> 00:12:04,020 So, in ham radio terms, 268 00:12:04,180 --> 00:12:07,020 you're allowed to transmit an unspecified digital code 269 00:12:07,020 --> 00:12:08,960 as long as the specification is public. 270 00:12:09,220 --> 00:12:10,640 And in this case, all of the specs 271 00:12:10,640 --> 00:12:12,120 for all of the various GSM protocols, 272 00:12:12,380 --> 00:12:13,220 they're all public. 273 00:12:13,420 --> 00:12:14,900 So, it's all good. 274 00:12:15,600 --> 00:12:17,680 You're also not allowed to use cryptography. 275 00:12:17,680 --> 00:12:20,860 You're not allowed to obscure the meaning of the message in any way. 276 00:12:21,180 --> 00:12:22,660 So, I guess, by law, 277 00:12:22,780 --> 00:12:24,780 if I'm running my BTS in a ham ad, 278 00:12:24,820 --> 00:12:26,160 I have to disable crypto. 279 00:12:28,820 --> 00:12:29,260 Damn. 280 00:12:32,260 --> 00:12:34,800 No limits on antenna size, antenna gain. 281 00:12:35,820 --> 00:12:37,620 Basically, if you can get your hands on it 282 00:12:37,620 --> 00:12:39,180 and run power to it, you're golden. 283 00:12:39,700 --> 00:12:41,640 The only thing that you ever need to be careful of 284 00:12:41,640 --> 00:12:42,860 is RF exposure limits. 285 00:12:43,380 --> 00:12:45,020 The FCC publishes guidelines 286 00:12:45,020 --> 00:12:47,660 for what absorption rates 287 00:12:47,680 --> 00:12:49,300 people can tolerate safely. 288 00:12:49,940 --> 00:12:53,180 In this case, I am nowhere near those limits. 289 00:12:53,960 --> 00:12:56,760 This side is my transmit antenna. 290 00:12:57,120 --> 00:12:58,260 I think it's this side. 291 00:12:58,920 --> 00:13:01,720 And it's putting out a total of about 25 milliwatts. 292 00:13:02,500 --> 00:13:03,700 To put that in perspective, 293 00:13:03,880 --> 00:13:04,600 your cell phones, 294 00:13:05,260 --> 00:13:07,360 if they're on the European, 295 00:13:07,600 --> 00:13:09,720 if they're on the higher bands, the 1800 and 1900, 296 00:13:10,200 --> 00:13:11,320 they'll be putting out a watt. 297 00:13:11,460 --> 00:13:12,740 That's 40 times more. 298 00:13:13,240 --> 00:13:15,800 If they're operating on the lower bands, the 800 and 900, 299 00:13:16,180 --> 00:13:17,400 they're putting out 2 watts. 300 00:13:17,680 --> 00:13:18,760 So that's 80 times more. 301 00:13:18,980 --> 00:13:21,500 So the phone in your pocket is exposing you 302 00:13:21,500 --> 00:13:23,580 to significantly more RF 303 00:13:23,580 --> 00:13:25,340 than my big, scary antennas. 304 00:13:26,720 --> 00:13:29,140 The only other real requirement that we have 305 00:13:29,140 --> 00:13:30,920 is that the station has to identify itself 306 00:13:30,920 --> 00:13:31,700 every 10 minutes. 307 00:13:32,660 --> 00:13:35,400 That's actually pretty easy to do. 308 00:13:35,560 --> 00:13:39,840 Because to be a ham-compliant call sign ID, 309 00:13:41,140 --> 00:13:43,240 straight carrier wave, morse code, 310 00:13:43,540 --> 00:13:45,760 every 10 minutes, just morse something out. 311 00:13:45,760 --> 00:13:50,200 We could have integrated into the USRP. 312 00:13:50,340 --> 00:13:52,340 Certainly the USRP is capable of it. 313 00:13:53,160 --> 00:13:54,760 But that's doing it the hard way. 314 00:13:54,860 --> 00:13:55,980 There's an easier way to do it. 315 00:13:56,620 --> 00:13:57,400 That being, 316 00:13:57,520 --> 00:13:58,980 you take a second transmitter, 317 00:13:59,260 --> 00:14:00,700 you tune it to the same frequency, 318 00:14:01,320 --> 00:14:02,840 you make sure that the power level 319 00:14:02,840 --> 00:14:05,200 of that second transmitter is slightly higher, 320 00:14:05,300 --> 00:14:07,280 so that whenever that transmitter is on, 321 00:14:07,380 --> 00:14:09,440 it's effectively DOSing the GSM signal 322 00:14:09,440 --> 00:14:11,400 with a ham radio call sign. 323 00:14:13,320 --> 00:14:14,480 So all we need 324 00:14:14,480 --> 00:14:16,080 is an easily scriptable 325 00:14:16,080 --> 00:14:17,320 900 megahertz transmitter. 326 00:14:18,660 --> 00:14:19,980 And as it turns out, 327 00:14:20,020 --> 00:14:23,140 this little pink instant messaging device 328 00:14:23,140 --> 00:14:23,780 is perfect. 329 00:14:24,120 --> 00:14:24,940 This is called the iME. 330 00:14:25,440 --> 00:14:28,440 This was brought to me by 331 00:14:28,440 --> 00:14:29,400 Travis Goodspeed. 332 00:14:30,460 --> 00:14:32,320 They're fabulous little devices. 333 00:14:32,600 --> 00:14:35,680 They have reasonably good power output. 334 00:14:36,100 --> 00:14:36,660 Obviously, 335 00:14:36,720 --> 00:14:38,340 keypad and screen is helpful. 336 00:14:38,720 --> 00:14:40,020 No firmware security. 337 00:14:40,480 --> 00:14:41,840 You can program them with a good FET. 338 00:14:42,200 --> 00:14:44,020 Unfortunately they don't come standard 339 00:14:44,480 --> 00:14:47,480 with JTAG and RF connectors, 340 00:14:47,680 --> 00:14:49,000 but that's easy enough to add. 341 00:14:50,340 --> 00:14:51,140 So yeah, 342 00:14:51,220 --> 00:14:52,860 we can write firmware for this. 343 00:14:52,980 --> 00:14:54,380 We can match the frequency 344 00:14:54,380 --> 00:14:56,260 because we've got control over that in software. 345 00:14:56,540 --> 00:14:58,280 And then we just need to mux the signals together 346 00:14:58,280 --> 00:14:59,280 and amplify it up. 347 00:15:01,200 --> 00:15:02,640 So I'll actually pause there 348 00:15:02,640 --> 00:15:03,480 for one quick demo. 349 00:15:03,840 --> 00:15:04,780 No, actually I won't. 350 00:15:04,840 --> 00:15:05,460 I'll come back to that one. 351 00:15:07,520 --> 00:15:09,960 So in terms of the BTS itself, 352 00:15:10,880 --> 00:15:12,560 so we've got the iME 353 00:15:12,560 --> 00:15:13,480 for the ham radio side. 354 00:15:15,140 --> 00:15:16,260 It's actually pretty easy. 355 00:15:16,640 --> 00:15:18,220 You need a USRP, 356 00:15:18,340 --> 00:15:19,940 Universal Software Radio Peripheral. 357 00:15:21,520 --> 00:15:23,200 These things are available online. 358 00:15:23,480 --> 00:15:24,820 They go for about $1,500 359 00:15:24,820 --> 00:15:27,200 with the two daughterboards that you need. 360 00:15:27,780 --> 00:15:28,700 I'd also recommend 361 00:15:28,700 --> 00:15:30,260 if you're going to get into GSM, 362 00:15:30,480 --> 00:15:31,900 check out the Clock Tamer. 363 00:15:31,960 --> 00:15:32,700 The URL's up here. 364 00:15:33,280 --> 00:15:35,020 The thing about Clock Tamer is that 365 00:15:36,260 --> 00:15:39,440 in GSM, the handsets derive their timing 366 00:15:39,440 --> 00:15:40,300 from the base station. 367 00:15:40,660 --> 00:15:43,500 So the base stations have extremely accurate clocks 368 00:15:43,500 --> 00:15:44,460 and they can be used 369 00:15:44,480 --> 00:15:46,120 and the handsets figure out how much 370 00:15:46,120 --> 00:15:47,480 their own frequency is drifting 371 00:15:47,480 --> 00:15:48,540 compared to the tower. 372 00:15:48,860 --> 00:15:51,340 So if I come along with a third party tower, 373 00:15:51,600 --> 00:15:54,040 if my frequency stability doesn't match 374 00:15:54,040 --> 00:15:56,180 that of the local towers around me, 375 00:15:56,340 --> 00:15:57,960 all of your phones are going to be calibrated 376 00:15:57,960 --> 00:15:58,980 to those local towers 377 00:15:58,980 --> 00:16:00,560 and you're not even going to see my tower 378 00:16:00,560 --> 00:16:02,840 because I'm maybe just a few kilohertz off. 379 00:16:03,560 --> 00:16:04,960 Clock Tamer actually gives me 380 00:16:04,960 --> 00:16:06,660 plus or minus 100 hertz accuracy 381 00:16:06,660 --> 00:16:08,380 at 1.9 gigahertz. 382 00:16:09,200 --> 00:16:10,880 That's in its out of the box configuration. 383 00:16:11,000 --> 00:16:13,360 It's about .26 parts per billion accuracy. 384 00:16:14,480 --> 00:16:15,480 And then you can get a GSM, 385 00:16:15,700 --> 00:16:16,800 I beg your pardon, 386 00:16:16,940 --> 00:16:20,280 a GPS module that drops it down to 387 00:16:20,280 --> 00:16:21,720 something ridiculous. 388 00:16:22,900 --> 00:16:24,420 Crazy, crazy, crazy accuracy. 389 00:16:24,620 --> 00:16:25,640 And it's all programmable 390 00:16:25,640 --> 00:16:26,880 and very flexible. 391 00:16:27,040 --> 00:16:28,120 It's highly recommended. 392 00:16:29,320 --> 00:16:30,640 On the software side, 393 00:16:30,980 --> 00:16:32,200 just a laptop computer, 394 00:16:33,220 --> 00:16:35,140 Debian, OpenBTS and Asterisk. 395 00:16:35,800 --> 00:16:38,560 OpenBTS provides the GSM stack 396 00:16:38,560 --> 00:16:40,720 and then Asterisk takes the calls 397 00:16:40,720 --> 00:16:41,740 in from OpenBTS 398 00:16:41,740 --> 00:16:43,880 and sends them out over the back hall 399 00:16:44,480 --> 00:16:44,600 of your IP. 400 00:16:45,500 --> 00:16:47,100 It's a fairly basic base station. 401 00:16:47,720 --> 00:16:49,880 It does do voice, it does do SMS, 402 00:16:50,120 --> 00:16:51,240 it does not do data. 403 00:16:51,460 --> 00:16:53,720 And in fact for the purposes of this demonstration 404 00:16:53,720 --> 00:16:55,400 I've even disabled SMS. 405 00:16:56,400 --> 00:16:58,240 Purely because there's no way 406 00:16:58,240 --> 00:16:59,740 I can get your caller ID easily. 407 00:17:00,100 --> 00:17:01,720 So when you send an SMS, 408 00:17:01,860 --> 00:17:03,740 yes I can route it out through the internet 409 00:17:03,740 --> 00:17:04,940 and connect it to where it goes, 410 00:17:05,000 --> 00:17:07,340 but the person who receives it 411 00:17:07,340 --> 00:17:08,620 is not going to know who it's from 412 00:17:08,620 --> 00:17:10,140 and they're not going to be able to reply. 413 00:17:10,140 --> 00:17:12,680 So I figured it was just easier to disable it 414 00:17:12,680 --> 00:17:13,920 but the system does support it. 415 00:17:16,240 --> 00:17:16,640 So, 416 00:17:17,880 --> 00:17:19,800 let's get the BTS going here. 417 00:17:20,060 --> 00:17:20,260 So, 418 00:17:21,740 --> 00:17:22,640 I wanted to 419 00:17:24,120 --> 00:17:26,220 see if we can get some video here. 420 00:17:26,840 --> 00:17:28,420 Is there a camera that we can get up on stage 421 00:17:28,420 --> 00:17:29,760 or do you need me to turn the screen around? 422 00:17:31,240 --> 00:17:31,640 Okay. 423 00:17:46,860 --> 00:17:49,640 So I'm actually just going to plug in my USRP now. 424 00:17:51,760 --> 00:17:52,640 That's all on. 425 00:17:53,200 --> 00:17:54,000 And then 426 00:17:54,000 --> 00:17:55,120 start the base station. 427 00:18:00,620 --> 00:18:01,800 Or try to 428 00:18:01,800 --> 00:18:03,460 if it would actually start. 429 00:18:05,900 --> 00:18:06,840 Let's try this again. 430 00:18:10,580 --> 00:18:10,940 And... 431 00:18:13,200 --> 00:18:13,800 There we go. 432 00:18:13,880 --> 00:18:14,020 So, 433 00:18:14,080 --> 00:18:15,000 OpenBTS is up. 434 00:18:17,400 --> 00:18:19,560 I don't know how much detail you're going to be able to see 435 00:18:19,560 --> 00:18:20,320 on the screen here 436 00:18:21,220 --> 00:18:23,060 with the camera zooming in. 437 00:18:23,600 --> 00:18:25,120 One thing I do want to show you 438 00:18:25,120 --> 00:18:26,960 is the Timsys command. 439 00:18:35,840 --> 00:18:38,060 So, I don't know if you can actually make that out on the screen. 440 00:18:38,180 --> 00:18:39,380 The command I typed was Timsys. 441 00:18:40,940 --> 00:18:42,180 What that shows me 442 00:18:42,180 --> 00:18:43,420 is a list of all of the 443 00:18:44,050 --> 00:18:45,580 temporary MZs that have been allocated 444 00:18:45,580 --> 00:18:46,600 by the base station. 445 00:18:46,880 --> 00:18:49,720 In other words, how many people are currently associated with it. 446 00:18:50,100 --> 00:18:52,020 So you can see right at the bottom here 447 00:18:53,280 --> 00:18:54,120 zero Timsys 448 00:18:54,120 --> 00:18:54,480 in table. 449 00:18:54,900 --> 00:18:56,260 So I've started it up clean. 450 00:18:56,580 --> 00:18:57,900 There's nothing there. 451 00:18:59,120 --> 00:18:59,740 Nobody's connected. 452 00:19:00,160 --> 00:19:01,940 A couple of other things I'm going to show you as well. 453 00:19:03,560 --> 00:19:05,920 I'm just going to turn this around so I can type. 454 00:19:19,000 --> 00:19:19,560 So, 455 00:19:19,820 --> 00:19:21,640 a couple of other commands that I've typed here. 456 00:19:22,360 --> 00:19:23,220 Cell ID. 457 00:19:24,100 --> 00:19:25,840 That shows you that my mobile 458 00:19:25,840 --> 00:19:27,460 country code that I'm using at the moment 459 00:19:27,460 --> 00:19:28,420 is 001. 460 00:19:28,800 --> 00:19:31,400 In the GSM specification country code 1 461 00:19:31,400 --> 00:19:32,140 is test. 462 00:19:32,920 --> 00:19:35,400 I'm then using a mobile network code, 463 00:19:35,480 --> 00:19:36,920 an MNC of 01. 464 00:19:37,280 --> 00:19:39,000 So again, that's test. 465 00:19:40,140 --> 00:19:42,100 So I'm a test network in a test 466 00:19:42,100 --> 00:19:43,980 country. I'm operating on a 467 00:19:43,980 --> 00:19:46,000 non-European cellular 468 00:19:46,000 --> 00:19:47,420 sorry, a non-American 469 00:19:47,960 --> 00:19:50,120 cellular frequency. And then if you look 470 00:19:50,120 --> 00:19:50,740 at the bottom here, 471 00:19:51,600 --> 00:19:53,920 the short name of the network that I'm 472 00:19:53,920 --> 00:19:55,700 starting is called DEFCON 18. 473 00:19:56,520 --> 00:19:58,020 Some phones will display that, 474 00:19:58,060 --> 00:20:00,100 others won't. But the point that I want 475 00:20:00,100 --> 00:20:02,000 to make across is that at the moment this is 476 00:20:02,000 --> 00:20:03,360 in a non-hostile configuration. 477 00:20:03,980 --> 00:20:06,020 It's in a test mode. It's not 478 00:20:06,020 --> 00:20:07,920 advertising any known network. It's not 479 00:20:07,920 --> 00:20:09,420 operating on a US cellular frequency. 480 00:20:10,140 --> 00:20:12,020 And certainly as it started up, 481 00:20:12,140 --> 00:20:13,680 nobody was connected to it. 482 00:20:14,780 --> 00:20:16,120 So I'll leave that running for 483 00:20:16,120 --> 00:20:18,040 a few minutes. If people really want to 484 00:20:18,040 --> 00:20:19,320 do a scan for the network, you can. 485 00:20:19,900 --> 00:20:22,180 But I prefer people to just leave their phones 486 00:20:22,180 --> 00:20:24,080 alone. Just take it out of your 487 00:20:24,080 --> 00:20:26,200 pocket every couple of minutes. Try and make a call. 488 00:20:26,300 --> 00:20:27,680 See if it's actually handed over. 489 00:20:28,320 --> 00:20:30,080 Because I'll come back to this in just 490 00:20:30,080 --> 00:20:32,220 a second and show you how easy 491 00:20:32,220 --> 00:20:33,640 it is to make phones hand over here. 492 00:20:35,480 --> 00:20:36,140 So we've got 493 00:20:36,140 --> 00:20:37,240 the BTS in test mode. 494 00:20:37,240 --> 00:20:38,600 How do we then 495 00:20:39,120 --> 00:20:40,980 make this into an IMSI capture instead of 496 00:20:40,980 --> 00:20:43,000 just a random cellular network? 497 00:20:44,380 --> 00:20:45,180 Well the way 498 00:20:45,180 --> 00:20:47,000 that cell phones identify the 499 00:20:47,000 --> 00:20:49,060 network is by two values. I mentioned 500 00:20:49,060 --> 00:20:50,600 them already. The mobile country code, mobile 501 00:20:50,600 --> 00:20:52,840 network code. Mobile country code 502 00:20:52,840 --> 00:20:55,100 310 for USA. There's a full 503 00:20:55,100 --> 00:20:57,060 list on Wikipedia for every country around the 504 00:20:57,060 --> 00:20:58,900 world. Three digit number. 505 00:20:59,100 --> 00:21:00,560 Not really that hard to spoof. 506 00:21:01,380 --> 00:21:03,160 Mobile network code, again 507 00:21:03,160 --> 00:21:05,080 two digit number, maybe 508 00:21:05,080 --> 00:21:07,140 a three digit number that you can look up on 509 00:21:07,240 --> 00:21:09,380 Wikipedia. Not really much security 510 00:21:09,380 --> 00:21:09,660 there. 511 00:21:10,900 --> 00:21:12,660 It's pretty trivial to change it. 512 00:21:13,260 --> 00:21:15,200 I'll show you in a sec how to do it on 513 00:21:15,200 --> 00:21:15,940 OpenBTS. 514 00:21:17,860 --> 00:21:19,040 It's not hard. 515 00:21:19,440 --> 00:21:20,420 It's really not hard. 516 00:21:20,780 --> 00:21:23,240 Once I've set the MNC and the 517 00:21:23,240 --> 00:21:25,240 MCC I can change the network name as well. 518 00:21:25,440 --> 00:21:27,180 So that when it displays on your phone 519 00:21:27,180 --> 00:21:29,100 instead of seeing DEFCON 18 you'll see 520 00:21:29,100 --> 00:21:30,620 whatever network it is that 521 00:21:31,400 --> 00:21:32,560 I want you to see. 522 00:21:33,580 --> 00:21:34,780 In most cases 523 00:21:35,480 --> 00:21:36,800 well in some cases 524 00:21:37,240 --> 00:21:39,020 I've noticed that handsets will not 525 00:21:39,020 --> 00:21:40,360 hand across to the base station 526 00:21:40,360 --> 00:21:43,000 unless the short name of the 527 00:21:43,000 --> 00:21:44,360 network, the network name 528 00:21:45,420 --> 00:21:47,000 is entered case 529 00:21:47,000 --> 00:21:49,140 correctly. So it's 530 00:21:49,140 --> 00:21:51,200 kind of sad when the security of your cell phone 531 00:21:51,200 --> 00:21:52,980 calls comes down to a case sensitive 532 00:21:52,980 --> 00:21:53,780 string comparison. 533 00:21:54,980 --> 00:21:56,560 Not much security there. 534 00:21:58,240 --> 00:21:58,720 So 535 00:22:00,140 --> 00:22:01,000 that's really all 536 00:22:01,000 --> 00:22:03,120 that's involved in spoofing a network. So let's 537 00:22:03,120 --> 00:22:04,480 come over here and actually do it. 538 00:22:05,000 --> 00:22:06,900 Before I do I'm just going to type 539 00:22:07,240 --> 00:22:07,580 my handsies again. 540 00:22:11,760 --> 00:22:12,880 Wow. That's 541 00:22:12,880 --> 00:22:13,840 15 people. 542 00:22:15,120 --> 00:22:17,180 15 handsets are currently connected 543 00:22:17,180 --> 00:22:17,820 to my tower. 544 00:22:18,340 --> 00:22:20,960 And that's without spoofing any cellular network. 545 00:22:21,200 --> 00:22:22,720 So 15 people in this room 546 00:22:22,720 --> 00:22:25,040 are currently having their cellular phone calls 547 00:22:25,040 --> 00:22:26,880 intercepted by me and 548 00:22:26,880 --> 00:22:28,580 MyBTS is not advertising 549 00:22:28,580 --> 00:22:31,080 any known network in the world. 550 00:22:31,280 --> 00:22:32,920 It's in a test mode, it's on a 551 00:22:32,920 --> 00:22:35,120 non-frequency and you're still connecting. 552 00:22:41,100 --> 00:22:42,600 One quick thing. 553 00:22:42,720 --> 00:22:44,300 Raise your hand if you have an iPhone. 554 00:22:45,980 --> 00:22:46,580 Okay. 555 00:22:46,640 --> 00:22:48,460 If you do not have your hand in the air 556 00:22:48,460 --> 00:22:49,620 you're probably not connected 557 00:22:49,620 --> 00:22:50,360 to my network. 558 00:22:51,780 --> 00:22:53,120 In my experience 559 00:22:53,120 --> 00:22:54,960 it's generally the iPhones 560 00:22:54,960 --> 00:22:58,400 that connect most easily. 561 00:22:59,320 --> 00:23:00,400 It's actually been 562 00:23:00,400 --> 00:23:01,900 quite the bane of my existence 563 00:23:01,900 --> 00:23:03,660 trying to keep the damn iPhones 564 00:23:03,660 --> 00:23:04,080 away. 565 00:23:06,020 --> 00:23:07,220 I kid you not. 566 00:23:07,240 --> 00:23:09,420 It's impossible to get rid of 567 00:23:09,420 --> 00:23:09,960 the damn things. 568 00:23:11,880 --> 00:23:13,080 So, okay. 569 00:23:16,600 --> 00:23:18,120 So we have 570 00:23:21,140 --> 00:23:23,040 Oh wow, we now have 30 571 00:23:23,040 --> 00:23:24,020 Timsies in the table. 572 00:23:24,420 --> 00:23:26,280 People are still handing over to this. 573 00:23:26,660 --> 00:23:28,960 So in the few seconds that it took me to explain 574 00:23:28,960 --> 00:23:30,200 why there's 15 people 575 00:23:30,200 --> 00:23:32,240 15 more people connected. 576 00:23:33,100 --> 00:23:33,980 It's insane. 577 00:23:34,260 --> 00:23:35,720 It's really easy to do. 578 00:23:37,240 --> 00:23:39,240 Let's spoof an MNC and an MCC. 579 00:23:39,660 --> 00:23:40,800 So I mentioned the 580 00:23:40,800 --> 00:23:41,560 cell ID command. 581 00:23:44,660 --> 00:23:46,940 So that shows you the MCC, 582 00:23:47,000 --> 00:23:48,840 MNC, location area code 583 00:23:48,840 --> 00:23:49,520 and cell ID. 584 00:23:49,840 --> 00:23:50,900 I can then do 585 00:23:52,140 --> 00:23:53,140 cell ID. 586 00:23:55,840 --> 00:23:57,380 Quick question for the audience. 587 00:23:57,980 --> 00:23:58,860 Raise your hand 588 00:23:58,860 --> 00:24:00,300 if you'd like me to spoof T-Mobile. 589 00:24:02,760 --> 00:24:03,260 Okay. 590 00:24:03,340 --> 00:24:04,920 Raise your hand if you'd like me to spoof 591 00:24:04,920 --> 00:24:05,480 AT&T. 592 00:24:08,700 --> 00:24:09,480 Should have seen 593 00:24:09,480 --> 00:24:10,080 that one coming. 594 00:24:11,580 --> 00:24:11,980 Okay. 595 00:24:13,160 --> 00:24:13,560 So 596 00:24:14,880 --> 00:24:16,040 I'm just going to turn this around. 597 00:24:16,680 --> 00:24:18,860 All I do is I type cell ID 598 00:24:20,500 --> 00:24:21,300 and then 599 00:24:21,300 --> 00:24:22,520 I give it the mobile country code. 600 00:24:22,640 --> 00:24:24,320 Well, we're in the states so our mobile 601 00:24:24,320 --> 00:24:26,280 country code here is 310. 602 00:24:28,660 --> 00:24:29,180 And then 603 00:24:29,180 --> 00:24:30,320 I give it a mobile network code. 604 00:24:30,440 --> 00:24:32,140 Well, AT&T's mobile network code, 605 00:24:32,260 --> 00:24:34,280 they have several but the most common one 606 00:24:34,280 --> 00:24:35,240 that they use is 410. 607 00:24:37,240 --> 00:24:37,680 So I type that in. 608 00:24:38,100 --> 00:24:40,520 And then I'm going to leave the location area code 609 00:24:40,520 --> 00:24:42,680 and the cell ID the same so that's going to be 610 00:24:42,680 --> 00:24:44,220 666 and 10. 611 00:24:47,340 --> 00:24:47,880 That's it. 612 00:24:48,920 --> 00:24:50,820 I'm now spoofing 613 00:24:50,820 --> 00:24:51,500 AT&T. 614 00:24:52,200 --> 00:24:54,760 I could be a little more careful about it. 615 00:24:54,880 --> 00:24:56,800 I can do config. 616 00:25:11,500 --> 00:25:12,360 So here, 617 00:25:13,480 --> 00:25:15,460 the cell ID command here, 618 00:25:16,220 --> 00:25:17,260 310, 410, 619 00:25:17,420 --> 00:25:18,320 666, 10. 620 00:25:18,500 --> 00:25:20,880 That sets my mobile country code and my mobile 621 00:25:20,880 --> 00:25:21,500 network code. 622 00:25:21,720 --> 00:25:23,260 And then this command down here, 623 00:25:23,380 --> 00:25:25,920 config gsm.shortname AT&T. 624 00:25:26,840 --> 00:25:29,440 And as far as your cell phones are concerned, 625 00:25:29,580 --> 00:25:31,080 I am now indistinguishable 626 00:25:31,080 --> 00:25:32,180 from AT&T. 627 00:25:33,400 --> 00:25:33,960 So 628 00:25:33,960 --> 00:25:34,380 . 629 00:25:40,360 --> 00:25:41,420 The question was 630 00:25:41,420 --> 00:25:42,540 how long does it take to hand over? 631 00:25:42,680 --> 00:25:44,260 That's kind of the point of the talk 632 00:25:44,260 --> 00:25:45,000 in all honesty. 633 00:25:45,760 --> 00:25:46,680 From this point, 634 00:25:47,600 --> 00:25:48,680 so at this point, 635 00:25:48,740 --> 00:25:50,180 we have an IMSI catcher. 636 00:25:51,120 --> 00:25:53,400 I can sit here and over the next 637 00:25:53,400 --> 00:25:54,820 20 minutes, half an hour, 638 00:25:54,900 --> 00:25:56,980 every AT&T cell phone in the room 639 00:25:56,980 --> 00:25:58,740 will gradually hand over to my network, 640 00:25:58,920 --> 00:26:00,800 gradually start giving me audio traffic. 641 00:26:01,880 --> 00:26:03,340 So from this point on, 642 00:26:03,340 --> 00:26:04,120 the only question becomes 643 00:26:04,120 --> 00:26:07,020 how can we make phones hand over more rapidly? 644 00:26:07,760 --> 00:26:08,840 In practice, 645 00:26:09,380 --> 00:26:11,080 it might sit here for an hour 646 00:26:11,080 --> 00:26:12,160 before, you know, 647 00:26:12,180 --> 00:26:15,120 any significant number of phones connect. 648 00:26:15,460 --> 00:26:16,960 So we want some 649 00:26:16,960 --> 00:26:18,320 techniques to speed it up. 650 00:26:19,660 --> 00:26:20,980 So at this point, 651 00:26:21,020 --> 00:26:23,180 we do have a simple IMSI catcher. 652 00:26:23,200 --> 00:26:24,520 We're spoofing a cellular network. 653 00:26:24,800 --> 00:26:27,500 Clearly handsets in the audience are handing across to me. 654 00:26:27,680 --> 00:26:29,460 Has anyone actually tried to make a call 655 00:26:29,460 --> 00:26:31,720 and hear the recorded warning message yet? 656 00:26:32,180 --> 00:26:33,080 One here, 657 00:26:33,340 --> 00:26:34,520 another at the back, 658 00:26:34,580 --> 00:26:35,200 another over here. 659 00:26:37,240 --> 00:26:38,000 You guys are handing over, 660 00:26:38,140 --> 00:26:39,540 you're connecting to my network, 661 00:26:39,780 --> 00:26:41,600 I'm getting all of your traffic. 662 00:26:42,920 --> 00:26:44,700 So how do we filter this down? 663 00:26:45,040 --> 00:26:46,100 Well, firstly, 664 00:26:46,660 --> 00:26:48,080 I now know your IMSIs, 665 00:26:48,760 --> 00:26:50,720 so I can filter based on IMSI. 666 00:26:50,800 --> 00:26:52,900 If I know the IMSI of the specific person 667 00:26:52,900 --> 00:26:53,660 that I want to target, 668 00:26:53,860 --> 00:26:56,140 I can exclude everyone but that IMSI. 669 00:26:56,580 --> 00:26:58,440 Likewise, I can do the same with the IMEI, 670 00:26:58,680 --> 00:27:00,200 which is the equipment serial number, 671 00:27:00,320 --> 00:27:01,060 the equipment identifier. 672 00:27:01,740 --> 00:27:04,680 I can say, only allow Nokias to connect 673 00:27:04,680 --> 00:27:06,280 or only allow iPhones to connect. 674 00:27:07,240 --> 00:27:08,860 You can't quite get it down to that level of granularity, 675 00:27:08,940 --> 00:27:11,140 but you can say this particular IMEI 676 00:27:11,140 --> 00:27:13,200 is allowed to connect, and nobody else is. 677 00:27:13,580 --> 00:27:15,380 So I could restrict it down 678 00:27:15,380 --> 00:27:16,740 to a limited set by 679 00:27:17,320 --> 00:27:18,520 various different parameters. 680 00:27:19,980 --> 00:27:20,900 As I mentioned, 681 00:27:21,140 --> 00:27:23,140 it takes time for people to migrate across. 682 00:27:23,500 --> 00:27:24,560 We can make it faster, 683 00:27:24,700 --> 00:27:26,380 and I'm going to talk about some techniques for that in a sec. 684 00:27:26,580 --> 00:27:29,420 One major limitation that this current system has, 685 00:27:29,580 --> 00:27:31,740 it only intercepts outbound calls. 686 00:27:32,120 --> 00:27:33,640 So when you're attached to my tower, 687 00:27:33,860 --> 00:27:36,400 as far as T-Mobile, AT&T is concerned, 688 00:27:36,640 --> 00:27:37,220 you're fine 689 00:27:37,240 --> 00:27:37,880 because your phone is off. 690 00:27:38,060 --> 00:27:39,040 It has no signal. 691 00:27:39,340 --> 00:27:41,320 It's just not there 692 00:27:41,320 --> 00:27:43,540 because you're not connected to one of their towers. 693 00:27:43,860 --> 00:27:44,980 So when a call comes in, 694 00:27:45,060 --> 00:27:46,320 it'll just go straight to your voicemail. 695 00:27:47,060 --> 00:27:48,940 We can get around this. 696 00:27:48,980 --> 00:27:49,880 I'll come back to that. 697 00:27:50,000 --> 00:27:50,640 But for the moment, 698 00:27:50,700 --> 00:27:53,460 we've got outbound calls getting recorded. 699 00:27:55,620 --> 00:27:57,420 So how do we speed up handover? 700 00:27:58,320 --> 00:28:00,140 We don't want to be sitting here all day 701 00:28:00,140 --> 00:28:02,240 watching everyone's phones hand over. 702 00:28:02,460 --> 00:28:04,460 So what techniques have we got 703 00:28:04,460 --> 00:28:05,920 to speed up that process? 704 00:28:07,240 --> 00:28:08,200 Well, there's actually a few. 705 00:28:09,060 --> 00:28:10,280 Neighbor lists, changing lag, 706 00:28:10,420 --> 00:28:11,420 band jamming, receive gain. 707 00:28:11,620 --> 00:28:13,020 I'm going to talk about all of these individually. 708 00:28:13,920 --> 00:28:15,940 Some of them I'll demo, some of them I won't. 709 00:28:16,300 --> 00:28:18,660 But there's lots of different ways to do it. 710 00:28:19,940 --> 00:28:21,060 The first one is 711 00:28:21,060 --> 00:28:21,860 GSM neighbors. 712 00:28:22,200 --> 00:28:25,340 So each tower, each GSM tower, 713 00:28:26,300 --> 00:28:26,740 when 714 00:28:27,220 --> 00:28:28,760 a phone connects to it, 715 00:28:28,880 --> 00:28:30,840 the phone will retrieve from it 716 00:28:30,840 --> 00:28:32,180 a list of neighbors. 717 00:28:32,440 --> 00:28:33,680 And what that means is 718 00:28:33,680 --> 00:28:36,440 each GSM base station 719 00:28:36,440 --> 00:28:38,040 is on a specific channel, obviously. 720 00:28:39,440 --> 00:28:41,160 The base station will say 721 00:28:41,160 --> 00:28:42,700 there are base stations nearby 722 00:28:42,700 --> 00:28:44,620 on these other channels. 723 00:28:45,300 --> 00:28:46,640 And what your phone will do 724 00:28:46,640 --> 00:28:47,940 is it will take that list of neighbors 725 00:28:47,940 --> 00:28:50,160 and it will monitor all of those channels 726 00:28:50,160 --> 00:28:51,200 and it will keep watching 727 00:28:51,200 --> 00:28:54,280 the signal strength on all those neighboring towers. 728 00:28:54,580 --> 00:28:56,240 And when one of those neighboring towers 729 00:28:56,240 --> 00:28:58,000 becomes a stronger signal, 730 00:28:58,180 --> 00:28:58,960 it'll hand over. 731 00:29:01,400 --> 00:29:03,120 So how can we use this 732 00:29:03,120 --> 00:29:03,660 to our advantage? 733 00:29:03,680 --> 00:29:05,900 Well, all we need to do 734 00:29:05,900 --> 00:29:07,340 is we know that 735 00:29:07,340 --> 00:29:09,120 the cell phone is going to be monitoring 736 00:29:09,120 --> 00:29:10,160 these neighboring frequencies. 737 00:29:10,380 --> 00:29:12,520 So if we do a survey of the local area 738 00:29:12,520 --> 00:29:14,500 and find out what neighbors are around, 739 00:29:15,060 --> 00:29:16,700 we can then compare that to 740 00:29:16,700 --> 00:29:19,540 what frequencies the phone can actually see, 741 00:29:20,100 --> 00:29:21,720 what towers it can connect to 742 00:29:21,720 --> 00:29:22,300 and whatever. 743 00:29:22,540 --> 00:29:24,700 And eventually we can find a channel 744 00:29:24,700 --> 00:29:26,880 that is advertised as a neighbor 745 00:29:26,880 --> 00:29:29,160 but perhaps is on the other side of the tower. 746 00:29:29,280 --> 00:29:30,580 So you can't actually see it from here. 747 00:29:30,880 --> 00:29:32,500 So I can put up my tower 748 00:29:33,680 --> 00:29:35,860 that I know your phones are listening to 749 00:29:35,860 --> 00:29:38,180 and that I know there isn't a tower there 750 00:29:38,180 --> 00:29:39,720 so that, you know, 751 00:29:39,720 --> 00:29:41,600 the moment that base station pops up 752 00:29:41,600 --> 00:29:42,340 your phones are all going to go, 753 00:29:42,400 --> 00:29:44,440 oh, okay, we must have driven down the street 754 00:29:44,440 --> 00:29:45,560 and this tower is now closer 755 00:29:45,560 --> 00:29:46,940 so I'll just hand over to it. 756 00:29:48,280 --> 00:29:49,560 So how do we do this? 757 00:29:51,660 --> 00:29:52,820 It's actually pretty easy. 758 00:29:53,300 --> 00:29:54,760 You get a Nokia 759 00:29:56,100 --> 00:29:57,400 DCT4 phone, I believe. 760 00:29:57,840 --> 00:29:59,260 The 3310 does 761 00:29:59,260 --> 00:30:01,140 the two European bands. 762 00:30:01,300 --> 00:30:03,200 The 3390 does at least one 763 00:30:03,680 --> 00:30:04,220 of the US bands. 764 00:30:05,160 --> 00:30:07,400 What these do is they support a thing called 765 00:30:07,400 --> 00:30:08,400 network monitor mode. 766 00:30:08,660 --> 00:30:10,960 And what network monitor does is it effectively 767 00:30:11,540 --> 00:30:13,260 dumps a log of every GSM 768 00:30:13,260 --> 00:30:15,000 thing that the cell phone does. 769 00:30:15,280 --> 00:30:17,320 Every packet that it sends to the base station, 770 00:30:17,500 --> 00:30:19,780 every burst that it receives from the base station, 771 00:30:19,920 --> 00:30:21,520 everything, every single thing 772 00:30:21,520 --> 00:30:22,860 that that cell phone does gets logged. 773 00:30:23,320 --> 00:30:24,880 Doesn't allow you to interact with it, 774 00:30:24,940 --> 00:30:26,220 doesn't allow you to control it, 775 00:30:26,340 --> 00:30:29,180 beyond what you can do on the handset already, 776 00:30:29,420 --> 00:30:31,540 but it does at least give you very, very detailed 777 00:30:31,540 --> 00:30:33,380 insight into what your phone sees 778 00:30:33,680 --> 00:30:35,540 on the GSM network. 779 00:30:36,680 --> 00:30:37,640 So you get 780 00:30:37,640 --> 00:30:38,260 one of these phones, 781 00:30:38,520 --> 00:30:41,240 you get near a special F bus, M bus 782 00:30:41,240 --> 00:30:43,360 switching cable and a program called 783 00:30:43,360 --> 00:30:43,740 GAMU. 784 00:30:46,600 --> 00:30:47,320 GAMU is 785 00:30:47,320 --> 00:30:49,260 open source, it connects to the 786 00:30:49,260 --> 00:30:50,540 phone over this cable 787 00:30:50,540 --> 00:30:53,500 and just dumps out a trace in XML 788 00:30:53,500 --> 00:30:55,460 which you can open up in Wireshark. 789 00:30:56,200 --> 00:30:57,540 I was going to 790 00:30:57,540 --> 00:30:58,740 demo it but my 791 00:30:59,600 --> 00:31:01,440 3390 has gone wandering 792 00:31:01,440 --> 00:31:03,540 so what I'm going to do instead 793 00:31:03,680 --> 00:31:05,840 is just show you what the traffic 794 00:31:05,840 --> 00:31:06,420 looks like. 795 00:31:16,400 --> 00:31:17,460 So this is a 796 00:31:17,460 --> 00:31:19,240 capture that I recorded last night. 797 00:31:19,460 --> 00:31:21,420 This was of a handset connecting 798 00:31:21,420 --> 00:31:23,220 to T-Mobile and 799 00:31:23,220 --> 00:31:25,620 I actually caught it only part way through the boot 800 00:31:25,620 --> 00:31:27,840 sequence so there's a bunch of traffic 801 00:31:27,840 --> 00:31:29,860 that was hanging off the top here. 802 00:31:30,060 --> 00:31:31,480 But you can see you've got 803 00:31:31,480 --> 00:31:33,660 all of the various GSM messages 804 00:31:33,680 --> 00:31:35,780 in here and if I 805 00:31:35,780 --> 00:31:37,560 click on the right packet 806 00:31:39,680 --> 00:31:40,860 let's try 807 00:31:41,920 --> 00:31:43,400 system information 808 00:31:43,400 --> 00:31:44,860 type 2 809 00:31:45,300 --> 00:31:46,840 which is that one 810 00:31:50,000 --> 00:31:51,280 you can see 811 00:31:51,280 --> 00:31:52,840 Wireshark breaks it down nicely 812 00:31:53,680 --> 00:31:55,420 and within 813 00:31:55,420 --> 00:31:56,880 this packet 814 00:31:57,580 --> 00:31:59,540 it actually says 815 00:32:02,020 --> 00:32:03,520 here's my list of neighbors. 816 00:32:04,680 --> 00:32:05,560 So literally 817 00:32:05,560 --> 00:32:07,840 you just take this phone, you turn it on 818 00:32:07,840 --> 00:32:09,440 you connect the cable, you run GAMU 819 00:32:09,440 --> 00:32:11,280 and then you look at the Wireshark trace 820 00:32:11,280 --> 00:32:13,560 and you've got a list of channels, you then compare 821 00:32:13,560 --> 00:32:15,540 that, you know, just literally turn a radio receiver 822 00:32:15,540 --> 00:32:17,520 on to each of those channels and see if you get a signal 823 00:32:17,520 --> 00:32:19,200 on them. It's not hard 824 00:32:19,200 --> 00:32:21,120 and using this you can find 825 00:32:21,120 --> 00:32:23,040 an advertised neighbor 826 00:32:23,840 --> 00:32:25,540 that's not actually in use in the local 827 00:32:25,540 --> 00:32:27,560 area and speed off handoffs by 828 00:32:27,560 --> 00:32:28,900 taking advantage of that. 829 00:32:29,220 --> 00:32:31,480 Now I'm not actually going to demonstrate that today 830 00:32:31,480 --> 00:32:33,600 because that would require me to 831 00:32:33,680 --> 00:32:35,340 transmit on an 832 00:32:35,340 --> 00:32:37,280 AT&T frequency and I 833 00:32:37,280 --> 00:32:39,440 don't want to do that. Certainly 834 00:32:39,440 --> 00:32:41,160 an attacker would have no such compulsion 835 00:32:41,160 --> 00:32:43,580 and could easily take advantage of this 836 00:32:43,580 --> 00:32:44,940 to his benefit. 837 00:32:47,460 --> 00:32:48,880 So we can find GSM neighbors 838 00:32:48,880 --> 00:32:50,520 and we can take advantage of that. 839 00:32:51,700 --> 00:32:53,500 Another way to speed off handoffs 840 00:32:53,500 --> 00:32:55,480 is the location area code. 841 00:32:56,200 --> 00:32:57,380 The idea of 842 00:32:57,380 --> 00:32:59,600 the LAC is it groups together 843 00:32:59,600 --> 00:33:00,640 a bunch of cells 844 00:33:00,640 --> 00:33:03,580 so you'll have a whole bunch of cells 845 00:33:03,680 --> 00:33:05,740 in one specific area 846 00:33:05,740 --> 00:33:07,860 that advertise the same LAC 847 00:33:07,860 --> 00:33:09,440 and in general 848 00:33:09,440 --> 00:33:11,580 those will go to the same 849 00:33:11,580 --> 00:33:13,500 higher level controllers as well 850 00:33:13,500 --> 00:33:15,780 but what happens is 851 00:33:15,780 --> 00:33:17,240 when the phone is 852 00:33:17,240 --> 00:33:18,840 monitoring all of these neighbors 853 00:33:18,840 --> 00:33:20,800 and if it just sees another tower 854 00:33:20,800 --> 00:33:23,000 or whatever reason it is to 855 00:33:23,380 --> 00:33:25,740 look at that secondary tower that it's seen 856 00:33:27,000 --> 00:33:27,960 it'll see 857 00:33:27,960 --> 00:33:29,440 that if that tower is 858 00:33:29,440 --> 00:33:31,540 advertising a different location area 859 00:33:31,540 --> 00:33:33,660 code, that means that the cell phone is moving 860 00:33:33,680 --> 00:33:35,980 at least as far as the cell phone is concerned 861 00:33:35,980 --> 00:33:37,520 and if the cell phone's moved 862 00:33:37,520 --> 00:33:38,820 and it's moved into a new area 863 00:33:38,820 --> 00:33:40,260 then it should really do a handoff. 864 00:33:41,740 --> 00:33:43,540 So from OpenBTS here 865 00:33:43,540 --> 00:33:45,780 I have complete control over the LAC 866 00:33:46,340 --> 00:33:47,520 so I can just 867 00:33:47,520 --> 00:33:48,940 change the LAC 868 00:33:48,940 --> 00:33:50,500 and everyone's phone will go 869 00:33:50,500 --> 00:33:51,820 oh hey, LAC's changed 870 00:33:51,820 --> 00:33:53,640 we must have driven 50 miles down the road 871 00:33:53,640 --> 00:33:54,800 let's hand off to the new tower. 872 00:33:56,240 --> 00:33:58,040 So the more you change the LAC 873 00:33:58,040 --> 00:33:59,680 you can keep rolling the LAC 874 00:33:59,680 --> 00:34:02,640 every few minutes just to entice more handsets 875 00:34:03,680 --> 00:34:05,860 it's not particularly difficult to do 876 00:34:05,860 --> 00:34:07,700 I'll give you a quick demo of it 877 00:34:08,400 --> 00:34:09,320 first up 878 00:34:09,320 --> 00:34:11,500 let's see how many handsets 879 00:34:11,500 --> 00:34:13,820 so before we started spoofing 880 00:34:13,820 --> 00:34:14,700 AT&T 881 00:34:14,700 --> 00:34:16,920 we had about 30 handsets connected 882 00:34:17,680 --> 00:34:19,720 now that I've got AT&T's 883 00:34:19,720 --> 00:34:21,900 network name, MNC and MCC 884 00:34:21,900 --> 00:34:23,800 let's see how many handsets 885 00:34:23,800 --> 00:34:24,800 we have connected now 886 00:34:29,300 --> 00:34:29,900 24 887 00:34:31,440 --> 00:34:33,380 don't quite know how that went down 888 00:34:34,080 --> 00:34:35,320 Timsies do timeout 889 00:34:36,100 --> 00:34:37,560 so another command 890 00:34:37,560 --> 00:34:39,540 that I can try is load 891 00:34:43,600 --> 00:34:45,360 and this is telling me 892 00:34:46,560 --> 00:34:47,740 oh this is telling me 893 00:34:47,740 --> 00:34:49,300 that there's 24 Timsies in use as well 894 00:34:49,300 --> 00:34:51,900 so not too sure what's going on there 895 00:34:51,900 --> 00:34:52,720 but we've certainly got 896 00:34:52,720 --> 00:34:54,500 a bunch of handsets connected 897 00:34:54,500 --> 00:34:57,020 and then we can use the cell ID command again 898 00:34:57,020 --> 00:34:59,380 to roll the location area code 899 00:35:04,500 --> 00:35:05,720 I'm just going to turn this around 900 00:35:05,720 --> 00:35:06,980 a second so I can actually see 901 00:35:13,140 --> 00:35:15,800 so my location area code was 666 902 00:35:15,800 --> 00:35:17,280 I guess I should change that to 903 00:35:17,980 --> 00:35:18,380 31337 904 00:35:20,380 --> 00:35:21,460 and I keep the 905 00:35:21,460 --> 00:35:22,320 cell ID at 10 906 00:35:22,320 --> 00:35:24,060 in fact I'll change the cell ID as well 907 00:35:24,060 --> 00:35:26,540 just so that the handsets know 908 00:35:26,540 --> 00:35:27,600 it's a new tower 909 00:35:29,640 --> 00:35:30,900 and it's that hard 910 00:35:31,620 --> 00:35:32,800 that's how to roll the LAC 911 00:35:33,900 --> 00:35:36,180 not a complex operation at all 912 00:35:36,860 --> 00:35:37,640 and then 913 00:35:37,640 --> 00:35:38,560 like I say 914 00:35:38,560 --> 00:35:40,420 that will encourage handsets to 915 00:35:40,420 --> 00:35:43,120 believe that they've changed location 916 00:35:43,500 --> 00:35:45,080 and that should entice more handsets 917 00:35:45,080 --> 00:35:46,680 to camp across to the new network 918 00:35:48,660 --> 00:35:49,960 we'll come back to that 919 00:35:49,960 --> 00:35:51,860 when we do the next stage 920 00:35:51,860 --> 00:35:53,160 and we'll see how successful that was 921 00:35:54,080 --> 00:35:54,600 so 922 00:35:55,800 --> 00:35:58,020 what happens when the handset turns on 923 00:35:58,020 --> 00:35:59,360 how does the handset 924 00:35:59,360 --> 00:36:01,340 first find its very first tower 925 00:36:02,440 --> 00:36:03,560 obviously when it 926 00:36:03,680 --> 00:36:04,500 boots up it knows nothing 927 00:36:04,500 --> 00:36:06,020 it doesn't know where it is 928 00:36:06,020 --> 00:36:07,480 it doesn't know what frequency it's on 929 00:36:07,480 --> 00:36:10,260 it doesn't have any neighbors to look for 930 00:36:10,260 --> 00:36:11,340 it doesn't know the current LAC 931 00:36:11,340 --> 00:36:12,400 nothing like that 932 00:36:12,400 --> 00:36:14,560 so it does a very very long scan 933 00:36:14,560 --> 00:36:15,820 over the entire band 934 00:36:16,720 --> 00:36:18,620 and whatever towers it finds 935 00:36:21,040 --> 00:36:23,300 it checks the MNC and the NCC 936 00:36:23,300 --> 00:36:24,420 tries to make sure that 937 00:36:24,420 --> 00:36:26,840 those are allowed networks based on 938 00:36:26,840 --> 00:36:28,720 what the SIM card will actually connect to 939 00:36:28,720 --> 00:36:30,560 and then the signal strength as well 940 00:36:30,560 --> 00:36:32,620 and it'll just connect to the strongest tower 941 00:36:33,680 --> 00:36:34,740 when it starts finding some towers 942 00:36:34,740 --> 00:36:36,880 it limits the size of that scan 943 00:36:36,880 --> 00:36:38,400 it performs a much smaller scan 944 00:36:38,400 --> 00:36:40,820 much more rapidly because it has some information 945 00:36:40,820 --> 00:36:42,960 about what bands are in use 946 00:36:42,960 --> 00:36:44,180 what towers are in use 947 00:36:44,180 --> 00:36:45,500 what channels to look for 948 00:36:45,500 --> 00:36:46,760 all this kind of stuff 949 00:36:48,060 --> 00:36:50,160 so an attacker can actually use this 950 00:36:50,160 --> 00:36:51,040 to his advantage 951 00:36:51,760 --> 00:36:54,380 because if you DOS the cell phone system 952 00:36:55,080 --> 00:36:58,000 in order to make people lose signal 953 00:36:58,000 --> 00:36:59,580 when those handsets 954 00:36:59,580 --> 00:37:00,620 connect back up again 955 00:37:01,200 --> 00:37:03,100 they're going to perform this 956 00:37:03,680 --> 00:37:06,420 much wider band scan 957 00:37:06,420 --> 00:37:08,580 and have a much higher chance 958 00:37:08,580 --> 00:37:10,720 of connecting to the attacker's tower 959 00:37:11,960 --> 00:37:13,640 so how can we do this? 960 00:37:15,360 --> 00:37:16,720 well first off 961 00:37:16,720 --> 00:37:17,520 we're only talking about 962 00:37:17,520 --> 00:37:19,000 second generation GSM 963 00:37:19,000 --> 00:37:19,760 2G 964 00:37:19,760 --> 00:37:21,920 3G has much better security 965 00:37:21,920 --> 00:37:23,600 much much much better security 966 00:37:23,600 --> 00:37:26,480 so if we jam the GSM band 967 00:37:26,480 --> 00:37:28,440 then when we turn the jammer off 968 00:37:28,440 --> 00:37:30,340 your handset is going to perform 969 00:37:30,340 --> 00:37:31,180 a wider search 970 00:37:31,180 --> 00:37:33,660 it's going to perform a slightly slower search 971 00:37:33,680 --> 00:37:36,420 bit more chance of finding the tower 972 00:37:36,420 --> 00:37:37,400 however 973 00:37:37,400 --> 00:37:38,500 if you're on 3G 974 00:37:39,280 --> 00:37:40,700 there's really nothing I can do 975 00:37:40,700 --> 00:37:43,960 the 3G protocols are much much stronger than GSM 976 00:37:43,960 --> 00:37:46,580 and it's a lot harder to intercept 977 00:37:46,580 --> 00:37:47,520 a 3G phone call 978 00:37:47,520 --> 00:37:50,520 so we really don't want people using 3G 979 00:37:50,520 --> 00:37:52,160 if we're trying to intercept phone calls 980 00:37:52,160 --> 00:37:53,600 so what we have to do is 981 00:37:53,600 --> 00:37:55,080 jam the 3G bands 982 00:37:55,080 --> 00:37:56,640 if we jam the 3G band 983 00:37:57,240 --> 00:37:59,220 your phones lose the ability to connect 984 00:37:59,220 --> 00:37:59,960 to a 3G tower 985 00:37:59,960 --> 00:38:02,940 and they quite happily drop down to 2G 986 00:38:03,680 --> 00:38:05,360 so all you have to do 987 00:38:05,360 --> 00:38:06,460 literally is 988 00:38:06,460 --> 00:38:07,520 broadcast noise 989 00:38:07,520 --> 00:38:11,540 and block the ability to talk to 3G 990 00:38:11,540 --> 00:38:13,480 at which point everyone drops down 991 00:38:13,480 --> 00:38:15,160 to 2G in plain text 992 00:38:15,160 --> 00:38:15,760 it's like saying 993 00:38:15,760 --> 00:38:18,380 well if you can't connect to port 22 994 00:38:18,380 --> 00:38:20,720 then just fail over to port 23 995 00:38:23,580 --> 00:38:24,180 seriously 996 00:38:24,180 --> 00:38:26,140 you can think of 3G as 997 00:38:26,140 --> 00:38:28,180 equivalent to SSH 998 00:38:28,180 --> 00:38:30,540 and GSM as equivalent to Telnet 999 00:38:30,540 --> 00:38:31,120 in this situation 1000 00:38:33,680 --> 00:38:34,060 here's an accurate analogy 1001 00:38:34,060 --> 00:38:36,320 to say that if you can't connect to the SSH port 1002 00:38:36,320 --> 00:38:37,380 just drop down to Telnet 1003 00:38:38,060 --> 00:38:41,260 that's effectively how cell phones work in this situation 1004 00:38:42,420 --> 00:38:43,560 so the question is 1005 00:38:43,560 --> 00:38:44,780 how hard is it 1006 00:38:44,780 --> 00:38:46,520 to jam a cellular band 1007 00:38:49,340 --> 00:38:50,340 really not very 1008 00:38:51,560 --> 00:38:53,140 all you need to do really 1009 00:38:53,650 --> 00:38:54,680 is transmit noise 1010 00:38:55,600 --> 00:38:57,120 and when I say noise 1011 00:38:57,120 --> 00:38:58,540 I mean a very specific thing 1012 00:38:58,540 --> 00:39:01,340 I don't just mean randomness 1013 00:39:01,340 --> 00:39:03,500 I mean completely flat 1014 00:39:04,340 --> 00:39:05,500 spectral noise 1015 00:39:05,500 --> 00:39:07,000 such that there is 1016 00:39:07,000 --> 00:39:09,820 equal amounts of power in each octave 1017 00:39:09,820 --> 00:39:11,480 and it's a nice 1018 00:39:11,480 --> 00:39:13,240 flat spectrum and it makes sure 1019 00:39:13,240 --> 00:39:14,560 to cover the entire band 1020 00:39:14,560 --> 00:39:15,920 cover every channel 1021 00:39:17,340 --> 00:39:19,140 effectively what we're doing is 1022 00:39:19,140 --> 00:39:20,520 instead of removing 1023 00:39:20,520 --> 00:39:22,200 the tower completely 1024 00:39:22,200 --> 00:39:25,180 we're just removing the ability to see the tower 1025 00:39:25,180 --> 00:39:27,240 we're masking that with noise 1026 00:39:28,200 --> 00:39:29,300 noise generators 1027 00:39:29,300 --> 00:39:31,100 really aren't very expensive 1028 00:39:32,240 --> 00:39:33,660 I have one over here 1029 00:39:34,860 --> 00:39:35,420 little 1030 00:39:36,460 --> 00:39:37,300 little thing 1031 00:39:40,480 --> 00:39:43,440 if I can do this without squishing my ninja badge 1032 00:39:43,440 --> 00:39:46,000 no it's all good 1033 00:39:46,000 --> 00:39:47,400 so this is a 1034 00:39:47,400 --> 00:39:48,720 this is a noise generator 1035 00:39:48,720 --> 00:39:51,100 this was $450 on eBay 1036 00:39:51,680 --> 00:39:53,140 and if I 1037 00:39:53,140 --> 00:39:54,920 connect this to a power amplifier 1038 00:39:54,920 --> 00:39:57,400 and I have a power amplifier upstairs 1039 00:39:57,400 --> 00:39:59,460 and then connect the power amplifier 1040 00:39:59,460 --> 00:40:00,260 into an antenna 1041 00:40:00,260 --> 00:40:02,680 and I have antennas clearly 1042 00:40:03,680 --> 00:40:04,500 if I turn that on 1043 00:40:06,480 --> 00:40:08,520 that's rather a large disruption 1044 00:40:08,520 --> 00:40:09,460 to cell phone service 1045 00:40:09,460 --> 00:40:10,900 I can 1046 00:40:10,900 --> 00:40:12,220 I mean 1047 00:40:12,220 --> 00:40:15,080 the noise generator itself was 1048 00:40:15,080 --> 00:40:17,840 as it says $450 on eBay 1049 00:40:17,840 --> 00:40:20,220 the power amp was $400 on eBay 1050 00:40:20,220 --> 00:40:21,800 not on eBay 1051 00:40:21,800 --> 00:40:23,120 on the internet at least 1052 00:40:23,380 --> 00:40:24,260 that's 100 watts 1053 00:40:24,260 --> 00:40:26,940 100 watts of wide band noise 1054 00:40:26,940 --> 00:40:29,840 is a huge huge huge 1055 00:40:29,840 --> 00:40:30,520 disruption 1056 00:40:30,520 --> 00:40:31,240 so 1057 00:40:33,680 --> 00:40:34,640 this is what it looks like 1058 00:40:34,640 --> 00:40:38,060 this particular noise generator has two modes 1059 00:40:38,060 --> 00:40:41,060 it has one for the 900 megahertz bands 1060 00:40:41,060 --> 00:40:43,360 and one for the 1900 megahertz bands 1061 00:40:43,360 --> 00:40:45,380 so what you're looking at here is 1062 00:40:45,380 --> 00:40:48,100 the trace from a spectrum analyzer 1063 00:40:48,100 --> 00:40:50,080 the lowest frequency 1064 00:40:50,080 --> 00:40:51,340 on the left 1065 00:40:51,340 --> 00:40:52,100 is about 1066 00:40:53,060 --> 00:40:54,260 500 megahertz 1067 00:40:54,260 --> 00:40:57,720 and the highest frequency on the right is 2.5 gigahertz 1068 00:40:57,720 --> 00:40:59,820 and then as the line goes up 1069 00:40:59,820 --> 00:41:01,280 there's obviously more power 1070 00:41:01,280 --> 00:41:03,160 at whatever frequency that corresponds to 1071 00:41:03,680 --> 00:41:04,780 so you can see on the left 1072 00:41:05,680 --> 00:41:07,180 we've got a really big 1073 00:41:07,180 --> 00:41:08,720 fat block 1074 00:41:09,420 --> 00:41:10,960 around 900 megahertz 1075 00:41:10,960 --> 00:41:13,240 that is effectively this thing 1076 00:41:13,240 --> 00:41:15,660 transmitting on every possible frequency 1077 00:41:15,660 --> 00:41:17,520 in every possible 1078 00:41:17,520 --> 00:41:18,820 you know channel 1079 00:41:18,820 --> 00:41:21,340 between about 850 and 1080 00:41:21,340 --> 00:41:22,620 950 megahertz 1081 00:41:22,620 --> 00:41:24,800 turn that thing on and yeah 1082 00:41:25,540 --> 00:41:27,560 850 and 950 just stops working 1083 00:41:27,560 --> 00:41:29,740 likewise in 1900 mode 1084 00:41:29,740 --> 00:41:30,900 you can see again 1085 00:41:30,900 --> 00:41:33,300 the major peak is a little further over 1086 00:41:34,700 --> 00:41:35,140 it's 1087 00:41:35,680 --> 00:41:37,520 pretty clear that this does 1088 00:41:37,520 --> 00:41:38,400 what we need it to do 1089 00:41:39,900 --> 00:41:41,160 so what happens 1090 00:41:41,160 --> 00:41:42,360 when you jam a cellular band 1091 00:41:42,360 --> 00:41:44,980 what happens when I turn this thing on 1092 00:41:44,980 --> 00:41:47,760 and broadcast 100 watts 1093 00:41:47,760 --> 00:41:48,160 of noise 1094 00:41:50,340 --> 00:41:51,720 of course I haven't 1095 00:41:51,720 --> 00:41:52,920 done it, I'm not stupid 1096 00:41:54,160 --> 00:41:55,660 if you were to do this 1097 00:41:55,660 --> 00:41:57,400 if I was to plug this thing into 1098 00:41:57,400 --> 00:41:58,820 my 100 watt power amplifier 1099 00:41:58,820 --> 00:42:00,980 and I was to connect it to an antenna 1100 00:42:00,980 --> 00:42:02,200 and turn the whole thing on 1101 00:42:03,680 --> 00:42:04,500 it would probably knock out 1102 00:42:04,500 --> 00:42:07,020 GSM, CDMA, 3G, Verizon 1103 00:42:07,580 --> 00:42:09,340 you know pretty much every cell phone 1104 00:42:09,340 --> 00:42:11,320 service there is for most of 1105 00:42:11,320 --> 00:42:11,840 Las Vegas 1106 00:42:14,300 --> 00:42:15,640 if not further 1107 00:42:21,220 --> 00:42:23,300 so yeah I'm not 1108 00:42:23,300 --> 00:42:24,400 turning this thing on 1109 00:42:25,420 --> 00:42:27,020 the main reason that I have this 1110 00:42:27,020 --> 00:42:28,960 is because it's a fabulously useful 1111 00:42:28,960 --> 00:42:29,920 piece of test equipment 1112 00:42:29,920 --> 00:42:31,980 if you're trying to classify filters 1113 00:42:33,680 --> 00:42:34,780 you can put band noise into a filter 1114 00:42:34,780 --> 00:42:36,140 and as long as it's nice and smooth 1115 00:42:36,140 --> 00:42:37,860 you can compare what comes out 1116 00:42:37,860 --> 00:42:40,800 and very very accurately characterize your filter 1117 00:42:41,480 --> 00:42:42,520 that's what I use this for 1118 00:42:42,520 --> 00:42:43,920 not for DOS 1119 00:42:44,500 --> 00:42:46,560 the thing about band jamming 1120 00:42:46,560 --> 00:42:48,300 is that there is no way to defend 1121 00:42:48,300 --> 00:42:50,440 it's impossible, cannot be done 1122 00:42:50,440 --> 00:42:53,180 short of swamping it with 1123 00:42:53,180 --> 00:42:54,380 more and more power 1124 00:42:54,900 --> 00:42:56,680 you do only need a short burst 1125 00:42:56,680 --> 00:42:58,980 few seconds but it's still way way way 1126 00:42:58,980 --> 00:43:00,940 too offensive for what I'm doing here 1127 00:43:01,460 --> 00:43:03,280 so as I said 100 watt of amplifier 1128 00:43:03,680 --> 00:43:04,680 and a reasonable antenna 1129 00:43:04,680 --> 00:43:06,200 would probably knock out 1130 00:43:06,200 --> 00:43:07,580 Las Vegas cell phone systems 1131 00:43:07,580 --> 00:43:11,880 so another technique that we can use 1132 00:43:11,880 --> 00:43:13,500 to make handsets 1133 00:43:13,500 --> 00:43:14,400 hand over 1134 00:43:15,200 --> 00:43:17,720 there's a command that the BTS can send 1135 00:43:17,720 --> 00:43:19,040 the handset that basically says 1136 00:43:19,620 --> 00:43:21,540 treat my signal as if it was 1137 00:43:21,540 --> 00:43:23,120 stronger than it actually is 1138 00:43:24,360 --> 00:43:25,400 meaning that 1139 00:43:25,400 --> 00:43:27,040 if I just 1140 00:43:27,400 --> 00:43:28,120 let's say 1141 00:43:28,120 --> 00:43:30,300 on a scale of 1142 00:43:30,300 --> 00:43:32,540 plus 50 to minus 100 1143 00:43:35,380 --> 00:43:37,720 anyone who knows RF will understand 1144 00:43:37,720 --> 00:43:39,380 why I'm choosing that range 1145 00:43:39,380 --> 00:43:41,960 but plus 50 to minus 100 1146 00:43:42,640 --> 00:43:43,940 let's say my signal is 1147 00:43:43,940 --> 00:43:45,040 coming in at minus 80 1148 00:43:45,540 --> 00:43:46,420 really really low 1149 00:43:46,420 --> 00:43:48,420 I can say to your handsets 1150 00:43:48,420 --> 00:43:50,220 just add 100 to that would you 1151 00:43:50,840 --> 00:43:52,740 and they'll go oh okay you've got a 1152 00:43:52,740 --> 00:43:54,720 20 dBm signal 1153 00:43:54,720 --> 00:43:57,040 that's fine you're the strongest tower around now 1154 00:43:57,040 --> 00:43:57,860 I'll connect to you 1155 00:43:58,940 --> 00:44:00,060 it's ridiculous 1156 00:44:00,060 --> 00:44:03,400 and again it's another great example of some of the instructions 1157 00:44:03,680 --> 00:44:05,400 that a BTS can send a handset 1158 00:44:06,320 --> 00:44:07,500 so you know 1159 00:44:07,500 --> 00:44:09,820 I don't even necessarily need to be the strongest signal 1160 00:44:09,820 --> 00:44:11,620 I just need to have a signal that you 1161 00:44:11,620 --> 00:44:13,480 can pick up and be telling you 1162 00:44:13,480 --> 00:44:14,600 that I'm the strongest signal 1163 00:44:15,580 --> 00:44:16,620 it's ridiculous 1164 00:44:17,400 --> 00:44:19,020 and the handset will comply 1165 00:44:19,020 --> 00:44:21,640 it has to comply because that's how GSM 1166 00:44:21,640 --> 00:44:23,560 works when the handset gets 1167 00:44:23,560 --> 00:44:25,620 an instruction from the tower it complies 1168 00:44:25,620 --> 00:44:25,960 with it 1169 00:44:28,040 --> 00:44:29,520 of course the attacker 1170 00:44:29,520 --> 00:44:30,600 can make use of this 1171 00:44:30,600 --> 00:44:33,660 of course it means that he has to use less RF 1172 00:44:33,680 --> 00:44:35,420 power to win the strength 1173 00:44:35,420 --> 00:44:36,780 competition with the local towers 1174 00:44:37,560 --> 00:44:39,500 OpenBTS doesn't actually support it yet 1175 00:44:39,500 --> 00:44:41,760 so I won't 1176 00:44:41,760 --> 00:44:42,540 demonstrate it here 1177 00:44:42,540 --> 00:44:45,360 this is actually the essence of the 1178 00:44:45,360 --> 00:44:47,700 Roden Schwartz patents on IMSI catchers 1179 00:44:47,700 --> 00:44:49,620 there was a case in the UK 1180 00:44:49,620 --> 00:44:51,660 where someone was selling IMSI catchers 1181 00:44:51,660 --> 00:44:53,060 Roden Schwartz sued 1182 00:44:53,060 --> 00:44:55,780 and it effectively came down to this one technique 1183 00:44:56,460 --> 00:44:57,460 spoofing MNCs 1184 00:44:57,460 --> 00:44:59,580 MCCs, network names, it's all trivial 1185 00:44:59,580 --> 00:45:01,720 but this one technique 1186 00:45:01,720 --> 00:45:03,440 is the one that's patented 1187 00:45:05,520 --> 00:45:07,340 so I mentioned earlier that we 1188 00:45:07,340 --> 00:45:08,920 don't see inbound calls 1189 00:45:08,920 --> 00:45:10,780 we only see outbound calls 1190 00:45:10,780 --> 00:45:12,280 effectively the IMSI catcher 1191 00:45:12,280 --> 00:45:14,800 is a completely isolated cellular network 1192 00:45:14,800 --> 00:45:16,920 as far as your carrier is concerned 1193 00:45:16,920 --> 00:45:17,700 your phone is off 1194 00:45:17,700 --> 00:45:18,460 it has no signal 1195 00:45:18,460 --> 00:45:19,600 it's just not there 1196 00:45:19,600 --> 00:45:22,700 so of course they're going to send calls inbound 1197 00:45:22,700 --> 00:45:23,820 to your voicemail 1198 00:45:23,820 --> 00:45:24,880 where else are they going to send it? 1199 00:45:24,920 --> 00:45:25,480 your phone's off 1200 00:45:25,480 --> 00:45:29,800 so the attacker doesn't see the inbound calls 1201 00:45:29,800 --> 00:45:32,000 so the way that we get around this is 1202 00:45:33,680 --> 00:45:34,240 my tower 1203 00:45:34,240 --> 00:45:36,760 my tower has to authenticate you 1204 00:45:36,760 --> 00:45:38,920 therefore it will ask for your IMSI 1205 00:45:38,920 --> 00:45:42,060 and your phone will quite happily supply it 1206 00:45:42,060 --> 00:45:43,220 so I know your IMSI 1207 00:45:43,960 --> 00:45:45,480 what I can then do is 1208 00:45:45,480 --> 00:45:47,420 I can go to AT&T and say 1209 00:45:47,420 --> 00:45:48,860 hey, here's my IMSI 1210 00:45:48,860 --> 00:45:51,160 I'm spoofing this guy over here 1211 00:45:51,160 --> 00:45:52,020 but you don't need to know that 1212 00:45:52,020 --> 00:45:52,780 this is my IMSI 1213 00:45:52,780 --> 00:45:54,980 and I know that this guy's not on the network 1214 00:45:54,980 --> 00:45:56,140 because he's on my network 1215 00:45:56,140 --> 00:45:57,800 therefore it's perfectly safe to do this 1216 00:45:57,800 --> 00:45:58,960 without you seeing two phones 1217 00:46:03,680 --> 00:46:04,560 the problem with that 1218 00:46:04,560 --> 00:46:06,940 is that we don't know the secret key in the SIM card 1219 00:46:06,940 --> 00:46:07,860 we don't know KI 1220 00:46:08,900 --> 00:46:10,720 and what's going to happen is 1221 00:46:11,200 --> 00:46:13,460 when I claim that IMSI to AT&T 1222 00:46:13,460 --> 00:46:14,140 or T-Mobile 1223 00:46:14,140 --> 00:46:16,220 they're going to send me a random number 1224 00:46:16,220 --> 00:46:18,420 a 32-bit number, just a challenge 1225 00:46:18,940 --> 00:46:20,960 and what normally happens is 1226 00:46:20,960 --> 00:46:22,760 that challenge gets passed to your SIM card 1227 00:46:22,760 --> 00:46:24,920 gets encrypted with your secret key 1228 00:46:24,920 --> 00:46:26,880 and then split into two parts 1229 00:46:26,880 --> 00:46:29,280 half gets returned to the tower 1230 00:46:29,280 --> 00:46:31,280 as just kind of proof that you know the secret key 1231 00:46:31,280 --> 00:46:33,480 and the other half is used as the ciphering 1232 00:46:34,620 --> 00:46:37,040 well, what I can do to exploit this 1233 00:46:37,040 --> 00:46:39,640 is I can just pass that random challenge along 1234 00:46:39,640 --> 00:46:40,580 to your phone 1235 00:46:42,440 --> 00:46:43,360 whereupon your phone 1236 00:46:43,360 --> 00:46:45,860 will happily encrypt your secret key 1237 00:46:45,860 --> 00:46:47,120 with it and all the rest of it 1238 00:46:47,120 --> 00:46:48,280 and send the result back to me 1239 00:46:48,280 --> 00:46:50,300 but the result doesn't come back to me 1240 00:46:50,300 --> 00:46:51,820 as here's the answer 1241 00:46:52,920 --> 00:46:54,800 the session response I do get 1242 00:46:54,800 --> 00:46:55,840 just kind of here's the answer 1243 00:46:55,840 --> 00:46:57,700 but the secret key I have to crack 1244 00:46:58,640 --> 00:47:00,820 and here's the great thing 1245 00:47:00,820 --> 00:47:02,500 about IMSI catchers as opposed to 1246 00:47:03,680 --> 00:47:04,620 crack and an air probe and those kind of things 1247 00:47:04,620 --> 00:47:06,200 crack and an air probe 1248 00:47:06,200 --> 00:47:08,040 how many folks saw that release of Black Hat 1249 00:47:08,040 --> 00:47:09,820 the A51 cracker 1250 00:47:10,440 --> 00:47:13,340 so the big limitation that that thing has 1251 00:47:13,340 --> 00:47:14,820 is that it doesn't work on 1252 00:47:14,820 --> 00:47:16,240 frequency hopping base stations 1253 00:47:16,240 --> 00:47:18,100 which virtually every base station 1254 00:47:18,100 --> 00:47:19,460 in the civilized world is 1255 00:47:19,460 --> 00:47:22,680 so it kind of doesn't have real world applications 1256 00:47:23,220 --> 00:47:24,660 well, in this instance 1257 00:47:24,660 --> 00:47:26,000 I'm the base station 1258 00:47:26,000 --> 00:47:27,500 I set the hopping sequence 1259 00:47:28,100 --> 00:47:29,720 so I can just say to you 1260 00:47:29,720 --> 00:47:31,520 okay, let's negotiate A52 1261 00:47:33,680 --> 00:47:35,380 and then let's disable hopping 1262 00:47:35,380 --> 00:47:38,040 so that I don't have to worry about that 1263 00:47:38,040 --> 00:47:39,800 and then I can use these rainbow tables 1264 00:47:39,800 --> 00:47:40,900 to crack your secret key 1265 00:47:42,100 --> 00:47:43,780 whereupon I recover the session key 1266 00:47:43,780 --> 00:47:45,360 I now know the session key 1267 00:47:45,360 --> 00:47:46,740 and the session response 1268 00:47:46,740 --> 00:47:48,260 which was the authentication response 1269 00:47:48,260 --> 00:47:50,420 and I can just reuse it all to the carrier 1270 00:47:50,420 --> 00:47:52,340 and as far as the carrier is concerned 1271 00:47:52,760 --> 00:47:55,140 okay, it took a few seconds for me to establish 1272 00:47:55,520 --> 00:47:57,160 a challenge to your handset 1273 00:47:57,160 --> 00:47:58,740 and then crack it and all the rest of it 1274 00:47:58,740 --> 00:48:01,060 but at the end of the day I provided the right response 1275 00:48:01,060 --> 00:48:03,000 to the carrier, so hey, I must be you 1276 00:48:04,100 --> 00:48:04,660 it's 1277 00:48:04,660 --> 00:48:07,800 it's not implemented in this system yet 1278 00:48:07,800 --> 00:48:09,660 but it's definitely possible to do 1279 00:48:09,660 --> 00:48:10,980 it's the technique that commercial 1280 00:48:10,980 --> 00:48:12,860 IMSI catchers use 1281 00:48:12,860 --> 00:48:14,620 to catch inbound calls 1282 00:48:14,620 --> 00:48:17,340 certainly, yes, I cannot do that 1283 00:48:17,340 --> 00:48:18,260 in this system currently 1284 00:48:18,260 --> 00:48:21,000 but it is absolutely possible with IMSI catchers 1285 00:48:23,820 --> 00:48:25,360 so, just a little more 1286 00:48:25,360 --> 00:48:26,500 on breaking that session key 1287 00:48:26,500 --> 00:48:28,480 it is the only time 1288 00:48:28,480 --> 00:48:30,440 when you're using an IMSI catcher 1289 00:48:30,440 --> 00:48:32,800 that any cryptography is needed at all 1290 00:48:33,680 --> 00:48:35,020 the majority of the time I just 1291 00:48:35,560 --> 00:48:37,800 configure my base station to just negotiate A5-0 1292 00:48:37,800 --> 00:48:39,700 just disable encryption, what do I care 1293 00:48:39,700 --> 00:48:41,600 if I negotiate 1294 00:48:41,600 --> 00:48:42,380 A5-2 1295 00:48:42,380 --> 00:48:44,940 A5-2 is very very easy to crack 1296 00:48:44,940 --> 00:48:46,200 much easier than A5-1 1297 00:48:46,200 --> 00:48:49,800 so that gives me a very quick way into your handset 1298 00:48:50,640 --> 00:48:51,680 alternatively you may reject 1299 00:48:51,680 --> 00:48:53,200 A5-2, regard A5-1 1300 00:48:53,200 --> 00:48:55,200 well clearly A5-1 is still 1301 00:48:56,040 --> 00:48:57,660 crackable and we can still do that 1302 00:48:57,660 --> 00:48:59,040 but in either case 1303 00:48:59,040 --> 00:49:01,140 any calls that originate from your phone 1304 00:49:01,140 --> 00:49:02,880 come to me as plain text 1305 00:49:05,040 --> 00:49:05,680 so 1306 00:49:05,680 --> 00:49:07,120 what's the solution 1307 00:49:07,120 --> 00:49:07,980 to all of this? 1308 00:49:08,180 --> 00:49:10,160 how do we fix this? 1309 00:49:10,820 --> 00:49:12,620 the reality of it is 1310 00:49:12,620 --> 00:49:14,280 there is no good solution 1311 00:49:14,280 --> 00:49:16,520 not in the context of GSM 1312 00:49:16,520 --> 00:49:18,060 GSM is broken 1313 00:49:18,060 --> 00:49:20,740 it is the telnet of cellular systems 1314 00:49:22,260 --> 00:49:23,780 in order to fix 1315 00:49:23,780 --> 00:49:24,460 GSM 1316 00:49:24,460 --> 00:49:26,860 you'd have to redesign GSM 1317 00:49:26,860 --> 00:49:28,560 and if you're redesigning GSM 1318 00:49:28,560 --> 00:49:30,700 you have to upgrade every handset 1319 00:49:30,700 --> 00:49:32,100 you have to change every tower 1320 00:49:33,680 --> 00:49:34,340 and live behind them 1321 00:49:34,340 --> 00:49:36,100 so why bother? 1322 00:49:36,180 --> 00:49:37,380 if you're going to that much effort 1323 00:49:37,380 --> 00:49:38,380 to redesign everything 1324 00:49:38,380 --> 00:49:39,880 why don't you just move to 3G? 1325 00:49:41,000 --> 00:49:43,600 the solution here is 3G 1326 00:49:43,600 --> 00:49:44,980 and later protocols 1327 00:49:45,760 --> 00:49:47,980 3G authentication is much better 1328 00:49:47,980 --> 00:49:50,740 obviously 3.5G, 3.9G, LTE 1329 00:49:50,740 --> 00:49:52,980 all of the subsequent protocols 1330 00:49:52,980 --> 00:49:54,000 build on that as well 1331 00:49:54,880 --> 00:49:57,320 the primary solution here is 1332 00:49:57,320 --> 00:49:59,000 turn off 2G 1333 00:49:59,680 --> 00:50:00,280 unfortunately 1334 00:50:00,280 --> 00:50:02,460 how many people have Android phones 1335 00:50:03,680 --> 00:50:04,800 have you seen the setting that says 1336 00:50:04,800 --> 00:50:05,880 use only 2G networks 1337 00:50:06,680 --> 00:50:08,200 supposedly saves battery 1338 00:50:08,200 --> 00:50:10,600 how many people have ever seen a setting 1339 00:50:10,600 --> 00:50:11,320 in a phone that says 1340 00:50:11,320 --> 00:50:12,480 use only 3G networks 1341 00:50:14,720 --> 00:50:15,660 Blackberry has one 1342 00:50:17,080 --> 00:50:18,620 certainly Android doesn't 1343 00:50:18,620 --> 00:50:19,820 iPhone doesn't 1344 00:50:19,820 --> 00:50:22,980 so how can we be secure here? 1345 00:50:24,000 --> 00:50:26,380 certainly 3G is showing cracks 1346 00:50:26,380 --> 00:50:27,920 it's not been broken broken 1347 00:50:27,920 --> 00:50:29,600 the Kasumi cipher 1348 00:50:29,600 --> 00:50:30,940 has been somewhat broken 1349 00:50:31,660 --> 00:50:33,500 but the 3G protocol hasn't 1350 00:50:33,680 --> 00:50:34,940 so yeah 1351 00:50:34,940 --> 00:50:36,120 just use 3G 1352 00:50:36,120 --> 00:50:37,760 look for that icon on your screen 1353 00:50:37,760 --> 00:50:38,860 with the little 3G 1354 00:50:38,860 --> 00:50:41,200 if you see that then you're pretty good 1355 00:50:42,640 --> 00:50:44,500 alternatively just treat it like a data network 1356 00:50:44,500 --> 00:50:46,820 just layer another 1357 00:50:47,700 --> 00:50:49,820 put another layer of crypto on top of it 1358 00:50:49,820 --> 00:50:51,700 treat it like voice over IP 1359 00:50:51,700 --> 00:50:53,080 just use it as a data network 1360 00:50:53,080 --> 00:50:54,100 treat it like the internet 1361 00:50:54,100 --> 00:50:56,320 encrypt everything that goes across it 1362 00:50:56,320 --> 00:50:58,260 just don't trust it 1363 00:50:58,260 --> 00:50:59,920 and then in the long term 1364 00:50:59,920 --> 00:51:02,740 the big solution is to just turn off 2G 1365 00:51:03,680 --> 00:51:04,480 it will happen eventually 1366 00:51:04,480 --> 00:51:07,780 as 3.5G and 4G are deployed more widely 1367 00:51:07,780 --> 00:51:09,000 hopefully 1368 00:51:09,430 --> 00:51:12,240 now that I've demonstrated this 1369 00:51:12,240 --> 00:51:13,580 there will be little argument 1370 00:51:13,580 --> 00:51:15,660 that it's totally possible 1371 00:51:15,660 --> 00:51:17,220 to intercept 2G phone calls 1372 00:51:17,220 --> 00:51:19,940 so hopefully it will spur some uptake 1373 00:51:19,940 --> 00:51:20,480 of 3G 1374 00:51:20,480 --> 00:51:22,040 and we'll see where it goes 1375 00:51:23,300 --> 00:51:24,000 so 1376 00:51:24,720 --> 00:51:26,180 one final demo 1377 00:51:26,180 --> 00:51:29,280 let me just see how many Timsies 1378 00:51:29,280 --> 00:51:30,200 we have connected here 1379 00:51:34,900 --> 00:51:35,460 17 1380 00:51:35,460 --> 00:51:37,500 ok so people are actually handing back 1381 00:51:37,500 --> 00:51:38,400 to the normal network 1382 00:51:38,400 --> 00:51:39,160 that's unusual 1383 00:51:39,980 --> 00:51:43,040 certainly there was a lot of handsets connected to start out with 1384 00:51:43,720 --> 00:51:45,200 it's possible that I actually 1385 00:51:45,200 --> 00:51:46,900 mistyped AT&T 1386 00:51:46,900 --> 00:51:48,440 I think there's some spaces in there 1387 00:51:49,120 --> 00:51:51,200 it's entirely possible that your handsets 1388 00:51:51,200 --> 00:51:52,120 are connecting to me and going 1389 00:51:52,120 --> 00:51:54,360 oh you're not spelling AT&T correctly 1390 00:51:54,360 --> 00:51:56,220 I'm out of here 1391 00:51:57,180 --> 00:51:58,560 so either way 1392 00:52:00,160 --> 00:52:01,600 certainly feel free 1393 00:52:01,600 --> 00:52:03,040 to make some calls through it 1394 00:52:03,680 --> 00:52:05,440 the only limitation is that you have to dial 1 1395 00:52:05,440 --> 00:52:06,300 in front of the number 1396 00:52:06,840 --> 00:52:09,000 or whatever country code you want 1397 00:52:09,000 --> 00:52:11,800 you're only limited by the $20 of credit in my SIP account 1398 00:52:12,780 --> 00:52:13,520 feel free 1399 00:52:13,520 --> 00:52:15,640 if you've not heard the recorded message 1400 00:52:15,640 --> 00:52:17,460 then like I say connect to the network 1401 00:52:17,460 --> 00:52:19,320 and have a play 1402 00:52:19,320 --> 00:52:21,300 it's there for the next couple of minutes 1403 00:52:21,300 --> 00:52:22,220 while I take some questions 1404 00:52:23,200 --> 00:52:24,580 so yeah have fun