start	end	text
5940	7780	Good afternoon, everybody.
8040	11200	I get to kick off the presentations for this afternoon.
12400	20460	If you've ever looked up in the sky, seen an airplane, and thought, I wonder if they're trying to find my wireless access point.
20980	24180	I'm here to tell you, they might be.
24920	30860	I'm Matt Thomason, and I'm here to present Warflying in a Cessna, Part 2, Upping Our Game.
32160	33980	I work with computers.
33980	35820	My day job is security architect.
35820	39020	That has pretty much nothing to do with what I'm about to present.
39420	47480	But I also have my commercial pilot certificate with multi-engine and instrument ratings, and airframe and power plant mechanic certificate.
47900	58600	And I'm presenting on behalf of myself and my colleague, Sean McKeever, who is not able to be here today, who is a cybersecurity researcher, architect, hacker, race car driver.
58600	67080	When I say we, I'm well aware that I'm one person standing up here, but I'm referring to the work that both of us did collectively.
67200	72320	We introduced the Warflying project last year at DEFCON.
72320	75980	There's a video on the DEFCON YouTube channel.
76160	78340	Go check it out for more background.
78340	90680	Essentially, war dialing, including Professor Falcon, became war driving, and then that has branched off into a number of different war transportation modes.
90680	92320	So in our case, warflying.
92720	100560	And we're going around collecting data about wireless access points from a small airplane.
100560	114760	Typically, we've found it works best to stay around 1,500 feet above the ground, which I will note is a lot lower than airliners usually fly and a lot higher than cars usually drive.
114760	122640	So that lets us get some obstacles out of the way because Wi-Fi is very line of sight.
123480	128920	So we wanted to see if we take out the obstacles, what can we see?
128920	130080	What can we find out?
133380	137040	Also, I should say, we are still not expert war drivers.
137820	141280	And some of this is showing our mistakes and the things that we've learned.
141280	146660	Please don't consider this the definitive manual on warflying, that we have solved the warflying problem.
146760	155120	This is a progress report, and this is updating what we've done and sharing some information about that.
156260	161700	Last year in the presentation, I gave a pretty good safety disclaimer and discussion of airspace.
161740	169580	If you are a pilot and are considering doing this, I highly recommend going back and reviewing that to understand those issues.
169580	172160	So I won't go into a lot of that here, but I will say one thing.
172160	175620	If you are a pilot, rule number one, fly the airplane.
175620	182480	Don't get distracted with the shiny electronic gadgets, the laptops, the displays, whatever is going on in the airplane.
182480	193140	Your job is to not run into anything, among other things, not run into towers, other airplanes, terrain, and it's low-level maneuvering.
193140	196620	So you've got to be right on top of flying the airplane.
198780	207680	And as a result of that, while it is possible to do solo warflying, we think it's best done as a team sport.
208020	210660	Hence the obligatory cockpit selfie.
211700	218560	Most of our data was collected in a Cessna 172, pretty standard small airplane.
218560	223900	Goes about 120 miles an hour, which is about 176 feet per second.
223900	228820	Has four seats, has a high wing, and it's constructed of aluminum.
229280	243260	So the high wings let us not have wireless signals blocked as much by the wings, but the aluminum fuselage construction will definitely come into play later, so remember that.
243800	248700	So last year we presented the project and were wondering, is this interesting to anybody?
248700	250200	Is this cool?
250200	251300	Is this good?
251300	253600	And we got some good response from it.
253640	256340	So we thought, okay, let's keep going.
256440	263260	Last year what we had collected was essentially a bunch of data validating that we could see some things.
263260	267060	But we didn't really know how much we were seeing.
267060	275400	We didn't really have a way to measure our equipment and validate what's picking up things well, what can be better.
275740	279740	So we wanted to answer some questions.
279740	284000	A little background on how do we even see access points?
284000	286260	Because Wi-Fi is magic, right?
286260	290100	You just turn on your phone and there's the Wi-Fi and boom.
290560	292380	No, of course not.
292380	310860	Wireless access points generally, and there can be some nuances in configurations, but generally wireless access points are configured to broadcast a beacon packet every 102.4 milliseconds, which is about a tenth of a second, on a particular frequency or a particular channel.
311260	320920	So to pick up a beacon packet, we need an antenna within radio range of the access point.
320920	332380	We need a radio tuned to the frequency of the access point when the beacon packet is transmitted, and we need something to process the incoming packet.
332440	336780	2.4 gigahertz Wi-Fi has 14 channels, basically 11 of them are in the U.S.
336960	358180	So we need to either have one radio that is constantly and as quickly as possible cycling through all of the different frequencies to pick up those packets, but there's lag and there are some good white papers that have been written by the Kismet Project on this problem and trying to cycle through this.
358180	367060	Or we get 14 radios with one radio dedicated to each channel that's tuned to that frequency that can just process whatever's coming in there.
368460	377620	So after the presentation last year, we got much better connected with the RF Hacker Sanctuary Discord and the War Driver Channel.
377620	381560	Thank you so much to many who contributed for that.
381680	385760	And several people said, hey, you should get a Wi-Fi Coconut.
386320	394220	As it turns out, there is a device with 14 2.4 gigahertz Wi-Fi radios built into it.
395680	408760	Not only that, a very kind user named Busysignal, who goes by Busysignal, offered, hey, I've got a Coconut I can send you to support the project.
408760	410100	Would you like it?
410920	412200	Why, yes.
412200	413460	Thank you very much.
413460	414620	That's very generous of you.
414620	415400	I certainly would.
415400	424140	And not only a Wi-Fi Coconut, but one of the few in the world that has been modified with an external antenna port.
424140	430620	So not only could we test the reception, we could test performance of different antennas.
431220	434600	So this is what the Coconut setup ended up looking like.
434720	442780	Gaff tape to the back of Sean's laptop, because this is a highly professional experiment.
442780	456940	Coconut was connected to Kismet, Kismet running the war drive overlay, USB-C for power and data connection, and an external antenna.
457360	467280	So looking at the setup in the airplane, put a GPS on the glare shield, so then it's got good visibility to the sky to pick up the GPS satellites.
468520	472500	First antenna that we were able to test was a whip antenna.
472500	480140	So this is mounted next to the windshield in the front right seat of the airplane.
480880	483360	And remember that, because you'll need that later.
484900	489680	It's longer than a quarter wave, so should have some gain to it.
489680	496400	We oriented it vertically, hoping that most of the access points had vertical polarization.
496400	501220	So the effective radiation pattern that we're expecting from it is basically a doughnut.
501220	508680	So it's going to be omnidirectional, and we'll get whatever is coming that we can see from whatever direction that is in.
510080	518360	Antenna number two is a panel antenna, and the radiation pattern of that is basically straight out the face of the antenna.
518360	522040	This also was taped in the front right seat of the airplane.
522040	529640	Sean actually put some quality gaff tape on the window, and then taped the antenna on over the gaff tape.
529640	538020	Quick note, if you're doing this, be careful and use high quality gaff tape, because aircraft windows are absurdly expensive.
538020	544780	They're plexiglass, but anything that gets attached to an airplane is like ten times the price that it should be.
544780	549300	So you don't want to go damaging your windows for the sake of taping an antenna to them.
549300	551960	So please be careful with that.
552760	558140	I'll note there are some... I'm here reporting some mistakes that we've made.
558140	563660	Looking at this picture, I realize we actually have this antenna mounted backwards.
564020	570440	So the reception that was supposed to be going out the side of the airplane is actually coming into the airplane.
571280	577920	So we do have some reception off the backside of the antenna, but not as much as there should be.
577920	583220	But effectively, still, our reception is going straight out the side of the airplane.
584040	585620	So keep that in mind.
586160	588080	Question... oh, and one other thing.
588080	592860	We said in the Discord we actually were given a Yagi antenna.
592860	599420	We unfortunately have not been able to make that work with the Coconut yet, and so we really, really want to do that.
599420	603220	And it didn't work, so bummed about that.
603220	605420	Why haven't you put an antenna outside the airplane?
605420	607180	I dearly, dearly want to.
607180	618140	But when you start attaching things to an airplane, both the level of paperwork and the level of safety that has to be considered go up substantially.
618580	627980	And the guidance on this is not that great, so I haven't figured out how to do it both legally and safely.
627980	642100	Because I really don't want... for one thing, anything mounted to the outside of the airplane has to be able to withstand sustained 150 mile an hour winds.
642440	647580	I don't want to lose an antenna off the airplane and have to call the control tower and say, Hey, we think we lost an antenna.
647580	650580	Can you shut down the runway and go do a FOD inspection on it?
651660	654620	I don't want it to fall off and hit somebody.
654620	660920	I don't want it to fall off and go back into the flight controls and mess with the control surfaces.
661140	662360	So I would love to do this.
662360	670080	If you have any experience with this, if you're with the FAA and have any information about how to do this safely and legally, please let me know.
670080	672320	Because I would love to do that.
673440	678040	As a control for reference data, we also ran my phone running Wiggle.
678080	681220	Left side of the airplane, there's a little grab handle by the window.
682640	686640	And I'm expecting that the Wi-Fi antennas on the phone are near the top.
686640	693100	So they can see through the plexiglass, hopefully, kind of, sort of, well, going down to the ground.
694360	696840	Oops, that was too fast.
696840	697740	Okay, let's go fly.
697740	699760	So this is a view from Sean's seat.
699760	703900	This is flying over Metro Detroit at 1500 feet.
704720	711120	And then his side of the airplane, you can see the WIP antenna mounted there.
711760	721040	So one of the things that, one of the big things we wanted to do this year was create some visualizations to see what the data was looking like.
721040	725660	So I did, as the cool kids call it now, some vibe coding.
725660	734980	And generated some Python scripts to take the data points that we were seeing because we're basically working with Wiggle CSV files.
734980	742860	Because the Wiggle app exports those nicely and Kismet, whatever data it collects, can also be exported to a Wiggle CSV file.
743500	746460	So, collected a few different metrics.
746460	750400	This is a whole flight just from my phone.
750400	755820	We've got total points, unique max, and I apologize in advance for the eye charts.
755820	758380	Although these projectors are nice and big, so hopefully.
758540	763120	Also, this will all be posted on GitHub and I'll post links in the RF Hacker Sanctuary Discord.
763120	766080	So you can go back and look at these a little more closely if you want to.
766080	769100	Total max, unique max, some time.
769880	772780	Last year we introduced the max per minute metric.
772780	777960	So this was 441 total max per minute and 106 unique max per minute.
777960	783160	And then I did some experimenting with detection categories of how many times we saw a particular access point.
783160	793520	Because one of the questions I've been wondering is, how much time do we have that we're able to see a particular access point and how fast?
793520	801180	Because we're moving 176 feet per second past whatever we might be trying to detect.
801180	811580	So it was interesting to see and it worked out pretty well to break it down into 1, 2, 3, 4, or 5 plus detections and then categorize the detection points that way.
811580	814780	So you can see based on the colors how many times we saw it.
814780	817140	And then some distance calculations.
817280	825340	These are the max distance between any two particular detections of a particular MAC address.
825340	832240	So this is not necessarily how far we were because we don't know where the access point is.
832240	835820	We know where we were when we detected it.
835980	848920	But even with my phone for this run, there were 34 access points that we were a maximum at least two miles away from in our detections of it.
848920	853400	So we were at least one mile away from those access points.
853400	860080	So then this is the beginning of collecting the data with the Coconut started with the WIP antenna.
860080	863980	You can see some breaks in the data where the antenna was getting connected and disconnected.
863980	870760	Got that going and then Sean tested the panel antenna and we collected this.
871620	873700	And then went down.
873700	883560	So this slide we're showing I'm flying from north down to the south and then I'm flying right handed turns.
883860	888240	So most of the data that we've been collecting so far has just been in lines.
888240	893780	So we can see alongside or along that line where we saw the access points.
893780	901040	But we wanted to start to see can we try to fill in this map by detecting the same access points from different directions.
901040	908290	So flying right turns you see that those loops started to fill in.
908800	917540	And we start to get some two dimensionality to our map and probably some better location information about where these access points are.
917540	920300	Also keep in mind these turns were to the right.
920660	927520	So we're passing things on the right and the panel antenna is mounted on the right.
927520	933320	Also we're banking the airplane to the right because when you turn an airplane you bank the wings.
933320	940940	And so that points the lobe of the reception, if there is one, that points it down more towards the ground.
941740	947900	As a comparison looking at my phone, not nearly as much data collected by my phone.
947900	954200	Oh yeah, also 278 max per minute which I think is the top that we saw on any of these data collection runs.
954420	956700	My phone, not nearly as fast.
956700	965780	The other thing to note with this is we did start to see where we were passing things that we'd already seen on the left.
965780	968640	We started to see those filling in.
969360	971880	And then wanted to go fly some circles so I did.
971880	973340	This was a solo war flight.
973340	988820	I bothered the good citizens of Lake Oregon, Michigan on a Saturday morning and went to try to fly some circles to see where, where can we, at what point can we start to fill in that map of detections.
989180	992420	So then we decided to do a test with a grid pattern.
992820	997620	Comparing the coconut with the whip antenna, coconut with panel antenna.
997620	1004340	I kept writing coconut with whip in my notes and I'm like that kind of sounds like a good dessert but coconut with panel just doesn't have the same ring.
1004340	1006740	Anyway, then comparing those to my phone.
1008020	1017560	Flying over the northern suburbs of Metro Detroit, approximately 10 mile east-west legs and approximately one mile north-south distance between the legs.
1017560	1026380	There's nothing magic to that that just happens to be about the distance that you get when you do a relatively benign turn flying in a 172.
1026380	1031960	And so we tried to fly approximately the same pattern twice.
1032440	1037340	So this is the first run with the panel antenna and you'll notice some burbles there.
1037340	1043140	Some of that is not me flying perfectly straight because I'm just, don't have an autopilot, just hand flying all of this.
1043140	1046000	A couple of those burbles are there's traffic going in and out.
1046000	1061940	So we were talking to Detroit Approach Control to get, to make sure that we were, to get traffic advisories and watching ADS-B, which from a privacy and security perspective is terrible and from a safety perspective is awesome.
1061940	1070220	Because I could see stuff on foreflight, already planning, Approach Control calls up traffic, okay, we can resolve that.
1071820	1080640	Panel antenna, then this is the WIP antenna and you see again where we're passing things on the right that we've already passed, those start to fill in.
1080760	1084780	And then I wanted to compare the two so I came up with this visualization.
1085780	1089740	Blue dots are data set one, and this is comparing two Wiggle CSV files.
1089740	1097300	Blue dots are data set one, yellow dots are data set two, and green dots are points that we saw in both data files.
1097300	1105420	So for the panel antenna and the WIP antenna with the coconut, we saw a lot of green.
1105640	1115000	For the panel antenna, or for really for both of the coconut runs compared to the phone, we saw almost zero overlap.
1115000	1122620	So one of those things this really strongly tells us is the fuselage of the airplane is blocking reception from the opposite side.
1122620	1125920	Which we expected, but this really tells us that.
1125920	1133240	And then I also was comparing the performance and noticed that the phone was doing way better than I expected it to do.
1133620	1143320	So when all else fails, go back to the source data and realized, oh wow, the channel numbers in the Wiggle CSV file are really high.
1143540	1148100	Oops, I've been collecting 5 GHz data too, in addition to 2.4 GHz data.
1148100	1157860	And so I went and checked and ran, separated out the 2.4 GHz, the 5 GHz, realized I was collecting about five times as many access points on 5 GHz.
1157860	1166600	So wow, there's a lot of 5 GHz out there, because I was thinking 2.4 GHz should be enough for anybody, but apparently wasn't right about that.
1167220	1169200	Can you warfly from an airliner?
1169220	1183380	This came to me in the clarity of thought that only comes when you're half asleep on an airliner at midnight coming into DEFCON last year, and realized, I've got my phone, it's in airplane mode, but I can get GPS, and I can get Wi-Fi, and I'm sitting by a window seat.
1183540	1185300	Hey, let's fire it up and see what I can pick up.
1185720	1195360	And of course it lit up like a Christmas tree with all the access points on the airliner, but I was able to filter those out, and it turns out you can warfly from an airliner.
1195360	1197200	At least I hope you can, because I have.
1197200	1207640	You don't get a lot, but you get some data, and so this is something simple, accessible, if you happen to have a window seat.
1207640	1212020	You know, let's make Wiggle a little bit more 3D.
1212560	1214320	So did that a few times.
1215960	1222880	000D97, last year when we were doing our data collection, looking at statistics for maximum ranges.
1224060	1230460	Access points with the OID 000D97 kept popping up as some of the top distances.
1230460	1235480	So I went back, and I still don't know what they are, but was curious how they would show up.
1235480	1242220	So I took all of our data files and just gripped out that OID, and this is the map.
1242220	1243620	So there are a lot of them out there.
1243620	1247060	If you know what these are, I would be very interested to know.
1247900	1254120	And then for a final test, we wanted to compare war driving versus war flying.
1254120	1257220	And since we are from Metro Detroit, we love Woodward Avenue.
1257580	1266320	So Sean fired up his Honda Civic with the same laptop running Kismet and the Coconut.
1266320	1270340	And I had the panel antenna at that time, so he used the whip antenna.
1271480	1272920	Wardrobe Woodward.
1273760	1284740	And so we see this is the direct comparison of war flying the same route versus war driving the same route with the exact same setup.
1284740	1290220	The whip antenna, the Coconut, and Kismet.
1290820	1302140	And came to the same conclusion as last year, that war driving picks up more access points, but war flying picks them up faster.
1302140	1314300	And there is a fair degree of overlap here of access points that were seen by both the war flight and the war drive.
1315360	1326440	Comparing then, war flying with the panel antenna versus war driving with the whip antenna, the interesting thing is here there is almost no overlap between those.
1326440	1339080	So we really think that the gain pattern of the panel antenna that is supposed to be shooting straight out the side of the window, is picking up access points that are a lot farther away.
1339520	1353460	And so one of the things that we want to experiment with going forward is different angles of the panel antenna to try to get better reception closer toward the ground because we are 1500 feet up.
1353460	1364280	And so it is a bit more distance horizontally before we would pick something up on even the lower lobes of that.
1364620	1370740	And then finally, comparing the panel antenna versus the whip antenna.
1370740	1376820	These are both war flights with the Coconut and we see more overlap here.
1377000	1382400	We see definitely better performance with the whip antenna, which was surprising to me.
1382400	1390720	But again, we think it is pretty clear that there needs to be consideration of the orientation of that antenna.
1392000	1393840	So what did we find out?
1393840	1396160	Phones are definitely usable for war flying.
1396160	1405080	So if you are a pilot, if you have a friend that is a pilot and want to go do this, don't think that you have to go set up a big war driving rig.
1405080	1421780	As much as I would love to get a good busy signal rig into the back of the airplane and go war fly with it, you can go collect data, have fun, but be safe and don't let the phone distract if you are trying to collect data while you are war flying.
1422340	1427520	The fuselage of the airplane, I think we have got really good data that it is blocking a lot.
1427520	1431480	So we have got to be very careful with how our antennas are placed.
1431480	1434660	Again, I would love to get an antenna outside the airplane.
1434660	1436280	I want to get the Yagi working.
1437140	1439760	And the antenna orientation definitely matters.
1440120	1441460	So thank you.
1441460	1442720	Thank you for coming.
1442720	1443480	Thank you for listening.
1443480	1449780	Thank you to the RF Village for the opportunity to present to the RF Hacker Sanctuary.
1450380	1453380	That is a super fun Discord server.
1453380	1458060	Thank you to Busy Signal for providing us with the specially modified coconut.
1458060	1465800	Thank you to Detroit Approach Control for letting us go fly some really weird patterns in your airspace.
1466000	1474440	And thank you to the Wiggle and Kismet Projects for creating some great communities and some great tools to let us go collect this data.
1474920	1475720	Thank you.
1475720	1476640	Enjoy DEF CON.
