All right. Thanks for showing up. My name is Dale Rowe. This is Scott Pack. We're going to talk to you a little bit about a project we've had going on for a while. A lot of people are doing stuff with drones. Can you hear me? Is it the accents or the levels? Can you hear it at all? I don't think the microphone is working. We've had a project going on for a few years. Looking at different things quadcopters can do. Scott is somewhat of an expert in the area and I'm kind of his supervisor. I'll go on to the introductions. I teach IT at BYU. And when I say IT, I mean the fun stuff that I like teaching. I'm trying to stay away from the areas I don't like. But I teach penetration testing and forensics and a couple of fun stuff like that. I've been there for about four years. So my accent is just on the point of not being British, not being native. And I don't know where it's at. If you don't understand me, please just stop me and ask a question and I'll try and answer it. I worked a bit in the aerospace industry. Kind of doing security and different things there that I'm not really supposed to talk too much about. Scott was one of our grad students at BYU. And came up with this really cool idea of using a quadcopter to try and map out networks. So he's going to be kind of running through some of the background on that. He now works for Adobe as a security analyst. Probably owns more than I do, which is great. That means I was successful somewhat in helping him get that. Do you want to pass on? Sure, are we just going to go to the next? Yeah. So, short experience that I had just coming into the other Las Vegas security conference. I was on the tram. I've been going back and forth between New York and Mandalay Bay like four times a day. One time I sat down next to a guy and he said, Oh, are you here for that security computer thing here? And I said, yeah, that's what I'm here for. He then told me a little bit about how his son works for a large government security contractor and how big the industry was. And then he said something that really surprised me. He said, yeah, I don't think it's going to last too much longer. I think this whole security thing is just going to blow over. And that kind of blew me away. Like everything I know about the security industry, like malware variants are skyrocketing. We're seeing more every day. We're seeing governments and companies pouring hundreds of millions of dollars, billions of dollars in some cases, into doing security research and operations. I don't see where this guy's coming from. So I asked him, why do you think this is going to start tapering off or anything? And he answers, well, it's robots. Robots are going to end all of our security problems. So I wish I could be presenting something like a robot that was going to be fixing all of the security problems today. 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. 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. Chris Anderson, with 3DR, a couple years ago, presented a flight controller called the ArduPilot, or the APM. Very, very cool flight controller, incredibly flexible. I'll be talking a little bit more about that later. 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. This was a repurposed military drone that could do a lot of really cool things. 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. 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. It was incredible how much they fit onto this 14-pound military drone. And then just last year, Ricky Hill did some work in using the commercial DJI drone. What's the one called again? You've got two of them. Oh, the little Parrot AR drone. The Parrot AR. No, it wasn't the Parrot AR. It was the DJI Phantom to basically do a flyby of a beach and do some kind of like low-resolution war flying. So we also strapped a wireless pineapple on here. 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. So outside of DEF CON, though, there's been a lot of cool stuff happening as well. 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. So if you're a network administrator or anything, basically your knowledge is coming from your egress, your network egress. And if you're trying to do something to stop command and control traffic, that's where you have some amount of power. 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. 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. The Ant Catalog is a little bit more of a touchy subject, I guess. If you're familiar with what the Ant Catalog is, you know who published it. 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. So cool stuff going on in the field. 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? So this is Orville Copter. I believe it was an artist out of Finland taxidermied his cat and put it on a quad. That's really not here nor there. You wouldn't want to do that. 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. So pretty much every quad you're going to see, it can have a wide variety of different frames. You've got Y3s, which is just like a single quadcopter, not even a quadcopter, a tricopter, three motors. You can have a Y6, which has them up and down, gets a little bit of redundancy on the motors. You've got quadcopters with four, hexacopters, octocopters. They go crazy. Lady Gaga actually had a dress built that was, like, powered by quadcopters. So she'd stand on this thing and fly around. But really, like, there's tons of different frames. What you choose as your frame, the material that you use for it... Speak a little bit louder. Is this... That's not, it's for the recording. Okay. The video, there's no speaking. All right. Okay, I'll try. 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. 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. So there's, there's some trade-offs when you're looking at frame materials. For power, pretty much every quad I've seen uses lithium polymer batteries. Very high discharge rates, pretty good capacity, very lightweight. 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. So it'll be interesting to see what happens in that field in the upcoming months and years. As far as motors, they're brushless motors, control using an ESC, which is a small microcontroller. And again, used between 3 and 8. The propellers, these things are sharp, and they're very fast, but usually between 8 and 12 inches end-to-end. 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. It uses a magnetometer for determining your heading. That's what prevents you from kind of getting a corkscrew effect when you're up in the air. Barometer is used to determine the altitude of the quadcopter. Accelerometer to determine the absolute angle, the angle of attack that it's currently at. Gyro to determine rate of change. And then GPS, not every quadcopter is going to have a GPS on it or a sonic rangefinder. 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. Communications to it. Most quadcopters are controlled using a 2.4 gigahertz transmitter. Sorry, go ahead. Louder. Louder still. Holy crap. All right, and then telemetry. If you want real-time results back from your quad, you can also put an additional radio on there. Sometimes we'll be using ZigBee. There's a number of different alternatives here to get in-flight stats back to your ground station. So this is the APM 2.5 that 3DR builds. It's open-source hardware, open-source software. There's a fantastic ground station for this, great mission planning. This is the same flight controller that Wasp used. So for my purposes, I definitely wanted to offload as much of the work that had already been done as possible. Picked up one of these, and it was fantastic to work with. A number of different flight modes. Even if you get one of these things, it does a lot of things for you. But as I mentioned, every frame is a little different. So when you first start building one, you're going to have to do some tuning. 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. 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. So a quadcopter minus the frame pretty much looks like this. The battery is used to power the ESCs. The ESCs typically have a battery eliminator circuit in them, which can let you power your flight controller. The flight controller is hooked into your receiver, which you're sending controls to with your transmitter. Typically, the flight control board will integrate a large number of your sensors. Sometimes you'll have additional ones that come off, an off-board magnetometer or a GPS. But that's basically the electronics of what builds a quadcopter. So if you're in RC, most likely you got started flying a fixed-wing aircraft. There's a number of benefits that a rotary-wing aircraft like a quadcopter has over a fixed-wing. First off, VTOL. Being able to take off where you are, not needing a 100-yard long landing and takeoff strip is awesome. It lets you get places where you just can't get with a fixed-wing. And it lets you be able to go basically as slow as you want to. 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. Most of the quads that I've worked with have been pretty easy to repair. That being a result of the frames. So the same way as a car. When cars have safety testing, they're going to be building in crumple zones. And those are areas of a car where when you're in a crash, you have a lot of kinetic energy built up. And you need that to go somewhere. 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. And when that would break, I was overjoyed. Because I knew that, yeah, I was going to be five or ten minutes of unscrewing stuff and reconnecting wires here and there. But I also knew that it meant that my motor didn't get destroyed in the process. 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. If you've flown before, you know that you spend as much time fixing your aircraft as you do flying it. So that's just kind of a fact of life. This will happen. We've built a few of these. And every single one of them has crashed in very low severity. 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. These things don't glide very well. You can buy a... the frame that I used was like $15 out of China. So you can replace one of the arms for like $3. But a motor is going to cost you $20 or $30. And a battery is going to cost you $40 or $50. So it's a lot easier to replace the cheaper components. That being said, there's a lot of drawbacks to a quad too. 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. Whereas with a fixed wing aircraft, you're pushing yourself through the air and you're generating a lot of lift. 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. 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. With a fixed wing, depending on thermals, you could be in the air for 1, 2, 3 hours. So the flight time really is a pretty big consideration. Quadcopters, unless you do something else, they're going to look like this, right? And it's really hard to tell if an X is upside down. It's really easy to lose orientation when you're flying one of these things. 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. And with these propellers going the speed they are, these things are knives. I've had four propellers in my backpack when I've been traveling for months, and not once has TSA stopped me. I don't know why a 2-inch Swiss Army knife is contraband, but a 4-inch, almost knife-sharp propeller isn't. But these things can be very dangerous. They are called on a regular basis, and for good reason, flying lawnmowers. And a lot of people have done some pretty serious damage to themselves. If you're all squeamish, if any of you are squeamish, I'd recommend not looking at this next slide. This was not us. Fortunately, none of these were a result of my flying or anybody in our research group. These are all compliments of AeroQuad. But we did have an incident where... 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... If it's in automated mode, so if it's doing self-direction and it loses telemetry, then it will return to home. That's usually good. 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. In this situation, it lost both telemetry and a GPS lock at the same time. So it didn't know where home was, or at least the place it thought was home was not home. 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. So it ended up with this really bad scenario where there's somebody running this way, a quadcopter running this way, and... A quadcopter wins. A quadcopter wins every time. That one ended up in like over 20 stitches. So you want to be really careful with these things. Yeah, it only takes once to really mess yourself up. 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. 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. These things are pretty lethal. 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. 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. If you're above eight feet, your chances of hitting people are a lot less. 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. Good luck with that. Be good with it. 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. 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. So you certainly have to be a bit careful where we use these. We know the military uses them in surveillance. 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. 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. 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. 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. So one second. 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. If you're at all interested in this field, I'd recommend trying to find some way to get involved in it. Write your congressman, look for petitions. 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. So I'd recommend try and keep your eye on what's happening here from a legislative perspective. So the idea of heat mapping, it's not a new one, is the idea is you figure out where your wireless signals are. And if you know where your wireless signals are, there's two reasons typically you do that. 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. And the second is to make sure that you don't have coverage in areas that you don't want coverage. And that becomes an issue when you have signals emanating quite a distance from a building. 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, but they'll also disperse the signal up and there's not much above buildings that'll stop that in most instances. So the idea of heat mapping in 3D is something that quadcopters are extremely capable of and really well designed to do. 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. 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. 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. 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. 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. 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. 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. I don't know, we found a courthouse that was completely open and broadcasting all the video streams around on it. 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. 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. There's 131 access points near you, which one do you want to connect to? These things are everywhere and being able to map them is extremely useful. So, the equipment for doing a war driving scenario, like go about, is pretty straightforward. 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. And sometimes you also have a GPS receiver on there. 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. 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. Like, the first couple that I did, I'd have a range of about 50, 60 feet. And if you're trying to get an idea of where an access point is, that kind of resolution is just not acceptable. Like, being 50 feet too far high or low for where you think your data point is, is just not good enough. So I was using a barometer. It's a BMP 085. It does not look like this. But it gave me about accuracy within a foot, 18 inches or so. So that was a lot better. And I'll be able to show you some of the results from that. As far as an antenna went, I was using one of the Alpha 036NHs. If you walk around here, you could probably see a dozen of them. Awesome antenna, really easy to use, compatible with pretty much any tool you can think of. So this is the kit all kind of Frankenstein together. I found that with all the gear on there, I was able to get about a 12-minute flight. 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. 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. So network information and then geolocation. And I'd write these all to a CSV. And after the flight, I'd go over with an ugly couple of MATLAB scripts to create a KMZ out of this. So after I first assembled the whole thing, I was like, OK, I want to try something easy. I was still learning how to fly it. So I wasn't a very adept pilot. 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. And this is pretty encouraging. It told me, yeah, it's about what I'd expect. Higher signal strength in the middle. Wanes off as you get closer to the edges. Did a perimeter flight. About what you'd expect. And basically this kind of information you can get with Kismet. If you bring up Kismet and start collecting geolocation on it, you can generate these kind of maps. 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. 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. And I was trying to figure out how to visualize this, and I took a cue from the medical field. So when you're doing an MRI or really any kind of visualization, any kind of medical... What's it called? Medical scan. Any kind of medical scan like that, they're typically going to slice things along at different depths. 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. So cueing from that, I would take this data, interpolate it across the area, and then slice at different altitudes. So right here is a five meter slice, a little bit higher signal strength in the middle. As you anticipate a little bit higher, you get it lower. Well, that's kind of boring. I was feeling a little bit more comfortable as a pilot at this point, so I decided to take it on campus. This was not the incident where the student got sliced. So essentially what I did here is I flew what's called a vertically aligned lawnmower search pattern. 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. Yeah, over the course of this flight, the flight on this side took about six minutes. The flight on that side took about three. So if any of you have done any amount of wardriving before, you know that it can take a long time. 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. Over the course of this flight, I picked up about 350 access points, wrote these all to disk. 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. 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. It's not going to be like an omnidirectional sphere, which makes sense for the building. 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. So you can tell that this is pretty much doing what you'd expect. 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. So I thought, let's pick a little bit more interesting access point. This one was on the fifth floor of the building, and campus IT had no idea what it was. 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. So using this map, I was able to help the sysadmins out and basically point them to exactly where this rogue AP was. 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. So I mentioned before that this was kind of done using an ugly mixture of scripts. Some of it was Python, some of it was just parsing bash stuff, some of it was like the visualization was all in MATLAB. So just for you folks here at DEF CON, I've spent like the last three or four days until 2 a.m. importing all of this into Python and moving it over to a Kismet plugin. So now you should be able to pull... it's available here on Git. 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. Really quickly, I'd like to show you what it looks like. Just while he's doing that, the real strength of this we found was that rogue access point scan. We weren't expecting to see those kind of things. We weren't really looking for them. 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. 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. 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. 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. 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. Ah, go away. See you when we talk about applications. Okay. So, in terms of other applications for this, we were looking for kind of what else this could do. Rogue access points were one that we've discovered. Mapping out the signal strength was one. Okay. Go back one slide. Yeah, yeah, no problem. Actually, we'll have a slide at the end where it has it there, too. One of the downsides of the drone, obviously, unless you can land it somewhere, is it's not that effective for, you know, attacks. One, it tends to be fairly noisy. 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. We found the opposite. It did draw a bit of attention. So, they're not the most discreet devices. 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, and then, assuming it's got enough battery, come back the next day and collect it. And we were trying to think of where to go from here, what would be useful. 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. It's trying to take this thing and, you know, expand the horizons of what it can do. 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. So, with software-defined radio, you can really start to do a lot more than you would normally. Yeah. So, additionally, right now on the quad, I basically have just a low-gain, omnidirectional antenna. 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, like, from what angle you can get higher or lower access. Like, it'd be a ton of work. Gimbals are by no means cheap or easy to work with. But there could be some really cool stuff that could come out of research like that. What about rotating the platform itself with a directional antenna instead of trying to... Yep, or rotating. You've got the accuracy to do that kind of stuff. Yep, absolutely. So here's our contact info. 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. That code, the Kismet client and the KMZ interpolator and KMZ generator are available right there. A little bit more information. The whole paper is actually part of my thesis research. So feel free to get in touch with us or read up more on it. Thank you. Any questions? If there's any questions, we'll be here for a few minutes. Feel free to come up and talk to us about it. We'll do our best to answer them. Thank you.