[00:00.000 --> 00:04.580] All right. So I guess I'm ready to get started. Anybody who attended my presentation [00:04.580 --> 00:10.100] yesterday knows that we are off to a terrific start because the actual PowerPoint [00:10.100 --> 00:15.180] presentation has come up there, or the open office presentation. Yesterday I spent ten [00:15.180 --> 00:24.820] minutes getting that done. So, yes. Yay to not fail. Okay. So I am ‑‑ my presentation is [00:24.820 --> 00:33.740] breaking Bluetooth by being bored. My name is Ronan and this is DEF CON 2010‑18. So the [00:33.740 --> 00:40.040] title comes from my research. I'm a graduate student. I'll talk about that in just a [00:40.040 --> 00:45.700] second. But the title comes from I feel like my best ideas hacking wise almost always [00:45.700 --> 00:51.520] come when I'm incredibly bored. So like math class is awesome. Long drives are great. [00:52.620 --> 00:58.020] Airplane rides. I actually developed one of these tools last year on the flight to DEF CON. [00:58.620 --> 01:04.660] Because what are you going to do in the air? So that's the reason behind the title. About me, [01:04.660 --> 01:10.680] I'm a graduate student at Virginia Tech. My thesis is actually on Bluetooth security. So [01:10.680 --> 01:15.260] these are a couple of tools I've developed while doing my research. But it's a much broader [01:15.260 --> 01:19.960] scope of things. And my website where all this stuff is going to be posted is hack from [01:20.080 --> 01:24.440] a cave.com. I'm graduating soon. Looking for a job. I had to do that plug. I'm sorry. [01:24.440 --> 01:30.980] Shameless plug. So if this goes well, which already started off well, see me afterward. [01:31.500 --> 01:36.080] Moving on to the important stuff. Bluetooth. I'm going to give just a brief over. I'm sure [01:36.080 --> 01:39.740] most people here know if you're in this talk because you're interested in Bluetooth. But [01:40.400 --> 01:45.540] Bluetooth is a short range technology. So Wi‑Fi generates a lot of power. Bluetooth is [01:45.540 --> 01:51.200] supposed to be basically they call it a cable replacement. It's low power. Designed perfectly [01:51.200 --> 02:00.520] for smart phones or PDAs. It creates an ad hoc Pico net. So while most of us end up pairing [02:00.520 --> 02:06.160] just two devices, you can pair more than that in the Pico net and have devices communicate [02:06.160 --> 02:10.700] with each other. But most of the time you're pairing a headset to a smartphone or something [02:10.700 --> 02:18.080] like that. But it can do more. And it's a very highly growing technology. The Bluetooth [02:18.080 --> 02:23.680] website, and this was a couple years ago actually. I think 2006 posted that there are over 1 [02:23.680 --> 02:31.020] billion Bluetooth devices in the world right now. Or Bluetooth enabled devices. So that's [02:31.120 --> 02:37.180] a little bit of Bluetooth. Now we're going to the fun stuff. So part of how Bluetooth [02:37.180 --> 02:42.580] communicates is they have a Bluetooth profile. You're probably very familiar with it through [02:42.580 --> 02:47.820] the access point side of things. Wi‑Fi access points have a very similar style where you [02:47.820 --> 02:53.660] have a device address, which is the Mac address. You have a device class in this case, which [02:53.660 --> 03:00.000] describes what the device is. So it tells you if it's a phone or if it's a phone slash [03:00.000 --> 03:04.460] smartphone. It gives you a little bit of information about the device. And the device name can [03:04.460 --> 03:12.720] be anything you want it to be. So cloning that information is doable. And this isn't [03:12.720 --> 03:17.260] something that I created. This has been done years in the past. But all you have to do [03:17.260 --> 03:22.400] is, you know, the first two, the class and the name, easy to do. The other one, the device [03:22.400 --> 03:27.360] address, you have to have some certain chip sets. The CSR chip sets are great. You scan [03:27.360 --> 03:33.280] for a device, you get it, you can clone it. Or you could change your profile. It's the [03:33.280 --> 03:36.940] same as like Mac spoofing. So if you ever do Mac spoofing, you do the same thing where [03:36.940 --> 03:42.380] you generate a new Bluetooth profile and now you've obfuscated who you are or what your [03:42.380 --> 03:49.600] device is. So the previously, the method for doing this was just manual. I mean, so you'd [03:49.600 --> 03:53.160] have to scan for a device, you have to manually change settings. So I created spoof tooth [03:53.160 --> 04:01.540] as a way to automatically do a lot of these things and it does a little bit more. So it's [04:02.780 --> 04:07.920] impersonations. You can actually pretend to be somebody else. Or something I didn't really [04:07.920 --> 04:16.000] intend when I wrote it was actually to observe devices in range and actually log that. So I'm [04:16.000 --> 04:20.760] going to go through a couple of different modes that spoof tooth has right now. The first [04:20.760 --> 04:27.240] one is a basic scan. So what it's doing is it's using the dash I. The HCI zero is like a [04:27.240 --> 04:32.760] WLAN for everybody who's Linux-y and does IF config. This is HCI config and it's got the same [04:32.760 --> 04:36.380] kind of thing. So that's the interface. And it's scanning and dumping it to the log. So [04:36.380 --> 04:40.220] basically just scanning the local area and dumping everything to the log. I should have [04:40.220 --> 04:44.960] mentioned this before. I forgot to. Bluetooth has two modes. Discoverable and [04:44.960 --> 04:52.160] nondiscoverable mode. It will function in both. And this is the key for securing it. You [04:52.160 --> 04:56.400] want to have it in nondiscoverable mode. The only reason to have it in discoverable is for [04:56.400 --> 05:00.620] initial pairing. So you want the two devices to connect and once they know about each other, [05:00.620 --> 05:05.860] they have the information. They don't need to scan for each other after that. So then you [05:05.860 --> 05:11.740] turn the device into nondiscoverable. So this only finds devices in discoverable mode. It's [05:11.740 --> 05:16.080] not like you might be familiar with the tool red thing if you're a big Bluetooth hacker which [05:16.080 --> 05:20.000] tries to find devices that are in nondiscoverable mode. This is only for discoverable [05:20.000 --> 05:25.100] mode devices. Okay. So moving on to mode 2. Mode 2 is actually just a randomly generated [05:25.100 --> 05:29.060] profile. So you really want to obfuscate and you don't want to actually have to think about [05:29.060 --> 05:33.860] anything. You just type the dash R flag and it creates you an entirely new profile for your [05:33.860 --> 05:39.720] device. An Easter egg that I didn't actually put in the documentation kind of on purpose [05:39.720 --> 05:45.100] because I wanted to release something at DEF CON. If you change from the dash lowercase R to [05:45.100 --> 05:51.100] dash uppercase R, I have a list of all kinds of science fiction names instead of normal names. [05:51.100 --> 05:57.380] The previous one took the common most, the top 100 first and last names and generates it from [05:57.380 --> 06:03.240] that. This will take your favorite science fiction characters so you can be Yoda's phone or [06:03.240 --> 06:09.680] Malcolm Reynolds peripheral or Bender bending Rodriguez's audio video device. So now you [06:09.680 --> 06:20.920] know. Mode 3. Oh, this mode is where you actually get to specify the information you want to [06:20.920 --> 06:25.420] change your device information to. So this is a little more of the manual side of things. So [06:25.420 --> 06:31.540] new name, the device address and the device class. Not all, you can't just put anything for [06:31.540 --> 06:35.680] the device class. I mean, you could and it will just say unknown. So if you are going to put [06:35.680 --> 06:40.200] something in there, you know a little bit how the device class works, which I'm not going to [06:40.200 --> 06:50.620] really go into too much today. Mode 4 is, oh, it's a load, previously a log scan. So if you [06:50.620 --> 06:56.340] want to scan, save for later, log it in, make one of the selections and clone that device [06:56.340 --> 07:03.220] later on, you can do that. And the last one is for, is the incognito mode. You can have [07:03.220 --> 07:08.620] spoof to randomly generate a profile every X number of seconds. So if you don't want to be [07:08.620 --> 07:14.600] seen, you can keep changing your profile. This will mess up persistent connections. So don't [07:14.600 --> 07:17.680] think you're going to be connected to something and keep changing that. It will mess it up. [07:17.680 --> 07:23.780] But if you're just running these scans or whatever, it will change your information. Yeah, [07:23.780 --> 07:29.220] every, this one is set to 10, every 10 seconds. So this is what the interface looks like. [07:30.640 --> 07:36.740] Pretty straightforward. It will, you run the scan, it pops up with this menu. It will list all [07:36.740 --> 07:42.320] the devices there. I'm not that great with the interface programming so far. So instead of [07:42.320 --> 07:47.420] having nice little, it's similar to how Kismet, the menu interface is for Kismet, except I [07:47.420 --> 07:51.660] know a lot less. So instead of having nice little arrows and stuff, you have to type in [07:51.660 --> 07:56.140] characters. So sorry about that. Maybe in a future version it will be a little more slicker [07:56.140 --> 08:01.640] interface. So yeah, that's showing you four of the scans. You can see there's a couple pages [08:01.640 --> 08:06.900] at the bottom. So you just previous, next. And it will show the rest of the scans, which I [08:06.900 --> 08:15.380] have obfuscated people's names and the classes, sorry, the address in this slide. But we'll [08:15.380 --> 08:28.380] show you real quick a live demo of who's in this room. All right. Can you guys hear me [08:28.380 --> 08:35.890] clicking? Is that really loud out there? It sounds really loud. Here. Okay. This is [08:35.890 --> 08:39.690] actually, I don't know if it's going to pick up, it might pick up stuff up here. Because [08:39.690 --> 08:44.550] actually I'm not hooking it up to a long range device. So Bluetooth has three different [08:44.550 --> 08:51.830] classes. Yeah. Okay. Popped up. Done. One thing to note, so I'll go for the class first. The [08:51.830 --> 08:55.690] class of devices, there's three different ones, 1 meter, 10 meter, 100 meter. Those are [08:55.690 --> 08:59.970] somewhat accurate numbers. So if you're looking to do anything with Bluetooth, you want to [08:59.970 --> 09:06.150] get a class one because that's the longer range. So Bluetooth scanning for this, you see [09:06.150 --> 09:13.430] that the, actually no, all of these have got their names. Sometimes the scans, they have an [09:13.430 --> 09:18.330] initial scan and then a follow-up. So you can see under, I think it's four. Yeah. Device [09:18.330 --> 09:33.700] four. It says unknown. What? Oh. Sorry. Yeah. Sorry. That's going to, is that a little better? [09:34.180 --> 09:38.960] I know it's all blur and it's hard to see. I mean, it's not, it's going to mess up the [09:38.960 --> 09:44.460] menu if I do it any bigger. So sorry about that. You can kind of see it's mostly a blur. [09:44.460 --> 09:51.620] But if you notice, is it gone now? It was. Number four changed, the name changed from [09:51.620 --> 09:55.780] unknown to red team. Man, I'm getting a lot of stuff in here. I figured there would be [09:55.780 --> 10:02.340] more paranoid people. It doesn't, it isn't picking up very far. So the device, the scanning [10:02.340 --> 10:07.420] for Bluetooth, the initial scan detects the device based on the MAC address and then does [10:07.560 --> 10:12.040] a follow-up scan for the name. So some of the times if you're, you know, if you're using [10:12.040 --> 10:16.880] this to do something like war driving, you will need to be in an area where you're actually [10:16.880 --> 10:21.800] going to have a persistent amount of time with the device that you're scanning. You [10:21.800 --> 10:29.980] can, if you want to capture that information. Because it takes ten seconds to a minute to [10:29.980 --> 10:34.400] complete a scan. The initial scan is actually very, very quick. But the follow-up scan for [10:34.400 --> 10:39.260] the name takes a long time. So if you notice that things change on there or that you're [10:39.260 --> 10:47.730] not getting the name, that's the reason why. So it's just this, this only works with [10:47.730 --> 10:51.990] discoverable devices. Sorry, he asked if it was just with discoverable devices. This only [10:51.990 --> 11:04.100] works with discoverable devices. Through this, I've actually started another project called [11:04.100 --> 11:09.160] the Bluetooth profiling project. I don't, it's similar to, if anyone is familiar with [11:09.160 --> 11:14.600] Josh Wright, he's doing a very similar project collecting a lot more information on specific [11:14.600 --> 11:20.600] devices. I'm only looking at a little bit. So what this project is, it's trying to map [11:20.600 --> 11:29.680] the MAC address range of Bluetooth devices. So for those who aren't familiar, each type [11:29.680 --> 11:34.300] of device, every manufacturer gets their own, I thought I had it in the slide. I forget [11:34.300 --> 11:39.100] exactly what it's called. But basically it's the first six characters in the MAC address [11:39.100 --> 11:45.900] are manufacturer specific. And then the rest of them are randomly given to the devices. [11:46.220 --> 11:52.220] So if you can figure out, and that range is the same on all devices of a particular type. [11:52.460 --> 11:57.200] So if you can get the range of those by, you know, you keep scanning and you find that [11:57.200 --> 12:01.900] whatever type of phone and you see, oh, well, there's a pattern here. I see that all these [12:01.900 --> 12:05.820] types of phones have, you know, between this and this. Then you can use something else [12:09.000 --> 12:13.020] to, oh, it will help out with other projects. Actually I'll talk about that in just a minute. [12:13.240 --> 12:20.060] So right now I've collected about 1,500 devices, which is surprising. It really is surprising [12:20.060 --> 12:24.560] how many devices are out there in discover mode because they really shouldn't be. I listed [12:24.560 --> 12:31.120] about 1,000 of them on my website right now. I'll try to get more. Yeah. So actually I [12:31.120 --> 12:36.960] just went into this a little bit more than on the previous slide. So, yeah, using Red [12:36.960 --> 12:42.900] Fang, as I mentioned, Red Fang finds devices in non-discoverable mode by attempting connections [12:42.900 --> 12:48.320] essentially. So it has to run through the entire list and it takes forever. Like you [12:48.320 --> 12:51.600] couldn't actually run the whole gambit in, I don't know what the number is, I don't want [12:51.600 --> 12:54.920] to quote it, but it's, you know, years and years and years and years. So this will help [12:54.920 --> 12:59.620] narrow that down. If a device, if only, you know, 1,000 models of a certain device are [12:59.620 --> 13:04.340] made and you can get that range, well, then you have a lot higher than whatever the MAC [13:04.340 --> 13:12.660] range, the possibility of MAC ranges is. The other thing is to match the model with the [13:12.660 --> 13:19.900] address. Yeah. We'll talk about more of the research. A big part of it that I've discovered [13:19.900 --> 13:24.900] is actually the disclosure of sensitive information. I feel like a lot of these, a lot of people [13:24.900 --> 13:36.460] don't realize what's being disclosed by the name of their Bluetooth-enabled device. Sorry. [13:38.060 --> 13:44.180] Yeah. So we went through this just a minute ago. The OUI, that was the number I was looking [13:44.180 --> 13:50.680] for. This is the sensitive one. So a lot of them are giving out things like the first [13:50.680 --> 13:59.520] name, the nickname, location, device model. I've seen things like URLs actually in the [13:59.520 --> 14:04.800] name because people name the computer the same name as its URL. So then you can see [14:04.800 --> 14:08.900] it that way. All kinds of stuff that, you know, I'm sure they don't know that that's [14:08.900 --> 14:14.560] the name of it or that anybody walking by can just get that information. But my findings [14:14.560 --> 14:22.000] are about 30% of Bluetooth devices that I scanned gave away an individual's first name. [14:22.020 --> 14:26.560] And that's just me scanning through them. I might not recognize a name off the bat. But [14:26.560 --> 14:34.760] that's roughly it. About 20% give out last names, locations. The device model, I consider [14:34.760 --> 14:42.100] that sensitive information only for exploitation purposes. So if you know what the device is, [14:42.100 --> 14:47.440] then you can target your attacks. So that's, you know, but I understand naming it that [14:47.440 --> 14:52.040] way. I'm not saying don't name the device whatever. But it is possibly sensitive information [14:52.040 --> 14:56.320] if people are going to try to exploit a particular device. You change the name to something else [14:56.840 --> 15:00.820] other than, as I said, the Mac range figuring out that way. It makes it very difficult to [15:00.820 --> 15:08.240] determine what the device is right off the bat. Contributing. I'd love to have an enormous [15:08.240 --> 15:12.640] list of profiles. The more people contribute, the better, the better, the more accurate [15:12.640 --> 15:19.620] things will be. There's a couple caveats to that. So I wanted the name, the address in [15:19.620 --> 15:24.140] the class. No more or less. I don't care where you got it. I don't care how you got it. Just [15:24.140 --> 15:29.240] as long as you post those three things. I want to sanitize the information. It is publicly [15:29.240 --> 15:35.880] available information. So there should be no problem with it. But just to be nice, sanitizing [15:35.880 --> 15:41.400] things like the name, anything that looks like a name, replace it. The place information [15:41.980 --> 15:46.540] or other is a category that if you're like, this might be sensitive, I wonder if I could [15:46.540 --> 15:52.360] ask him, just replace it with other. It's not that important to have the name for everything [15:52.360 --> 15:56.500] except for, as I said, the statistics earlier. That's most of the reason why I don't just [15:56.500 --> 16:01.380] replace the name right off the bat. It could help with some other research down the road. [16:01.520 --> 16:07.620] So I've created a forum on my website where people can just post the logs that they find. [16:07.620 --> 16:17.060] And I will update the full list as I get more posts. So here's my nice little DEF CON list. [16:18.260 --> 16:25.620] I thought this would bring the home. I phrased that completely wrong. So this is just a couple [16:25.620 --> 16:30.080] of them. I've been scanning all of DEF CON. Congratulations, people do actually do hacking [16:30.080 --> 16:35.580] stuff at DEF CON. And if you thought you turned off your Bluetooth device, I see some people [16:35.580 --> 16:40.080] in the audience right now that are like, yeah, wait, I think my phone's Bluetooth is [16:40.080 --> 16:45.340] off, but, you know. Yeah, I don't know how many clicks, I didn't get a list. I'm going [16:45.340 --> 16:49.860] to go with about 250 different profiles that I found here. And I wasn't even, this wasn't [16:49.860 --> 16:53.840] like an effort I made. I didn't try to get every room or go all around. It's mostly been [16:53.840 --> 16:58.660] sitting in the hackers or charity booth. So if you went to the vendor area, you probably [16:59.100 --> 17:04.860] got scanned there or walking around a little bit. So this is just a couple of them. I like [17:04.860 --> 17:10.960] fail phone. Clever naming. I removed the star, star, star is actually people's real names. [17:11.540 --> 17:17.240] And you can see what devices give those out. This is, yeah, as I said, just a couple. So, [17:17.240 --> 17:21.880] you know, be aware that whatever you name it, if you don't know what you've named it, [17:21.880 --> 17:28.720] it's probably giving something out. I mean, if it, you know, if you rename it to fail [17:28.720 --> 17:31.900] phone, okay, well, obviously you took the effort and you know it's going to be named. [17:31.900 --> 17:38.920] But if you don't know what it's named, you might want to check that out. And I meant [17:38.920 --> 17:43.520] to say this list was inspired by the wall of sheep guys. So I'm going to be posting [17:43.520 --> 17:47.720] some of this stuff with them later on. So this is a short list. If you want to see that [17:47.720 --> 17:52.760] you were scanned, you might want to check out the wall of sheep a little later. So that's [17:52.760 --> 17:57.860] the obfuscation side. That's the, you know, data collection and everything like that. [17:57.860 --> 18:05.240] Now we'll get into the offensive side of things. So a V card. So this is one of the tools that [18:05.240 --> 18:11.400] I'm working on called V card blaster. A V card is a virtual business card, essentially. [18:11.460 --> 18:15.980] You probably have used them before. A lot of places have them for download or information [18:15.980 --> 18:21.420] on people. It works, syncs up with like Outlook. It creates the profile. So if you, for your [18:21.420 --> 18:27.000] contact list. And it's heavily used in Bluetooth. A lot of the Bluetooth enabled phones will [18:27.000 --> 18:31.240] be able to share things over V cards, which makes things a lot easier instead of all the [18:31.240 --> 18:35.900] business cards going around. You just sync up your devices, send it over, and life is [18:35.900 --> 18:45.100] good. But some of them that allow it, sometimes it will come up with a prompt that says, would [18:45.100 --> 18:48.400] you like to allow this V card? And you're like, oh, yeah, sure, I just met that guy. [18:48.540 --> 18:53.460] Or we need to pair before you can send that over. Some of them, however, don't do that [18:53.460 --> 18:58.060] for this particular feature. And I can understand why in the development of it, they decided, [18:58.060 --> 19:01.100] oh, well, obviously, if you're just going to send a V card over, there's nothing bad [19:01.100 --> 19:10.280] about it. But there could be. What V card blaster does is it allows you to send a constant [19:10.280 --> 19:18.620] stream of V cards to a particular device. Or to all devices in range. One, a couple [19:18.620 --> 19:26.620] different things, let's see. Yeah. A couple different things this can do. One is potentially [19:26.620 --> 19:32.480] fill up the disk drive. V cards, while they can just contain e-mail or your name or your [19:32.480 --> 19:37.260] phone number, they can actually contain a lot more than that, like images. So if you [19:37.260 --> 19:42.500] could send a constant stream of V cards with very large file types, you could potentially [19:42.500 --> 19:47.640] fill up the disk of something that's a very small PDA or a PDA with a very low amount [19:47.640 --> 19:53.720] of memory or if it's partitioned memory. The other thing is you can add contacts to [19:53.720 --> 19:59.740] people's devices. So that could be interesting just to see what you want to add. The other [19:59.740 --> 20:04.220] thing is actually if you want to add a ton of random names in there, you've officially [20:04.220 --> 20:08.980] made it very hard for them to make a phone call because if the contact list had 100 people [20:08.980 --> 20:15.240] and now it's got 10,000 people in it, they're never going to find mom. Mom, mom, mom, mom. [20:15.240 --> 20:20.680] Where is it down there? And I don't know of any quick way to remove new contacts most [20:20.680 --> 20:24.980] of the time. I'm pretty sure it's a manual process. So unless they have some sort of [20:24.980 --> 20:31.560] backup of their contact list, they have to go in and manually remove all of it. Something [20:31.560 --> 20:35.840] I'm going to be working on is actually the random name generation. So that's not in there [20:35.840 --> 20:40.660] right now, but I'm going to be adding that so it will randomly generate a name. You can't [20:40.660 --> 20:44.800] have the same name on the contact list. A lot of times they'll get angry about that [20:44.800 --> 20:47.320] and say are you sure you want to replace this? And you don't want to make the user [20:47.320 --> 20:52.700] aware that this attack is going on. So I will have it so it randomly generates and doesn't [20:52.700 --> 20:56.460] double up on the name so you can fill it up that way and they look like legitimate ones. [20:56.460 --> 21:01.340] Because right now I just have a random character of strings so they can pretty much tell that [21:01.340 --> 21:11.040] it's not legit. So this is what the attack looks like. I can demo it. No, I don't have [21:11.040 --> 21:15.780] the demo one. Sorry, it's dead. My bad. But this is exactly what it would look like. So [21:16.520 --> 21:22.200] the flag's up there. Can you guys, you can't really see it that well. So I'll describe [21:22.200 --> 21:29.540] what it is. It has a JASG flag for generating dash I 20 to say run it 20 times instead of [21:29.540 --> 21:37.460] 10,000 times. The dash T, it's running, it has to do with the threading to see if it [21:37.460 --> 21:41.900] times out. A lot of these things will continue to work so it will freeze up. So you want [21:41.900 --> 21:48.140] to add a timeout option in there. And then just the director, you can either select a [21:48.140 --> 21:53.240] specific V card or V card blaster will generate one for you and then send that information [21:53.240 --> 21:58.160] on. So that's pretty much what's going on here. I have a string that I gave it, big [21:58.160 --> 22:02.820] brother, and it's randomly generating text after that so that it won't prompt the user [22:02.820 --> 22:09.520] to replace the current contact. So this one, I wish I could show how quick it runs. And [22:09.520 --> 22:14.700] once they initially connect, it's, you know, milliseconds to copy these over. So you can [22:14.700 --> 22:21.940] fill up a contact list pretty darn quick. Yeah, live demo thing, not going to happen. [22:22.240 --> 22:29.640] Blooper is actually a very similar type of program. It's exactly the same except for [22:29.640 --> 22:34.300] it's not V cards, it's any type of other file. So the process for sending these files [22:34.300 --> 22:39.760] is exactly the same. However, when it gets on the PDA side, they know that V cards are [22:39.760 --> 22:43.620] supposed to be interpreted this way and possibly other files are interpreted certain other [22:43.620 --> 22:47.680] ways and then the rest of them are like for download. So it's basically the same principle [22:53.600 --> 22:59.040] except... not to single you out or anything. I'll just hold on here. Yes, so it's the same [22:59.040 --> 23:04.500] principle, but it has a different kind of denial of service. Well, I guess it's similar [23:04.500 --> 23:12.960] as the first one I mentioned. What it does is I found on specific devices, actually this [23:12.960 --> 23:18.120] specific device, that what happened is normally when you want to transfer a file, and some [23:18.120 --> 23:22.320] of you might have done this through Bluetooth before, you say you either need to make a [23:22.320 --> 23:25.200] connection, so somebody wants to connect and then you connect and then it says, okay, now [23:25.200 --> 23:28.780] I want to transfer a file. Or it says, you know, Bob is transferring a file to you. Do [23:28.780 --> 23:33.620] you accept? When you click accept, it starts downloading it. I found on a particular device [23:33.620 --> 23:38.940] that what it actually did was it would cache the file and then prompt the user for the [23:38.940 --> 23:43.320] download. I don't know where it would cache because forensics on PDAs is very difficult [23:43.320 --> 23:47.820] and I haven't actually found how it caches it or where it caches it, but it caches it [23:47.820 --> 23:52.540] nonetheless and that's before it prompts the user that the interaction is going on. That's [23:52.540 --> 23:57.140] assuming a couple of things like it allows anonymous connections. So this is only one [23:57.140 --> 24:00.980] specific device that I've tested it on. It might work on a lot of others. I really just [24:00.980 --> 24:05.000] haven't had any funding to test a whole list of things and people don't like giving me [24:05.000 --> 24:12.080] their phones anymore for some reason. So, yeah, so what you can do is, as I mentioned [24:12.080 --> 24:18.960] before, you can fill up a disk of a device with a low disk space and this one works a [24:18.960 --> 24:22.820] lot better because the V card one, you know, you might have 20 lines of text you're sending. [24:22.820 --> 24:29.920] This one you can actually generate, yeah, you can generate a file of whatever size you [24:29.920 --> 24:34.540] want and send that. So you can send a specific file if you want, which is fine by me, but [24:34.540 --> 24:39.340] I thought I would just offer to randomly generate a file because what's important here isn't [24:39.340 --> 24:44.800] the file, it's that it's causing, it's to fill up the disk space. So you can generate [24:44.960 --> 24:50.560] a file of 10 kilobytes or, you know, 5 gig if you really wanted to. Of course, 5 gig [24:50.560 --> 24:55.360] over Bluetooth would take forever and ever and ever. Bluetooth is not designed for heavy [24:55.360 --> 25:00.480] use. You don't want to pass an ISO over Bluetooth. That generally will not go very well. It's [25:00.620 --> 25:08.500] a very low data rate compared to Wi-Fi. It's 2 megabits slash 3-ish megabits and that's, [25:08.500 --> 25:13.140] you know, like theoretical max stuff. So it does take a while. That's the one caveat of [25:13.140 --> 25:17.960] this thing, of this attack, is you really have to be next to somebody for a very, very [25:17.960 --> 25:22.300] long time. It's not going to, this isn't going to be very effective at a coffee shop. You're [25:22.300 --> 25:26.420] going to have to, if you're going to be performing this attack, it's got to be a device that's [25:27.080 --> 25:34.000] around for an extended period of time, hours, maybe a day, depending on how much disk space [25:34.000 --> 25:40.680] there is and if the attack is effective. Oh, yeah, I put that it can cause it to crash. [25:40.680 --> 25:47.940] So when I was testing this, once I accidentally hit okay, or, so it, it, it, it crashed. [25:47.960 --> 25:52.280] I sent a bunch of files at once. You can send one file or a lot of files. However, you know, [25:52.280 --> 25:56.080] if you want to test it with the device to see what's more effective. So I started, you [25:56.080 --> 25:59.880] know, caching the files and then it says, you know, do you want to reject them? Do you [25:59.880 --> 26:04.840] want to say okay for this file or do you want to download them all? And I just happened [26:04.840 --> 26:11.960] to actually, I accidentally clicked accept all. And so, long story short, it took what [26:11.960 --> 26:15.600] was in this memory, which was almost full, and it tried to write it over into the real [26:15.600 --> 26:21.580] file system. So we completely ran out of disk space. And I don't know if it ran into [26:21.580 --> 26:24.860] the memory because a lot of these devices actually, you know, their hard drive space [26:24.860 --> 26:30.720] and their RAM are actually, you know, the same actual physical chip or chip flash or [26:30.720 --> 26:35.840] something like that. So what happened is it actually completely fried the device and I [26:35.840 --> 26:40.020] had to do a factory reset, which was fun. It took me forever to figure out, you know, [26:40.020 --> 26:44.580] what was going on. It died. And then bringing it back up, it would not boot. It would not [26:44.580 --> 26:48.760] boot. So I actually had to do the manual, like, factory reset to get that to work. So [26:48.760 --> 26:53.020] that's a nice little attack when you completely break the system and it has to do a total [26:53.020 --> 27:04.060] factory reset. So this is what it looks like. I can attempt a demo over here. Yeah. Actually, [27:04.060 --> 27:06.940] I'll do the demo and then come back to see what this looks like. [27:13.660 --> 27:22.860] So to scan for a Bluetooth device in Linux, HCI tool, scan, you could use Spoof Toof. This is [27:22.860 --> 27:29.760] just quick and easy. So Spoof Toof, the advantage over just running, like, a script that will [27:29.760 --> 27:36.880] do this is that Spoof Toof only logs it once. So if you're doing a... thank you. Thank you [27:36.880 --> 27:44.980] to whoever out there. It's hard to see. It says Ronan's mom. Fan boy, thank you. Okay. So I'm [27:44.980 --> 27:47.920] sure people have been pounding on this thing because it's a Bluetooth lock and I enabled [27:47.920 --> 28:03.110] Bluetooth on this. So we're going to try to run this. Let's see. So let's see if I can boost [28:03.110 --> 28:18.600] this up a little bit. That didn't do anything. A little better. One more. Yeah, okay. So [28:18.600 --> 28:30.260] that's the command I'm going to run against my Dell Axum up here. Should have just copied [28:30.260 --> 28:49.460] and pasted that like I just did. It would have been faster. Oh, I should... I'm actually [28:49.460 --> 29:04.540] trying to upload a file that doesn't exist. Evil file. Wait. Oh, that's not good. Okay. Well, [29:04.540 --> 29:11.560] that didn't work at all. I don't know. I know why I haven't updated this system. I apologize [29:11.560 --> 29:18.420] for that. But the attack would have looked exactly like this. So that's actually the system's [29:18.660 --> 29:22.220] fault. The program should work fine. I guess I should mention that a lot of these are [29:22.220 --> 29:26.380] actually generating a script internally. So that's why that failed. I didn't include [29:26.380 --> 29:30.580] some of the code. I actually just ended up bundling into a script. The new versions I'm [29:30.580 --> 29:35.000] working on right now will have everything in it so you don't have to install some of [29:35.000 --> 29:38.940] these tools, some of these additional packages. And that's the reason that failed right now. [29:38.940 --> 29:44.860] But anyway, so what I have here that's hard to see is it's going through 500 iterations [29:44.860 --> 29:53.020] and it's using a file that I'm generating of size 10,000. And you can select the file [29:53.020 --> 29:58.580] name, the current file name, and you can ‑‑ oh, wait. Oh, yeah. And then you can tell it [29:58.580 --> 30:03.420] what the file name should be on the other end. So it doesn't have to be the same. So [30:03.420 --> 30:07.760] you just have to say that this is some sort of whatever file. Maybe someone would accept [30:07.760 --> 30:13.880] it actually or something that looks nonchalant. And then target the device. And you can kind [30:13.880 --> 30:18.080] of see the iterations. It's like five lines each of it. It finds the device, it's sending [30:18.080 --> 30:22.400] the file, and then it's done. But it does take quite a while for a size. This probably [30:22.400 --> 30:30.460] took ten minutes to send the size of a 10,000K. So, yeah, it will take a little bit of time. [30:30.460 --> 30:35.000] And then on the other end, you can kind of see it has a little pop‑up. That pop‑up, [30:35.000 --> 30:39.860] you can either save all in the bottom left. That's what I clicked. And that was the downfall [30:39.860 --> 30:46.000] of the device. So this pops up there. And I imagine a user would probably notice if [30:46.000 --> 30:51.720] I send a file that says evil file. So it actually ‑‑ it generates a counter, too. You have that [30:51.720 --> 30:55.160] option. So the files can look differently. And that's just how I knew how many were up [30:55.160 --> 31:00.240] there. If you're testing, it makes it a lot easier. Because another sort of denial of [31:00.240 --> 31:05.420] service in this, and this kind of falls into both of them, pop‑up menu denial of service. [31:05.420 --> 31:10.160] If you're sending a constant stream of files that are very small, this is another option, [31:10.160 --> 31:16.020] and they click no, it pops right back up. So unless they get away from you, they can't [31:16.020 --> 31:19.480] actually disable Bluetooth unless there's some hardware setting. Because they can't [31:19.480 --> 31:24.300] get the start menu. Because they click start menu and that pop‑up is, you know, a higher [31:24.300 --> 31:28.740] priority than the start menu. So all you do, and this happened to me. I was like, no, stop, [31:28.740 --> 31:33.340] no, crap, I got to go to the other side. Because it kept popping up and I couldn't do anything [31:33.340 --> 31:37.300] on the device because of the pop‑up menus. So I'm sure there's all kinds of other things [31:37.300 --> 31:42.020] that can utilize that sort of an attack. But that did happen. And so if you really want [31:42.020 --> 31:45.120] to just annoy somebody, that's a good way to do it. [31:46.600 --> 31:53.280] Another tool I've been working on is Pwntooth. This is an attack suite, essentially. I've [31:53.280 --> 31:58.880] tried to bundle together some common Bluetooth attacks. Other than the ones I mentioned here, [31:58.880 --> 32:02.980] none of these are mine. But I figured I'd make a little bit of an easier way for certain [32:02.980 --> 32:11.280] people to do pin testing. There's a really good actual suite in backtrack that's, you [32:11.280 --> 32:15.400] know, if you're a first‑time user, you want to go that route. It's a very ‑‑ it steps [32:15.400 --> 32:21.580] you through things. Mine does not do a step through. What this is, is it basically allows [32:21.580 --> 32:27.620] you to run a script. And it will scan for everything and only run the attacks once against [32:27.620 --> 32:32.760] it. So it's a binary file, but it could have been a script file. But it only runs the attack [32:32.760 --> 32:38.960] list once. You provide the list of attacks you want to launch through the tools. So I'm [32:38.960 --> 32:43.940] ‑‑ there's no point and click or anything. You make this config file, whatever you want. [32:44.840 --> 32:49.440] And you run those attacks against the devices. You can say one specific device. You can say [32:49.440 --> 32:54.000] all devices in range. And it will run all those against it at a time. I don't do any [32:54.000 --> 33:00.200] report generation. I probably won't do any report generation, maybe, possibly. So all [33:00.200 --> 33:03.700] you get is the output of the actual attack. It's not going to tell you ‑‑ I'm not [33:03.700 --> 33:09.800] going to provide the information that says this succeeded, this failed, whatever. But [33:09.800 --> 33:14.200] it's mostly there to make ‑‑ I worked on a project where I had to run a lot of attacks [33:14.740 --> 33:19.500] ‑‑ excuse me, I had to run attacks a lot of times against a device. And then they have [33:19.500 --> 33:22.900] to type in the Mac every time and it got to be a little bit of a pain. So this is more [33:22.900 --> 33:28.960] just the automatic way to do things. Yeah, so there's the config file. The configuration [33:28.960 --> 33:34.140] file uses a star as a wild card and that's where it inserts the Mac address. So a lot [33:34.140 --> 33:37.580] of them will tell you this is where the Mac address should be when you're running the [33:37.580 --> 33:41.080] command. That's basically all it really does. Other than it could just be a bash script [33:41.080 --> 33:48.000] except for that it scans and only runs it once. This is the default area where the file [33:48.000 --> 33:55.600] is installed. And it will ‑‑ you can run it multiple times through. So you can [33:55.600 --> 33:59.620] say I want to actually run this script as many times as you want and it will do the [33:59.620 --> 34:05.700] attacks for you. And that's just an example of the specific log file that you want to [34:05.700 --> 34:11.160] log the information out to and the scanning at ten times. So you can specify a different [34:11.160 --> 34:15.740] configuration file if you want. But this just makes your life a little bit easier if you're [34:15.740 --> 34:21.040] going to be running lots of attacks against a single device or in an area of devices. [34:21.040 --> 34:24.640] If you're going to be pin testing at your business and you want to see what vulnerabilities [34:24.640 --> 34:28.580] are out there and you're walking around with it, this might help you out a little bit. [34:30.560 --> 34:38.320] Example. So pound is to keep it from being read in. So the list comes with examples. [34:39.260 --> 34:43.920] It's got some default ones. And I tried to put some in there, some of the commands because [34:43.920 --> 34:49.960] I know some of these tools while awesome are not as, you know, widely used. So there's [34:49.960 --> 34:53.660] not a whole lot of documentation and examples of things. So I tried to include examples [34:53.660 --> 34:59.500] of how to use them in a way that I would normally use them. So that should help you out if you [34:59.500 --> 35:04.760] are new to this in getting started. So I provided a couple of examples. You can add whatever [35:04.760 --> 35:08.520] you want. Bluetooth related. As long as you use the wild card, it will insert the address [35:08.520 --> 35:16.280] in there and run whatever you want. Here's a couple of project pages for the different [35:16.280 --> 35:23.640] things. And I'm up for Q&A. So I'm going to go ahead and run this. [35:23.660 --> 35:28.600] Anybody? Yeah. It's something I started years ago. I just decided to put it up there. And [35:28.600 --> 35:36.180] then like ever since, every presentation I do has a bunny. So, yeah. We have any questions? [35:36.960 --> 35:56.690] You know what time it is? Good. Any questions? Nobody cares? All right. The problem with [35:56.690 --> 36:01.930] the, you have to find it when it's non-discoverable. And that's a big pain. There is actually some [36:01.930 --> 36:05.890] presentations. I think they did a presentation last year at DEF CON and then at SHMOO CON [36:05.890 --> 36:13.650] using a U.S.S.R.P. to monitor the bandwidth, sorry, monitor the frequencies and getting [36:13.650 --> 36:17.870] it that way. But that's frequency analysis. So you can discover devices there and you [36:17.870 --> 36:22.970] might be able to pull up the Mac and it's very complicated and long. But Red Fang is [36:23.070 --> 36:27.930] a great option to finding non-discoverable devices. But it takes so long, it's not terribly [36:27.930 --> 36:33.570] practical. Yeah, actually we've got some Hackers for Charity free swag here. If anybody [36:33.570 --> 36:37.810] wants it, you can come on up and throw some to. People want this stuff? All right. I'm [36:37.810 --> 36:47.770] going to see how far I can get out. Almost to the back. Deflected. All right. I'm going [36:47.770 --> 36:51.870] to be in room 114 if you have questions about that or maybe about this.