[00:03.520 --> 00:07.540] All right. Thanks for showing up. [00:10.180 --> 00:12.660] My name is Dale Rowe. This is Scott Pack. [00:12.660 --> 00:16.980] We're going to talk to you a little bit about a project we've had going on for a while. [00:17.840 --> 00:21.480] A lot of people are doing stuff with drones. Can you hear me? [00:22.320 --> 00:24.100] Is it the accents or the levels? [00:30.000 --> 00:31.140] Can you hear it at all? [00:33.600 --> 00:35.820] I don't think the microphone is working. [00:42.580 --> 00:45.060] We've had a project going on for a few years. [00:46.200 --> 00:49.140] Looking at different things quadcopters can do. [00:49.920 --> 00:53.900] Scott is somewhat of an expert in the area and I'm kind of his supervisor. [00:53.900 --> 00:55.220] I'll go on to the introductions. [00:57.400 --> 00:59.400] I teach IT at BYU. [00:59.440 --> 01:02.760] And when I say IT, I mean the fun stuff that I like teaching. [01:03.120 --> 01:05.400] I'm trying to stay away from the areas I don't like. [01:05.400 --> 01:08.760] But I teach penetration testing and forensics and a couple of fun stuff like that. [01:08.840 --> 01:10.440] I've been there for about four years. [01:10.800 --> 01:14.780] So my accent is just on the point of not being British, not being native. [01:14.780 --> 01:16.320] And I don't know where it's at. [01:16.440 --> 01:20.460] If you don't understand me, please just stop me and ask a question and I'll try and answer it. [01:22.520 --> 01:24.740] I worked a bit in the aerospace industry. [01:25.500 --> 01:29.120] Kind of doing security and different things there that I'm not really supposed to talk too much about. [01:29.720 --> 01:33.640] Scott was one of our grad students at BYU. [01:33.960 --> 01:38.360] And came up with this really cool idea of using a quadcopter to try and map out networks. [01:38.760 --> 01:41.320] So he's going to be kind of running through some of the background on that. [01:41.900 --> 01:44.180] He now works for Adobe as a security analyst. [01:45.120 --> 01:46.860] Probably owns more than I do, which is great. [01:46.860 --> 01:49.660] That means I was successful somewhat in helping him get that. [01:49.660 --> 01:52.360] Do you want to pass on? [01:53.180 --> 01:54.760] Sure, are we just going to go to the next? [01:54.760 --> 01:55.100] Yeah. [01:55.540 --> 02:01.840] So, short experience that I had just coming into the other Las Vegas security conference. [02:01.840 --> 02:02.760] I was on the tram. [02:02.760 --> 02:07.620] I've been going back and forth between New York and Mandalay Bay like four times a day. [02:07.720 --> 02:10.400] One time I sat down next to a guy and he said, [02:10.400 --> 02:13.800] Oh, are you here for that security computer thing here? [02:13.800 --> 02:15.520] And I said, yeah, that's what I'm here for. [02:15.980 --> 02:20.880] He then told me a little bit about how his son works for a large government security contractor [02:21.280 --> 02:23.680] and how big the industry was. [02:24.240 --> 02:26.840] And then he said something that really surprised me. [02:26.840 --> 02:29.080] He said, yeah, I don't think it's going to last too much longer. [02:29.080 --> 02:31.480] I think this whole security thing is just going to blow over. [02:31.840 --> 02:34.820] And that kind of blew me away. [02:34.880 --> 02:39.440] Like everything I know about the security industry, like malware variants are skyrocketing. [02:39.480 --> 02:41.700] We're seeing more every day. [02:43.300 --> 02:48.300] We're seeing governments and companies pouring hundreds of millions of dollars, [02:48.300 --> 02:53.780] billions of dollars in some cases, into doing security research and operations. [02:53.980 --> 02:57.600] I don't see where this guy's coming from. [02:57.600 --> 03:01.600] So I asked him, why do you think this is going to start tapering off or anything? [03:01.600 --> 03:03.420] And he answers, well, it's robots. [03:04.000 --> 03:06.840] Robots are going to end all of our security problems. [03:06.840 --> 03:10.340] So I wish I could be presenting something like a robot [03:10.340 --> 03:13.400] that was going to be fixing all of the security problems today. [03:14.140 --> 03:18.360] But we do have a couple ideas about how we can use mechatronic systems, [03:18.360 --> 03:22.980] specifically a quadcopter, in making some of our jobs a little bit easier, [03:22.980 --> 03:25.300] either as an attacker or as a defender. [03:25.480 --> 03:31.880] So a little bit of history, some from DEF CON, some elsewhere into this space, [03:31.880 --> 03:37.560] kind of a combination between robotic aerial platforms and wireless. [03:38.140 --> 03:41.600] Chris Anderson, with 3DR, a couple years ago, [03:41.600 --> 03:47.000] presented a flight controller called the ArduPilot, or the APM. [03:47.740 --> 03:51.440] Very, very cool flight controller, incredibly flexible. [03:51.480 --> 03:54.100] I'll be talking a little bit more about that later. [03:55.060 --> 03:58.580] And then Mike Tassi and Rich Perkins, I think this was two years ago, [03:58.580 --> 04:02.400] both at Black Hat and here at DEF CON, presented the WASP, [04:02.400 --> 04:04.780] the Wireless Aerial Surveillance Platform. [04:04.780 --> 04:10.680] This was a repurposed military drone that could do a lot of really cool things. [04:10.680 --> 04:15.100] Everything from setting up basically a flying GSM and cell tower [04:15.100 --> 04:20.640] to mount in the middle of your phone calls, do aerial surveillance and attack. [04:20.640 --> 04:24.100] It was VPN to a base station so that you could control [04:24.100 --> 04:31.800] both the flight of the platform and its offensive operations from the ground. [04:31.800 --> 04:38.480] It was incredible how much they fit onto this 14-pound military drone. [04:38.780 --> 04:45.980] And then just last year, Ricky Hill did some work in using the commercial DJI drone. [04:46.200 --> 04:49.460] What's the one called again? You've got two of them. [04:49.460 --> 04:50.900] Oh, the little Parrot AR drone. [04:50.900 --> 04:53.940] The Parrot AR. No, it wasn't the Parrot AR. [04:53.940 --> 04:57.500] It was the DJI Phantom to basically do a flyby of a beach [04:57.500 --> 05:02.420] and do some kind of like low-resolution war flying. [05:02.420 --> 05:05.120] So we also strapped a wireless pineapple on here. [05:05.120 --> 05:07.380] If you've been in this room for more than about half an hour, [05:07.380 --> 05:09.300] I'm sure you've heard of the pineapple, [05:09.300 --> 05:14.580] to do everything that you can do from a pineapple anywhere that a drone can get, [05:14.580 --> 05:18.200] which is, if you've done any amount of RC flight, pretty much anywhere. [05:19.240 --> 05:23.820] So outside of DEF CON, though, there's been a lot of cool stuff happening as well. [05:23.960 --> 05:27.460] These two guys, Theodore Reid and Joseph Geis, [05:27.460 --> 05:30.280] I think it's out of Stevens Institute of Technology, [05:30.280 --> 05:36.760] they did some work in using a drone to provide a covert transmission channel. [05:36.820 --> 05:39.460] So if you're a network administrator or anything, [05:39.460 --> 05:45.260] basically your knowledge is coming from your egress, your network egress. [05:45.260 --> 05:48.240] And if you're trying to do something to stop command and control traffic, [05:48.240 --> 05:50.400] that's where you have some amount of power. [05:50.400 --> 05:53.200] You can put in firewalls, you can put an IDS in place, [05:53.200 --> 05:57.500] but if all of a sudden your endpoints are communicating with a drone [05:57.500 --> 05:59.620] that's sitting on your roof or on your balcony, [05:59.620 --> 06:02.760] you don't have control over that network egress anymore. [06:02.760 --> 06:06.280] So that was a lot of what these guys did in setting up a proof of concept [06:06.280 --> 06:11.420] to do command and control over an alternate transmission channel. [06:13.660 --> 06:17.920] The Ant Catalog is a little bit more of a touchy subject, I guess. [06:17.920 --> 06:23.300] If you're familiar with what the Ant Catalog is, you know who published it. [06:24.100 --> 06:30.040] And the Sparrow 2 is pretty nondescript in their documentation, [06:30.880 --> 06:34.180] but it's pretty easy to infer that it was used for [06:34.180 --> 06:39.520] probably both offensive and defensive operations on an airborne platform. [06:39.520 --> 06:41.660] So cool stuff going on in the field. [06:41.920 --> 06:46.500] And although it's not really an advance of the art here, [06:46.500 --> 06:50.160] I figure this is DEF CON, what's a presentation without a cat in it, right? [06:50.360 --> 06:52.800] So this is Orville Copter. [06:53.180 --> 06:58.080] I believe it was an artist out of Finland taxidermied his cat and put it on a quad. [06:58.500 --> 07:00.360] That's really not here nor there. [07:00.700 --> 07:02.120] You wouldn't want to do that. [07:02.860 --> 07:06.840] So I'm going to describe a little bit about what goes into building a quadcopter [07:06.840 --> 07:10.720] and then how we're using a quadcopter in our situation [07:10.720 --> 07:13.920] to do wireless mapping, heat mapping. [07:14.840 --> 07:16.820] So pretty much every quad you're going to see, [07:16.820 --> 07:19.060] it can have a wide variety of different frames. [07:19.060 --> 07:23.800] You've got Y3s, which is just like a single quadcopter, [07:23.800 --> 07:26.780] not even a quadcopter, a tricopter, three motors. [07:26.920 --> 07:29.440] You can have a Y6, which has them up and down, [07:29.440 --> 07:31.800] gets a little bit of redundancy on the motors. [07:32.540 --> 07:37.060] You've got quadcopters with four, hexacopters, octocopters. [07:37.060 --> 07:37.860] They go crazy. [07:37.860 --> 07:42.780] Lady Gaga actually had a dress built that was, like, powered by quadcopters. [07:42.780 --> 07:44.760] So she'd stand on this thing and fly around. [07:44.760 --> 07:47.660] But really, like, there's tons of different frames. [07:48.140 --> 07:51.420] What you choose as your frame, the material that you use for it... [07:51.420 --> 07:52.560] Speak a little bit louder. [07:52.560 --> 07:53.460] Is this... [07:54.020 --> 07:56.120] That's not, it's for the recording. [07:56.120 --> 07:56.500] Okay. [07:56.500 --> 07:58.480] The video, there's no speaking. [07:58.480 --> 07:59.280] All right. [07:59.940 --> 08:01.000] Okay, I'll try. [08:03.700 --> 08:07.540] The material that your frame is built out of and the way that it's set up [08:07.540 --> 08:11.160] will have a lot to do with how it's actually going to feel in the air. [08:11.160 --> 08:15.680] If it's a little bit more of a, a little bit of a flexible frame, [08:15.680 --> 08:17.840] it's going to feel a little squishy, [08:17.840 --> 08:21.400] but it's also not going to have as much vibration from your motor. [08:21.400 --> 08:24.740] So there's, there's some trade-offs when you're looking at frame materials. [08:25.080 --> 08:30.320] For power, pretty much every quad I've seen uses lithium polymer batteries. [08:30.320 --> 08:34.740] Very high discharge rates, pretty good capacity, very lightweight. [08:34.740 --> 08:39.500] There's been some really cool battery advancements over the last, [08:39.500 --> 08:43.760] even in the last just couple of weeks that could lead some way [08:43.760 --> 08:46.040] for some lighter weight, higher capacity batteries. [08:46.040 --> 08:48.600] So it'll be interesting to see what happens in that field [08:48.600 --> 08:50.620] in the upcoming months and years. [08:51.060 --> 08:55.220] As far as motors, they're brushless motors, [08:56.440 --> 09:00.500] control using an ESC, which is a small microcontroller. [09:01.340 --> 09:03.060] And again, used between 3 and 8. [09:03.060 --> 09:05.860] The propellers, these things are sharp, and they're very fast, [09:05.860 --> 09:10.100] but usually between 8 and 12 inches end-to-end. [09:12.540 --> 09:17.000] ESC I mentioned, so on a quadcopter, in order for it to make it flyable, [09:17.800 --> 09:21.940] there's an input loop, and it will pull a number of different sensors [09:21.940 --> 09:24.080] on a couple of different frequencies. [09:24.080 --> 09:27.260] It uses a magnetometer for determining your heading. [09:27.500 --> 09:30.560] That's what prevents you from kind of getting a corkscrew effect [09:30.560 --> 09:31.860] when you're up in the air. [09:32.620 --> 09:36.060] Barometer is used to determine the altitude of the quadcopter. [09:36.340 --> 09:38.360] Accelerometer to determine the absolute angle, [09:38.360 --> 09:40.600] the angle of attack that it's currently at. [09:40.880 --> 09:43.800] Gyro to determine rate of change. [09:43.800 --> 09:47.540] And then GPS, not every quadcopter is going to have a GPS on it [09:47.540 --> 09:49.100] or a sonic rangefinder. [09:49.220 --> 09:51.040] Those are kind of just additional nice-to-haves [09:51.040 --> 09:53.340] that open up a lot more functionality [09:53.800 --> 09:56.180] and lets you do a lot more cool things with it. [09:58.740 --> 09:59.580] Communications to it. [09:59.580 --> 10:04.000] Most quadcopters are controlled using a 2.4 gigahertz transmitter. [10:04.840 --> 10:05.440] Sorry, go ahead. [10:05.440 --> 10:05.740] Louder. [10:06.220 --> 10:08.340] Louder still. Holy crap. [10:08.860 --> 10:09.940] All right, and then telemetry. [10:09.940 --> 10:12.260] If you want real-time results back from your quad, [10:12.260 --> 10:14.600] you can also put an additional radio on there. [10:14.720 --> 10:16.240] Sometimes we'll be using ZigBee. [10:16.240 --> 10:17.840] There's a number of different alternatives here [10:17.840 --> 10:21.900] to get in-flight stats back to your ground station. [10:22.780 --> 10:27.060] So this is the APM 2.5 that 3DR builds. [10:27.060 --> 10:31.040] It's open-source hardware, open-source software. [10:31.080 --> 10:33.820] There's a fantastic ground station for this, [10:33.820 --> 10:35.540] great mission planning. [10:35.620 --> 10:41.240] This is the same flight controller that Wasp used. [10:41.700 --> 10:43.760] So for my purposes, [10:43.760 --> 10:45.900] I definitely wanted to offload as much of the work [10:45.900 --> 10:47.640] that had already been done as possible. [10:47.820 --> 10:51.940] Picked up one of these, and it was fantastic to work with. [10:52.880 --> 10:54.900] A number of different flight modes. [10:54.900 --> 10:58.140] Even if you get one of these things, it does a lot of things for you. [10:58.180 --> 11:01.460] But as I mentioned, every frame is a little different. [11:01.560 --> 11:03.240] So when you first start building one, [11:03.240 --> 11:04.720] you're going to have to do some tuning. [11:04.900 --> 11:08.360] And that tuning is going to depend on what your motors are like, [11:08.360 --> 11:10.700] what your weight is like, your center of gravity, [11:10.700 --> 11:12.760] your frame composition. [11:13.780 --> 11:16.520] But it's an open-enough platform that you, [11:16.520 --> 11:18.840] with a little bit of work, you can get a pretty stable quad, [11:18.840 --> 11:20.400] no matter what you're using. [11:21.880 --> 11:25.260] So a quadcopter minus the frame pretty much looks like this. [11:25.260 --> 11:28.160] The battery is used to power the ESCs. [11:28.200 --> 11:31.320] The ESCs typically have a battery eliminator circuit in them, [11:31.320 --> 11:34.260] which can let you power your flight controller. [11:34.340 --> 11:36.000] The flight controller is hooked into your receiver, [11:36.000 --> 11:38.760] which you're sending controls to with your transmitter. [11:40.260 --> 11:42.620] Typically, the flight control board will integrate [11:43.580 --> 11:45.280] a large number of your sensors. [11:45.280 --> 11:47.460] Sometimes you'll have additional ones that come off, [11:47.460 --> 11:50.180] an off-board magnetometer or a GPS. [11:50.180 --> 11:56.000] But that's basically the electronics of what builds a quadcopter. [11:56.820 --> 11:59.180] So if you're in RC, [11:59.180 --> 12:02.760] most likely you got started flying a fixed-wing aircraft. [12:03.220 --> 12:07.220] There's a number of benefits that a rotary-wing aircraft [12:07.220 --> 12:09.800] like a quadcopter has over a fixed-wing. [12:10.340 --> 12:11.820] First off, VTOL. [12:11.860 --> 12:14.580] Being able to take off where you are, [12:14.580 --> 12:20.320] not needing a 100-yard long landing and takeoff strip is awesome. [12:20.320 --> 12:24.000] It lets you get places where you just can't get with a fixed-wing. [12:24.040 --> 12:27.720] And it lets you be able to go basically as slow as you want to. [12:27.720 --> 12:32.920] So if you're wanting to stay in one place and take a number of readings, [12:32.920 --> 12:37.400] if you have a video camera that you're wanting to perfectly line up a shot, [12:37.400 --> 12:39.020] you can't really do that on a fixed-wing [12:39.020 --> 12:41.580] because you can't just stay in one place like that. [12:42.920 --> 12:46.780] Most of the quads that I've worked with have been pretty easy to repair. [12:47.440 --> 12:50.720] That being a result of the frames. [12:50.720 --> 12:51.920] So the same way as a car. [12:51.920 --> 12:54.880] When cars have safety testing, [12:54.880 --> 12:56.960] they're going to be building in crumple zones. [12:56.960 --> 13:00.280] And those are areas of a car where when you're in a crash, [13:00.280 --> 13:02.400] you have a lot of kinetic energy built up. [13:02.400 --> 13:04.180] And you need that to go somewhere. [13:04.320 --> 13:06.380] So with a lot of these frames, [13:06.380 --> 13:08.920] when I would have a crash or I'd run into something, [13:08.920 --> 13:12.280] almost every single time, this right there would break. [13:12.280 --> 13:15.120] And when that would break, I was overjoyed. [13:15.120 --> 13:18.160] Because I knew that, yeah, I was going to be five or ten minutes [13:18.160 --> 13:21.660] of unscrewing stuff and reconnecting wires here and there. [13:21.660 --> 13:25.680] But I also knew that it meant that my motor didn't get destroyed in the process. [13:25.920 --> 13:28.620] So if you're building a frame yourself, [13:28.620 --> 13:35.060] I would really encourage building a frame that is going to take the brunt of a crash [13:35.060 --> 13:36.880] when it inevitably happens. [13:36.980 --> 13:40.260] If you've flown before, you know that you spend as much time fixing your aircraft [13:40.260 --> 13:41.480] as you do flying it. [13:41.480 --> 13:43.360] So that's just kind of a fact of life. [13:43.600 --> 13:46.260] This will happen. We've built a few of these. [13:46.820 --> 13:49.560] And every single one of them has crashed in very low severity. [13:49.560 --> 13:53.340] It didn't take us long to figure out that if we control where it breaks, [13:53.340 --> 13:55.640] it really does save a lot of money in the long run. [13:55.640 --> 13:58.760] These things don't glide very well. [13:58.860 --> 14:03.500] You can buy a... the frame that I used was like $15 out of China. [14:03.540 --> 14:06.300] So you can replace one of the arms for like $3. [14:06.780 --> 14:10.200] But a motor is going to cost you $20 or $30. [14:10.200 --> 14:13.320] And a battery is going to cost you $40 or $50. [14:13.320 --> 14:16.180] So it's a lot easier to replace the cheaper components. [14:16.180 --> 14:18.560] That being said, there's a lot of drawbacks to a quad too. [14:18.560 --> 14:22.200] Like a quadcopter, all of the lift that you're getting out of a quad [14:22.200 --> 14:24.460] or pretty much any kind of rotary wing aircraft [14:24.460 --> 14:26.560] is coming from the propeller. [14:26.560 --> 14:29.460] Whereas with a fixed wing aircraft, you're pushing yourself through the air [14:29.460 --> 14:31.460] and you're generating a lot of lift. [14:31.460 --> 14:34.520] So you're using the lift from the air moving over your wing [14:34.520 --> 14:37.200] to bring you up and take care of your weight problems [14:37.200 --> 14:41.340] rather than having to expend all this energy to keep your prop spinning. [14:41.400 --> 14:47.700] So with a 5500 mAh battery on a quadcopter, [14:47.700 --> 14:49.580] even if it's a good, like a light quad, [14:49.580 --> 14:53.140] you'll be lucky to get 15 minutes of airtime out of it. [14:53.140 --> 14:56.080] With a fixed wing, depending on thermals, [14:56.080 --> 14:58.760] you could be in the air for 1, 2, 3 hours. [14:58.840 --> 15:02.520] So the flight time really is a pretty big consideration. [15:05.440 --> 15:07.800] Quadcopters, unless you do something else, [15:07.800 --> 15:09.660] they're going to look like this, right? [15:09.720 --> 15:14.560] And it's really hard to tell if an X is upside down. [15:14.940 --> 15:18.380] It's really easy to lose orientation when you're flying one of these things. [15:18.380 --> 15:22.420] If it gets behind you trying to remember which way is forwards, which way is backwards, [15:22.420 --> 15:25.980] it's really easy to get into a spot quickly where you don't know what you're doing, [15:25.980 --> 15:28.280] lose orientation, end up in a crash. [15:30.640 --> 15:34.380] And with these propellers going the speed they are, these things are knives. [15:35.240 --> 15:39.300] I've had four propellers in my backpack when I've been traveling for months, [15:39.300 --> 15:41.260] and not once has TSA stopped me. [15:41.260 --> 15:45.760] I don't know why a 2-inch Swiss Army knife is contraband, [15:45.760 --> 15:49.600] but a 4-inch, almost knife-sharp propeller isn't. [15:50.280 --> 15:52.060] But these things can be very dangerous. [15:52.060 --> 15:56.480] They are called on a regular basis, and for good reason, flying lawnmowers. [15:56.900 --> 16:00.220] And a lot of people have done some pretty serious damage to themselves. [16:00.220 --> 16:02.220] If you're all squeamish, if any of you are squeamish, [16:02.220 --> 16:05.820] I'd recommend not looking at this next slide. [16:08.620 --> 16:10.160] This was not us. [16:12.880 --> 16:19.280] Fortunately, none of these were a result of my flying or anybody in our research group. [16:19.440 --> 16:21.620] These are all compliments of AeroQuad. [16:21.620 --> 16:24.860] But we did have an incident where... [16:25.920 --> 16:29.640] Somebody that was relatively new had taken it out and was doing some flying, [16:29.640 --> 16:35.980] and the flight controller has a safety built-in feature that when it loses... [16:35.980 --> 16:41.360] If it's in automated mode, so if it's doing self-direction and it loses telemetry, [16:41.360 --> 16:43.300] then it will return to home. [16:44.280 --> 16:45.440] That's usually good. [16:45.440 --> 16:49.880] If you're flying and you're 500-600 yards away and you lose telemetry, [16:49.880 --> 16:53.720] you want it to come back to you so that you can take control over again and land it where you want. [16:54.000 --> 16:59.660] In this situation, it lost both telemetry and a GPS lock at the same time. [16:59.860 --> 17:05.720] So it didn't know where home was, or at least the place it thought was home was not home. [17:05.800 --> 17:11.380] And unfortunately, there was somebody that didn't anticipate getting hit by a quadcopter [17:11.380 --> 17:16.280] walking back from school that day between it and where it thought home was. [17:16.280 --> 17:20.740] So it ended up with this really bad scenario where there's somebody running this way, [17:20.740 --> 17:22.680] a quadcopter running this way, and... [17:22.680 --> 17:23.460] A quadcopter wins. [17:23.460 --> 17:25.580] A quadcopter wins every time. [17:25.780 --> 17:28.540] That one ended up in like over 20 stitches. [17:28.960 --> 17:31.860] So you want to be really careful with these things. [17:33.720 --> 17:36.720] Yeah, it only takes once to really mess yourself up. [17:37.780 --> 17:41.280] Another reason to control the breakpoints is because you want your emergency response [17:41.280 --> 17:44.500] to kind of be land as fast as possible, straight down ideally. [17:44.500 --> 17:47.120] Even if it's about shutting the motors off and hitting the ground, [17:47.120 --> 17:51.960] it's better than putting 20 stitches in someone's calf, which is what happened in this instance. [17:53.760 --> 17:55.600] These things are pretty lethal. [17:56.740 --> 18:00.340] Other thing, if you are going to have some kind of automatic autonomous flying capability [18:00.340 --> 18:03.380] where it's going to go from point to point, be really careful of the altitude [18:03.380 --> 18:04.840] and have a backup for your GPS. [18:04.840 --> 18:06.720] Have something like an ultrasound that's going to fire at the ground [18:07.360 --> 18:09.940] and it's going to tell you, hey, you're two feet off the ground. [18:10.060 --> 18:12.880] If you're above eight feet, your chances of hitting people are a lot less. [18:13.660 --> 18:17.280] So try and think about the worst possible outcomes because they do happen [18:17.280 --> 18:20.180] and they're not too pleasant when you're trying to pick up pieces off the ground [18:20.180 --> 18:22.480] and hand them back to, you know, he's part of your leg. [18:22.520 --> 18:23.600] Good luck with that. [18:24.740 --> 18:26.100] Be good with it. [18:26.440 --> 18:31.740] So, in terms of use of quadcopters, [18:32.580 --> 18:35.800] one big trend right now that's going on is going and taking some of these really cool videos [18:35.800 --> 18:38.780] and the national parks have recently kind of stopped that. [18:38.900 --> 18:40.920] Someone got sighted a couple of days ago in Utah [18:40.920 --> 18:44.560] for flying over a national park and a monument and, you know, [18:44.560 --> 18:46.760] it wasn't doing any harm, but just kind of got in trouble for that. [18:46.840 --> 18:49.020] So you certainly have to be a bit careful where we use these. [18:49.300 --> 18:51.260] We know the military uses them in surveillance. [18:51.760 --> 18:55.400] And we were trying to think of different types of uses that would be kind of outside the normal, [18:55.400 --> 18:58.360] something we could do that would really be useful on a really large scale, [18:58.360 --> 19:00.820] you know, that everyone would kind of perhaps have an interest in. [19:01.700 --> 19:04.820] And initially our thought was, well, if we put some solar panels on this thing now, [19:04.820 --> 19:08.640] we could fly it up on top of a building, use all the flight, kind of leave it there for a few days [19:08.640 --> 19:11.040] and then fly it back up once it's recharged through the solar. [19:11.380 --> 19:13.300] And we were looking at that and as we started to look around, [19:13.300 --> 19:16.100] we found that people had started doing that kind of thing already. [19:17.180 --> 19:22.280] And as we were having a conversation with some people in our IT department, [19:22.280 --> 19:25.780] they mentioned one of the issues they're having with kind of mapping out [19:25.780 --> 19:28.840] where the signal strength is and rogue access points. [19:28.840 --> 19:32.760] So one second. Really quick, on this right here, [19:32.760 --> 19:36.940] the United States Senate has asked the FAA to figure out what to do [19:36.940 --> 19:40.400] with this whole quadcopter thing over the next year, [19:41.060 --> 19:44.520] especially as far as first-person flight goes. [19:44.520 --> 19:49.420] If you're at all interested in this field, I'd recommend trying to find some way to get involved in it. [19:49.420 --> 19:52.380] Write your congressman, look for petitions. [19:52.640 --> 19:56.820] This is the kind of thing that there's a small enough group of people that are interested in it [19:56.820 --> 19:59.760] that it's really easy to just get kind of written off [19:59.760 --> 20:02.460] and that's something that we give up without even knowing. [20:02.460 --> 20:10.320] So I'd recommend try and keep your eye on what's happening here from a legislative perspective. [20:13.610 --> 20:16.570] So the idea of heat mapping, it's not a new one, [20:16.570 --> 20:18.770] is the idea is you figure out where your wireless signals are. [20:18.770 --> 20:21.950] And if you know where your wireless signals are, there's two reasons typically you do that. [20:22.030 --> 20:24.230] One is to make sure that you've got sufficient coverage [20:24.810 --> 20:30.090] because you want to make sure that all your user base can access the access point from the right places. [20:30.090 --> 20:34.310] And the second is to make sure that you don't have coverage in areas that you don't want coverage. [20:34.770 --> 20:38.510] And that becomes an issue when you have signals emanating quite a distance from a building. [20:39.230 --> 20:41.430] When they were doing the WASP presentation a couple of years ago [20:41.430 --> 20:46.310] they showed that you could actually get these signals several hundred or even thousand feet above a building [20:46.770 --> 20:48.690] because a lot of these access points are mounted to the ceiling [20:48.690 --> 20:52.910] and we think that's great for dispersing the signal down, but they'll also disperse the signal up [20:52.910 --> 20:56.270] and there's not much above buildings that'll stop that in most instances. [20:58.270 --> 21:04.490] So the idea of heat mapping in 3D is something that quadcopters are extremely capable of [21:04.490 --> 21:06.590] and really well designed to do. [21:06.590 --> 21:09.050] You know, because they can get into those really small spaces outside the building, [21:09.050 --> 21:10.890] they can go up gullies between the building, [21:10.890 --> 21:13.990] they can get higher than the building, they can get around, they can map things out. [21:14.670 --> 21:16.710] And there are a couple of other advantages to using a quadcopter [21:16.710 --> 21:20.590] that in a few slides time you'll kind of see what else you gain doing that. [21:22.990 --> 21:26.090] In a pentesting class, just to give you an example of the utility of this, [21:26.090 --> 21:29.190] if you haven't done it before, I require my students to go and do some war driving. [21:29.750 --> 21:32.410] And I tell them they have to be in twos because you always get someone who'll try and hold their phone [21:32.410 --> 21:34.590] and war drive as they're driving the car, that's not good. [21:35.010 --> 21:39.110] Send them out in twos, one of them's got their phone or got their laptop with their antenna on the roof of the car [21:39.110 --> 21:41.130] and they drive around trying to find access points. [21:41.910 --> 21:47.090] And in a few years of doing this we've found police stations with secure criminal records [21:47.090 --> 21:50.450] and networks being passed around on wireless networks without even using WEP. [21:50.570 --> 21:52.570] I mean, if you're really not going to know what you're doing, [21:52.570 --> 21:54.830] at least not know what you're doing and use WEP. [21:56.370 --> 22:02.450] I don't know, we found a courthouse that was completely open and broadcasting all the video streams around on it. [22:03.510 --> 22:07.510] We found some pretty interesting things that, and again, you're probably not too surprised by it, [22:07.510 --> 22:09.710] but these stories go on and they happen. [22:10.810 --> 22:13.910] You know, I was at Black Hat two days ago and my phone popped up saying, [22:13.910 --> 22:16.370] hey, smart Wi-Fi's just turned your Wi-Fi back on, great. [22:16.370 --> 22:19.410] There's 131 access points near you, which one do you want to connect to? [22:20.070 --> 22:22.990] These things are everywhere and being able to map them is extremely useful. [22:22.990 --> 22:31.430] So, the equipment for doing a war driving scenario, like go about, is pretty straightforward. [22:31.430 --> 22:35.830] Like everybody knows, you need your adapter, you need a laptop or something to be pulling the data [22:35.830 --> 22:39.210] and recording the data, you need an antenna. [22:39.490 --> 22:42.590] And sometimes you also have a GPS receiver on there. [22:42.590 --> 22:45.990] So when I first started trying to do a 3D site survey, [22:45.990 --> 22:51.670] I originally just started trying to use this GPS for lat, long, as well as altitude. [22:51.670 --> 22:57.850] But if any of you really use GPS for much, you're going to know that lat and long can be pretty accurate, [22:58.890 --> 23:01.850] but altitude on GPS is miserable. [23:02.030 --> 23:08.150] Like, the first couple that I did, I'd have a range of about 50, 60 feet. [23:08.190 --> 23:11.870] And if you're trying to get an idea of where an access point is, [23:11.870 --> 23:14.190] that kind of resolution is just not acceptable. [23:14.190 --> 23:18.870] Like, being 50 feet too far high or low for where you think your data point is, [23:18.870 --> 23:20.110] is just not good enough. [23:20.110 --> 23:24.970] So I was using a barometer. It's a BMP 085. It does not look like this. [23:26.150 --> 23:31.470] But it gave me about accuracy within a foot, 18 inches or so. [23:31.870 --> 23:34.150] So that was a lot better. [23:34.410 --> 23:37.130] And I'll be able to show you some of the results from that. [23:37.750 --> 23:41.590] As far as an antenna went, I was using one of the Alpha 036NHs. [23:41.590 --> 23:44.290] If you walk around here, you could probably see a dozen of them. [23:44.290 --> 23:48.530] Awesome antenna, really easy to use, compatible with pretty much any tool you can think of. [23:49.650 --> 23:53.810] So this is the kit all kind of Frankenstein together. [23:54.270 --> 23:59.570] I found that with all the gear on there, I was able to get about a 12-minute flight. [23:59.830 --> 24:06.830] Since I didn't want to crash it, I typically tried to limit most of my flights down under 9 minutes, 8 or 9 minutes. [24:07.190 --> 24:16.790] Basically what I do is that as it was flying, the Raspberry Pi was pulling the Alpha connector for RSSI, [24:16.790 --> 24:23.770] which is basically signal strength, SSID, and the BSSID, the MAC address, as well as recording the altitude and the coordinates. [24:24.650 --> 24:28.110] So network information and then geolocation. [24:28.670 --> 24:30.490] And I'd write these all to a CSV. [24:30.790 --> 24:37.630] And after the flight, I'd go over with an ugly couple of MATLAB scripts to create a KMZ out of this. [24:39.530 --> 24:44.070] So after I first assembled the whole thing, I was like, OK, I want to try something easy. [24:44.070 --> 24:45.390] I was still learning how to fly it. [24:45.390 --> 24:47.270] So I wasn't a very adept pilot. [24:47.750 --> 24:53.710] Went out to a park, took my laptop, stuck it in the middle of the park, put it in ad hoc mode, and did a flyover. [24:53.710 --> 24:54.970] And this is pretty encouraging. [24:54.970 --> 24:57.390] It told me, yeah, it's about what I'd expect. [24:57.390 --> 24:59.030] Higher signal strength in the middle. [24:59.210 --> 25:01.190] Wanes off as you get closer to the edges. [25:01.710 --> 25:03.430] Did a perimeter flight. [25:03.590 --> 25:05.030] About what you'd expect. [25:05.490 --> 25:09.030] And basically this kind of information you can get with Kismet. [25:09.030 --> 25:14.450] If you bring up Kismet and start collecting geolocation on it, you can generate these kind of maps. [25:15.510 --> 25:22.610] It started getting a little bit more interesting when I would do just a fly around in this park with the laptop in the middle. [25:22.970 --> 25:30.150] But a problem I started running into is when you're looking at it like this, your data points are getting in the way of each other. [25:30.150 --> 25:34.150] And I was trying to figure out how to visualize this, and I took a cue from the medical field. [25:35.030 --> 25:39.890] So when you're doing an MRI or really any kind of visualization, any kind of medical... [25:41.090 --> 25:42.190] What's it called? [25:42.690 --> 25:43.530] Medical scan. [25:43.530 --> 25:49.250] Any kind of medical scan like that, they're typically going to slice things along at different depths. [25:50.210 --> 25:56.370] So in this case, they use it, go from the top of the skull down to the bottom of the skull, trying to find tumors, [25:56.370 --> 25:59.910] things that have soaked up more of your radioactive dye than other places. [25:59.910 --> 26:07.850] So cueing from that, I would take this data, interpolate it across the area, and then slice at different altitudes. [26:07.850 --> 26:12.670] So right here is a five meter slice, a little bit higher signal strength in the middle. [26:12.750 --> 26:15.170] As you anticipate a little bit higher, you get it lower. [26:15.290 --> 26:16.310] Well, that's kind of boring. [26:16.310 --> 26:22.030] I was feeling a little bit more comfortable as a pilot at this point, so I decided to take it on campus. [26:23.570 --> 26:26.670] This was not the incident where the student got sliced. [26:30.330 --> 26:36.190] So essentially what I did here is I flew what's called a vertically aligned lawnmower search pattern. [26:36.190 --> 26:42.210] Basically just flying it back and forth, increasing my altitude, trying to hit each floor, fly by it once, [26:42.210 --> 26:49.810] going relatively slow so I could try and get a decent amount of samples per linear foot or whatever. [26:51.550 --> 26:56.230] Yeah, over the course of this flight, the flight on this side took about six minutes. [26:56.230 --> 26:57.950] The flight on that side took about three. [26:58.150 --> 27:02.490] So if any of you have done any amount of wardriving before, you know that it can take a long time. [27:02.490 --> 27:10.550] If you're walking around pushing a laptop on a cart, you can pretty realistically expect to spend an hour or two hours [27:10.550 --> 27:13.550] walking around or inside of a building trying to collect this data. [27:14.470 --> 27:21.170] Over the course of this flight, I picked up about 350 access points, wrote these all to disk. [27:21.170 --> 27:26.950] So after I pulled out all the data, I filtered it out on a single access point that I found out from our campus IT [27:26.950 --> 27:32.890] who was sitting here in this corner and just did contours on that one AP. [27:33.110 --> 27:39.270] So kind of as you would expect, on a high gain antenna, the further away you go, it's going to get a little bit of a donut pattern. [27:39.270 --> 27:44.430] It's not going to be like an omnidirectional sphere, which makes sense for the building. [27:44.430 --> 27:51.850] Typically on every building, you're going to have an access point, which is responsible for covering a quarter or half the building, depending on where it's placed. [27:52.010 --> 27:54.910] So you can tell that this is pretty much doing what you'd expect. [27:54.910 --> 28:01.490] Well, that wasn't kind of cool. I can do basically the same thing again, just walking on the ground outside of the first floor. [28:01.490 --> 28:04.510] So I thought, let's pick a little bit more interesting access point. [28:04.510 --> 28:10.950] This one was on the fifth floor of the building, and campus IT had no idea what it was. [28:10.950 --> 28:21.130] So it was actually a rogue access point that some student or faculty had just turned on, plugged in, and stuck into our network somewhere. [28:22.610 --> 28:30.270] So using this map, I was able to help the sysadmins out and basically point them to exactly where this rogue AP was. [28:30.270 --> 28:37.330] So they were able to go into the building, track down, go almost right to the right floor, know almost exactly which room it is in, [28:37.330 --> 28:42.450] go in there and unplug it, give the faculty a smack on the hand, and they were out of there. [28:44.250 --> 28:49.150] So I mentioned before that this was kind of done using an ugly mixture of scripts. [28:49.150 --> 28:55.450] Some of it was Python, some of it was just parsing bash stuff, some of it was like the visualization was all in MATLAB. [28:55.690 --> 29:02.830] So just for you folks here at DEF CON, I've spent like the last three or four days until 2 a.m. [29:02.830 --> 29:08.010] importing all of this into Python and moving it over to a Kismet plugin. [29:08.690 --> 29:13.070] So now you should be able to pull... it's available here on Git. [29:13.070 --> 29:19.510] You can pull it down, use it with Kismet, grab a Raspberry Pi, plug in a barometer, [29:19.510 --> 29:25.390] and you should be able to do these same kind of heatmaps, including the interpolation. [29:26.390 --> 29:29.410] Really quickly, I'd like to show you what it looks like. [29:30.150 --> 29:35.990] Just while he's doing that, the real strength of this we found was that rogue access point scan. [29:35.990 --> 29:39.210] We weren't expecting to see those kind of things. We weren't really looking for them. [29:39.290 --> 29:44.470] It was just a case of going through the list, and that kind of popped out and drew some attention, [29:44.470 --> 29:50.950] and we started looking more for it. And very, very quickly, in a nine-minute flyby where we captured 130 APs, [29:50.950 --> 29:55.950] pick out that one and localize it within the building to the point of two to three offices to look into. [29:56.390 --> 29:59.910] Nine minutes for a building of that size, we've got guys going around our building [29:59.910 --> 30:06.990] that take almost half a day to a day per building that size to do a full interior map of where everything is and look for rogues. [30:07.170 --> 30:12.570] Once it does the interpolation and the contour draw, it actually is writing it to a KMZ, [30:12.570 --> 30:15.510] which you can open up in Google Earth. [30:16.310 --> 30:22.070] Once you have it, you can rotate it around and get an idea of where is your hotspot, what's around it, [30:22.070 --> 30:25.890] what kind of context do I have, what floor is it on, and that kind of thing. [30:26.550 --> 30:27.670] Ah, go away. [30:30.910 --> 30:32.490] See you when we talk about applications. [30:32.990 --> 30:33.490] Okay. [30:37.130 --> 30:41.990] So, in terms of other applications for this, we were looking for kind of what else this could do. [30:41.990 --> 30:44.310] Rogue access points were one that we've discovered. [30:44.390 --> 30:46.050] Mapping out the signal strength was one. [30:48.390 --> 30:48.910] Okay. [30:49.750 --> 30:50.950] Go back one slide. [30:51.630 --> 30:52.770] Yeah, yeah, no problem. [30:54.110 --> 30:56.790] Actually, we'll have a slide at the end where it has it there, too. [30:56.970 --> 31:03.170] One of the downsides of the drone, obviously, unless you can land it somewhere, is it's not that effective for, you know, attacks. [31:03.550 --> 31:05.370] One, it tends to be fairly noisy. [31:05.430 --> 31:11.250] And I know you see these movies with the world ending when someone's sitting in their office typing quietly and you kind of see, you know, Transformers flashing by [31:11.250 --> 31:15.750] and you have this perception that inside the office you wouldn't notice a little drone flying by. [31:15.970 --> 31:16.770] We found the opposite. [31:16.770 --> 31:18.110] It did draw a bit of attention. [31:18.110 --> 31:19.850] So, they're not the most discreet devices. [31:19.850 --> 31:24.710] That said, you could probably go out at 2 a.m. in the morning, fly it, land it on top of the building, do some attacks, [31:24.710 --> 31:27.670] and then, assuming it's got enough battery, come back the next day and collect it. [31:29.430 --> 31:32.150] And we were trying to think of where to go from here, what would be useful. [31:32.690 --> 31:38.370] And the real thing that kind of stands out with a lot of the talks we've seen this year and last year is software-defined radio. [31:38.890 --> 31:43.050] It's trying to take this thing and, you know, expand the horizons of what it can do. [31:43.050 --> 31:49.410] And you can imagine a cell phone company might be quite interested in the ability to fly these things out into the desert somewhere [31:49.410 --> 31:54.130] and look at their access points in different canyons or try and map out things. [31:54.130 --> 31:57.170] So, with software-defined radio, you can really start to do a lot more than you would normally. [31:58.970 --> 31:59.650] Yeah. [32:00.030 --> 32:06.870] So, additionally, right now on the quad, I basically have just a low-gain, omnidirectional antenna. [32:06.870 --> 32:11.370] I think it would be really interesting to see some work go into using the same kind of platform [32:11.370 --> 32:18.090] but putting a directional antenna on a gimbal to try and get a little bit better idea of, like, spearing directly in on a single AP, [32:18.090 --> 32:23.390] trying to trace it, and figure out, like, from what angle you can get higher or lower access. [32:23.390 --> 32:27.690] Like, it'd be a ton of work. Gimbals are by no means cheap or easy to work with. [32:28.070 --> 32:31.170] But there could be some really cool stuff that could come out of research like that. [32:31.170 --> 32:35.030] What about rotating the platform itself with a directional antenna instead of trying to... [32:35.030 --> 32:36.090] Yep, or rotating. [32:36.270 --> 32:37.790] You've got the accuracy to do that kind of stuff. [32:37.790 --> 32:39.010] Yep, absolutely. [32:39.010 --> 32:41.230] So here's our contact info. [32:41.230 --> 32:47.690] If you'd like any more information about it or you're interested in working with us on some of these other ideas that we have going on, [32:47.690 --> 32:49.630] please get in touch with us. [32:50.150 --> 33:01.590] That code, the Kismet client and the KMZ interpolator and KMZ generator are available right there. [33:01.590 --> 33:03.210] A little bit more information. [33:03.210 --> 33:06.370] The whole paper is actually part of my thesis research. [33:06.370 --> 33:09.830] So feel free to get in touch with us or read up more on it. [33:09.950 --> 33:10.430] Thank you. [33:10.430 --> 33:11.290] Any questions? [33:22.520 --> 33:24.520] If there's any questions, we'll be here for a few minutes. [33:24.520 --> 33:25.800] Feel free to come up and talk to us about it. [33:25.800 --> 33:27.080] We'll do our best to answer them. [33:27.080 --> 33:27.700] Thank you.