1 00:00:07,880 --> 00:00:10,260 Maybe. We'll see how much feedback I can get for the next five minutes. 2 00:00:11,380 --> 00:00:15,920 Yo! How's it going? It's 11 o'clock. It's Friday. It's Vegas. It's DEF CON. 3 00:00:17,220 --> 00:00:19,580 And everybody's sober, so hopefully we can remedy that today. 4 00:00:21,260 --> 00:00:27,700 My name's Bruce Potter. I'm here to talk about blue sniff and war driving of Bluetooth devices and things of that nature. 5 00:00:27,700 --> 00:00:31,400 If this isn't your right flight or you happen to be standing, you have to leave the facility. 6 00:00:33,120 --> 00:00:38,300 Brian Caswell, who's a schmoo as well as I, worked on this project with me. 7 00:00:38,640 --> 00:00:41,700 Unfortunately, he's off in Germany somewhere right now, so he's unable to attend. 8 00:00:42,820 --> 00:00:46,480 Anyway, I like to open all my talks with a basic statement of you shouldn't believe anything I say. 9 00:00:47,520 --> 00:00:51,800 We're either security professionals or the people that security professionals don't like. 10 00:00:51,940 --> 00:00:53,860 You call them hackers, crackers. I really don't care. 11 00:00:54,940 --> 00:00:57,480 But we get paid or for fun. 12 00:00:57,700 --> 00:01:01,460 We're paranoid people, you know, and we shouldn't believe what people are spoon feeding us. 13 00:01:01,500 --> 00:01:05,280 Don't come to DEF CON and watch people stand up on stage and believe the shit that they say. 14 00:01:06,180 --> 00:01:10,000 Challenge it. Ask questions. Attack them. Whatever it takes. Throw stuff at them. 15 00:01:10,080 --> 00:01:11,360 I mean, come on. Have some fun. 16 00:01:11,600 --> 00:01:16,820 But challenge what you're hearing for the next three days and you're going to walk out of here with a lot more knowledge than if you just sit there and take it. 17 00:01:17,440 --> 00:01:21,580 So, that said, I should probably justify as to why you should listen to what I have to say. 18 00:01:22,620 --> 00:01:24,700 By day, I'm a security consultant in Northern Virginia. 19 00:01:25,420 --> 00:01:27,600 I did work at VeriSign for a while. 20 00:01:29,100 --> 00:01:33,720 The network solutions division of VeriSign even, so feel free to flog me for that later. 21 00:01:34,440 --> 00:01:41,980 I worked for some startups in Anchorage, Alaska as well with a great group of people who basically were the foundation of the SHMU group that we started in Anchorage 22 00:01:41,980 --> 00:01:46,720 and now is an ad hoc security group of about 30 or so security, crypto, and privacy wonks. 23 00:01:46,840 --> 00:01:51,600 And there's many of us around this weekend and we've got little badges thanks to one of our esteemed colleagues. 24 00:01:51,900 --> 00:01:53,940 So, that's nuts and bolts. 25 00:01:54,000 --> 00:01:55,840 And if you don't want to believe me now, it's up to you. 26 00:01:56,140 --> 00:01:57,460 We've got a lot of ground to cover today. 27 00:01:57,700 --> 00:02:04,260 I'm going to go over Bluetooth basics because shockingly, you know, a lot of people don't know what Bluetooth is or how it works. 28 00:02:04,400 --> 00:02:08,440 I could probably find half the people in this room to give me a decent litany about 802.11 security, 29 00:02:08,840 --> 00:02:11,780 but Bluetooth security, I don't know there's many people I can talk about it. 30 00:02:11,880 --> 00:02:15,340 I know in my talks when I've been speaking to people in the last three days, most people are just kind of, 31 00:02:15,720 --> 00:02:17,500 what's this Bluetooth security you speak of? 32 00:02:17,680 --> 00:02:20,400 We're going to go over the security aspects of the protocol. 33 00:02:20,800 --> 00:02:22,140 We're going to go over device discovery. 34 00:02:22,200 --> 00:02:23,320 That's the big meat of this thing. 35 00:02:23,420 --> 00:02:24,600 How do you find Bluetooth devices? 36 00:02:24,880 --> 00:02:26,900 And we'll go over our tool that we created. 37 00:02:28,680 --> 00:02:31,380 So, first and foremost, I want to get this out of the way. 38 00:02:31,880 --> 00:02:35,600 802.11 and Bluetooth are not related in any way, shape, or form. 39 00:02:35,800 --> 00:02:37,520 I've given talks on Bluetooth and we got done. 40 00:02:37,560 --> 00:02:40,520 People have asked me, how do I configure my 802.11 radio to do that? 41 00:02:40,700 --> 00:02:41,560 No, you can't. 42 00:02:42,160 --> 00:02:43,920 They operate in the same band. 43 00:02:44,840 --> 00:02:49,580 802.11b, 802.11g operate in a 2.4 gigahertz ISM band as does Bluetooth. 44 00:02:49,780 --> 00:02:50,980 That's about the only thing they got going. 45 00:02:51,180 --> 00:02:56,260 They use the air and other than that, 802.11 is a LAN protocol unless you talk to community wireless folks 46 00:02:56,260 --> 00:02:57,660 and suddenly it's become a man protocol. 47 00:02:58,480 --> 00:03:03,000 Bluetooth is a PAN protocol, a personal area network, designed to be a cable replacement 48 00:03:03,000 --> 00:03:06,320 for devices that you would normally hook together kind of near you, 49 00:03:06,440 --> 00:03:10,240 like your phone to your earpiece or your phone to your laptop or something of that nature. 50 00:03:12,080 --> 00:03:19,260 There are actually, according to some studies, more Bluetooth radios in existence in the field today than 802.11 radios. 51 00:03:19,620 --> 00:03:20,800 So, a little survey. 52 00:03:20,960 --> 00:03:24,000 A year ago, how many people had a Bluetooth device that they owned? 53 00:03:25,040 --> 00:03:27,940 Today, how many people have a Bluetooth device that they own? 54 00:03:28,660 --> 00:03:30,320 Okay, so about half as many there. 55 00:03:30,560 --> 00:03:33,280 I anticipate if you come back next year, it'll be damn near the whole room. 56 00:03:33,500 --> 00:03:39,200 You see everybody running around with the T68i's or the Nokia 3650's, all these phones are Bluetooth enabled. 57 00:03:39,420 --> 00:03:41,140 This fricking laptop is Bluetooth enabled. 58 00:03:41,500 --> 00:03:43,440 You know, PDA's come with Bluetooth now. 59 00:03:43,840 --> 00:03:44,520 It's everywhere. 60 00:03:44,900 --> 00:03:49,220 And 802.11 is going to be tied to some kind of device like a PC or a router. 61 00:03:49,920 --> 00:03:53,980 Bluetooth is going to be tied to just about every damn piece of electronic device that you can put on your personal device. 62 00:03:53,980 --> 00:03:56,200 And your PC and potentially your router. 63 00:03:56,420 --> 00:03:59,320 So, it's easy to see where the numbers are going to get astronomical quick. 64 00:03:59,780 --> 00:04:02,260 In Europe, Bluetooth has a lot more penetration than domestic. 65 00:04:02,480 --> 00:04:04,000 I believe in Asia as well. 66 00:04:04,260 --> 00:04:05,900 The US is just starting to catch on. 67 00:04:06,080 --> 00:04:08,840 Go try and buy a P800 Sony cell phone right now. 68 00:04:09,020 --> 00:04:09,900 You won't find it. 69 00:04:09,980 --> 00:04:13,700 And one of the reasons people want these, besides they're so damn cool, is the fact that they've got Bluetooth. 70 00:04:14,780 --> 00:04:16,120 They have a master-slave architecture. 71 00:04:16,620 --> 00:04:17,620 Think of it kind of hub and spoke. 72 00:04:17,820 --> 00:04:19,820 You've got somebody in the center controlling all the comms. 73 00:04:19,980 --> 00:04:22,420 And then you've got a bunch of slaves hanging off of it. 74 00:04:23,060 --> 00:04:25,300 As I said, it uses the ISM band. 75 00:04:25,880 --> 00:04:28,660 There's a misconception that all Bluetooth devices are low power. 76 00:04:29,240 --> 00:04:33,640 One of the tenets of the protocol was to design a low power protocol that could be nice to batteries. 77 00:04:33,920 --> 00:04:35,360 You know, you've got your Bluetooth earpiece. 78 00:04:35,520 --> 00:04:38,000 It would be a real shame to have two D-cells hanging off that thing. 79 00:04:39,340 --> 00:04:43,820 So, a lot of them have been, you know, there is the capability to have low power consumption modes. 80 00:04:44,020 --> 00:04:48,120 But there are some people, just as the 802.11 people shoved their technology out to the man, 81 00:04:48,340 --> 00:04:51,980 there are people that are taking Bluetooth and shoving it out to a LAN environment. 82 00:04:51,980 --> 00:04:54,020 There is actually Bluetooth LAN access devices. 83 00:04:54,340 --> 00:04:57,820 And these are class one type radios that will go up to 100 milliwatts. 84 00:04:58,440 --> 00:05:00,100 There's a Belkin USB dongle. 85 00:05:00,160 --> 00:05:01,340 It's the first gen that they made. 86 00:05:01,400 --> 00:05:03,200 I think it's 810 is the model number. 87 00:05:03,340 --> 00:05:06,400 That's a 30 milliwatt Bluetooth dongle. 88 00:05:06,540 --> 00:05:07,640 It works under Linux. 89 00:05:07,740 --> 00:05:08,480 It's a great thing. 90 00:05:08,600 --> 00:05:09,540 That's what I use for my development. 91 00:05:09,660 --> 00:05:10,620 I highly recommend it. 92 00:05:10,680 --> 00:05:11,420 I don't work for Belkin. 93 00:05:11,440 --> 00:05:11,860 I never have. 94 00:05:12,260 --> 00:05:13,880 And they make everything, by the way. 95 00:05:14,100 --> 00:05:16,840 I mean, I don't know if you realize, but Belkin now makes, it's got electrons. 96 00:05:16,920 --> 00:05:17,620 They make this stuff. 97 00:05:18,940 --> 00:05:21,000 Bluetooth uses something called frequency hopping spreads. 98 00:05:21,600 --> 00:05:21,960 Whatever. 99 00:05:21,980 --> 00:05:22,660 FHSS. 100 00:05:23,060 --> 00:05:27,340 Basically, frequency hopping means, in 802.11, you've got something that's just living in a band. 101 00:05:27,500 --> 00:05:32,140 It's just basically transmitting the same section of the frequency at the same time. 102 00:05:32,880 --> 00:05:34,820 With FHSS, it's bouncing around. 103 00:05:35,000 --> 00:05:35,860 You're hammering around. 104 00:05:35,980 --> 00:05:37,060 You're picking different frequencies. 105 00:05:37,560 --> 00:05:39,360 And basically, you create a hop pattern. 106 00:05:39,680 --> 00:05:42,500 And you hop between all the locations in this hop pattern. 107 00:05:42,560 --> 00:05:44,220 I've got a diagram later that's going to show this. 108 00:05:45,320 --> 00:05:49,520 But back in the day, meaning like World War II, FHSS was a security mechanism. 109 00:05:49,820 --> 00:05:51,380 Because you had to know the hop pattern. 110 00:05:51,380 --> 00:05:53,400 In order to be able to intercept the traffic. 111 00:05:53,600 --> 00:05:57,100 You could potentially intercept little bits and pieces here, but you couldn't catch everything. 112 00:05:57,840 --> 00:06:00,260 Since then, it's become declassified. 113 00:06:00,400 --> 00:06:01,420 Mere mortals can use it. 114 00:06:01,860 --> 00:06:05,900 But it's a dramatically different way of transmitting radio than 802.11. 115 00:06:06,120 --> 00:06:09,940 And this becomes really key, really key later on when we start talking about device discovery. 116 00:06:10,680 --> 00:06:14,580 In the case of Bluetooth, each little band that it jumps into is megahertz wide. 117 00:06:14,660 --> 00:06:16,920 It sits there for a pretty small amount of time. 118 00:06:17,080 --> 00:06:20,000 And it's very resistant to interference because it's hopping around. 119 00:06:20,000 --> 00:06:24,460 So if somebody's interfering in a band, you know, maybe the time when they're in that band they're getting interfered. 120 00:06:24,520 --> 00:06:25,940 And they hop out and they go somewhere else. 121 00:06:26,060 --> 00:06:28,620 And they're able to move around interference with FHSS. 122 00:06:30,260 --> 00:06:36,980 Bluetooth is, I encourage you to go out and download the Bluetooth protocol specification. 123 00:06:37,440 --> 00:06:38,260 It's a thousand pages. 124 00:06:38,500 --> 00:06:39,500 Just the core spec. 125 00:06:39,960 --> 00:06:42,560 That doesn't include a lot of supporting documentation. 126 00:06:42,860 --> 00:06:46,480 We could fill this podium, probably to the breaking point, with Bluetooth specifications that exist. 127 00:06:46,860 --> 00:06:49,840 But the basic spec is over a thousand pages. 128 00:06:50,000 --> 00:06:54,360 And it's like, you know, you take a pizza and you throw it on the floor and there's just pieces everywhere. 129 00:06:54,520 --> 00:06:56,260 That's kind of what the protocol stack ends up looking like. 130 00:06:56,400 --> 00:06:58,520 You've got nice layers that look very OSI-y. 131 00:06:58,600 --> 00:07:00,560 And then you've got things that cross-cut layers, you know. 132 00:07:00,660 --> 00:07:04,100 And from a security perspective, things that cross-cut network layers, bad. 133 00:07:04,500 --> 00:07:05,640 Bad things are going to happen. 134 00:07:06,740 --> 00:07:10,320 High points in the protocol, basically RF, you know, all the way down to the physical layer. 135 00:07:10,440 --> 00:07:11,280 Here's how I sync up. 136 00:07:11,340 --> 00:07:12,380 Here's how I find these people. 137 00:07:12,480 --> 00:07:14,640 And I'm able to determine where they are in their hopping pattern. 138 00:07:15,180 --> 00:07:19,060 There's an inquiry and an inquiry request, basically. 139 00:07:19,060 --> 00:07:21,060 This is where I say, who's here? 140 00:07:21,320 --> 00:07:22,820 You know, I want to find a device. 141 00:07:22,960 --> 00:07:23,860 And I'm sending this inquiry. 142 00:07:24,040 --> 00:07:25,860 And someone will respond and say, hey, it's me. 143 00:07:26,060 --> 00:07:27,460 This is known as discoverable mode. 144 00:07:27,640 --> 00:07:31,200 This is a configurable option usually on devices, whether or not they want to be found. 145 00:07:31,460 --> 00:07:34,860 This is the way that a public device, a device you want others to find, is going to be found. 146 00:07:35,680 --> 00:07:40,660 Once you find the device, then the protocol specifies ways of discovering services as well. 147 00:07:41,400 --> 00:07:43,560 So this is where, you know, we're getting higher up the stack. 148 00:07:43,700 --> 00:07:45,040 And this is all in the Bluetooth specification. 149 00:07:46,000 --> 00:07:48,280 So, you know, here, what are you? 150 00:07:48,300 --> 00:07:48,940 What kind of device? 151 00:07:49,060 --> 00:07:51,020 Okay, now, what applications are you running? 152 00:07:51,080 --> 00:07:51,880 Are you running file sharing? 153 00:07:52,000 --> 00:07:52,480 Are you a phone? 154 00:07:52,560 --> 00:07:53,040 What's the deal? 155 00:07:53,480 --> 00:07:54,980 Like I said, it's got low power modes. 156 00:07:55,060 --> 00:07:57,420 Here's a URL for the Linux stack. 157 00:07:58,040 --> 00:07:59,680 It's bluez.sourceforge.net. 158 00:07:59,760 --> 00:08:03,880 There's a lot of, I think there's four competing Bluetooth stacks for Linux. 159 00:08:04,160 --> 00:08:07,440 This one is by far the most robust and the one that's been kind of accepted by the distributions. 160 00:08:08,700 --> 00:08:13,460 If you're going to play around with it, I recommend, if you're doing Linux, God help you, I recommend using BlueZ. 161 00:08:14,800 --> 00:08:15,740 So Bluetooth security. 162 00:08:15,920 --> 00:08:16,880 There's this idea of pairing. 163 00:08:16,880 --> 00:08:24,640 And there's a lot of confusion about what this is in general because it's not described well by the manufacturers when you get your swank little phone and it says you have to pair it. 164 00:08:25,340 --> 00:08:26,440 Pairing is not required. 165 00:08:26,720 --> 00:08:27,580 Let's just get that out of the way. 166 00:08:27,660 --> 00:08:31,940 You can talk to a Bluetooth device and not be paired with it. 167 00:08:32,020 --> 00:08:33,980 Pairing is effectively creating a trust relationship. 168 00:08:34,980 --> 00:08:39,580 The pairing is an activity when you go to pair the phone, there's a pin on both sides. 169 00:08:39,840 --> 00:08:41,920 And you enter in the pin into both devices. 170 00:08:42,180 --> 00:08:46,500 They are able to basically, one side creates a random number, does some cryptography with a pin. 171 00:08:46,500 --> 00:08:49,460 And sends that random number with the crypto across to the other device. 172 00:08:49,520 --> 00:08:53,140 The other device has to be able to basically undo it and shift the random number back and then it's all good. 173 00:08:54,040 --> 00:08:57,600 We'll talk about why that's vulnerable in a minute so people may see holes in this already. 174 00:08:58,460 --> 00:09:03,520 But once that's done, they have this cryptographic key that they can then use basically forever. 175 00:09:03,860 --> 00:09:06,600 So the pair key will then derive session keys later on. 176 00:09:06,780 --> 00:09:08,480 So this pairing activity happens once. 177 00:09:08,660 --> 00:09:11,640 It doesn't happen every time these two trusted devices talk. 178 00:09:11,820 --> 00:09:14,240 But you do not need to be paired in order to talk. 179 00:09:15,940 --> 00:09:16,480 Bluetooth security. 180 00:09:16,480 --> 00:09:18,700 Bluetooth has, as you would expect, AA and E. 181 00:09:19,020 --> 00:09:21,620 It has authentication and authorization services. 182 00:09:22,000 --> 00:09:23,620 This can be done on a per connection basis. 183 00:09:23,800 --> 00:09:29,980 Basically all traffic between two devices or per basic session between two services on a device. 184 00:09:30,500 --> 00:09:36,200 So you could have your file transfer be authenticated and your voice traffic not be authenticated or something like that. 185 00:09:36,560 --> 00:09:37,920 Encryption is the same way. 186 00:09:38,160 --> 00:09:41,600 So this is a classic problem in software engineering. 187 00:09:42,320 --> 00:09:43,620 I've given you options. 188 00:09:43,700 --> 00:09:44,880 I'm the Bluetooth protocol designer. 189 00:09:44,880 --> 00:09:46,400 And here's some options on security. 190 00:09:46,660 --> 00:09:47,180 What are you going to do? 191 00:09:47,640 --> 00:09:48,660 Screw it all the hell up. 192 00:09:50,180 --> 00:09:51,320 And think about this. 193 00:09:51,480 --> 00:09:53,340 It's one thing to screw it up like on a server. 194 00:09:53,500 --> 00:09:55,360 Like I'm making a web server and I've botched the security. 195 00:09:55,500 --> 00:09:56,400 I don't use SSL. 196 00:09:56,480 --> 00:09:59,180 I don't pay any attention to how my architecture is created, whatever. 197 00:09:59,500 --> 00:10:01,320 This is an embedded device a lot of times. 198 00:10:01,400 --> 00:10:03,560 How much horsepower can you really put in that earbud? 199 00:10:04,280 --> 00:10:06,960 Do you really have enough spare cycles to be able to encrypt? 200 00:10:07,060 --> 00:10:10,560 Or if encryption is a requirement for you, how expensive is your device going to be? 201 00:10:11,160 --> 00:10:13,180 So a lot of developers will be like, out of hell with it. 202 00:10:13,240 --> 00:10:13,940 We're just not going to do it. 203 00:10:13,940 --> 00:10:18,620 And even if they do it, they may decide security's hard and I'll give you a checkbox to turn it off. 204 00:10:18,800 --> 00:10:23,620 Or maybe by default, I'll have the checkbox off and you have to go in and check it to make yourself secure. 205 00:10:24,080 --> 00:10:24,440 Excellent. 206 00:10:24,520 --> 00:10:25,360 This is the way it should work. 207 00:10:25,600 --> 00:10:27,640 So you've got two people that can shoot themselves in the foot. 208 00:10:27,700 --> 00:10:29,580 You and the people who wrote the application for you. 209 00:10:31,620 --> 00:10:33,080 So now there's this idea of profiles. 210 00:10:34,880 --> 00:10:39,180 If the early 802.11 days taught us anything, or at least taught me something, 211 00:10:40,040 --> 00:10:41,780 interoperability can be a real bitch when you give people options 212 00:10:41,780 --> 00:10:43,920 or when you don't really specify how you're supposed to plan things. 213 00:10:43,940 --> 00:10:44,240 It's very nice together. 214 00:10:45,580 --> 00:10:47,800 Bluetooth has this idea of profiles where you can say, 215 00:10:47,960 --> 00:10:52,260 hey look, I'm your keyboard and I'm going to talk in this manner. 216 00:10:52,320 --> 00:10:53,600 This is how I'm going to communicate to you. 217 00:10:53,720 --> 00:10:55,340 And you can formalize this into a profile. 218 00:10:55,640 --> 00:10:57,200 And these profiles are publicly available. 219 00:10:57,520 --> 00:11:00,080 And anyone that wants to make a Bluetooth keyboard to interact with you 220 00:11:00,080 --> 00:11:02,980 or a device to understand your keyboard will just go implement that profile 221 00:11:02,980 --> 00:11:04,280 and then you're able to talk to them. 222 00:11:04,420 --> 00:11:09,260 It helps interoperability, except there are a lot of profiles out there. 223 00:11:09,380 --> 00:11:11,780 If you go to the Bluetooth website, there are just scads of profiles. 224 00:11:12,140 --> 00:11:13,160 And secondarily, 225 00:11:13,160 --> 00:11:16,380 there are multiple profiles for the same types of things. 226 00:11:16,620 --> 00:11:19,800 I had a Sony Ericsson T68i and I had a Belkin earpiece. 227 00:11:20,220 --> 00:11:23,180 And the Sony Ericsson T68i, I hated. 228 00:11:23,320 --> 00:11:25,500 It was a really crappy phone with a bad antenna 229 00:11:25,500 --> 00:11:27,100 and I basically kicked it until it broke 230 00:11:27,100 --> 00:11:29,400 and then I upgraded to a Nokia 3650. 231 00:11:29,680 --> 00:11:31,720 And I thought, great, I'll just keep my earpiece 232 00:11:31,720 --> 00:11:33,360 and I'll be all dapper and whatnot. 233 00:11:33,620 --> 00:11:38,860 Well, the problem is the T68i understood both the hands-free and headset profile. 234 00:11:39,180 --> 00:11:41,480 Note, there's two different ones that basically do the same thing. 235 00:11:41,620 --> 00:11:43,140 But the Nokia only understands 236 00:11:43,160 --> 00:11:44,160 the headset profile 237 00:11:44,160 --> 00:11:46,500 and my earpiece implemented the hands-free profile. 238 00:11:47,460 --> 00:11:48,460 So, I'm SOL. 239 00:11:48,740 --> 00:11:51,040 I have this swank little thing that I had to sell on eBay 240 00:11:51,040 --> 00:11:52,200 because I have no use for it. 241 00:11:52,380 --> 00:11:54,660 I hope someone in this room bought it and is enjoying it. 242 00:11:56,580 --> 00:11:57,480 So, what's the deal? 243 00:11:57,720 --> 00:11:59,140 I keep referencing 802.11 244 00:11:59,140 --> 00:12:01,560 and the reason I'm doing it is because it's kind of a reference. 245 00:12:01,880 --> 00:12:03,400 There's a lot of people that understand it 246 00:12:03,400 --> 00:12:05,560 and I hope that when I reference it, 247 00:12:05,600 --> 00:12:07,000 it's not that I'm a real zealot about this, 248 00:12:07,100 --> 00:12:08,700 but I'm trying to use it as an analog. 249 00:12:09,240 --> 00:12:11,700 One thing that's important to understand is that there's more at stake. 250 00:12:11,700 --> 00:12:15,540 Because of the way the protocol is basically this mishmash of verticals, 251 00:12:15,580 --> 00:12:17,680 when you compromise an 802.11 network, 252 00:12:18,360 --> 00:12:21,040 you're able to potentially sniff at the network layer, 253 00:12:21,240 --> 00:12:22,540 but if you want to get after a host, 254 00:12:22,960 --> 00:12:23,960 you've got to go after a port. 255 00:12:24,160 --> 00:12:25,660 You've got to be an IP port, boom. 256 00:12:25,920 --> 00:12:27,480 You've got to break into the application, whatever. 257 00:12:27,860 --> 00:12:30,480 With Bluetooth, if I own basically any part of that stack, 258 00:12:30,860 --> 00:12:31,880 I'm going to take over everything. 259 00:12:32,240 --> 00:12:34,340 If I can subvert the network, hey, I'm going to have victory. 260 00:12:34,440 --> 00:12:35,380 I'm going to go after the application. 261 00:12:35,580 --> 00:12:36,360 It's just going to be laying there. 262 00:12:36,860 --> 00:12:39,980 Potentially, there's some higher order authentication encryption on top of it, 263 00:12:40,020 --> 00:12:41,680 but it's not nearly the same 264 00:12:41,700 --> 00:12:45,120 layered approach that Ethernet networks have. 265 00:12:45,320 --> 00:12:46,680 So there's a lot more at risk 266 00:12:46,680 --> 00:12:50,520 when you expose and have a weak Bluetooth device. 267 00:12:51,120 --> 00:12:52,540 It's also more personalized. 268 00:12:53,800 --> 00:12:54,780 Think about this. 269 00:12:54,800 --> 00:12:57,780 This laptop, many of us have laptops, the 802.11. 270 00:12:58,000 --> 00:13:00,840 When we're done, today I'm going to shut this laptop down, 271 00:13:00,980 --> 00:13:03,120 and I'll walk outside, and I'm going to start talking to people, 272 00:13:03,140 --> 00:13:03,940 have a cigarette, whatever. 273 00:13:04,680 --> 00:13:06,920 My phone, on the other hand, is going to be on. 274 00:13:07,080 --> 00:13:08,660 And that's got a Bluetooth radio on it. 275 00:13:09,000 --> 00:13:10,760 So if I'm looking to track me, 276 00:13:10,760 --> 00:13:12,500 or someone is looking to track me, 277 00:13:12,620 --> 00:13:15,000 they will be able to key into my phone 278 00:13:15,000 --> 00:13:16,540 and determine where I am all the time 279 00:13:16,540 --> 00:13:17,900 with really cheap gear. 280 00:13:18,240 --> 00:13:19,320 This is really neat. 281 00:13:19,460 --> 00:13:22,120 This is tracking with like $50 radios. 282 00:13:22,260 --> 00:13:24,840 And this is tracking potentially on a metropolitan scale. 283 00:13:25,120 --> 00:13:27,440 I can make a little sensor network in downtown DC, 284 00:13:27,640 --> 00:13:29,800 figure out who's got what Bluetooth devices, 285 00:13:29,820 --> 00:13:30,620 and track them everywhere. 286 00:13:30,920 --> 00:13:32,500 I can determine what's going on, 287 00:13:32,560 --> 00:13:34,200 what senators are speaking to each other. 288 00:13:34,400 --> 00:13:36,820 Oh God, all the national security advisors just got together. 289 00:13:36,860 --> 00:13:37,540 What's going on? 290 00:13:37,980 --> 00:13:39,500 This is really kind of scary. 291 00:13:39,500 --> 00:13:42,740 There are more Bluetooth radios in existence 292 00:13:42,740 --> 00:13:43,940 than 802.11 radios. 293 00:13:44,460 --> 00:13:45,940 Here's this huge tracking problem. 294 00:13:46,240 --> 00:13:47,960 This really hasn't been covered. 295 00:13:48,160 --> 00:13:49,500 I mean, this has not hit the press. 296 00:13:49,980 --> 00:13:52,780 How many people have an information security policy 297 00:13:52,780 --> 00:13:53,560 that covers wireless? 298 00:13:54,940 --> 00:13:56,980 How many people have one that covers Bluetooth explicitly? 299 00:13:58,480 --> 00:13:59,420 Excellent. Congratulations. 300 00:14:00,860 --> 00:14:03,240 That's really unfortunate that these numbers are so small. 301 00:14:03,440 --> 00:14:05,240 This is something information security professionals 302 00:14:05,240 --> 00:14:06,020 have to think about. 303 00:14:06,240 --> 00:14:08,680 And in the interim, the attackers are going to have a blast with. 304 00:14:09,160 --> 00:14:11,040 There's going to be a lot of executives out there 305 00:14:11,040 --> 00:14:12,140 wondering what the hell is happening 306 00:14:12,140 --> 00:14:14,100 and why people are listening in on their phone calls 307 00:14:14,100 --> 00:14:14,880 from three miles away. 308 00:14:16,220 --> 00:14:18,680 So here's my mad vizio foo. 309 00:14:19,880 --> 00:14:22,260 If you think of this from earlier, 310 00:14:22,520 --> 00:14:25,020 direct sequence is basically just eating up this huge band 311 00:14:25,020 --> 00:14:27,000 and broadcasting all the time in the same place. 312 00:14:27,300 --> 00:14:28,540 Frequency hopping spread spectrum, 313 00:14:28,660 --> 00:14:31,360 you can see where it's basically creating this pattern 314 00:14:31,360 --> 00:14:32,140 and hopping all over. 315 00:14:32,560 --> 00:14:34,220 I'm about to talk about service discovery, 316 00:14:34,400 --> 00:14:35,740 and I decided this is probably the time 317 00:14:35,740 --> 00:14:36,720 to kind of give you a visualization 318 00:14:36,720 --> 00:14:38,660 so you understand why Bluetooth is important. 319 00:14:38,680 --> 00:14:41,200 Bluetooth is so much different than things like 802.11b and g. 320 00:14:42,740 --> 00:14:44,940 So 802.11, like I said, uses DSSS. 321 00:14:45,720 --> 00:14:46,900 Transit's always in the same place, 322 00:14:47,080 --> 00:14:48,220 which makes it great to find. 323 00:14:48,420 --> 00:14:50,400 If I know you're on channel one, I'm going to find you. 324 00:14:50,480 --> 00:14:51,460 I'm going to find you right then, 325 00:14:51,600 --> 00:14:53,460 because I'm going to start listening on channel one, 326 00:14:53,520 --> 00:14:54,440 and that's all that's going to happen. 327 00:14:55,060 --> 00:14:59,300 802.11 channel one's like 2.4 to 2.41, some nonsense, whatever. 328 00:15:00,280 --> 00:15:01,380 You can get there. 329 00:15:01,480 --> 00:15:03,260 There's no confusion about where channel one is. 330 00:15:04,940 --> 00:15:06,900 So you may have multiple channels. 331 00:15:06,980 --> 00:15:08,380 Like in 802.11, you've got, you know, 332 00:15:08,680 --> 00:15:11,180 domestically 11, overseas, you know, 13 or 14. 333 00:15:11,560 --> 00:15:14,040 But all you've got to do is cycle through, what, a handful? 334 00:15:14,260 --> 00:15:16,320 You know, we're talking in the order of 10 channels. 335 00:15:16,900 --> 00:15:19,300 So there's some cards out there that do this real well. 336 00:15:19,640 --> 00:15:21,080 Cisco's got an RF mod mode 337 00:15:21,080 --> 00:15:23,340 that's basically transparent channel switching. 338 00:15:23,520 --> 00:15:25,860 It runs through all the channels constantly in hardware. 339 00:15:26,180 --> 00:15:28,120 This isn't like a, you know, firmware kind of thing. 340 00:15:28,200 --> 00:15:29,600 I mean, this is just hardware channel switching, 341 00:15:29,720 --> 00:15:31,500 and it basically looks like it's promiscuously 342 00:15:31,500 --> 00:15:33,400 sniffing on all channels all the time. 343 00:15:33,560 --> 00:15:35,440 That's why Cisco cards kick so much ass 344 00:15:35,440 --> 00:15:38,020 when you're doing wireless 802.11 security work. 345 00:15:38,680 --> 00:15:41,300 Prism 2-based cards like Linksys and Netgear cards 346 00:15:41,860 --> 00:15:44,860 don't have that functionality in hardware, 347 00:15:45,000 --> 00:15:45,660 but they have it in firmware. 348 00:15:45,900 --> 00:15:46,900 So they can run through, 349 00:15:47,020 --> 00:15:48,740 but they don't run through as fast, it turns out. 350 00:15:49,360 --> 00:15:51,600 The Orinoco cards, for those that have used them, 351 00:15:51,660 --> 00:15:52,700 like with something like Kismet, 352 00:15:52,760 --> 00:15:53,680 you know you have to have basically 353 00:15:53,680 --> 00:15:55,300 an external channel hopper to say, 354 00:15:55,400 --> 00:15:57,520 I'm going to have to run through the channels in hardware, 355 00:15:57,740 --> 00:15:59,740 or in software, and just kind of tell it 356 00:15:59,740 --> 00:16:00,980 flip, flip, flip, flip, flip. 357 00:16:01,200 --> 00:16:03,820 You do about three a second or so, it turns out, on the cards 358 00:16:03,820 --> 00:16:06,140 before they start to basically miss a lot of traffic. 359 00:16:07,880 --> 00:16:10,040 Another nice thing about 802.11 finding it, 360 00:16:10,120 --> 00:16:11,720 so not only do you know where they are in the frequency band, 361 00:16:12,200 --> 00:16:15,560 but they're also, there's this idea of beacons in 802.11. 362 00:16:15,700 --> 00:16:17,360 And this is basically an access point saying, 363 00:16:17,420 --> 00:16:18,540 I'm here, I'm here, I'm here, I'm here. 364 00:16:18,940 --> 00:16:21,240 In general, it's 100 milliseconds, it's configurable. 365 00:16:21,680 --> 00:16:23,900 You know, you can crank it way down, you can crank it way up. 366 00:16:23,960 --> 00:16:26,320 But nonetheless, a lot of people have these beaconing networks. 367 00:16:26,660 --> 00:16:27,720 You can turn it off. 368 00:16:27,880 --> 00:16:30,080 Most access points now give you the ability to create a cloaked 369 00:16:30,080 --> 00:16:32,160 or closed, or all these different names for a network. 370 00:16:32,660 --> 00:16:34,460 And that fools some more driving utilities. 371 00:16:35,420 --> 00:16:38,360 NetStumbler, you know, kind of the original granddaddy of these things, 372 00:16:38,500 --> 00:16:41,460 unfortunately, really all it's doing is querying the card 373 00:16:41,460 --> 00:16:42,780 and seeing what beacons are there. 374 00:16:43,000 --> 00:16:46,080 It's not promiscuously listening to say, who doesn't want to be found? 375 00:16:46,640 --> 00:16:49,000 Airstore and Kismet, though, however, will. 376 00:16:49,360 --> 00:16:52,760 They allow you to access the card promiscuously 377 00:16:52,760 --> 00:16:54,560 and go in and just listen. 378 00:16:54,780 --> 00:16:57,020 So even if they're not beaconing, you're going to catch traffic 379 00:16:57,020 --> 00:16:57,780 that's going across. 380 00:16:58,400 --> 00:17:00,700 So what you need to have in that case is some other manner 381 00:17:00,700 --> 00:17:02,320 of regular traffic to focus in on. 382 00:17:02,320 --> 00:17:04,800 And the beautiful thing about modern-day PCs, 383 00:17:04,960 --> 00:17:07,500 especially like Windows Boxing, they're pretty goddamn noisy. 384 00:17:08,380 --> 00:17:10,840 Windows has got this SMB crap going all the time. 385 00:17:11,020 --> 00:17:12,980 Now with OS X, you've got rendezvous, 386 00:17:13,020 --> 00:17:15,400 so you've got all this multicast traffic flying out of the box. 387 00:17:15,640 --> 00:17:16,900 These machines are not quiet. 388 00:17:17,060 --> 00:17:19,460 You will find them in a heartbeat, as long as you know, 389 00:17:19,540 --> 00:17:20,880 hey, I've only got ten channels to run through. 390 00:17:20,980 --> 00:17:22,760 You're periodically going to be doing a rendezvous request. 391 00:17:22,900 --> 00:17:24,000 I'm going to find you in about two minutes. 392 00:17:24,140 --> 00:17:25,200 Let there be no confusion. 393 00:17:27,220 --> 00:17:29,880 So anyway, 802.11, when it comes right down to it, 394 00:17:29,920 --> 00:17:31,300 it's pretty easy to find stuff. 395 00:17:31,300 --> 00:17:33,540 I mean, everybody here has gone war driving, I've got to assume, 396 00:17:33,640 --> 00:17:35,380 or at least been with friends who have been war driving. 397 00:17:35,980 --> 00:17:38,020 You go out there, and it's just instant gratification. 398 00:17:38,300 --> 00:17:39,300 It's the greatest thing in the world. 399 00:17:39,360 --> 00:17:41,160 You're driving up, bing, bing, bing, bing, you know, whatever. 400 00:17:42,020 --> 00:17:43,500 Bluetooth is not going to be that way. 401 00:17:44,640 --> 00:17:47,080 Frequency Hopping Spread Spectrum is a lot harder to find. 402 00:17:47,580 --> 00:17:51,320 First off, at the RF level, Bluetooth is a pain in the butt. 403 00:17:51,660 --> 00:17:53,540 Because you've got to line up with that hopping pattern, 404 00:17:53,660 --> 00:17:57,920 and you've got no idea where the transmitters are 405 00:17:57,920 --> 00:17:58,600 in the hopping pattern. 406 00:17:59,520 --> 00:18:01,280 So if you know the MAC address of this PC, 407 00:18:01,300 --> 00:18:03,720 and you want to ask it a question or tell it to do something, 408 00:18:03,900 --> 00:18:06,060 first thing you've got to do is line up with the hopping pattern, 409 00:18:06,260 --> 00:18:08,420 which basically means I'm going to run through the hopping pattern 410 00:18:08,420 --> 00:18:11,480 really damn fast in an effort to catch up to you. 411 00:18:12,500 --> 00:18:13,960 Well, that's a real pain in the butt, 412 00:18:13,960 --> 00:18:16,240 considering the hopping pattern is about two seconds long in the first place. 413 00:18:16,440 --> 00:18:18,260 And maybe because you're transmitting something 414 00:18:18,260 --> 00:18:20,160 and you're eating up more time slices than you should, 415 00:18:20,240 --> 00:18:22,660 I miss you the first time, and I've got to do it again, 416 00:18:22,800 --> 00:18:23,880 and then I've got to do it again. 417 00:18:24,360 --> 00:18:26,820 And after ten seconds, usually, statistically, 418 00:18:27,160 --> 00:18:28,940 you will have found the device you were looking for. 419 00:18:29,240 --> 00:18:29,600 Okay? 420 00:18:29,600 --> 00:18:31,220 This is not, like, abnormal. 421 00:18:31,500 --> 00:18:32,980 This is the way the protocol works. 422 00:18:33,220 --> 00:18:35,960 You will find devices between two and ten seconds on average. 423 00:18:36,500 --> 00:18:38,240 I mean, for those that have Bluetooth devices, 424 00:18:38,360 --> 00:18:40,260 when you try to get them to pair or you're trying to do something, 425 00:18:40,460 --> 00:18:41,660 they don't show up right away. 426 00:18:41,760 --> 00:18:43,620 And the reason is they're trying to align on this hopping pattern 427 00:18:43,620 --> 00:18:44,880 and figure out what the hopping pattern is. 428 00:18:46,120 --> 00:18:47,400 So as you can imagine, 429 00:18:47,600 --> 00:18:49,100 you're not going to get the instant gratification 430 00:18:49,100 --> 00:18:52,640 where before in AR211 you had a couple of milliseconds to find it, 431 00:18:52,680 --> 00:18:53,520 microseconds even. 432 00:18:53,660 --> 00:18:56,300 Here you're just running around, looking, looking, looking. 433 00:18:56,580 --> 00:18:58,720 And if he's not there or he goes out of range for a second, 434 00:18:58,720 --> 00:18:59,740 you're going to just keep doing it. 435 00:18:59,800 --> 00:19:00,380 You're going to retry. 436 00:19:00,400 --> 00:19:01,280 It's a real pain in the butt. 437 00:19:02,280 --> 00:19:04,020 Thankfully, devices can be discoverable, 438 00:19:04,960 --> 00:19:07,480 and you can actually, you know, send it the inquiry request 439 00:19:07,480 --> 00:19:08,180 I talked about earlier. 440 00:19:08,540 --> 00:19:10,900 And you would think, well, most people wouldn't have this on 441 00:19:10,900 --> 00:19:13,160 unless they were, like, in the process of doing something active 442 00:19:13,160 --> 00:19:13,760 with their machine. 443 00:19:14,140 --> 00:19:16,260 And for those that have the T68i, 444 00:19:16,440 --> 00:19:17,720 you could put it in discoverable mode, 445 00:19:17,800 --> 00:19:19,100 but it would only stay there for about three minutes, 446 00:19:19,140 --> 00:19:19,840 and then it would go away. 447 00:19:20,120 --> 00:19:22,260 This was not a security feature, mind you. 448 00:19:22,440 --> 00:19:23,780 This was a power feature. 449 00:19:23,980 --> 00:19:26,340 When you're in discoverable mode, it sucks up a lot more power 450 00:19:26,340 --> 00:19:28,240 because it's listening much more actively 451 00:19:28,720 --> 00:19:30,380 to requests on the network than it normally would. 452 00:19:30,680 --> 00:19:32,300 So I was at Black Hat, 453 00:19:32,440 --> 00:19:34,120 and I've got my little phone, 454 00:19:34,280 --> 00:19:36,160 and a buddy of mine is a race car driver, 455 00:19:36,440 --> 00:19:37,320 and I crew for him. 456 00:19:37,400 --> 00:19:39,460 And last weekend, his tire rolled off his rim, 457 00:19:39,520 --> 00:19:40,880 and I took a picture of it with my phone. 458 00:19:41,100 --> 00:19:42,300 And so at Black Hat, I figured, 459 00:19:42,420 --> 00:19:44,260 well, I want to see how many people will just take the picture 460 00:19:44,260 --> 00:19:44,960 of this freaking tire. 461 00:19:45,140 --> 00:19:46,880 And so I'm going around in all the rooms, 462 00:19:46,960 --> 00:19:48,520 and I'm scanning Bluetooth devices, 463 00:19:48,740 --> 00:19:50,280 and, you know, there's just, you know, 464 00:19:50,280 --> 00:19:52,740 probably per room, a dozen phones are just sitting there 465 00:19:52,740 --> 00:19:53,540 in discoverable mode. 466 00:19:53,740 --> 00:19:55,640 Some people actually took the picture. 467 00:19:55,780 --> 00:19:58,640 It says, some unknown person is trying to send you a file 468 00:19:58,720 --> 00:19:59,240 and people are going, 469 00:19:59,340 --> 00:20:01,240 oh, yeah, that seems like a rational idea. 470 00:20:01,300 --> 00:20:01,980 I think I'll do that. 471 00:20:06,080 --> 00:20:07,020 Devices can, thankfully, 472 00:20:07,140 --> 00:20:09,480 you can turn off this idea of discoverable mode. 473 00:20:09,940 --> 00:20:11,560 And in that case, you need to be, 474 00:20:11,740 --> 00:20:14,260 you need to directly probe the Mac in order to talk to it. 475 00:20:14,380 --> 00:20:16,820 So once you've turned, you know, you've discovered each other, 476 00:20:16,860 --> 00:20:18,140 say, you know, this is a legitimate situation. 477 00:20:18,220 --> 00:20:19,940 I'm trying to get my phone to talk to my laptop. 478 00:20:20,160 --> 00:20:21,180 And I've done the pairing. 479 00:20:21,400 --> 00:20:22,520 You know, do the pairing. 480 00:20:22,580 --> 00:20:23,540 One side was discoverable, 481 00:20:23,560 --> 00:20:24,520 the other side didn't need to be. 482 00:20:24,620 --> 00:20:25,240 I paired. 483 00:20:25,380 --> 00:20:27,300 I could turn discoverable mode off, 484 00:20:27,480 --> 00:20:28,700 but now that they know each other's Macs, 485 00:20:28,720 --> 00:20:28,940 Mac addresses, 486 00:20:29,160 --> 00:20:30,100 all they're going to do is 487 00:20:30,100 --> 00:20:31,160 when one wants to talk to each other, 488 00:20:31,200 --> 00:20:32,760 it's basically going to start walking around 489 00:20:32,760 --> 00:20:34,360 through that hop pattern until, 490 00:20:34,440 --> 00:20:35,680 with that Mac address, 491 00:20:35,840 --> 00:20:36,860 targeting at that Mac address 492 00:20:36,860 --> 00:20:37,960 until he finds that guy. 493 00:20:39,300 --> 00:20:41,580 Bluetooth also has the problem of service discovery 494 00:20:41,580 --> 00:20:42,620 at the application layer. 495 00:20:42,740 --> 00:20:44,560 There's potentially a lot less traffic going on. 496 00:20:44,820 --> 00:20:46,580 When I'm standing here and I'm not making a call, 497 00:20:46,700 --> 00:20:47,940 I'm not syncing my calendar, 498 00:20:48,020 --> 00:20:48,820 I'm not doing anything of that, 499 00:20:48,960 --> 00:20:50,240 the phone's pretty damn quiet, 500 00:20:50,420 --> 00:20:51,560 my laptop's pretty damn quiet. 501 00:20:51,760 --> 00:20:53,200 There's not a lot of traffic going around. 502 00:20:53,460 --> 00:20:54,760 Given the problem that you have, 503 00:20:54,840 --> 00:20:56,220 that there has to be some kind of traffic 504 00:20:56,220 --> 00:20:57,920 for you to sync up on on this pattern, 505 00:20:57,920 --> 00:20:59,140 that makes it kind of difficult 506 00:20:59,140 --> 00:21:01,220 to be able to sniff promiscuously for this data. 507 00:21:02,880 --> 00:21:05,080 Sophisticated RF gear solves a lot of these problems. 508 00:21:05,560 --> 00:21:07,180 If you've got a spectrum analyzer 509 00:21:07,180 --> 00:21:07,860 and you're just sitting there, 510 00:21:07,940 --> 00:21:09,840 you're going to see little burps 511 00:21:09,840 --> 00:21:12,760 as this thing's bouncing around in the spectrum. 512 00:21:13,100 --> 00:21:16,860 However, a lot of us can't afford spectrum analyzers. 513 00:21:16,920 --> 00:21:17,980 Secondly, they're kind of big. 514 00:21:18,140 --> 00:21:19,400 They don't look quite as impressive 515 00:21:19,400 --> 00:21:20,380 like laying on the table. 516 00:21:20,940 --> 00:21:24,020 Lastly, it would be real nice if cards did this, 517 00:21:24,100 --> 00:21:25,680 if you had some greater flexibility 518 00:21:26,160 --> 00:21:27,700 into how the cards interact 519 00:21:27,920 --> 00:21:28,940 at the RF level. 520 00:21:29,200 --> 00:21:31,460 As of yet, no one's been able to make 521 00:21:31,460 --> 00:21:33,200 a standard kind of run-of-the-mill card do it. 522 00:21:33,280 --> 00:21:34,440 You can buy PC cards. 523 00:21:34,460 --> 00:21:36,720 They're about between $500 and $2,000 524 00:21:37,180 --> 00:21:39,840 that are effectively software spectrum analyzers. 525 00:21:40,500 --> 00:21:42,500 I'm not really certain what the differences are 526 00:21:42,500 --> 00:21:43,380 between those cards 527 00:21:43,380 --> 00:21:46,040 and the basically $50 commodity Bluetooth gear. 528 00:21:46,340 --> 00:21:47,760 That's kind of what I'm working on right now 529 00:21:47,760 --> 00:21:48,680 is digging through firmware 530 00:21:48,680 --> 00:21:50,600 on all these Bluetooth devices, 531 00:21:50,720 --> 00:21:52,620 trying to figure out what options are there 532 00:21:52,620 --> 00:21:54,380 that aren't being exposed in open source drivers. 533 00:21:56,200 --> 00:21:57,320 Obviously, I've gone past. 534 00:21:57,940 --> 00:21:59,700 Okay, so a fun attack. 535 00:22:00,680 --> 00:22:05,000 This is one of those red herrings. 536 00:22:05,060 --> 00:22:05,900 I'm going to throw this one out there, 537 00:22:05,960 --> 00:22:07,520 but in practice, it's not going to be much of an issue. 538 00:22:07,740 --> 00:22:10,040 If during the pairing process, 539 00:22:10,340 --> 00:22:11,540 I can intercept your traffic, 540 00:22:11,740 --> 00:22:14,520 I own you, I know your keys, 541 00:22:14,660 --> 00:22:17,020 I'm able to basically get your random number, 542 00:22:17,140 --> 00:22:20,680 and then maybe I'm being a little over the top, 543 00:22:20,820 --> 00:22:23,200 but the PIN is usually a four-digit number. 544 00:22:24,800 --> 00:22:26,280 There's a search space there 545 00:22:26,280 --> 00:22:27,900 that's pretty easy to brute force your way in. 546 00:22:27,920 --> 00:22:29,420 There's no way through until you find the right thing. 547 00:22:29,620 --> 00:22:31,960 And on top of this four-digit PIN that most people use, 548 00:22:32,060 --> 00:22:33,520 most people think PIN and they think four digits 549 00:22:33,520 --> 00:22:34,700 just like it's in our brain. 550 00:22:34,860 --> 00:22:37,100 But secondarily, when you have a device like an earpiece 551 00:22:37,100 --> 00:22:37,980 that doesn't have a keypad, 552 00:22:38,260 --> 00:22:39,600 there's no way to enter the PIN in. 553 00:22:40,120 --> 00:22:41,300 So it's hard set. 554 00:22:41,720 --> 00:22:44,180 So Belkin earbuds have one, two, three, four as the PIN. 555 00:22:44,300 --> 00:22:46,220 So if I know you just paired with a Belkin earbud 556 00:22:46,220 --> 00:22:47,900 and I'm able to intercept that traffic, 557 00:22:48,140 --> 00:22:50,120 I can create your keys on my own, 558 00:22:50,200 --> 00:22:52,260 and from that point on, I can decrypt, authenticate, 559 00:22:52,340 --> 00:22:53,660 I can do anything I want to your traffic. 560 00:22:54,380 --> 00:22:55,500 This is a bad thing. 561 00:22:55,680 --> 00:22:57,740 It's recognized by the specification creators, 562 00:22:57,920 --> 00:22:59,600 but there's really not a lot of way around it right now. 563 00:23:00,120 --> 00:23:01,320 Basically, if you're going to pair 564 00:23:01,320 --> 00:23:03,680 and you're really paranoid going to a Faraday cage 565 00:23:03,680 --> 00:23:05,720 or some nonsense, in general, 566 00:23:05,760 --> 00:23:07,120 it's going to be a pretty safe activity. 567 00:23:08,120 --> 00:23:10,180 More likely, the attacks that you see right now 568 00:23:10,180 --> 00:23:12,720 are these poorly designed software, 569 00:23:12,840 --> 00:23:14,980 people with optional security. 570 00:23:15,400 --> 00:23:17,920 I had a card from my iPac. 571 00:23:17,920 --> 00:23:19,300 I don't recall what vendor it was. 572 00:23:19,500 --> 00:23:23,300 And it installed the driver for the Bluetooth card. 573 00:23:23,460 --> 00:23:25,600 But then it installed a whole bunch of profiles 574 00:23:25,600 --> 00:23:27,140 and the software that supports it. 575 00:23:27,920 --> 00:23:32,380 First of all, the software that supports the network access profile 576 00:23:32,840 --> 00:23:34,140 is actually a PPP server. 577 00:23:34,640 --> 00:23:37,520 So there was a PPP server installed on my PDA. 578 00:23:37,760 --> 00:23:39,080 This was non-trivial. 579 00:23:39,240 --> 00:23:41,400 This is like a 3 meg piece of software in and of itself. 580 00:23:41,560 --> 00:23:43,140 The whole driver was like 9 megs. 581 00:23:43,620 --> 00:23:45,940 Secondarily, it had a file sharing profile, 582 00:23:46,360 --> 00:23:49,320 and the file sharing profile was turned on by default, 583 00:23:49,540 --> 00:23:51,940 without encryption, without authentication, 584 00:23:52,100 --> 00:23:56,100 and it was sharing the root of my PDA's file system, 585 00:23:56,300 --> 00:23:57,280 world writable. 586 00:23:57,920 --> 00:23:58,500 It was awesome. 587 00:23:58,760 --> 00:24:00,700 It was potentially the worst possible thing 588 00:24:00,700 --> 00:24:02,020 anyone could have done to a driver, 589 00:24:02,120 --> 00:24:03,440 and it was just the default installation. 590 00:24:04,220 --> 00:24:06,280 This is real similar to the early days 591 00:24:06,280 --> 00:24:08,480 of 802.11 wireless security problems. 592 00:24:08,900 --> 00:24:10,340 A lot of you probably remember 593 00:24:10,340 --> 00:24:12,100 Lucent's access points back in the day, 594 00:24:12,140 --> 00:24:14,640 where their serial number was their web key was their SSID. 595 00:24:14,920 --> 00:24:16,040 So when you drove down the road 596 00:24:16,040 --> 00:24:18,720 and you saw a six-digit hex SSID, 597 00:24:18,820 --> 00:24:21,400 and it had the Lucent octet in front of it, 598 00:24:21,460 --> 00:24:22,440 you're like, oh, great. 599 00:24:22,640 --> 00:24:23,520 I know the web key. 600 00:24:23,660 --> 00:24:24,440 I can sniff your traffic. 601 00:24:24,520 --> 00:24:26,300 There's no point of even running web crack or something. 602 00:24:27,860 --> 00:24:29,720 These defaults are going to be the first thing 603 00:24:29,720 --> 00:24:30,520 that the vendors solve. 604 00:24:30,860 --> 00:24:31,800 They're going to go out there, 605 00:24:31,920 --> 00:24:33,340 and they're going to get pushback, I think, 606 00:24:33,400 --> 00:24:34,840 probably from corporate security folks mostly, 607 00:24:34,960 --> 00:24:36,040 because those are the people with the real money, 608 00:24:36,100 --> 00:24:37,780 and say, hey, why don't you fix your shit? 609 00:24:38,060 --> 00:24:39,920 Come back when you've got better defaults, 610 00:24:39,920 --> 00:24:40,500 and then we can talk. 611 00:24:43,300 --> 00:24:45,940 Low-carb devices like Class 3 devices 612 00:24:45,940 --> 00:24:47,640 can be intercepted at a distance 613 00:24:47,640 --> 00:24:49,380 with reasonable antennas. 614 00:24:50,720 --> 00:24:53,500 If you're a Class 1 device, it's even easier. 615 00:24:54,400 --> 00:24:55,960 To this laptop for my phone, 616 00:24:55,960 --> 00:24:56,960 I was able to do a distance 617 00:24:56,960 --> 00:24:58,480 from basically the back of the room 618 00:24:58,480 --> 00:24:59,800 to here in a session the other day. 619 00:25:00,760 --> 00:25:02,100 That's a pretty substantial difference. 620 00:25:02,340 --> 00:25:03,600 Basically, I'm not sure what this is. 621 00:25:03,700 --> 00:25:05,300 I think the thing on my phone is only a Class 3 device. 622 00:25:05,640 --> 00:25:06,700 That's an appreciable distance 623 00:25:06,700 --> 00:25:08,740 just for how it's supposed to be used. 624 00:25:08,880 --> 00:25:09,440 If you're really trying, 625 00:25:09,500 --> 00:25:10,520 you're going to be picking it up 626 00:25:10,520 --> 00:25:12,100 for many number of meters. 627 00:25:15,340 --> 00:25:17,180 Basically, it's like your own Rift ID tag. 628 00:25:17,560 --> 00:25:18,760 People can follow you around. 629 00:25:19,400 --> 00:25:20,840 I want to just reinforce this. 630 00:25:21,000 --> 00:25:21,540 It's not expensive. 631 00:25:22,000 --> 00:25:23,740 The cell phone companies can follow you. 632 00:25:24,080 --> 00:25:25,380 E911, great. 633 00:25:25,960 --> 00:25:26,240 I'm in distress. 634 00:25:26,460 --> 00:25:28,160 The cell phone towers can triangulate me. 635 00:25:28,160 --> 00:25:28,340 Great. 636 00:25:28,380 --> 00:25:29,840 I'm sure there's no privacy concerns 637 00:25:29,840 --> 00:25:30,740 about my phone company 638 00:25:30,740 --> 00:25:31,660 and I don't know where the hell I am. 639 00:25:33,260 --> 00:25:34,940 Now, not just the phone company, 640 00:25:35,080 --> 00:25:36,680 but anyone who's really interested in your activity 641 00:25:36,680 --> 00:25:38,620 can create a pretty cheap little network 642 00:25:38,620 --> 00:25:39,300 of Bluetooth devices 643 00:25:39,300 --> 00:25:40,880 and they can track you everywhere you go. 644 00:25:41,680 --> 00:25:43,620 For most of us, that's not an issue. 645 00:25:43,740 --> 00:25:45,280 For some people, it's paranoia. 646 00:25:45,320 --> 00:25:46,460 For others, it's a fact of life, 647 00:25:46,500 --> 00:25:47,620 something they need to be concerned about. 648 00:25:50,180 --> 00:25:51,160 Bluetooth war driving. 649 00:25:52,180 --> 00:25:53,540 War driving is probably a bad term 650 00:25:53,540 --> 00:25:54,540 because if you're driving by 651 00:25:54,540 --> 00:25:55,800 and given this nature of it 652 00:25:55,960 --> 00:25:56,440 and it takes a long time 653 00:25:56,440 --> 00:25:57,180 to pick up the device, 654 00:25:57,260 --> 00:25:58,280 you're probably not going to see it. 655 00:25:58,680 --> 00:25:59,800 I mean, everyone's war driven 656 00:25:59,800 --> 00:26:00,900 at like 60 miles an hour. 657 00:26:01,040 --> 00:26:02,960 You keep picking these things up, 658 00:26:03,060 --> 00:26:04,720 you're not going to have that here with Bluetooth. 659 00:26:04,900 --> 00:26:05,960 So it's more like war walking. 660 00:26:08,900 --> 00:26:10,740 The original way that I did this 661 00:26:11,100 --> 00:26:13,120 was in New York about a year and a half ago 662 00:26:13,120 --> 00:26:14,800 and just roaming around with my PDA 663 00:26:14,800 --> 00:26:15,840 and the little device 664 00:26:15,840 --> 00:26:16,620 and just keeping scanning. 665 00:26:16,960 --> 00:26:17,820 It said no devices found. 666 00:26:17,900 --> 00:26:18,920 Yes, yes, yes. 667 00:26:19,180 --> 00:26:21,100 And there weren't a lot of devices at the time 668 00:26:21,100 --> 00:26:21,600 that had Bluetooth, 669 00:26:21,760 --> 00:26:22,760 so it was a pretty boring endeavor. 670 00:26:23,400 --> 00:26:24,340 And it turned out 671 00:26:24,340 --> 00:26:25,320 you probably needed a better UI 672 00:26:25,320 --> 00:26:26,620 to be able to pull this off successfully. 673 00:26:27,460 --> 00:26:29,400 By default, just doing that mechanism 674 00:26:29,400 --> 00:26:30,620 like your phone or your PDA 675 00:26:30,620 --> 00:26:32,580 is not going to define non-discoverable devices. 676 00:26:33,200 --> 00:26:34,200 So if you're really looking 677 00:26:34,200 --> 00:26:35,160 to have a good time with somebody, 678 00:26:35,400 --> 00:26:36,360 if they're not discoverable, 679 00:26:36,400 --> 00:26:37,620 your life just got a lot more miserable. 680 00:26:37,920 --> 00:26:39,660 I'll get into how you can overcome it, 681 00:26:39,700 --> 00:26:40,520 but it's not going to be pretty. 682 00:26:41,160 --> 00:26:42,820 New tools really need to catch on 683 00:26:42,820 --> 00:26:44,700 in order to draw out these concerns. 684 00:26:45,160 --> 00:26:46,360 And I think that we're going to see 685 00:26:46,360 --> 00:26:47,340 in the next year or two 686 00:26:47,920 --> 00:26:49,160 a kind of explosive growth, 687 00:26:49,220 --> 00:26:51,260 not only in Bluetooth device penetration, 688 00:26:51,500 --> 00:26:54,020 but also in the security community's interest in it. 689 00:26:54,060 --> 00:26:54,320 At the same time, 690 00:26:54,340 --> 00:26:55,600 the number of tools are going to be created. 691 00:26:56,100 --> 00:26:57,800 Today, there's just a handful of tools. 692 00:26:57,900 --> 00:26:59,680 Only a couple of them are really security-related. 693 00:27:00,100 --> 00:27:02,180 It's going to become a lot more proficient. 694 00:27:02,320 --> 00:27:04,000 Now, anticipate next year at DEF CON, 695 00:27:04,260 --> 00:27:06,080 there'll be two or three Bluetooth talks 696 00:27:06,080 --> 00:27:07,480 instead of one like there is this year. 697 00:27:08,140 --> 00:27:08,800 There, of course, 698 00:27:08,900 --> 00:27:10,400 is the wonderful voyeuristic appeal 699 00:27:10,400 --> 00:27:12,460 of 802.11 war driving 700 00:27:12,460 --> 00:27:13,040 where you get to go around 701 00:27:13,040 --> 00:27:14,000 and see who's doing what. 702 00:27:14,560 --> 00:27:15,960 The problem is right now, 703 00:27:16,140 --> 00:27:18,020 the devices that I'm aware of 704 00:27:18,020 --> 00:27:19,220 don't have clear interfaces 705 00:27:19,220 --> 00:27:21,720 to allow you to promiscuously sniff traffic. 706 00:27:22,380 --> 00:27:23,520 So because of that, 707 00:27:23,860 --> 00:27:25,040 it's not quite as voyeuristic. 708 00:27:25,240 --> 00:27:26,240 Like, you know, with 802.11, 709 00:27:26,300 --> 00:27:26,980 I could read your email. 710 00:27:27,140 --> 00:27:28,120 In theory, with Bluetooth, 711 00:27:28,260 --> 00:27:29,300 I can listen to your phone conversations, 712 00:27:30,160 --> 00:27:31,480 but that kind of alien technology 713 00:27:32,160 --> 00:27:33,480 doesn't exist for us mortals yet. 714 00:27:34,880 --> 00:27:36,380 And hopefully, at the end of the day, 715 00:27:36,480 --> 00:27:37,260 there's some software developers 716 00:27:37,260 --> 00:27:37,980 back in the room 717 00:27:37,980 --> 00:27:39,040 who are going to get this all figured out 718 00:27:39,040 --> 00:27:40,120 and solve some problems. 719 00:27:41,980 --> 00:27:42,260 So... 720 00:27:44,440 --> 00:27:44,960 Yeah, here. 721 00:27:45,080 --> 00:27:46,780 Oh, one thing I do want to mention on this slide. 722 00:27:48,180 --> 00:27:48,840 Errors in implementation 723 00:27:49,920 --> 00:27:51,000 are going to be a problem. 724 00:27:51,080 --> 00:27:52,280 That's kind of the next generation problem 725 00:27:52,280 --> 00:27:53,100 I think we're going to see. 726 00:27:54,080 --> 00:27:56,580 The analog to what I'm trying to describe here 727 00:27:56,580 --> 00:27:59,000 is, you know, like an outlook 728 00:27:59,000 --> 00:28:01,040 when you can kind of bomb in some HTML 729 00:28:01,040 --> 00:28:03,440 and have something bad inside of the HTML 730 00:28:03,440 --> 00:28:04,280 that gets interpreted 731 00:28:04,280 --> 00:28:05,660 by some piece of Windows 732 00:28:05,660 --> 00:28:06,560 and bad things happen. 733 00:28:07,020 --> 00:28:07,900 And so you always tell people, 734 00:28:08,020 --> 00:28:09,220 don't open HTML mail. 735 00:28:09,340 --> 00:28:10,280 It wasn't just, you know, 736 00:28:10,280 --> 00:28:11,400 don't open attachments. 737 00:28:11,740 --> 00:28:13,440 Like, okay, any idiot, you know, 738 00:28:13,440 --> 00:28:14,580 can figure out don't open the attachment. 739 00:28:14,740 --> 00:28:15,900 But then there was all this kind of line, 740 00:28:15,920 --> 00:28:17,800 like, don't open the emails you don't trust 741 00:28:17,800 --> 00:28:19,160 because maybe there's a problem 742 00:28:19,160 --> 00:28:20,000 with the HTML interpreter 743 00:28:20,000 --> 00:28:21,480 or RTF interpreter or whatever. 744 00:28:22,100 --> 00:28:23,300 Whatever, rich text format. 745 00:28:23,360 --> 00:28:23,500 Yeah. 746 00:28:23,520 --> 00:28:26,100 RTF interpreter that's going to allow you, 747 00:28:26,140 --> 00:28:27,240 someone to own the box. 748 00:28:27,540 --> 00:28:30,120 And I think the last kind of HTML interpreter problem 749 00:28:30,120 --> 00:28:31,380 was about two or three years ago. 750 00:28:31,560 --> 00:28:32,800 And then, like, three weeks ago, 751 00:28:32,860 --> 00:28:33,480 there was another one. 752 00:28:33,680 --> 00:28:35,060 So just when everyone was getting used 753 00:28:35,060 --> 00:28:35,820 to opening their mail, 754 00:28:35,940 --> 00:28:38,140 now suddenly people can just bomb in HTML again 755 00:28:38,140 --> 00:28:38,720 and own your box 756 00:28:38,720 --> 00:28:39,660 without you having to do anything. 757 00:28:39,980 --> 00:28:40,420 Wonderful. 758 00:28:40,740 --> 00:28:42,380 We're going to see the same kind of problems 759 00:28:42,380 --> 00:28:44,040 as the next generation problems in Bluetooth 760 00:28:44,040 --> 00:28:46,080 where someone at a conference 761 00:28:46,080 --> 00:28:47,940 accepts a picture from someone 762 00:28:47,940 --> 00:28:49,160 and inside that picture 763 00:28:49,160 --> 00:28:50,160 I've embedded some malware. 764 00:28:50,420 --> 00:28:51,820 And that malware is gunning 765 00:28:51,820 --> 00:28:53,280 for some kind of vulnerability 766 00:28:53,280 --> 00:28:54,820 in the parsing engine or whatever 767 00:28:54,820 --> 00:28:56,740 of whatever OS that phone's running. 768 00:28:56,800 --> 00:28:57,520 These phones run, you know, 769 00:28:57,540 --> 00:28:59,200 Symbian, Palm, Windows. 770 00:28:59,420 --> 00:29:00,120 I mean, my God. 771 00:29:00,900 --> 00:29:03,140 Windows frickin' 2002 Pocket PC, 772 00:29:03,320 --> 00:29:04,280 whatever the hell they call the thing, 773 00:29:04,400 --> 00:29:04,820 is... 774 00:29:05,920 --> 00:29:07,300 Damn, I have a firewall in my basement 775 00:29:07,300 --> 00:29:08,640 that's not as powerful as that box. 776 00:29:08,780 --> 00:29:09,460 I mean, that's ridiculous. 777 00:29:09,820 --> 00:29:11,340 There's a lot of functionality there. 778 00:29:11,480 --> 00:29:13,740 They still don't get the security thing, you know. 779 00:29:13,960 --> 00:29:16,520 Windows Pocket PC 2002, at least, 780 00:29:16,520 --> 00:29:18,120 didn't understand how to handle, like, 781 00:29:18,120 --> 00:29:19,000 certificate revocation, 782 00:29:19,240 --> 00:29:20,480 how to load a new root cert. 783 00:29:20,560 --> 00:29:21,540 I mean, the thing was pretty angry. 784 00:29:21,620 --> 00:29:23,020 I haven't played with 2003 much yet. 785 00:29:23,280 --> 00:29:25,520 But, you know, that's not gonna change. 786 00:29:25,760 --> 00:29:26,600 You know, these guys are thinking 787 00:29:26,600 --> 00:29:27,360 they're unembedded OS. 788 00:29:27,540 --> 00:29:28,360 They got bigger concerns. 789 00:29:28,620 --> 00:29:30,220 Power consumption and size. 790 00:29:30,560 --> 00:29:31,900 They're really not caring about security 791 00:29:31,900 --> 00:29:32,800 as much as they should. 792 00:29:33,060 --> 00:29:34,640 So the moral of this is, 793 00:29:34,700 --> 00:29:35,940 I think in the next year or two, 794 00:29:36,020 --> 00:29:37,320 you're gonna see these kind of malware attacks. 795 00:29:37,640 --> 00:29:39,220 And this is gonna be kind of analogous, I think, 796 00:29:39,240 --> 00:29:40,720 to what happened in Japan with SMS, 797 00:29:41,000 --> 00:29:42,940 where people were sending in SMS viruses 798 00:29:42,940 --> 00:29:44,140 to people on their phones. 799 00:29:44,500 --> 00:29:46,240 You know, SMS was coming in-band, 800 00:29:46,320 --> 00:29:47,320 in the phone, you know, 801 00:29:47,320 --> 00:29:48,380 over the GSM network 802 00:29:48,380 --> 00:29:49,600 or whatever network they're connected to. 803 00:29:49,700 --> 00:29:51,160 This is gonna come from the guy next to you 804 00:29:51,160 --> 00:29:52,320 walking past you in the mall. 805 00:29:54,240 --> 00:29:56,460 So the first tool that was released 806 00:29:56,460 --> 00:29:58,700 that I want to talk about was Red Fang. 807 00:29:58,840 --> 00:30:01,100 It was released by AtStake two months ago, 808 00:30:01,160 --> 00:30:01,820 maybe three months ago. 809 00:30:02,160 --> 00:30:04,560 And this is really the first, you know, 810 00:30:04,600 --> 00:30:06,480 security tool that goes out 811 00:30:06,480 --> 00:30:07,140 and looks for devices 812 00:30:07,140 --> 00:30:08,040 that don't want to be discovered. 813 00:30:10,800 --> 00:30:12,280 I applaud them for what they did, 814 00:30:12,360 --> 00:30:13,720 but unfortunately the process 815 00:30:13,720 --> 00:30:15,500 that you have to go through is not pretty. 816 00:30:16,100 --> 00:30:17,260 Because of this deal 817 00:30:17,260 --> 00:30:19,200 where it takes a long time to find a device 818 00:30:19,200 --> 00:30:20,640 even when you know its MAC address, 819 00:30:20,860 --> 00:30:22,300 but you don't know its MAC address 820 00:30:22,320 --> 00:30:23,140 ahead of time, 821 00:30:23,200 --> 00:30:24,660 means that you're gonna go through 822 00:30:24,660 --> 00:30:26,800 and you're gonna brute force guess MAC addresses. 823 00:30:27,120 --> 00:30:29,180 And for every MAC address you're trying to guess, 824 00:30:29,340 --> 00:30:31,960 you gotta wait probably up to 10 seconds 825 00:30:31,960 --> 00:30:33,580 while you're trying to find the device. 826 00:30:33,900 --> 00:30:34,700 If there's nothing there, 827 00:30:34,760 --> 00:30:37,660 you go to 000001. 828 00:30:38,060 --> 00:30:40,300 You wait for 10 more seconds 829 00:30:40,300 --> 00:30:41,120 and you do it again. 830 00:30:41,300 --> 00:30:42,740 This is a long process. 831 00:30:43,500 --> 00:30:45,260 The one thing that's nice, you know, 832 00:30:45,260 --> 00:30:47,120 these MAC addresses are the 833 00:30:47,120 --> 00:30:50,120 OUI registered IEEE MAC addresses. 834 00:30:50,280 --> 00:30:52,060 You know, these are global unique MAC addresses 835 00:30:52,060 --> 00:30:53,260 that come from that same listing. 836 00:30:54,060 --> 00:30:57,240 So we're able to create lists of MAC prefixes 837 00:30:57,240 --> 00:30:58,340 for various vendors. 838 00:30:58,880 --> 00:31:00,900 I'm working on putting up just a list 839 00:31:00,900 --> 00:31:02,620 of the devices that I'm aware of, you know. 840 00:31:02,760 --> 00:31:04,480 What's the MAC prefix for Apple's? 841 00:31:04,560 --> 00:31:06,460 What's the MAC prefix for Ericsson phones? 842 00:31:06,700 --> 00:31:08,440 What's the MAC prefix for Nokia phones? 843 00:31:08,920 --> 00:31:10,680 And maybe we'll be able to find the ranges 844 00:31:10,680 --> 00:31:12,840 that these companies are using for their MAC addresses. 845 00:31:13,260 --> 00:31:15,500 And that will allow you to kind of jump start the process. 846 00:31:15,640 --> 00:31:16,480 So you should be able to determine 847 00:31:16,480 --> 00:31:17,840 the three octets right off the bat. 848 00:31:18,040 --> 00:31:20,040 And then maybe through some work and some collaboration 849 00:31:20,040 --> 00:31:20,920 we'll be able to say, 850 00:31:20,920 --> 00:31:23,220 these companies are using these smaller ranges. 851 00:31:23,480 --> 00:31:25,600 Which will make finding, you know, this MAC 852 00:31:25,600 --> 00:31:28,360 a lot easier process than the hours and hours 853 00:31:28,360 --> 00:31:29,480 that it's going to be right now 854 00:31:29,480 --> 00:31:31,220 when you're trying to look like it, trying to find it. 855 00:31:31,540 --> 00:31:32,840 Doesn't that sound exciting? 856 00:31:33,540 --> 00:31:35,700 Going off and looking for one device 857 00:31:35,700 --> 00:31:37,780 for hours on end, and God help you 858 00:31:37,780 --> 00:31:39,400 if you're at Starbucks and that guy gets up 859 00:31:39,400 --> 00:31:41,020 after, you know, 30 minutes and walks away 860 00:31:41,020 --> 00:31:42,880 and that scan was just useless. 861 00:31:43,040 --> 00:31:43,860 You can, right next to the scan, 862 00:31:44,020 --> 00:31:46,040 the guy with the funky hat, if he ever comes back, 863 00:31:46,060 --> 00:31:47,500 I ended with 000100. 864 00:31:53,440 --> 00:31:54,520 The question is, 865 00:31:54,580 --> 00:31:56,240 is there broadcast or multicast traffic for it? 866 00:31:57,760 --> 00:32:00,480 Bluetooth is, I guess, the way to describe it, 867 00:32:00,520 --> 00:32:01,100 and I've seen it publicized, 868 00:32:01,440 --> 00:32:03,980 is not a promiscuous protocol, 869 00:32:04,800 --> 00:32:05,940 meaning everything's pretty much 870 00:32:05,940 --> 00:32:07,380 what you would analog to Unicast. 871 00:32:07,820 --> 00:32:09,280 The closest thing to this broadcast 872 00:32:09,280 --> 00:32:11,020 is this idea of the inquiry request. 873 00:32:11,780 --> 00:32:13,160 I'm unaware of anything else 874 00:32:13,160 --> 00:32:15,100 that basically doesn't specify, 875 00:32:15,180 --> 00:32:17,660 have to cause you to go right at the MAC address. 876 00:32:17,800 --> 00:32:18,940 The only thing that's kind of generic, 877 00:32:19,100 --> 00:32:20,900 i.e. a broadcast, is this inquiry request. 878 00:32:20,920 --> 00:32:22,800 By turning off discoverable mode, 879 00:32:22,940 --> 00:32:23,940 that thing's dead. 880 00:32:24,940 --> 00:32:25,920 So, you know, 881 00:32:25,940 --> 00:32:27,520 this takes a long time, 882 00:32:27,580 --> 00:32:28,280 but this is the only way. 883 00:32:28,600 --> 00:32:30,680 And so if you're an angry adversary, 884 00:32:31,000 --> 00:32:31,860 you know, you're looking 885 00:32:31,860 --> 00:32:33,200 and you're targeting someone specifically, 886 00:32:33,540 --> 00:32:35,220 this kind of thing's gonna work out for you. 887 00:32:35,600 --> 00:32:37,060 If you're not an angry adversary, 888 00:32:37,320 --> 00:32:39,060 well, then, you're probably not gonna 889 00:32:39,060 --> 00:32:40,040 really go down this road. 890 00:32:40,160 --> 00:32:41,480 It's fun and it's neat and all, 891 00:32:41,580 --> 00:32:43,000 but I think, academically, 892 00:32:43,240 --> 00:32:44,000 that's about all we got. 893 00:32:48,960 --> 00:32:49,800 Oh, yeah. 894 00:32:49,800 --> 00:32:52,500 The way that the hopping pattern works 895 00:32:52,500 --> 00:32:54,440 is it's a seed off the MAC address 896 00:32:54,440 --> 00:32:55,960 of the master in the Pyconet. 897 00:32:56,040 --> 00:32:57,700 The Pyconet's basically the pan. 898 00:32:57,980 --> 00:33:00,120 You've got all your devices talking to each other, 899 00:33:00,280 --> 00:33:02,080 and you've got the master, 900 00:33:02,140 --> 00:33:02,900 you've got all these slaves, 901 00:33:03,100 --> 00:33:04,900 and they form this thing called a Pyconet. 902 00:33:05,340 --> 00:33:06,860 And so in the Pyconet, 903 00:33:06,900 --> 00:33:09,480 the master's MAC address determines the hopping pattern. 904 00:33:09,840 --> 00:33:11,040 And this is kind of interesting. 905 00:33:11,200 --> 00:33:13,980 If the master in your Pyconet is discoverable, 906 00:33:14,160 --> 00:33:17,020 he's basically pimped out everything in its Pyconet. 907 00:33:17,360 --> 00:33:19,240 Because you're able to see the master, 908 00:33:19,240 --> 00:33:20,420 you're able to find his MAC address, 909 00:33:20,560 --> 00:33:21,760 you're able to determine the hopping pattern, 910 00:33:21,960 --> 00:33:23,500 and at that point, hey, great, 911 00:33:23,580 --> 00:33:24,740 I can now listen to everybody 912 00:33:24,740 --> 00:33:26,620 because I know exactly what their hopping pattern is. 913 00:33:26,760 --> 00:33:30,880 If one of the members of the Pyconet is indiscoverable, 914 00:33:31,040 --> 00:33:33,000 you know he's there, and that's good, 915 00:33:33,220 --> 00:33:35,300 but you don't know what hopping pattern he's on yet, 916 00:33:35,340 --> 00:33:36,700 so you still gotta work like hell 917 00:33:36,700 --> 00:33:37,860 to try to find other devices. 918 00:33:38,400 --> 00:33:40,920 So, you know, just from an architectural perspective, 919 00:33:41,180 --> 00:33:43,680 my God, you have to architect your personal area network. 920 00:33:44,300 --> 00:33:45,240 Who's my master, 921 00:33:45,360 --> 00:33:46,920 and is he going to be in discoverable mode? 922 00:33:47,180 --> 00:33:48,440 Make sure he's not, 923 00:33:48,440 --> 00:33:49,760 and you'll probably be a lot happier. 924 00:33:51,800 --> 00:33:53,220 So we ripped together this thing, 925 00:33:53,380 --> 00:33:56,940 and I will caveat this really heavily right now 926 00:33:56,940 --> 00:33:58,980 and say it's not the prettiest piece of code, 927 00:33:59,140 --> 00:34:00,960 and I'll be real happy if anyone downloads it 928 00:34:00,960 --> 00:34:03,020 and it actually works successfully out of the box. 929 00:34:04,220 --> 00:34:05,800 It was kind of a last minute. 930 00:34:06,000 --> 00:34:08,260 We were going down the road that at stake had gone down, 931 00:34:08,340 --> 00:34:08,920 and then they released, 932 00:34:09,080 --> 00:34:10,340 and we just kind of sat on our hands 933 00:34:10,340 --> 00:34:11,700 and felt a little dejected, 934 00:34:11,700 --> 00:34:14,060 and we decided, oh, we'll tackle the usability problem, 935 00:34:14,320 --> 00:34:16,640 because, you know, usability's a big issue in security, 936 00:34:16,780 --> 00:34:18,280 and so we made a really wonderful, 937 00:34:18,440 --> 00:34:19,320 useful end curses application 938 00:34:19,320 --> 00:34:21,040 that periodically just kind of disappears, 939 00:34:21,260 --> 00:34:22,420 so it's real usable. 940 00:34:24,960 --> 00:34:27,120 I'm sure a lot of you have heard this study 941 00:34:27,120 --> 00:34:28,840 called Why Johnny Can't Encrypt, 942 00:34:29,240 --> 00:34:31,280 and it was a study done by some researchers, 943 00:34:31,340 --> 00:34:32,760 I think in California a couple years ago, 944 00:34:32,900 --> 00:34:34,180 where they took a bunch of people in a room 945 00:34:34,180 --> 00:34:35,160 who weren't computer savvy 946 00:34:35,160 --> 00:34:36,520 and locked them together and said, 947 00:34:36,640 --> 00:34:37,860 here's encrypted email. 948 00:34:38,020 --> 00:34:39,560 Here's how you do it, okay? 949 00:34:39,920 --> 00:34:41,260 First, without telling them anything, 950 00:34:41,380 --> 00:34:42,780 can you send encrypted email to each other? 951 00:34:42,980 --> 00:34:43,920 And a few people succeeded, 952 00:34:44,120 --> 00:34:44,820 and most people failed. 953 00:34:44,980 --> 00:34:46,780 Then they spent the day explaining this to them 954 00:34:46,780 --> 00:34:49,200 and said, okay, now send encrypted email to each other, 955 00:34:49,320 --> 00:34:51,080 and a few more people figured it out, 956 00:34:51,160 --> 00:34:51,840 and the rest of the people 957 00:34:51,840 --> 00:34:52,780 still kind of scratched their butts 958 00:34:52,780 --> 00:34:53,580 and said, I don't get it. 959 00:34:54,480 --> 00:34:56,540 Usability is a big security issue, you know, 960 00:34:56,580 --> 00:34:58,240 and as application providers, 961 00:34:58,540 --> 00:34:59,600 as system integrators, 962 00:34:59,620 --> 00:35:00,700 as attackers, as whatever, 963 00:35:00,960 --> 00:35:02,220 you've got to care about usability, 964 00:35:02,640 --> 00:35:04,600 and potentially it's more important than the technology, 965 00:35:04,740 --> 00:35:05,460 because the technology, 966 00:35:05,500 --> 00:35:06,320 I can stand up here 967 00:35:06,320 --> 00:35:08,280 and hit you with a technology stick today, 968 00:35:08,440 --> 00:35:09,760 and most of you are going to get it, 969 00:35:09,780 --> 00:35:10,820 and you're going to walk out of here and say, 970 00:35:10,900 --> 00:35:11,840 I understand this shit. 971 00:35:11,860 --> 00:35:12,660 This is good stuff. 972 00:35:13,060 --> 00:35:14,920 But my god are the tools terrible. 973 00:35:15,340 --> 00:35:16,300 They just crater. 974 00:35:16,780 --> 00:35:17,160 I have no way to use them. 975 00:35:17,240 --> 00:35:17,580 They're ugly. 976 00:35:17,740 --> 00:35:18,500 I don't understand it. 977 00:35:18,680 --> 00:35:19,040 Whatever. 978 00:35:19,400 --> 00:35:22,560 Or I've got to compile some crazy LKM for Linux 979 00:35:22,560 --> 00:35:25,180 that takes like 50 other widgets to compile. 980 00:35:26,440 --> 00:35:27,340 I hate that. 981 00:35:28,320 --> 00:35:31,080 So we tried to solve the usability problem 982 00:35:31,080 --> 00:35:32,220 and made it an unusable tool. 983 00:35:34,640 --> 00:35:36,720 If you do download this and you fix it 984 00:35:36,720 --> 00:35:37,860 in any way, shape, or form, 985 00:35:37,920 --> 00:35:38,940 please email me the patch, 986 00:35:39,060 --> 00:35:39,720 and we'll get it integrated. 987 00:35:40,200 --> 00:35:42,100 We're going to try to rev this a little bit farther 988 00:35:42,100 --> 00:35:43,600 just as some proof of concept code, 989 00:35:43,760 --> 00:35:44,900 and then we're going to go off 990 00:35:44,900 --> 00:35:46,340 and do some better integration 991 00:35:46,340 --> 00:35:46,760 that will get it integrated. 992 00:35:46,780 --> 00:35:47,320 We'll get into it in a minute. 993 00:35:48,160 --> 00:35:49,200 So what this thing is, 994 00:35:49,220 --> 00:35:50,560 is a front-end red fang. 995 00:35:50,780 --> 00:35:52,200 So basically, you can just kind of 996 00:35:52,200 --> 00:35:53,220 stick the red fang on something 997 00:35:53,220 --> 00:35:54,160 and say, go find things, 998 00:35:54,300 --> 00:35:55,400 and it'll kind of graphically display. 999 00:35:55,520 --> 00:35:56,540 I'll get to a screenshot in a minute. 1000 00:35:56,640 --> 00:35:57,980 You know, what devices it's found 1001 00:35:57,980 --> 00:35:58,720 and the signal strength 1002 00:35:58,720 --> 00:35:59,640 and things of that nature. 1003 00:36:00,460 --> 00:36:02,160 And it's also a handy little UI. 1004 00:36:02,300 --> 00:36:03,300 I think this is probably more convenient. 1005 00:36:03,560 --> 00:36:04,780 That just continually looks for things 1006 00:36:04,780 --> 00:36:05,540 in discoverable mode. 1007 00:36:05,780 --> 00:36:06,920 So rather than walking around with your phone 1008 00:36:06,920 --> 00:36:08,620 and hitting yes every time it stops scanning 1009 00:36:08,620 --> 00:36:10,080 to rescan and look for more devices, 1010 00:36:10,360 --> 00:36:11,740 you can just sit here with your laptop, 1011 00:36:11,800 --> 00:36:13,420 and as people walk by your table by the pool, 1012 00:36:13,660 --> 00:36:15,500 you'll see who's discoverable and who's not. 1013 00:36:16,820 --> 00:36:19,360 That is probably a lot more useful 1014 00:36:19,360 --> 00:36:20,720 than the red fang interface right now. 1015 00:36:21,380 --> 00:36:21,940 And I shit you not, 1016 00:36:22,040 --> 00:36:24,080 it will just do crazy things right now. 1017 00:36:24,560 --> 00:36:27,560 So CAS wrote the UI. 1018 00:36:27,800 --> 00:36:28,660 CAS actually wrote everything. 1019 00:36:28,960 --> 00:36:30,460 I should never develop software. 1020 00:36:30,840 --> 00:36:32,680 If anyone ever wants to give me money 1021 00:36:32,680 --> 00:36:34,580 to actually write software for them, 1022 00:36:34,620 --> 00:36:35,740 I've got a bridge to sell you, 1023 00:36:35,760 --> 00:36:36,460 some swampland, 1024 00:36:36,460 --> 00:36:38,160 and all the other typical cliches. 1025 00:36:39,120 --> 00:36:41,940 This is, I think, from some other wireless tool. 1026 00:36:42,100 --> 00:36:43,640 I think maybe CAS participated in it. 1027 00:36:44,340 --> 00:36:44,780 Basically, 1028 00:36:44,880 --> 00:36:45,480 you know, 1029 00:36:45,500 --> 00:36:46,480 you can select your scan, 1030 00:36:46,620 --> 00:36:47,500 normal or the brute force. 1031 00:36:47,780 --> 00:36:48,760 And I think now it'll do both. 1032 00:36:48,940 --> 00:36:49,900 It'll sit there and listen, 1033 00:36:50,020 --> 00:36:52,360 it'll try finding discoverable things for a while, 1034 00:36:52,380 --> 00:36:53,480 then it'll go and do brute force, 1035 00:36:53,660 --> 00:36:54,680 and then it'll go back and go back. 1036 00:36:54,880 --> 00:36:55,380 So, you know, 1037 00:36:55,400 --> 00:36:56,600 you're getting kind of the best of both worlds. 1038 00:36:57,200 --> 00:36:59,240 Hey, look, a pop-up window in Curses. 1039 00:36:59,240 --> 00:37:00,220 This is the coolest ever. 1040 00:37:02,000 --> 00:37:03,620 And then it'll show you, you know, 1041 00:37:03,660 --> 00:37:04,980 when you saw it and all that kind of stuff. 1042 00:37:05,160 --> 00:37:05,800 Those MAC addresses, 1043 00:37:06,000 --> 00:37:06,800 for those that are wondering, 1044 00:37:06,880 --> 00:37:08,820 are actually Cisco 802.11 MAC addresses. 1045 00:37:09,320 --> 00:37:10,720 It just happened to be the ones we had. 1046 00:37:10,880 --> 00:37:12,440 And so when you start the tool right now, 1047 00:37:12,480 --> 00:37:13,320 you'll actually see these 1048 00:37:13,320 --> 00:37:13,760 because they're still, 1049 00:37:13,820 --> 00:37:15,220 like, the debug code is still in there. 1050 00:37:15,500 --> 00:37:17,460 So they'll be pre-populated with two Cisco cards 1051 00:37:17,460 --> 00:37:19,020 that are really not Bluetooth devices. 1052 00:37:20,360 --> 00:37:21,380 So future work, 1053 00:37:21,420 --> 00:37:22,860 and I think this is where, you know, 1054 00:37:22,860 --> 00:37:23,680 things kind of get important. 1055 00:37:25,620 --> 00:37:28,520 Integration with other Wi-Fi scanning tools. 1056 00:37:30,740 --> 00:37:32,500 You know, usability is going to be an issue. 1057 00:37:32,800 --> 00:37:33,760 The next step, 1058 00:37:33,800 --> 00:37:35,760 after we work out some kinks from BlueSniff, 1059 00:37:35,800 --> 00:37:36,820 is we're going to go to AirSnort, 1060 00:37:36,920 --> 00:37:38,040 and we're going to implement it 1061 00:37:38,040 --> 00:37:39,200 and merge it into AirSnort. 1062 00:37:39,320 --> 00:37:40,360 So you'll have, you know, 1063 00:37:40,380 --> 00:37:41,780 the Uber war-driving utility. 1064 00:37:42,300 --> 00:37:44,000 As long as you have low-profile cards 1065 00:37:44,000 --> 00:37:45,480 that can sit next to each other, 1066 00:37:45,480 --> 00:37:47,420 you know, in your PC card slots, 1067 00:37:47,600 --> 00:37:48,140 you'll be good to go. 1068 00:37:48,820 --> 00:37:49,720 A note on that. 1069 00:37:49,860 --> 00:37:51,220 Bluetooth and 802.11 interference. 1070 00:37:52,240 --> 00:37:54,420 There's a few studies that have been out on it. 1071 00:37:54,460 --> 00:37:55,980 I recommend reading them. 1072 00:37:56,300 --> 00:37:57,920 I'm not going to make any claims 1073 00:37:57,920 --> 00:37:59,700 about their qualities 1074 00:37:59,700 --> 00:38:00,760 because people have come to 1075 00:38:00,760 --> 00:38:01,620 kind of different conclusions. 1076 00:38:02,360 --> 00:38:03,640 I think in general, 1077 00:38:03,680 --> 00:38:05,560 the closer you have the two radios, 1078 00:38:05,600 --> 00:38:06,640 the worse off you are. 1079 00:38:06,820 --> 00:38:08,640 But it's not really going to necessarily 1080 00:38:08,640 --> 00:38:09,820 be a terrible thing, 1081 00:38:09,900 --> 00:38:10,740 but it may be for you. 1082 00:38:10,860 --> 00:38:11,720 So before you say, 1083 00:38:11,840 --> 00:38:13,700 damn it, I'm using my, you know, 1084 00:38:13,700 --> 00:38:15,420 Bluetooth and my frickin' wireless network, 1085 00:38:15,480 --> 00:38:16,020 it goes down, 1086 00:38:16,340 --> 00:38:17,000 you know, go read it. 1087 00:38:17,040 --> 00:38:18,320 You may have some other problem afoot. 1088 00:38:19,880 --> 00:38:21,200 We've got to find new scanning methods. 1089 00:38:21,380 --> 00:38:22,180 I mean, pure and simple. 1090 00:38:22,460 --> 00:38:24,620 And I think what that's going to get to 1091 00:38:24,620 --> 00:38:25,920 is finding what the capabilities 1092 00:38:25,920 --> 00:38:27,100 of the current hardware are. 1093 00:38:27,820 --> 00:38:28,920 You know, with NetStumbler, 1094 00:38:29,620 --> 00:38:30,820 the person who wrote NetStumbler 1095 00:38:30,820 --> 00:38:32,180 understood one piece of hardware, 1096 00:38:32,300 --> 00:38:32,920 and that's what he used, 1097 00:38:32,960 --> 00:38:33,380 and that's great. 1098 00:38:34,060 --> 00:38:35,340 But then people were able to look 1099 00:38:35,340 --> 00:38:36,160 at other types of hardware 1100 00:38:36,160 --> 00:38:37,300 and say, man, this Cisco card 1101 00:38:37,300 --> 00:38:38,020 really kicks ass. 1102 00:38:38,120 --> 00:38:39,200 We should write something that uses this 1103 00:38:39,200 --> 00:38:40,000 instead of the mechanism 1104 00:38:40,000 --> 00:38:41,420 that we're using on this Orinoco card. 1105 00:38:43,020 --> 00:38:43,960 People are going to have to start 1106 00:38:43,960 --> 00:38:44,940 looking at all these vendors, 1107 00:38:45,040 --> 00:38:45,460 and these vendors 1108 00:38:45,480 --> 00:38:46,940 aren't yet quite as mainstream. 1109 00:38:47,220 --> 00:38:48,940 I mean, Belkin, I think Linksys, 1110 00:38:49,000 --> 00:38:50,260 and maybe some other of these 1111 00:38:50,260 --> 00:38:51,460 kind of comp USAE brands 1112 00:38:51,460 --> 00:38:52,340 are making this stuff. 1113 00:38:52,600 --> 00:38:53,560 But if you go to the Blue Z 1114 00:38:53,560 --> 00:38:55,460 supported hardware web page, 1115 00:38:55,640 --> 00:38:56,980 there's a lot of vendors 1116 00:38:56,980 --> 00:38:57,780 you've never heard of. 1117 00:38:57,900 --> 00:38:59,500 And a lot of them are in a language 1118 00:38:59,500 --> 00:39:00,900 that I cannot speak very effectively. 1119 00:39:02,180 --> 00:39:03,460 You know, buy some cards. 1120 00:39:03,660 --> 00:39:05,580 If you have experiences with cards 1121 00:39:05,580 --> 00:39:07,340 and you are able to do something 1122 00:39:07,340 --> 00:39:08,220 that you weren't able to do 1123 00:39:08,220 --> 00:39:08,800 in other cards, 1124 00:39:08,940 --> 00:39:10,400 let the community know about it, 1125 00:39:10,460 --> 00:39:10,600 you know. 1126 00:39:10,780 --> 00:39:11,540 Find a forum. 1127 00:39:11,620 --> 00:39:12,740 I don't know if there are any 1128 00:39:12,740 --> 00:39:14,300 decent Bluetooth security forums 1129 00:39:14,300 --> 00:39:15,260 out there besides the 1130 00:39:15,260 --> 00:39:17,140 standard issues, security focus, 1131 00:39:17,340 --> 00:39:18,980 whatever that they got going on. 1132 00:39:19,580 --> 00:39:20,800 Or, you know, email me 1133 00:39:20,800 --> 00:39:22,180 and I'll help you work through issues 1134 00:39:22,180 --> 00:39:23,560 and dig through firmware. 1135 00:39:23,720 --> 00:39:25,560 We'll figure out which cards can do what. 1136 00:39:25,700 --> 00:39:26,680 I think it's going to be really critical 1137 00:39:26,680 --> 00:39:28,120 that we catalog these cards 1138 00:39:28,120 --> 00:39:29,500 and figure out what the capabilities are 1139 00:39:29,500 --> 00:39:30,820 and figure out what the best tools 1140 00:39:30,820 --> 00:39:31,540 for the jobs are. 1141 00:39:31,680 --> 00:39:32,880 And, you know, I stand up here 1142 00:39:32,880 --> 00:39:34,960 as a daytime security consultant 1143 00:39:34,960 --> 00:39:36,080 and kind of nighttime, 1144 00:39:36,300 --> 00:39:37,520 I'm still like a white hat. 1145 00:39:37,620 --> 00:39:38,800 I'm not throwing this out here 1146 00:39:38,800 --> 00:39:40,420 to be an attack scenario, you know. 1147 00:39:40,520 --> 00:39:41,380 There are attackers 1148 00:39:41,380 --> 00:39:42,660 who will use this for evil, 1149 00:39:43,320 --> 00:39:45,080 but there are also security professionals 1150 00:39:45,260 --> 00:39:46,220 who will use this for good. 1151 00:39:46,500 --> 00:39:47,720 You know, finding the idiot 1152 00:39:47,720 --> 00:39:48,800 who's got their, you know, 1153 00:39:48,800 --> 00:39:50,500 whatever printer discoverable 1154 00:39:50,500 --> 00:39:51,200 on their desk 1155 00:39:51,200 --> 00:39:52,100 and some guy outside 1156 00:39:52,100 --> 00:39:53,440 is printing porn to his office 1157 00:39:53,440 --> 00:39:54,080 and he can't figure out 1158 00:39:54,080 --> 00:39:55,060 why all his porn's spewing 1159 00:39:55,060 --> 00:39:55,700 out of his printer. 1160 00:39:57,340 --> 00:39:58,920 So, you know, there are good uses. 1161 00:39:58,920 --> 00:40:00,440 This is a whole full disclosure concept, 1162 00:40:00,620 --> 00:40:00,820 you know. 1163 00:40:00,920 --> 00:40:02,140 Use this tool as you will. 1164 00:40:02,200 --> 00:40:02,820 I don't really care. 1165 00:40:04,460 --> 00:40:05,360 Second thing is, 1166 00:40:05,940 --> 00:40:06,680 I'm creating this 1167 00:40:06,680 --> 00:40:07,660 MAC address table listing. 1168 00:40:08,460 --> 00:40:09,740 I've got a start on it. 1169 00:40:09,800 --> 00:40:10,580 I think it's on the website. 1170 00:40:10,920 --> 00:40:12,180 I should have a lot more. 1171 00:40:12,320 --> 00:40:14,340 As soon as I figure out, in OS X, 1172 00:40:14,740 --> 00:40:15,240 where that is, 1173 00:40:15,820 --> 00:40:17,520 there's a lookup table 1174 00:40:17,520 --> 00:40:18,580 somewhere on the box 1175 00:40:18,580 --> 00:40:19,040 that says, 1176 00:40:19,200 --> 00:40:20,460 this is the device name, 1177 00:40:20,620 --> 00:40:21,440 my phone, 1178 00:40:21,680 --> 00:40:22,820 and here's its MAC address. 1179 00:40:23,100 --> 00:40:24,180 And here's another device 1180 00:40:24,180 --> 00:40:24,720 I'm aware about, 1181 00:40:24,900 --> 00:40:26,060 and here's its MAC address. 1182 00:40:26,520 --> 00:40:28,400 And I swear I went to the root 1183 00:40:28,400 --> 00:40:29,120 of the file system, 1184 00:40:29,240 --> 00:40:31,900 egrep-ri-nokia-star, 1185 00:40:32,540 --> 00:40:33,920 waited an hour and a half, 1186 00:40:34,060 --> 00:40:34,880 and I didn't find it. 1187 00:40:35,240 --> 00:40:38,220 So, I was really ticked off 1188 00:40:38,220 --> 00:40:39,400 to chew up all my battery life 1189 00:40:39,400 --> 00:40:40,120 doing that grep 1190 00:40:40,120 --> 00:40:40,760 and not finding it. 1191 00:40:40,860 --> 00:40:41,520 If anyone knows 1192 00:40:41,520 --> 00:40:42,160 where that table is, 1193 00:40:42,240 --> 00:40:43,560 I've got just a litany of devices 1194 00:40:43,560 --> 00:40:44,340 stored in this machine 1195 00:40:45,260 --> 00:40:45,520 that I've got a MAC address for. 1196 00:40:46,220 --> 00:40:47,240 And sniffing's gonna be 1197 00:40:47,240 --> 00:40:47,860 another big one. 1198 00:40:48,120 --> 00:40:49,140 Even though, like I said, 1199 00:40:49,280 --> 00:40:50,260 if you know the master, 1200 00:40:50,440 --> 00:40:51,820 and you know its MAC address, 1201 00:40:52,080 --> 00:40:53,200 you know the hopping pattern 1202 00:40:53,200 --> 00:40:54,420 for everyone in that pico net, 1203 00:40:54,620 --> 00:40:55,860 there's no tools yet 1204 00:40:55,860 --> 00:40:56,580 that will give you 1205 00:40:56,580 --> 00:40:57,840 all the traffic in the pico net. 1206 00:40:58,000 --> 00:40:59,600 The one tool that ships with Blue Z 1207 00:40:59,600 --> 00:41:01,420 is called HCI Dump, I believe. 1208 00:41:01,600 --> 00:41:03,900 And HCI Dump will only give you 1209 00:41:03,900 --> 00:41:05,260 traffic to and from your own device. 1210 00:41:05,980 --> 00:41:07,380 Bluetooth is not meant to be 1211 00:41:07,380 --> 00:41:08,400 a promiscuous protocol, 1212 00:41:08,700 --> 00:41:09,480 and the developers 1213 00:41:09,480 --> 00:41:10,360 who write the drivers 1214 00:41:10,360 --> 00:41:11,420 really don't intend 1215 00:41:11,420 --> 00:41:12,500 to be thinking like this. 1216 00:41:12,620 --> 00:41:13,280 They're thinking, you know, 1217 00:41:13,320 --> 00:41:14,460 I only want the back and forth 1218 00:41:14,460 --> 00:41:14,940 for me. 1219 00:41:15,260 --> 00:41:16,160 And as security people, 1220 00:41:16,260 --> 00:41:16,960 we want the back and forth 1221 00:41:16,960 --> 00:41:17,360 for everybody, 1222 00:41:17,560 --> 00:41:17,900 because that's where 1223 00:41:17,900 --> 00:41:18,520 the real juice is. 1224 00:41:18,660 --> 00:41:19,260 Because you probably 1225 00:41:19,260 --> 00:41:20,420 don't want to be seen. 1226 00:41:20,780 --> 00:41:21,620 You know, you'd rather be 1227 00:41:21,620 --> 00:41:23,000 the quiet party in the group. 1228 00:41:23,160 --> 00:41:24,400 So, you know, 1229 00:41:24,980 --> 00:41:25,560 there's got to be 1230 00:41:25,560 --> 00:41:26,280 some work put into that. 1231 00:41:26,400 --> 00:41:27,300 And again, this is gonna come 1232 00:41:27,300 --> 00:41:28,020 out of more firmware. 1233 00:41:28,600 --> 00:41:28,920 Yo. 1234 00:41:29,100 --> 00:41:29,780 Can you change 1235 00:41:29,780 --> 00:41:31,440 your own MAC address 1236 00:41:31,440 --> 00:41:34,220 for your own Bluetooth device? 1237 00:41:35,180 --> 00:41:35,900 The question is, 1238 00:41:35,960 --> 00:41:37,000 can you change your MAC address 1239 00:41:37,000 --> 00:41:38,000 for your own Bluetooth device? 1240 00:41:38,740 --> 00:41:39,640 Honest to God, I don't know. 1241 00:41:39,780 --> 00:41:40,620 I really haven't tried. 1242 00:41:40,860 --> 00:41:41,560 I mean, that's like, 1243 00:41:41,580 --> 00:41:42,720 you know, this stealthy idea, 1244 00:41:42,880 --> 00:41:43,360 like, you know, 1245 00:41:43,360 --> 00:41:43,940 so people think 1246 00:41:43,940 --> 00:41:44,860 you're something that you're not. 1247 00:41:45,300 --> 00:41:46,340 And since most people 1248 00:41:46,340 --> 00:41:47,680 aren't looking for you yet, 1249 00:41:47,780 --> 00:41:49,040 I haven't ever thought 1250 00:41:49,040 --> 00:41:50,100 to try and cloak myself. 1251 00:41:51,360 --> 00:41:53,160 So, I have absolutely no idea. 1252 00:41:53,260 --> 00:41:54,120 And if anyone finds out, 1253 00:41:54,180 --> 00:41:55,140 please let us all know. 1254 00:41:57,920 --> 00:41:58,740 I'm gonna open the floor 1255 00:41:58,740 --> 00:41:59,280 up to some questions 1256 00:41:59,280 --> 00:42:00,220 before I do, you know, 1257 00:42:00,260 --> 00:42:01,360 shameless self-promotion. 1258 00:42:01,360 --> 00:42:02,320 I helped out with a couple books 1259 00:42:02,320 --> 00:42:03,160 that are gonna be 1260 00:42:03,160 --> 00:42:03,880 in the vendor table. 1261 00:42:04,080 --> 00:42:04,900 So, you know, 1262 00:42:04,920 --> 00:42:06,420 if you feel like pitying me, 1263 00:42:06,480 --> 00:42:07,420 I'd be happy to, you know, 1264 00:42:07,420 --> 00:42:08,180 buy it, spit on it. 1265 00:42:08,280 --> 00:42:08,620 I really don't care. 1266 00:42:08,660 --> 00:42:08,800 Whatever. 1267 00:42:09,460 --> 00:42:10,120 Anyway, questions? 1268 00:42:12,240 --> 00:42:12,560 Wow. 1269 00:42:12,860 --> 00:42:13,180 Fire. 1270 00:42:13,500 --> 00:42:13,800 . 1271 00:42:16,800 --> 00:42:17,240 . 1272 00:42:22,760 --> 00:42:23,760 The question is, 1273 00:42:23,840 --> 00:42:24,760 can you unpair devices 1274 00:42:24,760 --> 00:42:26,520 and basically cause them to, 1275 00:42:26,620 --> 00:42:28,180 in 802, 11 lingo, 1276 00:42:28,320 --> 00:42:29,380 re-associate? 1277 00:42:30,200 --> 00:42:30,840 First of all, 1278 00:42:30,880 --> 00:42:31,860 the pairing concept 1279 00:42:31,860 --> 00:42:32,740 is only kind of 1280 00:42:32,740 --> 00:42:33,500 this trust relationship 1281 00:42:33,500 --> 00:42:33,960 that occurs. 1282 00:42:34,280 --> 00:42:34,980 So, the way that you 1283 00:42:34,980 --> 00:42:35,740 would break a pairing 1284 00:42:35,740 --> 00:42:36,620 is you basically delete 1285 00:42:36,620 --> 00:42:37,700 the keys off to both sides 1286 00:42:37,700 --> 00:42:38,240 and they're unaware 1287 00:42:38,240 --> 00:42:39,000 of each other anymore. 1288 00:42:39,880 --> 00:42:40,780 And as far as 1289 00:42:40,780 --> 00:42:41,620 the re-association, 1290 00:42:41,800 --> 00:42:44,480 there are various 1291 00:42:44,480 --> 00:42:45,240 control frames 1292 00:42:45,260 --> 00:42:46,100 that you can send. 1293 00:42:46,320 --> 00:42:47,640 The hard part isn't sending them, 1294 00:42:47,720 --> 00:42:48,960 it's just knowing how to send them, 1295 00:42:49,040 --> 00:42:50,360 what part of the frequency to be on, 1296 00:42:50,420 --> 00:42:51,320 and what MAC address to be. 1297 00:42:51,700 --> 00:42:55,180 So there is that capability to break the connection, 1298 00:42:55,440 --> 00:42:57,600 but it's not, I mean, frankly, 1299 00:42:57,680 --> 00:42:58,620 I just haven't examined it at all 1300 00:42:58,620 --> 00:43:00,220 because I'm still fighting with this first part of the problem. 1301 00:43:00,840 --> 00:43:01,520 Other questions? 1302 00:43:06,140 --> 00:43:07,160 The question is, 1303 00:43:07,180 --> 00:43:09,800 is it possible to force a device into discoverable mode? 1304 00:43:10,960 --> 00:43:12,200 You're talking as an outsider, 1305 00:43:12,280 --> 00:43:13,980 not as the person who owns the device. 1306 00:43:14,420 --> 00:43:14,820 Right. 1307 00:43:14,820 --> 00:43:17,520 That would involve subverting the device itself 1308 00:43:17,520 --> 00:43:18,300 to be able to do it. 1309 00:43:18,360 --> 00:43:19,820 There's no protocol bit that says, 1310 00:43:20,000 --> 00:43:21,960 hey, flip yourself into discoverable, 1311 00:43:21,980 --> 00:43:23,000 then let me discover you. 1312 00:43:23,320 --> 00:43:24,500 It's not possible. 1313 00:43:27,460 --> 00:43:27,980 That's the thing. 1314 00:43:28,040 --> 00:43:28,720 It is listening. 1315 00:43:29,480 --> 00:43:31,400 It's listening generally in a low power mode, 1316 00:43:31,460 --> 00:43:33,020 and that's why you can still address it by MAC address. 1317 00:43:33,440 --> 00:43:35,880 If it hears a frame for its MAC address 1318 00:43:35,880 --> 00:43:37,300 on the right part of the pattern, 1319 00:43:37,360 --> 00:43:38,460 it says, oh, this is for me, 1320 00:43:38,580 --> 00:43:39,860 and I need to deal with it. 1321 00:43:40,020 --> 00:43:41,340 So even when you're not discoverable, 1322 00:43:41,400 --> 00:43:42,660 you can still talk to the device. 1323 00:43:42,980 --> 00:43:44,480 And even, this is kind of neat, 1324 00:43:44,820 --> 00:43:46,460 when I was sending pictures of these people's phones, 1325 00:43:47,020 --> 00:43:48,580 you can scan these devices. 1326 00:43:48,680 --> 00:43:49,400 You can find them, 1327 00:43:49,460 --> 00:43:50,420 and nothing pops up. 1328 00:43:50,580 --> 00:43:52,100 There's no security mechanism 1329 00:43:52,100 --> 00:43:53,520 against discovering the device. 1330 00:43:53,900 --> 00:43:55,580 And so there's nothing like 1331 00:43:55,580 --> 00:43:57,620 watching you scanning or whatever. 1332 00:43:57,800 --> 00:43:59,100 You can find out the device name. 1333 00:43:59,220 --> 00:44:00,500 You can find out what services it offers. 1334 00:44:00,640 --> 00:44:01,480 You can do all this nonsense, 1335 00:44:01,700 --> 00:44:04,040 and there's really nothing that the device is going to do 1336 00:44:04,040 --> 00:44:04,960 to try and stop you 1337 00:44:04,960 --> 00:44:06,660 until you try to access one of those services. 1338 00:44:06,980 --> 00:44:08,960 That's when authentication and encryption 1339 00:44:08,960 --> 00:44:09,700 are going to kick in, 1340 00:44:09,840 --> 00:44:11,180 and that's when you're going to have 1341 00:44:11,180 --> 00:44:12,420 some kind of pop-up, hopefully, 1342 00:44:12,500 --> 00:44:14,460 that says, oh, hey, do you want to accept this? 1343 00:44:14,820 --> 00:44:16,380 And wonderfully, the phones 1344 00:44:16,380 --> 00:44:17,780 and these other devices have it 1345 00:44:17,780 --> 00:44:19,620 so you can just accept anything people send to you. 1346 00:44:20,360 --> 00:44:21,560 So it'll just take it, 1347 00:44:21,600 --> 00:44:23,080 and then maybe it'll ask you, 1348 00:44:23,100 --> 00:44:23,840 do you want me to save this? 1349 00:44:23,900 --> 00:44:24,680 Do you want me to execute it? 1350 00:44:24,700 --> 00:44:25,420 Do you want me to rape it? 1351 00:44:25,500 --> 00:44:25,700 Whatever. 1352 00:44:25,920 --> 00:44:27,360 I mean, there's all kinds of options it can do, 1353 00:44:28,480 --> 00:44:30,100 but you can do a lot to the device 1354 00:44:30,100 --> 00:44:31,880 before it says, who are you, 1355 00:44:31,920 --> 00:44:32,460 and what are you doing? 1356 00:44:32,800 --> 00:44:33,380 Another question. 1357 00:44:35,140 --> 00:44:44,260 The question is about the predictability, 1358 00:44:44,820 --> 00:44:46,680 and the length of the pattern. 1359 00:44:47,060 --> 00:44:48,800 I think the pattern's about two seconds. 1360 00:44:48,880 --> 00:44:51,360 It sits on every part of the pattern 1361 00:44:51,360 --> 00:44:53,600 for 625 microseconds, 1362 00:44:53,660 --> 00:44:55,260 and there's 79 locations in the pattern. 1363 00:44:56,140 --> 00:44:58,780 But it's a permutation of the MAC address of the master. 1364 00:44:59,400 --> 00:45:01,680 So, you know, combinatorial mathematics say 1365 00:45:01,680 --> 00:45:03,260 there's a lot of different patterns that are possible. 1366 00:45:03,840 --> 00:45:07,200 You know, that mechanism that you go through 1367 00:45:07,200 --> 00:45:08,460 to try and find someone 1368 00:45:08,460 --> 00:45:09,640 when you don't know their pattern, 1369 00:45:09,740 --> 00:45:10,700 that discovery mechanism, 1370 00:45:11,660 --> 00:45:13,400 is kind of the best way to do it. 1371 00:45:13,640 --> 00:45:14,260 At least, 1372 00:45:14,260 --> 00:45:15,720 that's the people who designed it 1373 00:45:15,720 --> 00:45:16,500 came up with the best way, 1374 00:45:16,600 --> 00:45:17,900 and no one's been able to beat it yet. 1375 00:45:18,600 --> 00:45:19,240 Other questions? 1376 00:45:25,780 --> 00:45:26,780 The question is, 1377 00:45:26,840 --> 00:45:28,020 if one device loses a pairing key, 1378 00:45:28,080 --> 00:45:28,460 what happens? 1379 00:45:28,740 --> 00:45:29,840 Basically, you can't talk anymore. 1380 00:45:30,420 --> 00:45:32,980 You know, the one guy can't generate the proper keys 1381 00:45:32,980 --> 00:45:34,340 and just kind of throws his head out. 1382 00:45:34,800 --> 00:45:36,560 You know, there would be two conditions. 1383 00:45:36,780 --> 00:45:38,180 There's one, you corrupt its pairing key, 1384 00:45:38,340 --> 00:45:39,640 so that at the software level, 1385 00:45:39,740 --> 00:45:41,240 it would say, this is still a valid key, 1386 00:45:41,380 --> 00:45:42,560 but our keys aren't matching up. 1387 00:45:42,760 --> 00:45:44,060 And there's a second when you delete it, 1388 00:45:44,080 --> 00:45:44,240 and what happens is, 1389 00:45:44,240 --> 00:45:45,580 at which point, the software would probably say, 1390 00:45:46,320 --> 00:45:48,500 there's no key, I have nothing to do, 1391 00:45:48,660 --> 00:45:50,560 and we'll just try to create a normal connection to it. 1392 00:45:51,240 --> 00:45:51,940 Other questions? 1393 00:45:57,160 --> 00:46:06,820 The question is regarding other specifications on Bluetooth 1394 00:46:07,660 --> 00:46:09,040 besides the ones that I referenced. 1395 00:46:10,780 --> 00:46:12,020 There's some IEEE work. 1396 00:46:12,080 --> 00:46:13,360 I think it may be in the 802. 1397 00:46:14,240 --> 00:46:15,460 Chained somewhere, I'm not really sure. 1398 00:46:15,760 --> 00:46:19,400 The authoritative source is bluetooth.org.com. 1399 00:46:19,720 --> 00:46:22,200 Bluetooth is a royalty-free protocol 1400 00:46:22,200 --> 00:46:24,900 that was originally developed by Ericsson 1401 00:46:24,900 --> 00:46:26,180 and then released in the public domain. 1402 00:46:26,740 --> 00:46:28,660 You know, Ericsson actually kind of had a revelation 1403 00:46:28,660 --> 00:46:30,220 that said, we can develop all this stuff, 1404 00:46:30,360 --> 00:46:32,940 but unless we give people the ability to use it independently, 1405 00:46:33,820 --> 00:46:35,220 no one's ever going to adopt it. 1406 00:46:35,280 --> 00:46:37,880 It may be the greatest freaking piece of whatever in the world, 1407 00:46:38,000 --> 00:46:39,100 but no one's going to pay us 1408 00:46:39,100 --> 00:46:40,320 because until we get critical mass, 1409 00:46:40,880 --> 00:46:41,760 nothing's going to happen. 1410 00:46:42,060 --> 00:46:44,100 So, you know, you can go to the Bluetooth website, 1411 00:46:44,100 --> 00:46:45,780 you can download miles of specs, 1412 00:46:45,980 --> 00:46:48,140 and there's like little primers there that you can get 1413 00:46:48,140 --> 00:46:49,800 that actually give you kind of a soft landing. 1414 00:46:50,160 --> 00:46:51,240 There's also an application, 1415 00:46:51,500 --> 00:46:52,720 Bluetooth application development book 1416 00:46:52,720 --> 00:46:54,400 that I cannot for the life of me remember, 1417 00:46:54,660 --> 00:46:55,780 but if you search on Amazon 1418 00:46:55,780 --> 00:46:56,980 for Bluetooth application development, 1419 00:46:57,340 --> 00:46:58,320 it's a really good book. 1420 00:46:58,400 --> 00:47:01,560 It gives you a great head start in using BlueZ, 1421 00:47:01,800 --> 00:47:03,500 explains the protocols more in-depth, 1422 00:47:03,580 --> 00:47:05,220 explains the power consumption issues. 1423 00:47:05,460 --> 00:47:06,860 As an application developer, 1424 00:47:06,980 --> 00:47:08,480 you need to be concerned about power consumption 1425 00:47:08,480 --> 00:47:09,840 and layer one issues. 1426 00:47:10,000 --> 00:47:11,520 It's the greatest thing in the world. 1427 00:47:11,660 --> 00:47:13,840 I need to worry about everything from layer one 1428 00:47:13,840 --> 00:47:14,400 to layer seven, 1429 00:47:14,620 --> 00:47:16,360 and I'm just this poor guy at a desk, 1430 00:47:16,440 --> 00:47:17,160 and I don't know what to do. 1431 00:47:17,620 --> 00:47:19,660 You know, there's going to be problems with this for a while, 1432 00:47:20,460 --> 00:47:22,460 but, you know, through our diligence, 1433 00:47:22,580 --> 00:47:23,620 I think we'll be able to tackle it. 1434 00:47:24,260 --> 00:47:25,700 Anyway, I think I'm going to wrap it up. 1435 00:47:25,740 --> 00:47:26,580 Well, I'll take one more. 1436 00:47:26,680 --> 00:47:26,880 Fire. 1437 00:47:27,220 --> 00:47:28,080 I have a question for you. 1438 00:47:28,360 --> 00:47:31,100 You talked about three-course manufacturers. 1439 00:47:31,540 --> 00:47:34,000 Is there a way to set a multiple standard 1440 00:47:34,000 --> 00:47:36,720 so that you can get a little less multiple collections? 1441 00:47:37,200 --> 00:47:37,540 Right. 1442 00:47:37,540 --> 00:47:38,580 But I mean, how much does it cost 1443 00:47:38,580 --> 00:47:41,600 to set a multiple standard to get a maximum? 1444 00:47:42,540 --> 00:47:42,880 Right. 1445 00:47:43,180 --> 00:47:43,520 Exactly. 1446 00:47:43,840 --> 00:47:45,600 The question is, can you parallelize the scan? 1447 00:47:46,400 --> 00:47:48,580 The Red Fang tool has been explicitly made 1448 00:47:48,580 --> 00:47:49,700 to be able to be threaded, 1449 00:47:50,240 --> 00:47:53,340 so you can kick off multiple instantiations of it at a time, 1450 00:47:53,420 --> 00:47:54,440 and it's really going to be limited 1451 00:47:54,440 --> 00:47:56,500 to how much crap you can shove on your box, you know? 1452 00:47:56,560 --> 00:47:57,720 If you get a USB hub 1453 00:47:57,720 --> 00:47:59,140 or string a couple USB hubs together 1454 00:47:59,140 --> 00:48:01,440 and slam in a bunch of, you know, Bluetooth devices, 1455 00:48:01,820 --> 00:48:03,680 in theory, you know, as much as they'll support, 1456 00:48:04,000 --> 00:48:05,140 you can run off and scan. 1457 00:48:05,400 --> 00:48:06,500 The issue is you need to make sure 1458 00:48:06,500 --> 00:48:07,700 you're not scanning the same space. 1459 00:48:07,920 --> 00:48:09,180 Like, if you've got 16 radios, 1460 00:48:09,220 --> 00:48:11,260 you shouldn't all start them at 0, 0, 0, 0, 0, 0, 1461 00:48:11,360 --> 00:48:13,220 because you're just going to waste a lot of time. 1462 00:48:13,840 --> 00:48:15,100 So you can parallelize that. 1463 00:48:15,260 --> 00:48:16,120 And I think, you know, 1464 00:48:16,160 --> 00:48:18,340 that's probably the short-term technique 1465 00:48:18,340 --> 00:48:19,400 that people are going to use 1466 00:48:19,400 --> 00:48:20,820 when they're really interested in finding someone. 1467 00:48:21,020 --> 00:48:22,380 You just stick a bunch of radios on it, 1468 00:48:22,420 --> 00:48:23,020 you solve the problem, 1469 00:48:23,120 --> 00:48:24,220 and obviously, so, you know, 1470 00:48:24,260 --> 00:48:25,680 binary search blog gets shorter. 1471 00:48:25,880 --> 00:48:27,440 Anyway, one more? 1472 00:48:28,580 --> 00:48:29,440 Doctor, doctor. 1473 00:48:29,620 --> 00:48:30,180 All right, excellent. 1474 00:48:30,300 --> 00:48:30,980 I appreciate it. 1475 00:48:31,000 --> 00:48:31,560 Thanks a lot, guys. 1476 00:48:31,620 --> 00:48:32,000 Have a blast.