WEBVTT

00:03.520 --> 00:04.580
All right.

00:05.100 --> 00:07.540
Thanks for showing up.

00:10.180 --> 00:11.700
My name is Dale Rowe.

00:11.700 --> 00:12.660
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:20.180
A lot of people are doing stuff with drones.

00:20.420 --> 00:21.480
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:13.800
One time I sat down next to a guy and he said, 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: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.

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: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.

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: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.

03:14.140 --> 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.

03:25.480 --> 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.

03:38.140 --> 03:47.000
Chris Anderson, with 3DR, a couple years ago, 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 --> 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.

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: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.

04:20.640 --> 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.

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:47.680
What's the one called again?

04:47.980 --> 04:49.460
You've got two of them.

04:49.460 --> 04:50.900
Oh, the little Parrot AR drone.

04:50.900 --> 04:52.220
The Parrot AR.

04:52.760 --> 04:53.940
No, it wasn't the Parrot AR.

04:53.940 --> 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.

05:02.420 --> 05:05.120
So we also strapped a wireless pineapple on here.

05:05.120 --> 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.

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: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.

05:36.820 --> 05:45.260
So if you're a network administrator or anything, basically your knowledge is coming from your egress, your network egress.

05:45.260 --> 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.

05:50.400 --> 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.

06:02.760 --> 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.

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: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.

06:39.520 --> 06:41.660
So cool stuff going on in the field.

06:41.920 --> 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?

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: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.

07:14.840 --> 07:19.060
So pretty much every quad you're going to see, it can have a wide variety of different frames.

07:19.060 --> 07:26.780
You've got Y3s, which is just like a single quadcopter, not even a quadcopter, a tricopter, three motors.

07:26.920 --> 07:31.800
You can have a Y6, which has them up and down, 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: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.

08:11.160 --> 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.

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: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.

08:46.040 --> 08:50.620
So it'll be interesting to see what happens in that field in the upcoming months and years.

08:51.060 --> 09:00.500
As far as motors, they're brushless motors, 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:10.100
The propellers, these things are sharp, and they're very fast, but usually between 8 and 12 inches end-to-end.

09:12.540 --> 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.

09:24.080 --> 09:27.260
It uses a magnetometer for determining your heading.

09:27.500 --> 09:31.860
That's what prevents you from kind of getting a corkscrew effect 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:40.600
Accelerometer to determine the absolute angle, 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:49.100
And then GPS, not every quadcopter is going to have a GPS on it or a sonic rangefinder.

09:49.220 --> 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.

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:07.140
Louder still.

10:07.140 --> 10:08.340
Holy crap.

10:08.860 --> 10:09.940
All right, and then telemetry.

10:09.940 --> 10:14.600
If you want real-time results back from your quad, 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:21.900
There's a number of different alternatives here 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:35.540
There's a fantastic ground station for this, great mission planning.

10:35.620 --> 10:41.240
This is the same flight controller that Wasp used.

10:41.700 --> 10:47.640
So for my purposes, I definitely wanted to offload as much of the work 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:04.720
So when you first start building one, you're going to have to do some tuning.

11:04.900 --> 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.

11:13.780 --> 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.

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:34.260
The ESCs typically have a battery eliminator circuit in them, which can let you power your flight controller.

11:34.340 --> 11:38.760
The flight controller is hooked into your receiver, which you're sending controls to with your transmitter.

11:40.260 --> 11:45.280
Typically, the flight control board will integrate a large number of your sensors.

11:45.280 --> 11:50.180
Sometimes you'll have additional ones that come off, 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 --> 12:02.760
So if you're in RC, most likely you got started flying a fixed-wing aircraft.

12:03.220 --> 12:09.800
There's a number of benefits that a rotary-wing aircraft like a quadcopter has over a fixed-wing.

12:10.340 --> 12:11.820
First off, VTOL.

12:11.860 --> 12:20.320
Being able to take off where you are, 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: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.

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:56.960
When cars have safety testing, they're going to be building in crumple zones.

12:56.960 --> 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.

13:02.400 --> 13:04.180
And you need that to go somewhere.

13:04.320 --> 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.

13:12.280 --> 13:15.120
And when that would break, I was overjoyed.

13:15.120 --> 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.

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: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.

13:36.980 --> 13:41.480
If you've flown before, you know that you spend as much time fixing your aircraft 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:44.800
This will happen.

13:44.800 --> 13:46.260
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: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.

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: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.

14:26.560 --> 14:31.460
Whereas with a fixed wing aircraft, you're pushing yourself through the air and you're generating a lot of lift.

14:31.460 --> 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.

14:41.400 --> 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.

14:53.140 --> 14:58.760
With a fixed wing, depending on thermals, 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:09.660
Quadcopters, unless you do something else, 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: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.

15:30.640 --> 15:34.380
And with these propellers going the speed they are, these things are knives.

15:35.240 --> 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.

15:41.260 --> 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.

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:05.820
If you're all squeamish, if any of you are squeamish, 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: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...

16:35.980 --> 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.

16:44.280 --> 16:45.440
That's usually good.

16:45.440 --> 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.

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: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.

17:16.280 --> 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...

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: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.

17:44.500 --> 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.

17:53.760 --> 17:55.600
These things are pretty lethal.

17:56.740 --> 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.

18:04.840 --> 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.

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: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.

18:22.520 --> 18:23.600
Good luck with that.

18:24.740 --> 18:26.100
Be good with it.

18:26.440 --> 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.

18:38.900 --> 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.

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 --> 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.

19:01.700 --> 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.

19:11.380 --> 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.

19:17.180 --> 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.

19:28.840 --> 19:29.660
So one second.

19:29.660 --> 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.

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 --> 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.

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: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.

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: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.

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: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,

20:51.430 --> 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.

20:58.270 --> 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.

21:06.590 --> 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.

21:14.670 --> 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.

21:22.990 --> 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.

21:29.750 --> 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.

21:35.010 --> 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.

21:41.910 --> 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.

21:50.570 --> 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.

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: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.

22:10.810 --> 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.

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: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.

22:39.490 --> 22:42.590
And sometimes you also have a GPS receiver on there.

22:42.590 --> 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.

22:51.670 --> 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.

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: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.

23:14.190 --> 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.

23:20.110 --> 23:21.890
So I was using a barometer.

23:21.890 --> 23:23.090
It's a BMP 085.

23:23.090 --> 23:24.970
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: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.

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: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.

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: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.

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: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.

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: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.

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 --> 27:56.770
Well, that wasn't kind of cool.

27:56.770 --> 28:01.490
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: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.

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: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.

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:37.730
We weren't expecting to see those kind of things.

29:37.730 --> 29:39.210
We weren't really looking for them.

29:39.290 --> 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.

29:45.790 --> 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.

29:56.390 --> 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.

30:07.170 --> 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.

30:16.310 --> 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.

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: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.

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:21.590
That said, you could probably go out at 2 a.m.

31:21.590 --> 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.

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: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.

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: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,

32:20.310 --> 32:23.390
like, from what angle you can get higher or lower access.

32:23.390 --> 32:25.190
Like, it'd be a ton of work.

32:25.190 --> 32:27.690
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: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.

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.

