1 00:00:03,520 --> 00:00:04,580 All right. 2 00:00:05,100 --> 00:00:07,540 Thanks for showing up. 3 00:00:10,180 --> 00:00:11,700 My name is Dale Rowe. 4 00:00:11,700 --> 00:00:12,660 This is Scott Pack. 5 00:00:12,660 --> 00:00:16,980 We're going to talk to you a little bit about a project we've had going on for a while. 6 00:00:17,840 --> 00:00:20,180 A lot of people are doing stuff with drones. 7 00:00:20,420 --> 00:00:21,480 Can you hear me? 8 00:00:22,320 --> 00:00:24,100 Is it the accents or the levels? 9 00:00:30,000 --> 00:00:31,140 Can you hear it at all? 10 00:00:33,600 --> 00:00:35,820 I don't think the microphone is working. 11 00:00:42,580 --> 00:00:45,060 We've had a project going on for a few years. 12 00:00:46,200 --> 00:00:49,140 Looking at different things quadcopters can do. 13 00:00:49,920 --> 00:00:53,900 Scott is somewhat of an expert in the area and I'm kind of his supervisor. 14 00:00:53,900 --> 00:00:55,220 I'll go on to the introductions. 15 00:00:57,400 --> 00:00:59,400 I teach IT at BYU. 16 00:00:59,440 --> 00:01:02,760 And when I say IT, I mean the fun stuff that I like teaching. 17 00:01:03,120 --> 00:01:05,400 I'm trying to stay away from the areas I don't like. 18 00:01:05,400 --> 00:01:08,760 But I teach penetration testing and forensics and a couple of fun stuff like that. 19 00:01:08,840 --> 00:01:10,440 I've been there for about four years. 20 00:01:10,800 --> 00:01:14,780 So my accent is just on the point of not being British, not being native. 21 00:01:14,780 --> 00:01:16,320 And I don't know where it's at. 22 00:01:16,440 --> 00:01:20,460 If you don't understand me, please just stop me and ask a question and I'll try and answer it. 23 00:01:22,520 --> 00:01:24,740 I worked a bit in the aerospace industry. 24 00:01:25,500 --> 00:01:29,120 Kind of doing security and different things there that I'm not really supposed to talk too much about. 25 00:01:29,720 --> 00:01:33,640 Scott was one of our grad students at BYU. 26 00:01:33,960 --> 00:01:38,360 And came up with this really cool idea of using a quadcopter to try and map out networks. 27 00:01:38,760 --> 00:01:41,320 So he's going to be kind of running through some of the background on that. 28 00:01:41,900 --> 00:01:44,180 He now works for Adobe as a security analyst. 29 00:01:45,120 --> 00:01:46,860 Probably owns more than I do, which is great. 30 00:01:46,860 --> 00:01:49,660 That means I was successful somewhat in helping him get that. 31 00:01:49,660 --> 00:01:52,360 Do you want to pass on? 32 00:01:53,180 --> 00:01:54,760 Sure, are we just going to go to the next? 33 00:01:54,760 --> 00:01:55,100 Yeah. 34 00:01:55,540 --> 00:02:01,840 So, short experience that I had just coming into the other Las Vegas security conference. 35 00:02:01,840 --> 00:02:02,760 I was on the tram. 36 00:02:02,760 --> 00:02:07,620 I've been going back and forth between New York and Mandalay Bay like four times a day. 37 00:02:07,720 --> 00:02:13,800 One time I sat down next to a guy and he said, Oh, are you here for that security computer thing here? 38 00:02:13,800 --> 00:02:15,520 And I said, yeah, that's what I'm here for. 39 00:02:15,980 --> 00:02:23,680 He then told me a little bit about how his son works for a large government security contractor and how big the industry was. 40 00:02:24,240 --> 00:02:26,840 And then he said something that really surprised me. 41 00:02:26,840 --> 00:02:29,080 He said, yeah, I don't think it's going to last too much longer. 42 00:02:29,080 --> 00:02:31,480 I think this whole security thing is just going to blow over. 43 00:02:31,840 --> 00:02:34,820 And that kind of blew me away. 44 00:02:34,880 --> 00:02:39,440 Like everything I know about the security industry, like malware variants are skyrocketing. 45 00:02:39,480 --> 00:02:41,700 We're seeing more every day. 46 00:02:43,300 --> 00:02:53,780 We're seeing governments and companies pouring hundreds of millions of dollars, billions of dollars in some cases, into doing security research and operations. 47 00:02:53,980 --> 00:02:57,600 I don't see where this guy's coming from. 48 00:02:57,600 --> 00:03:01,600 So I asked him, why do you think this is going to start tapering off or anything? 49 00:03:01,600 --> 00:03:03,420 And he answers, well, it's robots. 50 00:03:04,000 --> 00:03:06,840 Robots are going to end all of our security problems. 51 00:03:06,840 --> 00:03:13,400 So I wish I could be presenting something like a robot that was going to be fixing all of the security problems today. 52 00:03:14,140 --> 00:03:25,300 But we do have a couple ideas about how we can use mechatronic systems, specifically a quadcopter, in making some of our jobs a little bit easier, either as an attacker or as a defender. 53 00:03:25,480 --> 00:03:37,560 So a little bit of history, some from DEF CON, some elsewhere into this space, kind of a combination between robotic aerial platforms and wireless. 54 00:03:38,140 --> 00:03:47,000 Chris Anderson, with 3DR, a couple years ago, presented a flight controller called the ArduPilot, or the APM. 55 00:03:47,740 --> 00:03:51,440 Very, very cool flight controller, incredibly flexible. 56 00:03:51,480 --> 00:03:54,100 I'll be talking a little bit more about that later. 57 00:03:55,060 --> 00:04:04,780 And then Mike Tassi and Rich Perkins, I think this was two years ago, both at Black Hat and here at DEF CON, presented the WASP, the Wireless Aerial Surveillance Platform. 58 00:04:04,780 --> 00:04:10,680 This was a repurposed military drone that could do a lot of really cool things. 59 00:04:10,680 --> 00:04:20,640 Everything from setting up basically a flying GSM and cell tower to mount in the middle of your phone calls, do aerial surveillance and attack. 60 00:04:20,640 --> 00:04:31,800 It was VPN to a base station so that you could control both the flight of the platform and its offensive operations from the ground. 61 00:04:31,800 --> 00:04:38,480 It was incredible how much they fit onto this 14-pound military drone. 62 00:04:38,780 --> 00:04:45,980 And then just last year, Ricky Hill did some work in using the commercial DJI drone. 63 00:04:46,200 --> 00:04:47,680 What's the one called again? 64 00:04:47,980 --> 00:04:49,460 You've got two of them. 65 00:04:49,460 --> 00:04:50,900 Oh, the little Parrot AR drone. 66 00:04:50,900 --> 00:04:52,220 The Parrot AR. 67 00:04:52,760 --> 00:04:53,940 No, it wasn't the Parrot AR. 68 00:04:53,940 --> 00:05:02,420 It was the DJI Phantom to basically do a flyby of a beach and do some kind of like low-resolution war flying. 69 00:05:02,420 --> 00:05:05,120 So we also strapped a wireless pineapple on here. 70 00:05:05,120 --> 00:05:18,200 If you've been in this room for more than about half an hour, I'm sure you've heard of the pineapple, to do everything that you can do from a pineapple anywhere that a drone can get, which is, if you've done any amount of RC flight, pretty much anywhere. 71 00:05:19,240 --> 00:05:23,820 So outside of DEF CON, though, there's been a lot of cool stuff happening as well. 72 00:05:23,960 --> 00:05:36,760 These two guys, Theodore Reid and Joseph Geis, I think it's out of Stevens Institute of Technology, they did some work in using a drone to provide a covert transmission channel. 73 00:05:36,820 --> 00:05:45,260 So if you're a network administrator or anything, basically your knowledge is coming from your egress, your network egress. 74 00:05:45,260 --> 00:05:50,400 And if you're trying to do something to stop command and control traffic, that's where you have some amount of power. 75 00:05:50,400 --> 00:06:02,760 You can put in firewalls, you can put an IDS in place, but if all of a sudden your endpoints are communicating with a drone that's sitting on your roof or on your balcony, you don't have control over that network egress anymore. 76 00:06:02,760 --> 00:06:11,420 So that was a lot of what these guys did in setting up a proof of concept to do command and control over an alternate transmission channel. 77 00:06:13,660 --> 00:06:17,920 The Ant Catalog is a little bit more of a touchy subject, I guess. 78 00:06:17,920 --> 00:06:23,300 If you're familiar with what the Ant Catalog is, you know who published it. 79 00:06:24,100 --> 00:06:39,520 And the Sparrow 2 is pretty nondescript in their documentation, but it's pretty easy to infer that it was used for probably both offensive and defensive operations on an airborne platform. 80 00:06:39,520 --> 00:06:41,660 So cool stuff going on in the field. 81 00:06:41,920 --> 00:06:50,160 And although it's not really an advance of the art here, I figure this is DEF CON, what's a presentation without a cat in it, right? 82 00:06:50,360 --> 00:06:52,800 So this is Orville Copter. 83 00:06:53,180 --> 00:06:58,080 I believe it was an artist out of Finland taxidermied his cat and put it on a quad. 84 00:06:58,500 --> 00:07:00,360 That's really not here nor there. 85 00:07:00,700 --> 00:07:02,120 You wouldn't want to do that. 86 00:07:02,860 --> 00:07:13,920 So I'm going to describe a little bit about what goes into building a quadcopter and then how we're using a quadcopter in our situation to do wireless mapping, heat mapping. 87 00:07:14,840 --> 00:07:19,060 So pretty much every quad you're going to see, it can have a wide variety of different frames. 88 00:07:19,060 --> 00:07:26,780 You've got Y3s, which is just like a single quadcopter, not even a quadcopter, a tricopter, three motors. 89 00:07:26,920 --> 00:07:31,800 You can have a Y6, which has them up and down, gets a little bit of redundancy on the motors. 90 00:07:32,540 --> 00:07:37,060 You've got quadcopters with four, hexacopters, octocopters. 91 00:07:37,060 --> 00:07:37,860 They go crazy. 92 00:07:37,860 --> 00:07:42,780 Lady Gaga actually had a dress built that was, like, powered by quadcopters. 93 00:07:42,780 --> 00:07:44,760 So she'd stand on this thing and fly around. 94 00:07:44,760 --> 00:07:47,660 But really, like, there's tons of different frames. 95 00:07:48,140 --> 00:07:51,420 What you choose as your frame, the material that you use for it... 96 00:07:51,420 --> 00:07:52,560 Speak a little bit louder. 97 00:07:52,560 --> 00:07:53,460 Is this... 98 00:07:54,020 --> 00:07:56,120 That's not, it's for the recording. 99 00:07:56,120 --> 00:07:56,500 Okay. 100 00:07:56,500 --> 00:07:58,480 The video, there's no speaking. 101 00:07:58,480 --> 00:07:59,280 All right. 102 00:07:59,940 --> 00:08:01,000 Okay, I'll try. 103 00:08:03,700 --> 00:08:11,160 The material that your frame is built out of and the way that it's set up will have a lot to do with how it's actually going to feel in the air. 104 00:08:11,160 --> 00:08:21,400 If it's a little bit more of a, a little bit of a flexible frame, it's going to feel a little squishy, but it's also not going to have as much vibration from your motor. 105 00:08:21,400 --> 00:08:24,740 So there's, there's some trade-offs when you're looking at frame materials. 106 00:08:25,080 --> 00:08:30,320 For power, pretty much every quad I've seen uses lithium polymer batteries. 107 00:08:30,320 --> 00:08:34,740 Very high discharge rates, pretty good capacity, very lightweight. 108 00:08:34,740 --> 00:08:46,040 There's been some really cool battery advancements over the last, even in the last just couple of weeks that could lead some way for some lighter weight, higher capacity batteries. 109 00:08:46,040 --> 00:08:50,620 So it'll be interesting to see what happens in that field in the upcoming months and years. 110 00:08:51,060 --> 00:09:00,500 As far as motors, they're brushless motors, control using an ESC, which is a small microcontroller. 111 00:09:01,340 --> 00:09:03,060 And again, used between 3 and 8. 112 00:09:03,060 --> 00:09:10,100 The propellers, these things are sharp, and they're very fast, but usually between 8 and 12 inches end-to-end. 113 00:09:12,540 --> 00:09:24,080 ESC I mentioned, so on a quadcopter, in order for it to make it flyable, there's an input loop, and it will pull a number of different sensors on a couple of different frequencies. 114 00:09:24,080 --> 00:09:27,260 It uses a magnetometer for determining your heading. 115 00:09:27,500 --> 00:09:31,860 That's what prevents you from kind of getting a corkscrew effect when you're up in the air. 116 00:09:32,620 --> 00:09:36,060 Barometer is used to determine the altitude of the quadcopter. 117 00:09:36,340 --> 00:09:40,600 Accelerometer to determine the absolute angle, the angle of attack that it's currently at. 118 00:09:40,880 --> 00:09:43,800 Gyro to determine rate of change. 119 00:09:43,800 --> 00:09:49,100 And then GPS, not every quadcopter is going to have a GPS on it or a sonic rangefinder. 120 00:09:49,220 --> 00:09:56,180 Those are kind of just additional nice-to-haves that open up a lot more functionality and lets you do a lot more cool things with it. 121 00:09:58,740 --> 00:09:59,580 Communications to it. 122 00:09:59,580 --> 00:10:04,000 Most quadcopters are controlled using a 2.4 gigahertz transmitter. 123 00:10:04,840 --> 00:10:05,440 Sorry, go ahead. 124 00:10:05,440 --> 00:10:05,740 Louder. 125 00:10:06,220 --> 00:10:07,140 Louder still. 126 00:10:07,140 --> 00:10:08,340 Holy crap. 127 00:10:08,860 --> 00:10:09,940 All right, and then telemetry. 128 00:10:09,940 --> 00:10:14,600 If you want real-time results back from your quad, you can also put an additional radio on there. 129 00:10:14,720 --> 00:10:16,240 Sometimes we'll be using ZigBee. 130 00:10:16,240 --> 00:10:21,900 There's a number of different alternatives here to get in-flight stats back to your ground station. 131 00:10:22,780 --> 00:10:27,060 So this is the APM 2.5 that 3DR builds. 132 00:10:27,060 --> 00:10:31,040 It's open-source hardware, open-source software. 133 00:10:31,080 --> 00:10:35,540 There's a fantastic ground station for this, great mission planning. 134 00:10:35,620 --> 00:10:41,240 This is the same flight controller that Wasp used. 135 00:10:41,700 --> 00:10:47,640 So for my purposes, I definitely wanted to offload as much of the work that had already been done as possible. 136 00:10:47,820 --> 00:10:51,940 Picked up one of these, and it was fantastic to work with. 137 00:10:52,880 --> 00:10:54,900 A number of different flight modes. 138 00:10:54,900 --> 00:10:58,140 Even if you get one of these things, it does a lot of things for you. 139 00:10:58,180 --> 00:11:01,460 But as I mentioned, every frame is a little different. 140 00:11:01,560 --> 00:11:04,720 So when you first start building one, you're going to have to do some tuning. 141 00:11:04,900 --> 00:11:12,760 And that tuning is going to depend on what your motors are like, what your weight is like, your center of gravity, your frame composition. 142 00:11:13,780 --> 00:11:20,400 But it's an open-enough platform that you, with a little bit of work, you can get a pretty stable quad, no matter what you're using. 143 00:11:21,880 --> 00:11:25,260 So a quadcopter minus the frame pretty much looks like this. 144 00:11:25,260 --> 00:11:28,160 The battery is used to power the ESCs. 145 00:11:28,200 --> 00:11:34,260 The ESCs typically have a battery eliminator circuit in them, which can let you power your flight controller. 146 00:11:34,340 --> 00:11:38,760 The flight controller is hooked into your receiver, which you're sending controls to with your transmitter. 147 00:11:40,260 --> 00:11:45,280 Typically, the flight control board will integrate a large number of your sensors. 148 00:11:45,280 --> 00:11:50,180 Sometimes you'll have additional ones that come off, an off-board magnetometer or a GPS. 149 00:11:50,180 --> 00:11:56,000 But that's basically the electronics of what builds a quadcopter. 150 00:11:56,820 --> 00:12:02,760 So if you're in RC, most likely you got started flying a fixed-wing aircraft. 151 00:12:03,220 --> 00:12:09,800 There's a number of benefits that a rotary-wing aircraft like a quadcopter has over a fixed-wing. 152 00:12:10,340 --> 00:12:11,820 First off, VTOL. 153 00:12:11,860 --> 00:12:20,320 Being able to take off where you are, not needing a 100-yard long landing and takeoff strip is awesome. 154 00:12:20,320 --> 00:12:24,000 It lets you get places where you just can't get with a fixed-wing. 155 00:12:24,040 --> 00:12:27,720 And it lets you be able to go basically as slow as you want to. 156 00:12:27,720 --> 00:12:41,580 So if you're wanting to stay in one place and take a number of readings, if you have a video camera that you're wanting to perfectly line up a shot, you can't really do that on a fixed-wing because you can't just stay in one place like that. 157 00:12:42,920 --> 00:12:46,780 Most of the quads that I've worked with have been pretty easy to repair. 158 00:12:47,440 --> 00:12:50,720 That being a result of the frames. 159 00:12:50,720 --> 00:12:51,920 So the same way as a car. 160 00:12:51,920 --> 00:12:56,960 When cars have safety testing, they're going to be building in crumple zones. 161 00:12:56,960 --> 00:13:02,400 And those are areas of a car where when you're in a crash, you have a lot of kinetic energy built up. 162 00:13:02,400 --> 00:13:04,180 And you need that to go somewhere. 163 00:13:04,320 --> 00:13:12,280 So with a lot of these frames, when I would have a crash or I'd run into something, almost every single time, this right there would break. 164 00:13:12,280 --> 00:13:15,120 And when that would break, I was overjoyed. 165 00:13:15,120 --> 00:13:21,660 Because I knew that, yeah, I was going to be five or ten minutes of unscrewing stuff and reconnecting wires here and there. 166 00:13:21,660 --> 00:13:25,680 But I also knew that it meant that my motor didn't get destroyed in the process. 167 00:13:25,920 --> 00:13:36,880 So if you're building a frame yourself, I would really encourage building a frame that is going to take the brunt of a crash when it inevitably happens. 168 00:13:36,980 --> 00:13:41,480 If you've flown before, you know that you spend as much time fixing your aircraft as you do flying it. 169 00:13:41,480 --> 00:13:43,360 So that's just kind of a fact of life. 170 00:13:43,600 --> 00:13:44,800 This will happen. 171 00:13:44,800 --> 00:13:46,260 We've built a few of these. 172 00:13:46,820 --> 00:13:49,560 And every single one of them has crashed in very low severity. 173 00:13:49,560 --> 00:13:55,640 It didn't take us long to figure out that if we control where it breaks, it really does save a lot of money in the long run. 174 00:13:55,640 --> 00:13:58,760 These things don't glide very well. 175 00:13:58,860 --> 00:14:03,500 You can buy a... the frame that I used was like $15 out of China. 176 00:14:03,540 --> 00:14:06,300 So you can replace one of the arms for like $3. 177 00:14:06,780 --> 00:14:10,200 But a motor is going to cost you $20 or $30. 178 00:14:10,200 --> 00:14:13,320 And a battery is going to cost you $40 or $50. 179 00:14:13,320 --> 00:14:16,180 So it's a lot easier to replace the cheaper components. 180 00:14:16,180 --> 00:14:18,560 That being said, there's a lot of drawbacks to a quad too. 181 00:14:18,560 --> 00:14:26,560 Like a quadcopter, all of the lift that you're getting out of a quad or pretty much any kind of rotary wing aircraft is coming from the propeller. 182 00:14:26,560 --> 00:14:31,460 Whereas with a fixed wing aircraft, you're pushing yourself through the air and you're generating a lot of lift. 183 00:14:31,460 --> 00:14:41,340 So you're using the lift from the air moving over your wing to bring you up and take care of your weight problems rather than having to expend all this energy to keep your prop spinning. 184 00:14:41,400 --> 00:14:53,140 So with a 5500 mAh battery on a quadcopter, even if it's a good, like a light quad, you'll be lucky to get 15 minutes of airtime out of it. 185 00:14:53,140 --> 00:14:58,760 With a fixed wing, depending on thermals, you could be in the air for 1, 2, 3 hours. 186 00:14:58,840 --> 00:15:02,520 So the flight time really is a pretty big consideration. 187 00:15:05,440 --> 00:15:09,660 Quadcopters, unless you do something else, they're going to look like this, right? 188 00:15:09,720 --> 00:15:14,560 And it's really hard to tell if an X is upside down. 189 00:15:14,940 --> 00:15:18,380 It's really easy to lose orientation when you're flying one of these things. 190 00:15:18,380 --> 00:15:28,280 If it gets behind you trying to remember which way is forwards, which way is backwards, it's really easy to get into a spot quickly where you don't know what you're doing, lose orientation, end up in a crash. 191 00:15:30,640 --> 00:15:34,380 And with these propellers going the speed they are, these things are knives. 192 00:15:35,240 --> 00:15:41,260 I've had four propellers in my backpack when I've been traveling for months, and not once has TSA stopped me. 193 00:15:41,260 --> 00:15:49,600 I don't know why a 2-inch Swiss Army knife is contraband, but a 4-inch, almost knife-sharp propeller isn't. 194 00:15:50,280 --> 00:15:52,060 But these things can be very dangerous. 195 00:15:52,060 --> 00:15:56,480 They are called on a regular basis, and for good reason, flying lawnmowers. 196 00:15:56,900 --> 00:16:00,220 And a lot of people have done some pretty serious damage to themselves. 197 00:16:00,220 --> 00:16:05,820 If you're all squeamish, if any of you are squeamish, I'd recommend not looking at this next slide. 198 00:16:08,620 --> 00:16:10,160 This was not us. 199 00:16:12,880 --> 00:16:19,280 Fortunately, none of these were a result of my flying or anybody in our research group. 200 00:16:19,440 --> 00:16:21,620 These are all compliments of AeroQuad. 201 00:16:21,620 --> 00:16:24,860 But we did have an incident where... 202 00:16:25,920 --> 00:16:35,980 Somebody that was relatively new had taken it out and was doing some flying, and the flight controller has a safety built-in feature that when it loses... 203 00:16:35,980 --> 00:16:43,300 If it's in automated mode, so if it's doing self-direction and it loses telemetry, then it will return to home. 204 00:16:44,280 --> 00:16:45,440 That's usually good. 205 00:16:45,440 --> 00:16:53,720 If you're flying and you're 500-600 yards away and you lose telemetry, you want it to come back to you so that you can take control over again and land it where you want. 206 00:16:54,000 --> 00:16:59,660 In this situation, it lost both telemetry and a GPS lock at the same time. 207 00:16:59,860 --> 00:17:05,720 So it didn't know where home was, or at least the place it thought was home was not home. 208 00:17:05,800 --> 00:17:16,280 And unfortunately, there was somebody that didn't anticipate getting hit by a quadcopter walking back from school that day between it and where it thought home was. 209 00:17:16,280 --> 00:17:22,680 So it ended up with this really bad scenario where there's somebody running this way, a quadcopter running this way, and... 210 00:17:22,680 --> 00:17:23,460 A quadcopter wins. 211 00:17:23,460 --> 00:17:25,580 A quadcopter wins every time. 212 00:17:25,780 --> 00:17:28,540 That one ended up in like over 20 stitches. 213 00:17:28,960 --> 00:17:31,860 So you want to be really careful with these things. 214 00:17:33,720 --> 00:17:36,720 Yeah, it only takes once to really mess yourself up. 215 00:17:37,780 --> 00:17:44,500 Another reason to control the breakpoints is because you want your emergency response to kind of be land as fast as possible, straight down ideally. 216 00:17:44,500 --> 00:17:51,960 Even if it's about shutting the motors off and hitting the ground, it's better than putting 20 stitches in someone's calf, which is what happened in this instance. 217 00:17:53,760 --> 00:17:55,600 These things are pretty lethal. 218 00:17:56,740 --> 00:18:04,840 Other thing, if you are going to have some kind of automatic autonomous flying capability where it's going to go from point to point, be really careful of the altitude and have a backup for your GPS. 219 00:18:04,840 --> 00:18:09,940 Have something like an ultrasound that's going to fire at the ground and it's going to tell you, hey, you're two feet off the ground. 220 00:18:10,060 --> 00:18:12,880 If you're above eight feet, your chances of hitting people are a lot less. 221 00:18:13,660 --> 00:18:22,480 So try and think about the worst possible outcomes because they do happen and they're not too pleasant when you're trying to pick up pieces off the ground and hand them back to, you know, he's part of your leg. 222 00:18:22,520 --> 00:18:23,600 Good luck with that. 223 00:18:24,740 --> 00:18:26,100 Be good with it. 224 00:18:26,440 --> 00:18:38,780 So, in terms of use of quadcopters, one big trend right now that's going on is going and taking some of these really cool videos and the national parks have recently kind of stopped that. 225 00:18:38,900 --> 00:18:46,760 Someone got sighted a couple of days ago in Utah for flying over a national park and a monument and, you know, it wasn't doing any harm, but just kind of got in trouble for that. 226 00:18:46,840 --> 00:18:49,020 So you certainly have to be a bit careful where we use these. 227 00:18:49,300 --> 00:18:51,260 We know the military uses them in surveillance. 228 00:18:51,760 --> 00:19:00,820 And we were trying to think of different types of uses that would be kind of outside the normal, something we could do that would really be useful on a really large scale, you know, that everyone would kind of perhaps have an interest in. 229 00:19:01,700 --> 00:19:11,040 And initially our thought was, well, if we put some solar panels on this thing now, we could fly it up on top of a building, use all the flight, kind of leave it there for a few days and then fly it back up once it's recharged through the solar. 230 00:19:11,380 --> 00:19:16,100 And we were looking at that and as we started to look around, we found that people had started doing that kind of thing already. 231 00:19:17,180 --> 00:19:28,840 And as we were having a conversation with some people in our IT department, they mentioned one of the issues they're having with kind of mapping out where the signal strength is and rogue access points. 232 00:19:28,840 --> 00:19:29,660 So one second. 233 00:19:29,660 --> 00:19:44,520 Really quick, on this right here, the United States Senate has asked the FAA to figure out what to do with this whole quadcopter thing over the next year, especially as far as first-person flight goes. 234 00:19:44,520 --> 00: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. 235 00:19:49,420 --> 00:19:52,380 Write your congressman, look for petitions. 236 00:19:52,640 --> 00:20:02,460 This is the kind of thing that there's a small enough group of people that are interested in it that it's really easy to just get kind of written off and that's something that we give up without even knowing. 237 00:20:02,460 --> 00:20:10,320 So I'd recommend try and keep your eye on what's happening here from a legislative perspective. 238 00:20:13,610 --> 00:20:18,770 So the idea of heat mapping, it's not a new one, is the idea is you figure out where your wireless signals are. 239 00:20:18,770 --> 00:20:21,950 And if you know where your wireless signals are, there's two reasons typically you do that. 240 00:20:22,030 --> 00:20:30,090 One is to make sure that you've got sufficient coverage because you want to make sure that all your user base can access the access point from the right places. 241 00:20:30,090 --> 00:20:34,310 And the second is to make sure that you don't have coverage in areas that you don't want coverage. 242 00:20:34,770 --> 00:20:38,510 And that becomes an issue when you have signals emanating quite a distance from a building. 243 00:20:39,230 --> 00:20:51,430 When they were doing the WASP presentation a couple of years ago they showed that you could actually get these signals several hundred or even thousand feet above a building because a lot of these access points are mounted to the ceiling and we think that's great for dispersing the signal down, 244 00:20:51,430 --> 00:20:56,270 but they'll also disperse the signal up and there's not much above buildings that'll stop that in most instances. 245 00:20:58,270 --> 00:21:06,590 So the idea of heat mapping in 3D is something that quadcopters are extremely capable of and really well designed to do. 246 00:21:06,590 --> 00:21:13,990 You know, because they can get into those really small spaces outside the building, they can go up gullies between the building, they can get higher than the building, they can get around, they can map things out. 247 00:21:14,670 --> 00:21:20,590 And there are a couple of other advantages to using a quadcopter that in a few slides time you'll kind of see what else you gain doing that. 248 00:21:22,990 --> 00:21:29,190 In a pentesting class, just to give you an example of the utility of this, if you haven't done it before, I require my students to go and do some war driving. 249 00:21:29,750 --> 00:21:34,590 And I tell them they have to be in twos because you always get someone who'll try and hold their phone and war drive as they're driving the car, that's not good. 250 00:21:35,010 --> 00:21:41,130 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 and they drive around trying to find access points. 251 00:21:41,910 --> 00:21:50,450 And in a few years of doing this we've found police stations with secure criminal records and networks being passed around on wireless networks without even using WEP. 252 00:21:50,570 --> 00:21:54,830 I mean, if you're really not going to know what you're doing, at least not know what you're doing and use WEP. 253 00:21:56,370 --> 00:22:02,450 I don't know, we found a courthouse that was completely open and broadcasting all the video streams around on it. 254 00:22:03,510 --> 00:22:09,710 We found some pretty interesting things that, and again, you're probably not too surprised by it, but these stories go on and they happen. 255 00:22:10,810 --> 00:22:16,370 You know, I was at Black Hat two days ago and my phone popped up saying, hey, smart Wi-Fi's just turned your Wi-Fi back on, great. 256 00:22:16,370 --> 00:22:19,410 There's 131 access points near you, which one do you want to connect to? 257 00:22:20,070 --> 00:22:22,990 These things are everywhere and being able to map them is extremely useful. 258 00:22:22,990 --> 00:22:31,430 So, the equipment for doing a war driving scenario, like go about, is pretty straightforward. 259 00:22:31,430 --> 00:22:39,210 Like everybody knows, you need your adapter, you need a laptop or something to be pulling the data and recording the data, you need an antenna. 260 00:22:39,490 --> 00:22:42,590 And sometimes you also have a GPS receiver on there. 261 00:22:42,590 --> 00:22:51,670 So when I first started trying to do a 3D site survey, I originally just started trying to use this GPS for lat, long, as well as altitude. 262 00:22:51,670 --> 00:23:01,850 But if any of you really use GPS for much, you're going to know that lat and long can be pretty accurate, but altitude on GPS is miserable. 263 00:23:02,030 --> 00:23:08,150 Like, the first couple that I did, I'd have a range of about 50, 60 feet. 264 00:23:08,190 --> 00:23:14,190 And if you're trying to get an idea of where an access point is, that kind of resolution is just not acceptable. 265 00:23:14,190 --> 00:23:20,110 Like, being 50 feet too far high or low for where you think your data point is, is just not good enough. 266 00:23:20,110 --> 00:23:21,890 So I was using a barometer. 267 00:23:21,890 --> 00:23:23,090 It's a BMP 085. 268 00:23:23,090 --> 00:23:24,970 It does not look like this. 269 00:23:26,150 --> 00:23:31,470 But it gave me about accuracy within a foot, 18 inches or so. 270 00:23:31,870 --> 00:23:34,150 So that was a lot better. 271 00:23:34,410 --> 00:23:37,130 And I'll be able to show you some of the results from that. 272 00:23:37,750 --> 00:23:41,590 As far as an antenna went, I was using one of the Alpha 036NHs. 273 00:23:41,590 --> 00:23:44,290 If you walk around here, you could probably see a dozen of them. 274 00:23:44,290 --> 00:23:48,530 Awesome antenna, really easy to use, compatible with pretty much any tool you can think of. 275 00:23:49,650 --> 00:23:53,810 So this is the kit all kind of Frankenstein together. 276 00:23:54,270 --> 00:23:59,570 I found that with all the gear on there, I was able to get about a 12-minute flight. 277 00:23:59,830 --> 00: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. 278 00:24:07,190 --> 00:24:23,770 Basically what I do is that as it was flying, the Raspberry Pi was pulling the Alpha connector for RSSI, which is basically signal strength, SSID, and the BSSID, the MAC address, as well as recording the altitude and the coordinates. 279 00:24:24,650 --> 00:24:28,110 So network information and then geolocation. 280 00:24:28,670 --> 00:24:30,490 And I'd write these all to a CSV. 281 00:24:30,790 --> 00: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. 282 00:24:39,530 --> 00:24:44,070 So after I first assembled the whole thing, I was like, OK, I want to try something easy. 283 00:24:44,070 --> 00:24:45,390 I was still learning how to fly it. 284 00:24:45,390 --> 00:24:47,270 So I wasn't a very adept pilot. 285 00:24:47,750 --> 00: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. 286 00:24:53,710 --> 00:24:54,970 And this is pretty encouraging. 287 00:24:54,970 --> 00:24:57,390 It told me, yeah, it's about what I'd expect. 288 00:24:57,390 --> 00:24:59,030 Higher signal strength in the middle. 289 00:24:59,210 --> 00:25:01,190 Wanes off as you get closer to the edges. 290 00:25:01,710 --> 00:25:03,430 Did a perimeter flight. 291 00:25:03,590 --> 00:25:05,030 About what you'd expect. 292 00:25:05,490 --> 00:25:09,030 And basically this kind of information you can get with Kismet. 293 00:25:09,030 --> 00:25:14,450 If you bring up Kismet and start collecting geolocation on it, you can generate these kind of maps. 294 00:25:15,510 --> 00: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. 295 00:25:22,970 --> 00: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. 296 00:25:30,150 --> 00:25:34,150 And I was trying to figure out how to visualize this, and I took a cue from the medical field. 297 00:25:35,030 --> 00:25:39,890 So when you're doing an MRI or really any kind of visualization, any kind of medical... 298 00:25:41,090 --> 00:25:42,190 What's it called? 299 00:25:42,690 --> 00:25:43,530 Medical scan. 300 00:25:43,530 --> 00:25:49,250 Any kind of medical scan like that, they're typically going to slice things along at different depths. 301 00:25:50,210 --> 00:25:59,910 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, things that have soaked up more of your radioactive dye than other places. 302 00:25:59,910 --> 00:26:07,850 So cueing from that, I would take this data, interpolate it across the area, and then slice at different altitudes. 303 00:26:07,850 --> 00:26:12,670 So right here is a five meter slice, a little bit higher signal strength in the middle. 304 00:26:12,750 --> 00:26:15,170 As you anticipate a little bit higher, you get it lower. 305 00:26:15,290 --> 00:26:16,310 Well, that's kind of boring. 306 00:26:16,310 --> 00: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. 307 00:26:23,570 --> 00:26:26,670 This was not the incident where the student got sliced. 308 00:26:30,330 --> 00:26:36,190 So essentially what I did here is I flew what's called a vertically aligned lawnmower search pattern. 309 00:26:36,190 --> 00:26:49,810 Basically just flying it back and forth, increasing my altitude, trying to hit each floor, fly by it once, going relatively slow so I could try and get a decent amount of samples per linear foot or whatever. 310 00:26:51,550 --> 00:26:56,230 Yeah, over the course of this flight, the flight on this side took about six minutes. 311 00:26:56,230 --> 00:26:57,950 The flight on that side took about three. 312 00:26:58,150 --> 00:27:02,490 So if any of you have done any amount of wardriving before, you know that it can take a long time. 313 00:27:02,490 --> 00:27:13,550 If you're walking around pushing a laptop on a cart, you can pretty realistically expect to spend an hour or two hours walking around or inside of a building trying to collect this data. 314 00:27:14,470 --> 00:27:21,170 Over the course of this flight, I picked up about 350 access points, wrote these all to disk. 315 00:27:21,170 --> 00:27:32,890 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 who was sitting here in this corner and just did contours on that one AP. 316 00:27:33,110 --> 00: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. 317 00:27:39,270 --> 00:27:44,430 It's not going to be like an omnidirectional sphere, which makes sense for the building. 318 00:27:44,430 --> 00: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. 319 00:27:52,010 --> 00:27:54,910 So you can tell that this is pretty much doing what you'd expect. 320 00:27:54,910 --> 00:27:56,770 Well, that wasn't kind of cool. 321 00:27:56,770 --> 00:28:01,490 I can do basically the same thing again, just walking on the ground outside of the first floor. 322 00:28:01,490 --> 00:28:04,510 So I thought, let's pick a little bit more interesting access point. 323 00:28:04,510 --> 00:28:10,950 This one was on the fifth floor of the building, and campus IT had no idea what it was. 324 00:28:10,950 --> 00: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. 325 00:28:22,610 --> 00: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. 326 00:28:30,270 --> 00:28:42,450 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, go in there and unplug it, give the faculty a smack on the hand, and they were out of there. 327 00:28:44,250 --> 00:28:49,150 So I mentioned before that this was kind of done using an ugly mixture of scripts. 328 00:28:49,150 --> 00: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. 329 00:28:55,690 --> 00: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. 330 00:29:02,830 --> 00:29:08,010 importing all of this into Python and moving it over to a Kismet plugin. 331 00:29:08,690 --> 00:29:13,070 So now you should be able to pull... it's available here on Git. 332 00:29:13,070 --> 00:29:25,390 You can pull it down, use it with Kismet, grab a Raspberry Pi, plug in a barometer, and you should be able to do these same kind of heatmaps, including the interpolation. 333 00:29:26,390 --> 00:29:29,410 Really quickly, I'd like to show you what it looks like. 334 00:29:30,150 --> 00:29:35,990 Just while he's doing that, the real strength of this we found was that rogue access point scan. 335 00:29:35,990 --> 00:29:37,730 We weren't expecting to see those kind of things. 336 00:29:37,730 --> 00:29:39,210 We weren't really looking for them. 337 00:29:39,290 --> 00:29:45,790 It was just a case of going through the list, and that kind of popped out and drew some attention, and we started looking more for it. 338 00:29:45,790 --> 00:29:55,950 And very, very quickly, in a nine-minute flyby where we captured 130 APs, pick out that one and localize it within the building to the point of two to three offices to look into. 339 00:29:56,390 --> 00:30:06,990 Nine minutes for a building of that size, we've got guys going around our building 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. 340 00:30:07,170 --> 00:30:15,510 Once it does the interpolation and the contour draw, it actually is writing it to a KMZ, which you can open up in Google Earth. 341 00:30:16,310 --> 00:30:25,890 Once you have it, you can rotate it around and get an idea of where is your hotspot, what's around it, what kind of context do I have, what floor is it on, and that kind of thing. 342 00:30:26,550 --> 00:30:27,670 Ah, go away. 343 00:30:30,910 --> 00:30:32,490 See you when we talk about applications. 344 00:30:32,990 --> 00:30:33,490 Okay. 345 00:30:37,130 --> 00:30:41,990 So, in terms of other applications for this, we were looking for kind of what else this could do. 346 00:30:41,990 --> 00:30:44,310 Rogue access points were one that we've discovered. 347 00:30:44,390 --> 00:30:46,050 Mapping out the signal strength was one. 348 00:30:48,390 --> 00:30:48,910 Okay. 349 00:30:49,750 --> 00:30:50,950 Go back one slide. 350 00:30:51,630 --> 00:30:52,770 Yeah, yeah, no problem. 351 00:30:54,110 --> 00:30:56,790 Actually, we'll have a slide at the end where it has it there, too. 352 00:30:56,970 --> 00: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. 353 00:31:03,550 --> 00:31:05,370 One, it tends to be fairly noisy. 354 00:31:05,430 --> 00:31:15,750 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 and you have this perception that inside the office you wouldn't notice a little drone flying by. 355 00:31:15,970 --> 00:31:16,770 We found the opposite. 356 00:31:16,770 --> 00:31:18,110 It did draw a bit of attention. 357 00:31:18,110 --> 00:31:19,850 So, they're not the most discreet devices. 358 00:31:19,850 --> 00:31:21,590 That said, you could probably go out at 2 a.m. 359 00:31:21,590 --> 00:31:27,670 in the morning, fly it, land it on top of the building, do some attacks, and then, assuming it's got enough battery, come back the next day and collect it. 360 00:31:29,430 --> 00:31:32,150 And we were trying to think of where to go from here, what would be useful. 361 00:31:32,690 --> 00: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. 362 00:31:38,890 --> 00:31:43,050 It's trying to take this thing and, you know, expand the horizons of what it can do. 363 00:31:43,050 --> 00:31:54,130 And you can imagine a cell phone company might be quite interested in the ability to fly these things out into the desert somewhere and look at their access points in different canyons or try and map out things. 364 00:31:54,130 --> 00:31:57,170 So, with software-defined radio, you can really start to do a lot more than you would normally. 365 00:31:58,970 --> 00:31:59,650 Yeah. 366 00:32:00,030 --> 00:32:06,870 So, additionally, right now on the quad, I basically have just a low-gain, omnidirectional antenna. 367 00:32:06,870 --> 00:32:20,310 I think it would be really interesting to see some work go into using the same kind of platform 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, trying to trace it, and figure out, 368 00:32:20,310 --> 00:32:23,390 like, from what angle you can get higher or lower access. 369 00:32:23,390 --> 00:32:25,190 Like, it'd be a ton of work. 370 00:32:25,190 --> 00:32:27,690 Gimbals are by no means cheap or easy to work with. 371 00:32:28,070 --> 00:32:31,170 But there could be some really cool stuff that could come out of research like that. 372 00:32:31,170 --> 00:32:35,030 What about rotating the platform itself with a directional antenna instead of trying to... 373 00:32:35,030 --> 00:32:36,090 Yep, or rotating. 374 00:32:36,270 --> 00:32:37,790 You've got the accuracy to do that kind of stuff. 375 00:32:37,790 --> 00:32:39,010 Yep, absolutely. 376 00:32:39,010 --> 00:32:41,230 So here's our contact info. 377 00:32:41,230 --> 00:32:49,630 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, please get in touch with us. 378 00:32:50,150 --> 00:33:01,590 That code, the Kismet client and the KMZ interpolator and KMZ generator are available right there. 379 00:33:01,590 --> 00:33:03,210 A little bit more information. 380 00:33:03,210 --> 00:33:06,370 The whole paper is actually part of my thesis research. 381 00:33:06,370 --> 00:33:09,830 So feel free to get in touch with us or read up more on it. 382 00:33:09,950 --> 00:33:10,430 Thank you. 383 00:33:10,430 --> 00:33:11,290 Any questions? 384 00:33:22,520 --> 00:33:24,520 If there's any questions, we'll be here for a few minutes. 385 00:33:24,520 --> 00:33:25,800 Feel free to come up and talk to us about it. 386 00:33:25,800 --> 00:33:27,080 We'll do our best to answer them. 387 00:33:27,080 --> 00:33:27,700 Thank you.