start	end	text
760	7720	Good morning, happy Sunday at DEF CON. Thank you for coming to our talk, because we can.
7720	14240	Warflying in a Cessna. I'm Sean McKeever. I'm a senior security researcher,
14240	22060	and I do other stuff from Metro Detroit. Sometimes I race cars. Matt Thomason, also Metro Detroit.
22060	26620	My day job is in security and has pretty much nothing whatsoever to do with warflying.
26620	33160	I am also a commercial multi-engine pilot, instrument rating, and licensed airframe and
33160	38240	power plant mechanic. And all of the opinions are expressed here are our own.
40160	44300	And probably have nothing to do with our respective employers. I didn't even tell
44300	54080	them I was coming. All right, so the story. It's November 2019, and I was awash in a sea of mats,
54080	60360	this was our cube area. I had a mat, and a mat, and a mat, coffee, and then a not mat.
62860	66740	So we're sitting around, it's, you know, like I said, November, DEF CON had come and gone,
66740	71720	and Matt and I are like, let's do a DEF CON talk. I'm like, yeah, but I tried that. I can't talk
71720	80060	about work. What else are we going to talk about? Matt goes, I have a plane. Oh, Wi-Fi? Yeah,
80060	93060	let's do that. And then 2020 happens. So, you know, we did finally get together and do it.
93240	100620	Warflying, it's like war driving, or war dialing, or as in greetings, Professor Falcon. We're
100620	107200	looking for wireless access points from the air. And there are unfortunately no weapons involved.
107200	111780	Unfortunately, I said fortunately. Fortunately, yeah. And so we're warflying into Cessna,
112340	116720	not these Cessnas. Cessna has actually made warplanes, but we weren't using those. Although
116720	121940	the L-19 on the bottom is kind of close. If somebody wants to donate an L-19 for further
121940	129800	research, please see me afterwards. Our Cessna was more like this, Cessna 182, not this airplane,
129800	135580	because I think that one's registered for, not in the US, but four-seat airplane,
135580	142380	high wing, which gives us a little better visibility to the ground, 230 horsepower engine,
142380	148680	cruises comfortably around 150 miles an hour. And one nice thing is we've got six hours of
148680	154960	fuel. So with reserve figure five hours, we can go for a long time, long distance if we want to
154960	163140	do such. A few disclaimers. This is not legal advice. Neither of us is a lawyer. This is not
163140	168720	flight instruction. We are not flight instructors. We are also not expert war drivers, but we are
168720	174580	grateful to the war driving community that has made great tools like Wiggle. And many of those
174580	180380	people are over in the RF hackers village. And we're not the first to do this. During our research
180380	186000	found that about 20 years ago, somebody wrote a paper on collecting data on wireless access
186000	191660	points from the air, but there doesn't seem to have been a lot of discussion or work on the
191660	196520	topic since then. So we thought it was worth doing some experimenting and firing up the conversation
196520	204340	again. Why would we do this? Big reason, three magic words, line of sight, radio frequencies,
204340	213420	especially in the wifi ranges are very subject to interference from the ground, from objects,
213420	219320	vegetation, buildings, houses. Am I hopefully doing okay with my mic position here, but
220140	225180	am I, is that better? Okay. Hey, okay. I should know how to do this. Anyway.
228000	235880	So trying to raise one end of the device on the end of the radio conversation, potentially we
235880	241560	have much greater distance and much greater line of sight and airplanes are cool. Radios are cool.
241560	248960	We were curious. Maybe we can see a lot of access points quickly. And there's a fair amount of
248960	257660	discussion right now about the interaction of aircraft and RF and what radio signals can do
257660	262380	with those. So we thought it was an interesting topic to explore. A few constraints we'll talk
262380	269460	through. One, safety. And I'm going to belabor this a little bit because I don't want to read
269460	275140	any NTSB reports about somebody who crashed an airplane trying to look for wireless access points.
275140	283100	So seriously, the job of the pilot in this is fly the airplane. And this is often expressed in
283100	292440	aviation as aviate, navigate, and communicate. First job, aviate, which is keep the airplane
292440	299400	flying, keep the shiny side up, keep it at a proper airspeed, don't run into anything.
300220	305980	If and only if you are successfully aviating, then figure out where you are and figure out
305980	311000	where you're going. If and only if you are successfully aviating and navigating,
311000	315780	then maybe think about talking to somebody on the radio about what you're doing. At no point in here
315780	322280	get distracted by scanning equipment, shiny electronic displays in the airplane. Ah, that
322280	329760	looks cool. Particularly during critical phases of flight, taxi takeoff, approach, landing, and
329760	333240	low-level maneuvering, because when you're doing warflying, you may want to be down
333240	341780	closer to the ground and that increases risk. Is it possible to... or so because of this warflying,
341780	345400	we think is best done as a team sport because, hey, it's more fun to share the flight with
345400	350480	somebody anyway. Is it possible to warfly safely while solo? I think it is. We'll talk about the
350480	357100	details of that a little bit later, but obviously we want to be watching the constraints. I will
357760	366420	mention this issue specifically as a reference to why I'm concerned about this. Not that long ago,
366420	374700	not very far away from where we live, there was a Cessna 182 that crashed and based on the NTSB
374700	379660	report, there's strong evidence that the pilot was in the process of taking a Snapchat video and
379660	385360	making a post and got distracted, got a little left of the course, flew into the guy wires of a tower,
385360	392260	crashed and died. So distraction, especially at low level, especially during low-level
392260	397560	maneuvering, can be fatal. So please, please, please, pilot, fly the airplane. And if you are
397560	405160	flying with the pilot, as the scanner, if the pilot is not comfortable doing something,
405160	409460	don't do it and don't distract the pilot.
411280	417900	Regulations, basically the FAA says it's the responsibility of the aircraft operator to
417900	423140	determine if the portable electronic device will interfere with the operation of the aircraft. So
423640	427400	as a pilot, figure out will this interfere with the operation of the aircraft.
430840	438300	Also, remember FAR 91.3, the pilot in command of an aircraft is directly responsible for
438300	444420	and is the final authority as to the operation of that aircraft. So if you are the scanner,
444420	453280	the pilot's word is law on safety things. Also, 91.13, the great catch-all, careless and
453280	458640	reckless operation is prohibited. So don't do anything stupid while you're flying around
458640	465180	trying to collect access point data. FCC perspective, FCC basically does not want
465180	469180	cell phones in cell phone mode trying to talk to cell phone towers while flying around. So
469180	474420	put your phone in airplane mode and you can still have your Wi-Fi on, have your GPS on,
474420	481700	which are what you need for collecting wireless access, wireless access point data.
481700	488460	Where can you war flight? Know your airspace. So we're from Metro Detroit area and Detroit
488460	494120	Metro Airport has this nice big thing called a class Bravo airspace, which you can visualize
494120	501840	as an upside down wedding cake centered around the primary airport. And the class Bravo airspace
501840	506360	is well-protected and you can only get in there with explicit permission if you're on either,
506360	511660	if you're on an instrument flight plan or if the approach controllers say you can come in here.
511700	516940	This is a very good safety thing because it lets all of the airliners get in and out
516940	524580	safely, heavy traffic areas, and it works well. For what we're doing, we are probably not on an
524580	528880	instrument flight plan unless we happen to be war flying while we're going somewhere. But if we're
528880	533560	trying to gather data about a specific area, we're probably operating under something called
533560	539620	visual flight rules, which means we're doing our own navigation and we're responsible for
539620	543840	our own traffic separation, but we've got a lot of flexibility in where we can do that.
543840	548900	But we need to stay out of the class Bravo for sure. And then there are smaller airports that
548900	554200	we want to be watching for so we don't go get in their traffic patterns and runways.
554360	559580	Pontiac Airport that we fly out of is a class Delta, so they have a control tower. They own
559580	565180	that airspace. They're pretty nice and flexible on working with us for maneuvering that we need
565180	569380	to do. And so you have a lot more options out of class Delta airspace, but at the end of the day,
569380	572880	it's their airspace, so we have to comply with what they want.
574180	581580	Over populated areas, it's legal to fly 1,000 feet. You have to stay 1,000 feet above
582180	585820	the ground. Over unpopulated areas, you can go down to 500 feet.
586340	590440	Where we were trying to fly, like over the suburbs of Metro Detroit,
590440	597100	we basically had an area between 1,000 feet and 3,000 feet above the ground that we could get in
597100	603720	to maintain clearance above the ground but stay below the class Bravo shelf. So that kind of
605080	609480	constrained where we were able to go, but we were able to
611440	618620	collect some good data. Also, an airplane is a metal box, or at least a lot of them.
618680	626680	Cessna 182 is an aluminum box with Plexiglas windows. So we want to get the radios up out
626680	632080	of the aluminum box and put them as close as we can to the Plexiglas windows so that they can
632080	638060	receive Wi-Fi. And that was one of the things that we were curious about, how well does this work
638060	644360	if we're inside the airplane and just getting the radios through the Plexiglas?
644360	646940	So next year, I'm going to be outside the airplane?
647660	653580	Yes. Yeah, we'll attach a safety line though, so it'll work well.
655780	660800	Optimally, the antenna would be outside the airplane, but you get into some issues with
660800	665380	regs and safety and stuff. One, if you're trying to permanently attach them to the airplane. And two,
665380	672480	just practically, you don't want to try attaching it and then have it not work and fall off. And then
673060	677440	you're calling the tower saying, hey, can you see if my phone fell off on the runway?
677940	685720	Okay. Also, from a privacy perspective, this is probably the least stealthy way to war drive
685720	690400	because you're in a big metal box making a lot of noise, flying over everybody's head with a 12-inch
690400	694080	tail number on the back of the airplane and constantly chirping ADS-B packets, telling
694080	700860	everybody exactly who you are and exactly where you are. People will call and complain about
700860	706920	aircraft doing annoying things. So please be a good citizen. Don't be a jerk. Don't go buzz
706920	714560	people's houses. Probably don't go orbit somebody's house 10 times because that can collect
714560	722420	some negative attention. So yeah, data collection. We did a series of test flights, kind of figuring
722420	729660	it out as we went. The first flight we took one phone, this Google Pixel, which thankfully my
729660	734640	girlfriend had to use because my phones are Apple, but we put wiggle on it. I just kind of held it in
734640	742120	my lap and we kind of flew around. Largely 1,500 to 2,500 feet at roughly 150 miles an hour.
744320	749940	And, you know, where are the access points? We don't know. We know where we started seeing them
749940	755640	and where we stopped seeing them. So we kind of have like a blob for each one, but we can't say,
755640	761240	oh, that's at Sean's house down there. If we can see them more than once over multiple flights,
761240	766560	we could maybe pinpoint it a little better, but it's very inexact. So for our first flight, we took
766800	772020	a three passes down Woodward Avenue, which if you're a fan of cars, it's where they have the
772020	776920	Woodward Dream Cruise. And, you know, we're from automotive. It's also Highway 1 in Michigan.
777220	784660	We did two at 2,500 feet above sea level, which is 1,500 above ground. And then one at 3,500,
784660	791040	which is 2,500 feet with just my Android phone running. And this map doesn't make a ton of
791040	796800	sense to me because I'm not a pilot, but you can see the various airspaces that we were operating
796800	804880	in and the orange-yellow squiggles are actual flight paths. But for me, this makes more sense.
804880	809720	This is actually a roadmap of where we were flying. So the circles you can see on the
810240	813880	right side, that would be our laps around Woodward.
816060	821800	So data formats. Wiggle has their own proprietary format as a KML file, but they'll also output a
821800	827280	CSV. We get one entry per observation out of Wiggle so we can track how many times we saw a
827280	832100	specific point. And it also includes altitude, which is nice for us. So we can correlate also
832100	837920	that to our flight plan and where we were and whatnot. And then what counts as airborne
837920	840800	detection? Because we're seeing, as soon as we fire up the phone, we're seeing things. So we
840800	846120	cap that at 500 feet above ground level is when we're going to consider it. We caught it in the
846120	856180	air. And then we got home and we looked at the data and went, oh, there's a lot. I wasn't a lot
856180	861880	more than we were expecting. And full disclosure, we both used GPT to help us with some Python to
861880	867940	figure this stuff out. So on our first flight, again, our maximum altitude, 3,500 feet, we were
867940	876400	in the air for about 32 minutes above 500. And we caught 2,822 unique BSS IDs or MAC addresses
876400	883980	while we were in the air, which is 88 per minute. How far away? We did a lot of, like,
883980	889700	mathing, trying to calculate distance and such. And I was curious what the official spec is. The
889700	896780	Wi-Fi Alliance doesn't really say explicitly Wi-Fi is good for this range, but it's about 150 feet.
896780	905180	We kind of went past that quite a bit. So this is our first attempt to analyze the data. And if
905180	911180	you look at it a little closely, you'll notice we have the same distance for every single device
911180	919000	that we caught, right? The first sets of them. The first sets of them. So then we flew again.
919000	923760	We took a second flight and this was your flight, right? Yeah. So then I was asking the question,
923760	930940	is it okay to warfly safely when you're solo? And I needed to go do some takeoffs and landings. So I
930940	938420	thought, well, hey, maybe I'll fire up the phone. So what I did, my procedure was fire up the phone
938420	944900	during pre-flight, before the airplane's on, start Wiggle, leave it there. Don't touch it.
944900	950880	Don't mess with it. Don't worry about it. And then go fly, come back, shut the airplane down,
950880	956100	get everything good, then check the Wiggle data. And that worked. So for this, I went to the,
956100	960380	there's kind of a Northeast practice area that's over an unpopulated area. A lot of flight training
960380	967900	activity goes on up there. So I went to see what I could collect. Went up to 2,500 feet,
967900	974620	54 minutes, just under 6,000 access points for a rate, which, and I think this is a unique metric
974620	979080	that nobody else has published. I could be wrong. I don't know. Maybe the war drivers do it, but max
979080	988780	per minute. So got 108 max per minute. Test three, similar exercise, just going up, flying around a
988780	996540	little bit. Myself had the phone mounted the same way and got, went up 6,500 feet, about 7,000 max,
996540	1004600	130 max per minute. And then was working on the distance analysis and saw for that flight, we had
1004600	1010560	over a dozen where we had a starting and ending range where we saw them over a range of over five
1010560	1017820	kilometers. So we were seeing them from a couple miles away, pretty sure. Top access points on this
1017820	1029780	one, the top was nine kilometers and then saw several of these 000D97s. And I don't know what
1029780	1033860	they are, but it's registered to Hitachi Energy USA. So we're wondering if it's some kind of
1033860	1039080	IOT energy distribution, something. We did talk to the ICS village folks and they said, yeah,
1039080	1046760	probably so. Test four, biennial flight review. The quick story on that one was I was with an
1046760	1052880	instructor, but didn't have time to pay attention to the phone. Got back and I just put it in my
1052880	1059540	flight bag to see what would happen and got back and realized that I didn't have any data. So the
1059540	1064740	thing was, or the bad thing was we lost the data. The good thing was I demonstrated that I was not
1064740	1072560	getting distracted by the phone. And then, thank you, don't get distracted by the phone.
1072760	1079660	Test flight number five, there is a path that you can take that's kind of a scenic river tour that
1079660	1086260	avoids the controlled airspaces in downtown Detroit. So we decided to do that for our next
1086260	1093000	test flight. And fun for flying, you get to take pictures like this. So we decided we're using two
1093000	1098180	phones. Can we, you know, get data a better way or a different way? So I also brought along a laptop
1098180	1106580	running Linux with Lin SSID on it, stuffed a USB Wi-Fi card in the window. And then you can see
1106580	1112800	again, my pixel in the handle of the plane. Matt's Android was on the other side of the plane in his
1112800	1123140	his handle. And so we started counting MAC addresses at different altitudes through
1123140	1133320	Lin SSID and correlating that with Wiggle as well. So with Lin SSID, I got 10,208 unique MAC
1133320	1138220	addresses. Wiggle on my phone was super underperforming on this flight for some reason. It only got
1138780	1143420	2,753, but Matt was able to grab again, almost 8,000.
1145560	1152880	And then we again, tried to do distance analysis on it. So we've got again, are topping out at
1152880	1159220	almost 10 kilometers, but most of them, you know, five or six. And then I broke down the Lin SSID
1159220	1164840	specifically as well. And one thing when I Lin SSID, you can tune it, I turned it all the way
1164840	1169660	down. So it would sample constantly. That was a really bad idea. I had two gigabytes of data to
1169660	1177880	try and wrangle. But here's a list of the longest duration SSIDs. I was able to catch out of Lin
1177880	1184600	SSID. I still have the MAC addresses or the BSS IDs. But yeah, the Krusty Krab is apparently a
1184600	1189220	really long range Wi-Fi network in Metro Detroit. And a minute and a half observation is about five
1189220	1196970	and a half kilometers. And this is that same flight plan, right? Yeah. So this is the flight
1196970	1202110	plan. So we wanted to compare altitudes. So we basically, so I was using ForeFlight. So
1202110	1207170	flew kind of an S pattern over Lake Orient and Oxford, Michigan. Thank you to the citizens of
1207170	1213150	Lake Orient and Oxford for letting us bother your skies that day. One path at 2,500 feet and then
1213150	1218690	climbed up to 3,500 feet and tried to just follow the same path. And you see how well I did or did
1218690	1228470	not do. So at 1,500 altitude of 1,500, we got 101 again, max per minute. When we increase that by
1228610	1233150	a thousand feet, we're getting 49. So you can see the signals are starting to degrade the higher
1233150	1240270	we're getting, but we're still getting some significant traffic. Oh, I'm sorry. I'm hitting
1240270	1245390	the wrong button. So yeah, did we go too fast? I don't know. I don't think that's a thing you can
1245390	1252730	do that's got too fast, but yeah. So this was one thing that we would like to explore more is
1252730	1256930	what is the speed? Because we were going about 220 feet per second horizontally.
1257810	1261830	Wiggles seem to be taking samples about every five seconds. So that's about 1,100 feet
1262650	1268390	per sample. So that may have impacted our ability to scan.
1269910	1274010	And then we still had this kind of nagging question. Are we seeing a lot of data? Are we
1274010	1277570	seeing more than we should be? Are we seeing less than we should be? So we decided to do some more
1277570	1283990	driving. And since we love Woodward Avenue, we decided to go do a ward drive from 11 Mile Road
1283990	1289810	to Square Lake Road on Woodward, which is a distance of 9.8 miles. And you see the results
1289810	1296250	there. Ward driving, we took 14 minutes to cover that path, speed of 42 miles an hour, and we
1296250	1303430	observed 2,210 MAC addresses for a rate of 157 MACs per minute. Or flying, we went a lot faster,
1303430	1309090	covered the distance in 4 minutes at 148 miles an hour, got about a third the number of MACs. We got
1309190	1315710	a lot less MACs, 783, but we collected them a lot faster at 197 MACs per minute. So our conclusion
1315710	1322150	from that is that, at least in this case, ward driving collects more MACs, but ward flying
1322150	1328690	collects them faster. So take your pick. I would say flying is probably more fun.
1329330	1335010	So yeah, a little more distance analysis. This is on the stretch down Woodward Avenue,
1335010	1339470	which we had a discrete starting and stopping distance without any overlap, so we could
1339470	1345530	get a clear measure of how long we could see a signal without worrying about, oh, was it
1345530	1352350	looping around and whatnot. So again, our maximum distance here is about 4 kilometers.
1353110	1356510	What I find, one of the things I find really interesting, again, we got a car and then
1356510	1360470	Uconnect based on a past thing I used to do. I know that's...
1360470	1361030	We love Uconnect.
1361030	1362270	Right, I love Uconnect.
1362270	1362830	Yes, yes.
1363070	1367630	But so we were able to catch cars from the air while we were flying down Woodward.
1367790	1369450	So this is, sorry, this was the ward drive.
1369450	1370290	Oh, is that the ward drive one?
1370290	1376590	Yeah, this is the ward drive one. And so what we see from here is the distance, because we were,
1376590	1382510	like, our top distances on the ward flying were like 9 kilometers, 5 kilometers. These are down
1382510	1388770	to like 4. So we're pretty sure we were just tracking cars. And then our old friend 000d97
1389770	1395210	shows up again. Something fairly visible from wherever, but we were getting a lot less distance
1395210	1397890	clearly with the ward driving versus the ward flying.
1399650	1400250	And then...
1400250	1404930	And then when you fly, you have to take a cockpit selfie because it's cool.
1404930	1405470	Right.
1405470	1406330	I can be like...
1406330	1407150	It's so cool.
1407150	1408290	I was flying.
1408290	1409650	You got to do it twice.
1413880	1419680	So yeah, further investigation. You know, different speeds and altitudes. I would really
1419680	1423760	love to just, you know, every 500 feet, same route and all that. But that takes a lot of time,
1423760	1428460	uses a lot of fuel. Aircraft construction. Do we get better results if we're in a composite
1428460	1431380	aircraft without metal wrapping around us?
1431380	1435740	And if somebody wants to donate a Cirrus for further research, please also see me afterwards.
1436500	1441360	Hardware platforms, maybe using some drones that could carry a payload, antenna placement,
1441360	1447220	additional radios, and then directional antennas, etc.
1448600	1450620	Yeah, so that's what we got.
1450680	1454920	So thank you. Thank you all for coming out. Thanks to Pontiac Tower and Detroit Approach
1454920	1458120	for working with us, even though they had no idea what we were doing up there.
1458120	1461060	Thanks to all the mats. There were more of them.
1461520	1464980	Yes, their mats at the Aerospace Village were all over the place.
1465620	1466940	All right. Thank you all.
