start	end	text
3520	7540	All right. Thanks for showing up.
10180	12660	My name is Dale Rowe. This is Scott Pack.
12660	16980	We're going to talk to you a little bit about a project we've had going on for a while.
17840	21480	A lot of people are doing stuff with drones. Can you hear me?
22320	24100	Is it the accents or the levels?
30000	31140	Can you hear it at all?
33600	35820	I don't think the microphone is working.
42580	45060	We've had a project going on for a few years.
46200	49140	Looking at different things quadcopters can do.
49920	53900	Scott is somewhat of an expert in the area and I'm kind of his supervisor.
53900	55220	I'll go on to the introductions.
57400	59400	I teach IT at BYU.
59440	62760	And when I say IT, I mean the fun stuff that I like teaching.
63120	65400	I'm trying to stay away from the areas I don't like.
65400	68760	But I teach penetration testing and forensics and a couple of fun stuff like that.
68840	70440	I've been there for about four years.
70800	74780	So my accent is just on the point of not being British, not being native.
74780	76320	And I don't know where it's at.
76440	80460	If you don't understand me, please just stop me and ask a question and I'll try and answer it.
82520	84740	I worked a bit in the aerospace industry.
85500	89120	Kind of doing security and different things there that I'm not really supposed to talk too much about.
89720	93640	Scott was one of our grad students at BYU.
93960	98360	And came up with this really cool idea of using a quadcopter to try and map out networks.
98760	101320	So he's going to be kind of running through some of the background on that.
101900	104180	He now works for Adobe as a security analyst.
105120	106860	Probably owns more than I do, which is great.
106860	109660	That means I was successful somewhat in helping him get that.
109660	112360	Do you want to pass on?
113180	114760	Sure, are we just going to go to the next?
114760	115100	Yeah.
115540	121840	So, short experience that I had just coming into the other Las Vegas security conference.
121840	122760	I was on the tram.
122760	127620	I've been going back and forth between New York and Mandalay Bay like four times a day.
127720	130400	One time I sat down next to a guy and he said,
130400	133800	Oh, are you here for that security computer thing here?
133800	135520	And I said, yeah, that's what I'm here for.
135980	140880	He then told me a little bit about how his son works for a large government security contractor
141280	143680	and how big the industry was.
144240	146840	And then he said something that really surprised me.
146840	149080	He said, yeah, I don't think it's going to last too much longer.
149080	151480	I think this whole security thing is just going to blow over.
151840	154820	And that kind of blew me away.
154880	159440	Like everything I know about the security industry, like malware variants are skyrocketing.
159480	161700	We're seeing more every day.
163300	168300	We're seeing governments and companies pouring hundreds of millions of dollars,
168300	173780	billions of dollars in some cases, into doing security research and operations.
173980	177600	I don't see where this guy's coming from.
177600	181600	So I asked him, why do you think this is going to start tapering off or anything?
181600	183420	And he answers, well, it's robots.
184000	186840	Robots are going to end all of our security problems.
186840	190340	So I wish I could be presenting something like a robot
190340	193400	that was going to be fixing all of the security problems today.
194140	198360	But we do have a couple ideas about how we can use mechatronic systems,
198360	202980	specifically a quadcopter, in making some of our jobs a little bit easier,
202980	205300	either as an attacker or as a defender.
205480	211880	So a little bit of history, some from DEF CON, some elsewhere into this space,
211880	217560	kind of a combination between robotic aerial platforms and wireless.
218140	221600	Chris Anderson, with 3DR, a couple years ago,
221600	227000	presented a flight controller called the ArduPilot, or the APM.
227740	231440	Very, very cool flight controller, incredibly flexible.
231480	234100	I'll be talking a little bit more about that later.
235060	238580	And then Mike Tassi and Rich Perkins, I think this was two years ago,
238580	242400	both at Black Hat and here at DEF CON, presented the WASP,
242400	244780	the Wireless Aerial Surveillance Platform.
244780	250680	This was a repurposed military drone that could do a lot of really cool things.
250680	255100	Everything from setting up basically a flying GSM and cell tower
255100	260640	to mount in the middle of your phone calls, do aerial surveillance and attack.
260640	264100	It was VPN to a base station so that you could control
264100	271800	both the flight of the platform and its offensive operations from the ground.
271800	278480	It was incredible how much they fit onto this 14-pound military drone.
278780	285980	And then just last year, Ricky Hill did some work in using the commercial DJI drone.
286200	289460	What's the one called again? You've got two of them.
289460	290900	Oh, the little Parrot AR drone.
290900	293940	The Parrot AR. No, it wasn't the Parrot AR.
293940	297500	It was the DJI Phantom to basically do a flyby of a beach
297500	302420	and do some kind of like low-resolution war flying.
302420	305120	So we also strapped a wireless pineapple on here.
305120	307380	If you've been in this room for more than about half an hour,
307380	309300	I'm sure you've heard of the pineapple,
309300	314580	to do everything that you can do from a pineapple anywhere that a drone can get,
314580	318200	which is, if you've done any amount of RC flight, pretty much anywhere.
319240	323820	So outside of DEF CON, though, there's been a lot of cool stuff happening as well.
323960	327460	These two guys, Theodore Reid and Joseph Geis,
327460	330280	I think it's out of Stevens Institute of Technology,
330280	336760	they did some work in using a drone to provide a covert transmission channel.
336820	339460	So if you're a network administrator or anything,
339460	345260	basically your knowledge is coming from your egress, your network egress.
345260	348240	And if you're trying to do something to stop command and control traffic,
348240	350400	that's where you have some amount of power.
350400	353200	You can put in firewalls, you can put an IDS in place,
353200	357500	but if all of a sudden your endpoints are communicating with a drone
357500	359620	that's sitting on your roof or on your balcony,
359620	362760	you don't have control over that network egress anymore.
362760	366280	So that was a lot of what these guys did in setting up a proof of concept
366280	371420	to do command and control over an alternate transmission channel.
373660	377920	The Ant Catalog is a little bit more of a touchy subject, I guess.
377920	383300	If you're familiar with what the Ant Catalog is, you know who published it.
384100	390040	And the Sparrow 2 is pretty nondescript in their documentation,
390880	394180	but it's pretty easy to infer that it was used for
394180	399520	probably both offensive and defensive operations on an airborne platform.
399520	401660	So cool stuff going on in the field.
401920	406500	And although it's not really an advance of the art here,
406500	410160	I figure this is DEF CON, what's a presentation without a cat in it, right?
410360	412800	So this is Orville Copter.
413180	418080	I believe it was an artist out of Finland taxidermied his cat and put it on a quad.
418500	420360	That's really not here nor there.
420700	422120	You wouldn't want to do that.
422860	426840	So I'm going to describe a little bit about what goes into building a quadcopter
426840	430720	and then how we're using a quadcopter in our situation
430720	433920	to do wireless mapping, heat mapping.
434840	436820	So pretty much every quad you're going to see,
436820	439060	it can have a wide variety of different frames.
439060	443800	You've got Y3s, which is just like a single quadcopter,
443800	446780	not even a quadcopter, a tricopter, three motors.
446920	449440	You can have a Y6, which has them up and down,
449440	451800	gets a little bit of redundancy on the motors.
452540	457060	You've got quadcopters with four, hexacopters, octocopters.
457060	457860	They go crazy.
457860	462780	Lady Gaga actually had a dress built that was, like, powered by quadcopters.
462780	464760	So she'd stand on this thing and fly around.
464760	467660	But really, like, there's tons of different frames.
468140	471420	What you choose as your frame, the material that you use for it...
471420	472560	Speak a little bit louder.
472560	473460	Is this...
474020	476120	That's not, it's for the recording.
476120	476500	Okay.
476500	478480	The video, there's no speaking.
478480	479280	All right.
479940	481000	Okay, I'll try.
483700	487540	The material that your frame is built out of and the way that it's set up
487540	491160	will have a lot to do with how it's actually going to feel in the air.
491160	495680	If it's a little bit more of a, a little bit of a flexible frame,
495680	497840	it's going to feel a little squishy,
497840	501400	but it's also not going to have as much vibration from your motor.
501400	504740	So there's, there's some trade-offs when you're looking at frame materials.
505080	510320	For power, pretty much every quad I've seen uses lithium polymer batteries.
510320	514740	Very high discharge rates, pretty good capacity, very lightweight.
514740	519500	There's been some really cool battery advancements over the last,
519500	523760	even in the last just couple of weeks that could lead some way
523760	526040	for some lighter weight, higher capacity batteries.
526040	528600	So it'll be interesting to see what happens in that field
528600	530620	in the upcoming months and years.
531060	535220	As far as motors, they're brushless motors,
536440	540500	control using an ESC, which is a small microcontroller.
541340	543060	And again, used between 3 and 8.
543060	545860	The propellers, these things are sharp, and they're very fast,
545860	550100	but usually between 8 and 12 inches end-to-end.
552540	557000	ESC I mentioned, so on a quadcopter, in order for it to make it flyable,
557800	561940	there's an input loop, and it will pull a number of different sensors
561940	564080	on a couple of different frequencies.
564080	567260	It uses a magnetometer for determining your heading.
567500	570560	That's what prevents you from kind of getting a corkscrew effect
570560	571860	when you're up in the air.
572620	576060	Barometer is used to determine the altitude of the quadcopter.
576340	578360	Accelerometer to determine the absolute angle,
578360	580600	the angle of attack that it's currently at.
580880	583800	Gyro to determine rate of change.
583800	587540	And then GPS, not every quadcopter is going to have a GPS on it
587540	589100	or a sonic rangefinder.
589220	591040	Those are kind of just additional nice-to-haves
591040	593340	that open up a lot more functionality
593800	596180	and lets you do a lot more cool things with it.
598740	599580	Communications to it.
599580	604000	Most quadcopters are controlled using a 2.4 gigahertz transmitter.
604840	605440	Sorry, go ahead.
605440	605740	Louder.
606220	608340	Louder still. Holy crap.
608860	609940	All right, and then telemetry.
609940	612260	If you want real-time results back from your quad,
612260	614600	you can also put an additional radio on there.
614720	616240	Sometimes we'll be using ZigBee.
616240	617840	There's a number of different alternatives here
617840	621900	to get in-flight stats back to your ground station.
622780	627060	So this is the APM 2.5 that 3DR builds.
627060	631040	It's open-source hardware, open-source software.
631080	633820	There's a fantastic ground station for this,
633820	635540	great mission planning.
635620	641240	This is the same flight controller that Wasp used.
641700	643760	So for my purposes,
643760	645900	I definitely wanted to offload as much of the work
645900	647640	that had already been done as possible.
647820	651940	Picked up one of these, and it was fantastic to work with.
652880	654900	A number of different flight modes.
654900	658140	Even if you get one of these things, it does a lot of things for you.
658180	661460	But as I mentioned, every frame is a little different.
661560	663240	So when you first start building one,
663240	664720	you're going to have to do some tuning.
664900	668360	And that tuning is going to depend on what your motors are like,
668360	670700	what your weight is like, your center of gravity,
670700	672760	your frame composition.
673780	676520	But it's an open-enough platform that you,
676520	678840	with a little bit of work, you can get a pretty stable quad,
678840	680400	no matter what you're using.
681880	685260	So a quadcopter minus the frame pretty much looks like this.
685260	688160	The battery is used to power the ESCs.
688200	691320	The ESCs typically have a battery eliminator circuit in them,
691320	694260	which can let you power your flight controller.
694340	696000	The flight controller is hooked into your receiver,
696000	698760	which you're sending controls to with your transmitter.
700260	702620	Typically, the flight control board will integrate
703580	705280	a large number of your sensors.
705280	707460	Sometimes you'll have additional ones that come off,
707460	710180	an off-board magnetometer or a GPS.
710180	716000	But that's basically the electronics of what builds a quadcopter.
716820	719180	So if you're in RC,
719180	722760	most likely you got started flying a fixed-wing aircraft.
723220	727220	There's a number of benefits that a rotary-wing aircraft
727220	729800	like a quadcopter has over a fixed-wing.
730340	731820	First off, VTOL.
731860	734580	Being able to take off where you are,
734580	740320	not needing a 100-yard long landing and takeoff strip is awesome.
740320	744000	It lets you get places where you just can't get with a fixed-wing.
744040	747720	And it lets you be able to go basically as slow as you want to.
747720	752920	So if you're wanting to stay in one place and take a number of readings,
752920	757400	if you have a video camera that you're wanting to perfectly line up a shot,
757400	759020	you can't really do that on a fixed-wing
759020	761580	because you can't just stay in one place like that.
762920	766780	Most of the quads that I've worked with have been pretty easy to repair.
767440	770720	That being a result of the frames.
770720	771920	So the same way as a car.
771920	774880	When cars have safety testing,
774880	776960	they're going to be building in crumple zones.
776960	780280	And those are areas of a car where when you're in a crash,
780280	782400	you have a lot of kinetic energy built up.
782400	784180	And you need that to go somewhere.
784320	786380	So with a lot of these frames,
786380	788920	when I would have a crash or I'd run into something,
788920	792280	almost every single time, this right there would break.
792280	795120	And when that would break, I was overjoyed.
795120	798160	Because I knew that, yeah, I was going to be five or ten minutes
798160	801660	of unscrewing stuff and reconnecting wires here and there.
801660	805680	But I also knew that it meant that my motor didn't get destroyed in the process.
805920	808620	So if you're building a frame yourself,
808620	815060	I would really encourage building a frame that is going to take the brunt of a crash
815060	816880	when it inevitably happens.
816980	820260	If you've flown before, you know that you spend as much time fixing your aircraft
820260	821480	as you do flying it.
821480	823360	So that's just kind of a fact of life.
823600	826260	This will happen. We've built a few of these.
826820	829560	And every single one of them has crashed in very low severity.
829560	833340	It didn't take us long to figure out that if we control where it breaks,
833340	835640	it really does save a lot of money in the long run.
835640	838760	These things don't glide very well.
838860	843500	You can buy a... the frame that I used was like $15 out of China.
843540	846300	So you can replace one of the arms for like $3.
846780	850200	But a motor is going to cost you $20 or $30.
850200	853320	And a battery is going to cost you $40 or $50.
853320	856180	So it's a lot easier to replace the cheaper components.
856180	858560	That being said, there's a lot of drawbacks to a quad too.
858560	862200	Like a quadcopter, all of the lift that you're getting out of a quad
862200	864460	or pretty much any kind of rotary wing aircraft
864460	866560	is coming from the propeller.
866560	869460	Whereas with a fixed wing aircraft, you're pushing yourself through the air
869460	871460	and you're generating a lot of lift.
871460	874520	So you're using the lift from the air moving over your wing
874520	877200	to bring you up and take care of your weight problems
877200	881340	rather than having to expend all this energy to keep your prop spinning.
881400	887700	So with a 5500 mAh battery on a quadcopter,
887700	889580	even if it's a good, like a light quad,
889580	893140	you'll be lucky to get 15 minutes of airtime out of it.
893140	896080	With a fixed wing, depending on thermals,
896080	898760	you could be in the air for 1, 2, 3 hours.
898840	902520	So the flight time really is a pretty big consideration.
905440	907800	Quadcopters, unless you do something else,
907800	909660	they're going to look like this, right?
909720	914560	And it's really hard to tell if an X is upside down.
914940	918380	It's really easy to lose orientation when you're flying one of these things.
918380	922420	If it gets behind you trying to remember which way is forwards, which way is backwards,
922420	925980	it's really easy to get into a spot quickly where you don't know what you're doing,
925980	928280	lose orientation, end up in a crash.
930640	934380	And with these propellers going the speed they are, these things are knives.
935240	939300	I've had four propellers in my backpack when I've been traveling for months,
939300	941260	and not once has TSA stopped me.
941260	945760	I don't know why a 2-inch Swiss Army knife is contraband,
945760	949600	but a 4-inch, almost knife-sharp propeller isn't.
950280	952060	But these things can be very dangerous.
952060	956480	They are called on a regular basis, and for good reason, flying lawnmowers.
956900	960220	And a lot of people have done some pretty serious damage to themselves.
960220	962220	If you're all squeamish, if any of you are squeamish,
962220	965820	I'd recommend not looking at this next slide.
968620	970160	This was not us.
972880	979280	Fortunately, none of these were a result of my flying or anybody in our research group.
979440	981620	These are all compliments of AeroQuad.
981620	984860	But we did have an incident where...
985920	989640	Somebody that was relatively new had taken it out and was doing some flying,
989640	995980	and the flight controller has a safety built-in feature that when it loses...
995980	1001360	If it's in automated mode, so if it's doing self-direction and it loses telemetry,
1001360	1003300	then it will return to home.
1004280	1005440	That's usually good.
1005440	1009880	If you're flying and you're 500-600 yards away and you lose telemetry,
1009880	1013720	you want it to come back to you so that you can take control over again and land it where you want.
1014000	1019660	In this situation, it lost both telemetry and a GPS lock at the same time.
1019860	1025720	So it didn't know where home was, or at least the place it thought was home was not home.
1025800	1031380	And unfortunately, there was somebody that didn't anticipate getting hit by a quadcopter
1031380	1036280	walking back from school that day between it and where it thought home was.
1036280	1040740	So it ended up with this really bad scenario where there's somebody running this way,
1040740	1042680	a quadcopter running this way, and...
1042680	1043460	A quadcopter wins.
1043460	1045580	A quadcopter wins every time.
1045780	1048540	That one ended up in like over 20 stitches.
1048960	1051860	So you want to be really careful with these things.
1053720	1056720	Yeah, it only takes once to really mess yourself up.
1057780	1061280	Another reason to control the breakpoints is because you want your emergency response
1061280	1064500	to kind of be land as fast as possible, straight down ideally.
1064500	1067120	Even if it's about shutting the motors off and hitting the ground,
1067120	1071960	it's better than putting 20 stitches in someone's calf, which is what happened in this instance.
1073760	1075600	These things are pretty lethal.
1076740	1080340	Other thing, if you are going to have some kind of automatic autonomous flying capability
1080340	1083380	where it's going to go from point to point, be really careful of the altitude
1083380	1084840	and have a backup for your GPS.
1084840	1086720	Have something like an ultrasound that's going to fire at the ground
1087360	1089940	and it's going to tell you, hey, you're two feet off the ground.
1090060	1092880	If you're above eight feet, your chances of hitting people are a lot less.
1093660	1097280	So try and think about the worst possible outcomes because they do happen
1097280	1100180	and they're not too pleasant when you're trying to pick up pieces off the ground
1100180	1102480	and hand them back to, you know, he's part of your leg.
1102520	1103600	Good luck with that.
1104740	1106100	Be good with it.
1106440	1111740	So, in terms of use of quadcopters,
1112580	1115800	one big trend right now that's going on is going and taking some of these really cool videos
1115800	1118780	and the national parks have recently kind of stopped that.
1118900	1120920	Someone got sighted a couple of days ago in Utah
1120920	1124560	for flying over a national park and a monument and, you know,
1124560	1126760	it wasn't doing any harm, but just kind of got in trouble for that.
1126840	1129020	So you certainly have to be a bit careful where we use these.
1129300	1131260	We know the military uses them in surveillance.
1131760	1135400	And we were trying to think of different types of uses that would be kind of outside the normal,
1135400	1138360	something we could do that would really be useful on a really large scale,
1138360	1140820	you know, that everyone would kind of perhaps have an interest in.
1141700	1144820	And initially our thought was, well, if we put some solar panels on this thing now,
1144820	1148640	we could fly it up on top of a building, use all the flight, kind of leave it there for a few days
1148640	1151040	and then fly it back up once it's recharged through the solar.
1151380	1153300	And we were looking at that and as we started to look around,
1153300	1156100	we found that people had started doing that kind of thing already.
1157180	1162280	And as we were having a conversation with some people in our IT department,
1162280	1165780	they mentioned one of the issues they're having with kind of mapping out
1165780	1168840	where the signal strength is and rogue access points.
1168840	1172760	So one second. Really quick, on this right here,
1172760	1176940	the United States Senate has asked the FAA to figure out what to do
1176940	1180400	with this whole quadcopter thing over the next year,
1181060	1184520	especially as far as first-person flight goes.
1184520	1189420	If you're at all interested in this field, I'd recommend trying to find some way to get involved in it.
1189420	1192380	Write your congressman, look for petitions.
1192640	1196820	This is the kind of thing that there's a small enough group of people that are interested in it
1196820	1199760	that it's really easy to just get kind of written off
1199760	1202460	and that's something that we give up without even knowing.
1202460	1210320	So I'd recommend try and keep your eye on what's happening here from a legislative perspective.
1213610	1216570	So the idea of heat mapping, it's not a new one,
1216570	1218770	is the idea is you figure out where your wireless signals are.
1218770	1221950	And if you know where your wireless signals are, there's two reasons typically you do that.
1222030	1224230	One is to make sure that you've got sufficient coverage
1224810	1230090	because you want to make sure that all your user base can access the access point from the right places.
1230090	1234310	And the second is to make sure that you don't have coverage in areas that you don't want coverage.
1234770	1238510	And that becomes an issue when you have signals emanating quite a distance from a building.
1239230	1241430	When they were doing the WASP presentation a couple of years ago
1241430	1246310	they showed that you could actually get these signals several hundred or even thousand feet above a building
1246770	1248690	because a lot of these access points are mounted to the ceiling
1248690	1252910	and we think that's great for dispersing the signal down, but they'll also disperse the signal up
1252910	1256270	and there's not much above buildings that'll stop that in most instances.
1258270	1264490	So the idea of heat mapping in 3D is something that quadcopters are extremely capable of
1264490	1266590	and really well designed to do.
1266590	1269050	You know, because they can get into those really small spaces outside the building,
1269050	1270890	they can go up gullies between the building,
1270890	1273990	they can get higher than the building, they can get around, they can map things out.
1274670	1276710	And there are a couple of other advantages to using a quadcopter
1276710	1280590	that in a few slides time you'll kind of see what else you gain doing that.
1282990	1286090	In a pentesting class, just to give you an example of the utility of this,
1286090	1289190	if you haven't done it before, I require my students to go and do some war driving.
1289750	1292410	And I tell them they have to be in twos because you always get someone who'll try and hold their phone
1292410	1294590	and war drive as they're driving the car, that's not good.
1295010	1299110	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
1299110	1301130	and they drive around trying to find access points.
1301910	1307090	And in a few years of doing this we've found police stations with secure criminal records
1307090	1310450	and networks being passed around on wireless networks without even using WEP.
1310570	1312570	I mean, if you're really not going to know what you're doing,
1312570	1314830	at least not know what you're doing and use WEP.
1316370	1322450	I don't know, we found a courthouse that was completely open and broadcasting all the video streams around on it.
1323510	1327510	We found some pretty interesting things that, and again, you're probably not too surprised by it,
1327510	1329710	but these stories go on and they happen.
1330810	1333910	You know, I was at Black Hat two days ago and my phone popped up saying,
1333910	1336370	hey, smart Wi-Fi's just turned your Wi-Fi back on, great.
1336370	1339410	There's 131 access points near you, which one do you want to connect to?
1340070	1342990	These things are everywhere and being able to map them is extremely useful.
1342990	1351430	So, the equipment for doing a war driving scenario, like go about, is pretty straightforward.
1351430	1355830	Like everybody knows, you need your adapter, you need a laptop or something to be pulling the data
1355830	1359210	and recording the data, you need an antenna.
1359490	1362590	And sometimes you also have a GPS receiver on there.
1362590	1365990	So when I first started trying to do a 3D site survey,
1365990	1371670	I originally just started trying to use this GPS for lat, long, as well as altitude.
1371670	1377850	But if any of you really use GPS for much, you're going to know that lat and long can be pretty accurate,
1378890	1381850	but altitude on GPS is miserable.
1382030	1388150	Like, the first couple that I did, I'd have a range of about 50, 60 feet.
1388190	1391870	And if you're trying to get an idea of where an access point is,
1391870	1394190	that kind of resolution is just not acceptable.
1394190	1398870	Like, being 50 feet too far high or low for where you think your data point is,
1398870	1400110	is just not good enough.
1400110	1404970	So I was using a barometer. It's a BMP 085. It does not look like this.
1406150	1411470	But it gave me about accuracy within a foot, 18 inches or so.
1411870	1414150	So that was a lot better.
1414410	1417130	And I'll be able to show you some of the results from that.
1417750	1421590	As far as an antenna went, I was using one of the Alpha 036NHs.
1421590	1424290	If you walk around here, you could probably see a dozen of them.
1424290	1428530	Awesome antenna, really easy to use, compatible with pretty much any tool you can think of.
1429650	1433810	So this is the kit all kind of Frankenstein together.
1434270	1439570	I found that with all the gear on there, I was able to get about a 12-minute flight.
1439830	1446830	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.
1447190	1456790	Basically what I do is that as it was flying, the Raspberry Pi was pulling the Alpha connector for RSSI,
1456790	1463770	which is basically signal strength, SSID, and the BSSID, the MAC address, as well as recording the altitude and the coordinates.
1464650	1468110	So network information and then geolocation.
1468670	1470490	And I'd write these all to a CSV.
1470790	1477630	And after the flight, I'd go over with an ugly couple of MATLAB scripts to create a KMZ out of this.
1479530	1484070	So after I first assembled the whole thing, I was like, OK, I want to try something easy.
1484070	1485390	I was still learning how to fly it.
1485390	1487270	So I wasn't a very adept pilot.
1487750	1493710	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.
1493710	1494970	And this is pretty encouraging.
1494970	1497390	It told me, yeah, it's about what I'd expect.
1497390	1499030	Higher signal strength in the middle.
1499210	1501190	Wanes off as you get closer to the edges.
1501710	1503430	Did a perimeter flight.
1503590	1505030	About what you'd expect.
1505490	1509030	And basically this kind of information you can get with Kismet.
1509030	1514450	If you bring up Kismet and start collecting geolocation on it, you can generate these kind of maps.
1515510	1522610	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.
1522970	1530150	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.
1530150	1534150	And I was trying to figure out how to visualize this, and I took a cue from the medical field.
1535030	1539890	So when you're doing an MRI or really any kind of visualization, any kind of medical...
1541090	1542190	What's it called?
1542690	1543530	Medical scan.
1543530	1549250	Any kind of medical scan like that, they're typically going to slice things along at different depths.
1550210	1556370	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,
1556370	1559910	things that have soaked up more of your radioactive dye than other places.
1559910	1567850	So cueing from that, I would take this data, interpolate it across the area, and then slice at different altitudes.
1567850	1572670	So right here is a five meter slice, a little bit higher signal strength in the middle.
1572750	1575170	As you anticipate a little bit higher, you get it lower.
1575290	1576310	Well, that's kind of boring.
1576310	1582030	I was feeling a little bit more comfortable as a pilot at this point, so I decided to take it on campus.
1583570	1586670	This was not the incident where the student got sliced.
1590330	1596190	So essentially what I did here is I flew what's called a vertically aligned lawnmower search pattern.
1596190	1602210	Basically just flying it back and forth, increasing my altitude, trying to hit each floor, fly by it once,
1602210	1609810	going relatively slow so I could try and get a decent amount of samples per linear foot or whatever.
1611550	1616230	Yeah, over the course of this flight, the flight on this side took about six minutes.
1616230	1617950	The flight on that side took about three.
1618150	1622490	So if any of you have done any amount of wardriving before, you know that it can take a long time.
1622490	1630550	If you're walking around pushing a laptop on a cart, you can pretty realistically expect to spend an hour or two hours
1630550	1633550	walking around or inside of a building trying to collect this data.
1634470	1641170	Over the course of this flight, I picked up about 350 access points, wrote these all to disk.
1641170	1646950	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
1646950	1652890	who was sitting here in this corner and just did contours on that one AP.
1653110	1659270	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.
1659270	1664430	It's not going to be like an omnidirectional sphere, which makes sense for the building.
1664430	1671850	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.
1672010	1674910	So you can tell that this is pretty much doing what you'd expect.
1674910	1681490	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.
1681490	1684510	So I thought, let's pick a little bit more interesting access point.
1684510	1690950	This one was on the fifth floor of the building, and campus IT had no idea what it was.
1690950	1701130	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.
1702610	1710270	So using this map, I was able to help the sysadmins out and basically point them to exactly where this rogue AP was.
1710270	1717330	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,
1717330	1722450	go in there and unplug it, give the faculty a smack on the hand, and they were out of there.
1724250	1729150	So I mentioned before that this was kind of done using an ugly mixture of scripts.
1729150	1735450	Some of it was Python, some of it was just parsing bash stuff, some of it was like the visualization was all in MATLAB.
1735690	1742830	So just for you folks here at DEF CON, I've spent like the last three or four days until 2 a.m.
1742830	1748010	importing all of this into Python and moving it over to a Kismet plugin.
1748690	1753070	So now you should be able to pull... it's available here on Git.
1753070	1759510	You can pull it down, use it with Kismet, grab a Raspberry Pi, plug in a barometer,
1759510	1765390	and you should be able to do these same kind of heatmaps, including the interpolation.
1766390	1769410	Really quickly, I'd like to show you what it looks like.
1770150	1775990	Just while he's doing that, the real strength of this we found was that rogue access point scan.
1775990	1779210	We weren't expecting to see those kind of things. We weren't really looking for them.
1779290	1784470	It was just a case of going through the list, and that kind of popped out and drew some attention,
1784470	1790950	and we started looking more for it. And very, very quickly, in a nine-minute flyby where we captured 130 APs,
1790950	1795950	pick out that one and localize it within the building to the point of two to three offices to look into.
1796390	1799910	Nine minutes for a building of that size, we've got guys going around our building
1799910	1806990	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.
1807170	1812570	Once it does the interpolation and the contour draw, it actually is writing it to a KMZ,
1812570	1815510	which you can open up in Google Earth.
1816310	1822070	Once you have it, you can rotate it around and get an idea of where is your hotspot, what's around it,
1822070	1825890	what kind of context do I have, what floor is it on, and that kind of thing.
1826550	1827670	Ah, go away.
1830910	1832490	See you when we talk about applications.
1832990	1833490	Okay.
1837130	1841990	So, in terms of other applications for this, we were looking for kind of what else this could do.
1841990	1844310	Rogue access points were one that we've discovered.
1844390	1846050	Mapping out the signal strength was one.
1848390	1848910	Okay.
1849750	1850950	Go back one slide.
1851630	1852770	Yeah, yeah, no problem.
1854110	1856790	Actually, we'll have a slide at the end where it has it there, too.
1856970	1863170	One of the downsides of the drone, obviously, unless you can land it somewhere, is it's not that effective for, you know, attacks.
1863550	1865370	One, it tends to be fairly noisy.
1865430	1871250	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
1871250	1875750	and you have this perception that inside the office you wouldn't notice a little drone flying by.
1875970	1876770	We found the opposite.
1876770	1878110	It did draw a bit of attention.
1878110	1879850	So, they're not the most discreet devices.
1879850	1884710	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,
1884710	1887670	and then, assuming it's got enough battery, come back the next day and collect it.
1889430	1892150	And we were trying to think of where to go from here, what would be useful.
1892690	1898370	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.
1898890	1903050	It's trying to take this thing and, you know, expand the horizons of what it can do.
1903050	1909410	And you can imagine a cell phone company might be quite interested in the ability to fly these things out into the desert somewhere
1909410	1914130	and look at their access points in different canyons or try and map out things.
1914130	1917170	So, with software-defined radio, you can really start to do a lot more than you would normally.
1918970	1919650	Yeah.
1920030	1926870	So, additionally, right now on the quad, I basically have just a low-gain, omnidirectional antenna.
1926870	1931370	I think it would be really interesting to see some work go into using the same kind of platform
1931370	1938090	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,
1938090	1943390	trying to trace it, and figure out, like, from what angle you can get higher or lower access.
1943390	1947690	Like, it'd be a ton of work. Gimbals are by no means cheap or easy to work with.
1948070	1951170	But there could be some really cool stuff that could come out of research like that.
1951170	1955030	What about rotating the platform itself with a directional antenna instead of trying to...
1955030	1956090	Yep, or rotating.
1956270	1957790	You've got the accuracy to do that kind of stuff.
1957790	1959010	Yep, absolutely.
1959010	1961230	So here's our contact info.
1961230	1967690	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,
1967690	1969630	please get in touch with us.
1970150	1981590	That code, the Kismet client and the KMZ interpolator and KMZ generator are available right there.
1981590	1983210	A little bit more information.
1983210	1986370	The whole paper is actually part of my thesis research.
1986370	1989830	So feel free to get in touch with us or read up more on it.
1989950	1990430	Thank you.
1990430	1991290	Any questions?
2002520	2004520	If there's any questions, we'll be here for a few minutes.
2004520	2005800	Feel free to come up and talk to us about it.
2005800	2007080	We'll do our best to answer them.
2007080	2007700	Thank you.
