Good morning, happy Sunday at DEF CON. Thank you for coming to our talk, because we can. Warflying in a Cessna. I'm Sean McKeever. I'm a senior security researcher, and I do other stuff from Metro Detroit. Sometimes I race cars. Matt Thomason, also Metro Detroit. My day job is in security and has pretty much nothing whatsoever to do with warflying. I am also a commercial multi-engine pilot, instrument rating, and licensed airframe and power plant mechanic. And all of the opinions are expressed here are our own. And probably have nothing to do with our respective employers. I didn't even tell them I was coming. All right, so the story. It's November 2019, and I was awash in a sea of mats, this was our cube area. I had a mat, and a mat, and a mat, coffee, and then a not mat. So we're sitting around, it's, you know, like I said, November, DEF CON had come and gone, 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 about work. What else are we going to talk about? Matt goes, I have a plane. Oh, Wi-Fi? Yeah, let's do that. And then 2020 happens. So, you know, we did finally get together and do it. Warflying, it's like war driving, or war dialing, or as in greetings, Professor Falcon. We're looking for wireless access points from the air. And there are unfortunately no weapons involved. Unfortunately, I said fortunately. Fortunately, yeah. And so we're warflying into Cessna, not these Cessnas. Cessna has actually made warplanes, but we weren't using those. Although the L-19 on the bottom is kind of close. If somebody wants to donate an L-19 for further research, please see me afterwards. Our Cessna was more like this, Cessna 182, not this airplane, because I think that one's registered for, not in the US, but four-seat airplane, high wing, which gives us a little better visibility to the ground, 230 horsepower engine, cruises comfortably around 150 miles an hour. And one nice thing is we've got six hours of fuel. So with reserve figure five hours, we can go for a long time, long distance if we want to do such. A few disclaimers. This is not legal advice. Neither of us is a lawyer. This is not flight instruction. We are not flight instructors. We are also not expert war drivers, but we are grateful to the war driving community that has made great tools like Wiggle. And many of those people are over in the RF hackers village. And we're not the first to do this. During our research found that about 20 years ago, somebody wrote a paper on collecting data on wireless access points from the air, but there doesn't seem to have been a lot of discussion or work on the topic since then. So we thought it was worth doing some experimenting and firing up the conversation again. Why would we do this? Big reason, three magic words, line of sight, radio frequencies, especially in the wifi ranges are very subject to interference from the ground, from objects, vegetation, buildings, houses. Am I hopefully doing okay with my mic position here, but am I, is that better? Okay. Hey, okay. I should know how to do this. Anyway. So trying to raise one end of the device on the end of the radio conversation, potentially we have much greater distance and much greater line of sight and airplanes are cool. Radios are cool. We were curious. Maybe we can see a lot of access points quickly. And there's a fair amount of discussion right now about the interaction of aircraft and RF and what radio signals can do with those. So we thought it was an interesting topic to explore. A few constraints we'll talk through. One, safety. And I'm going to belabor this a little bit because I don't want to read any NTSB reports about somebody who crashed an airplane trying to look for wireless access points. So seriously, the job of the pilot in this is fly the airplane. And this is often expressed in aviation as aviate, navigate, and communicate. First job, aviate, which is keep the airplane flying, keep the shiny side up, keep it at a proper airspeed, don't run into anything. If and only if you are successfully aviating, then figure out where you are and figure out where you're going. If and only if you are successfully aviating and navigating, then maybe think about talking to somebody on the radio about what you're doing. At no point in here get distracted by scanning equipment, shiny electronic displays in the airplane. Ah, that looks cool. Particularly during critical phases of flight, taxi takeoff, approach, landing, and low-level maneuvering, because when you're doing warflying, you may want to be down closer to the ground and that increases risk. Is it possible to... or so because of this warflying, we think is best done as a team sport because, hey, it's more fun to share the flight with somebody anyway. Is it possible to warfly safely while solo? I think it is. We'll talk about the details of that a little bit later, but obviously we want to be watching the constraints. I will mention this issue specifically as a reference to why I'm concerned about this. Not that long ago, not very far away from where we live, there was a Cessna 182 that crashed and based on the NTSB report, there's strong evidence that the pilot was in the process of taking a Snapchat video and making a post and got distracted, got a little left of the course, flew into the guy wires of a tower, crashed and died. So distraction, especially at low level, especially during low-level maneuvering, can be fatal. So please, please, please, pilot, fly the airplane. And if you are flying with the pilot, as the scanner, if the pilot is not comfortable doing something, don't do it and don't distract the pilot. Regulations, basically the FAA says it's the responsibility of the aircraft operator to determine if the portable electronic device will interfere with the operation of the aircraft. So as a pilot, figure out will this interfere with the operation of the aircraft. Also, remember FAR 91.3, the pilot in command of an aircraft is directly responsible for and is the final authority as to the operation of that aircraft. So if you are the scanner, the pilot's word is law on safety things. Also, 91.13, the great catch-all, careless and reckless operation is prohibited. So don't do anything stupid while you're flying around trying to collect access point data. FCC perspective, FCC basically does not want cell phones in cell phone mode trying to talk to cell phone towers while flying around. So put your phone in airplane mode and you can still have your Wi-Fi on, have your GPS on, which are what you need for collecting wireless access, wireless access point data. Where can you war flight? Know your airspace. So we're from Metro Detroit area and Detroit Metro Airport has this nice big thing called a class Bravo airspace, which you can visualize as an upside down wedding cake centered around the primary airport. And the class Bravo airspace is well-protected and you can only get in there with explicit permission if you're on either, if you're on an instrument flight plan or if the approach controllers say you can come in here. This is a very good safety thing because it lets all of the airliners get in and out safely, heavy traffic areas, and it works well. For what we're doing, we are probably not on an instrument flight plan unless we happen to be war flying while we're going somewhere. But if we're trying to gather data about a specific area, we're probably operating under something called visual flight rules, which means we're doing our own navigation and we're responsible for our own traffic separation, but we've got a lot of flexibility in where we can do that. But we need to stay out of the class Bravo for sure. And then there are smaller airports that we want to be watching for so we don't go get in their traffic patterns and runways. Pontiac Airport that we fly out of is a class Delta, so they have a control tower. They own that airspace. They're pretty nice and flexible on working with us for maneuvering that we need to do. And so you have a lot more options out of class Delta airspace, but at the end of the day, it's their airspace, so we have to comply with what they want. Over populated areas, it's legal to fly 1,000 feet. You have to stay 1,000 feet above the ground. Over unpopulated areas, you can go down to 500 feet. Where we were trying to fly, like over the suburbs of Metro Detroit, we basically had an area between 1,000 feet and 3,000 feet above the ground that we could get in to maintain clearance above the ground but stay below the class Bravo shelf. So that kind of constrained where we were able to go, but we were able to collect some good data. Also, an airplane is a metal box, or at least a lot of them. Cessna 182 is an aluminum box with Plexiglas windows. So we want to get the radios up out of the aluminum box and put them as close as we can to the Plexiglas windows so that they can receive Wi-Fi. And that was one of the things that we were curious about, how well does this work if we're inside the airplane and just getting the radios through the Plexiglas? So next year, I'm going to be outside the airplane? Yes. Yeah, we'll attach a safety line though, so it'll work well. Optimally, the antenna would be outside the airplane, but you get into some issues with regs and safety and stuff. One, if you're trying to permanently attach them to the airplane. And two, just practically, you don't want to try attaching it and then have it not work and fall off. And then you're calling the tower saying, hey, can you see if my phone fell off on the runway? Okay. Also, from a privacy perspective, this is probably the least stealthy way to war drive because you're in a big metal box making a lot of noise, flying over everybody's head with a 12-inch tail number on the back of the airplane and constantly chirping ADS-B packets, telling everybody exactly who you are and exactly where you are. People will call and complain about aircraft doing annoying things. So please be a good citizen. Don't be a jerk. Don't go buzz people's houses. Probably don't go orbit somebody's house 10 times because that can collect some negative attention. So yeah, data collection. We did a series of test flights, kind of figuring it out as we went. The first flight we took one phone, this Google Pixel, which thankfully my girlfriend had to use because my phones are Apple, but we put wiggle on it. I just kind of held it in my lap and we kind of flew around. Largely 1,500 to 2,500 feet at roughly 150 miles an hour. And, you know, where are the access points? We don't know. We know where we started seeing them and where we stopped seeing them. So we kind of have like a blob for each one, but we can't say, oh, that's at Sean's house down there. If we can see them more than once over multiple flights, we could maybe pinpoint it a little better, but it's very inexact. So for our first flight, we took a three passes down Woodward Avenue, which if you're a fan of cars, it's where they have the Woodward Dream Cruise. And, you know, we're from automotive. It's also Highway 1 in Michigan. We did two at 2,500 feet above sea level, which is 1,500 above ground. And then one at 3,500, which is 2,500 feet with just my Android phone running. And this map doesn't make a ton of sense to me because I'm not a pilot, but you can see the various airspaces that we were operating in and the orange-yellow squiggles are actual flight paths. But for me, this makes more sense. This is actually a roadmap of where we were flying. So the circles you can see on the right side, that would be our laps around Woodward. So data formats. Wiggle has their own proprietary format as a KML file, but they'll also output a CSV. We get one entry per observation out of Wiggle so we can track how many times we saw a specific point. And it also includes altitude, which is nice for us. So we can correlate also that to our flight plan and where we were and whatnot. And then what counts as airborne detection? Because we're seeing, as soon as we fire up the phone, we're seeing things. So we cap that at 500 feet above ground level is when we're going to consider it. We caught it in the air. And then we got home and we looked at the data and went, oh, there's a lot. I wasn't a lot more than we were expecting. And full disclosure, we both used GPT to help us with some Python to figure this stuff out. So on our first flight, again, our maximum altitude, 3,500 feet, we were in the air for about 32 minutes above 500. And we caught 2,822 unique BSS IDs or MAC addresses while we were in the air, which is 88 per minute. How far away? We did a lot of, like, mathing, trying to calculate distance and such. And I was curious what the official spec is. The Wi-Fi Alliance doesn't really say explicitly Wi-Fi is good for this range, but it's about 150 feet. We kind of went past that quite a bit. So this is our first attempt to analyze the data. And if you look at it a little closely, you'll notice we have the same distance for every single device that we caught, right? The first sets of them. The first sets of them. So then we flew again. We took a second flight and this was your flight, right? Yeah. So then I was asking the question, is it okay to warfly safely when you're solo? And I needed to go do some takeoffs and landings. So I thought, well, hey, maybe I'll fire up the phone. So what I did, my procedure was fire up the phone during pre-flight, before the airplane's on, start Wiggle, leave it there. Don't touch it. Don't mess with it. Don't worry about it. And then go fly, come back, shut the airplane down, get everything good, then check the Wiggle data. And that worked. So for this, I went to the, there's kind of a Northeast practice area that's over an unpopulated area. A lot of flight training activity goes on up there. So I went to see what I could collect. Went up to 2,500 feet, 54 minutes, just under 6,000 access points for a rate, which, and I think this is a unique metric that nobody else has published. I could be wrong. I don't know. Maybe the war drivers do it, but max per minute. So got 108 max per minute. Test three, similar exercise, just going up, flying around a little bit. Myself had the phone mounted the same way and got, went up 6,500 feet, about 7,000 max, 130 max per minute. And then was working on the distance analysis and saw for that flight, we had over a dozen where we had a starting and ending range where we saw them over a range of over five kilometers. So we were seeing them from a couple miles away, pretty sure. Top access points on this one, the top was nine kilometers and then saw several of these 000D97s. And I don't know what they are, but it's registered to Hitachi Energy USA. So we're wondering if it's some kind of IOT energy distribution, something. We did talk to the ICS village folks and they said, yeah, probably so. Test four, biennial flight review. The quick story on that one was I was with an instructor, but didn't have time to pay attention to the phone. Got back and I just put it in my flight bag to see what would happen and got back and realized that I didn't have any data. So the thing was, or the bad thing was we lost the data. The good thing was I demonstrated that I was not getting distracted by the phone. And then, thank you, don't get distracted by the phone. Test flight number five, there is a path that you can take that's kind of a scenic river tour that avoids the controlled airspaces in downtown Detroit. So we decided to do that for our next test flight. And fun for flying, you get to take pictures like this. So we decided we're using two phones. Can we, you know, get data a better way or a different way? So I also brought along a laptop running Linux with Lin SSID on it, stuffed a USB Wi-Fi card in the window. And then you can see again, my pixel in the handle of the plane. Matt's Android was on the other side of the plane in his his handle. And so we started counting MAC addresses at different altitudes through Lin SSID and correlating that with Wiggle as well. So with Lin SSID, I got 10,208 unique MAC addresses. Wiggle on my phone was super underperforming on this flight for some reason. It only got 2,753, but Matt was able to grab again, almost 8,000. And then we again, tried to do distance analysis on it. So we've got again, are topping out at almost 10 kilometers, but most of them, you know, five or six. And then I broke down the Lin SSID specifically as well. And one thing when I Lin SSID, you can tune it, I turned it all the way down. So it would sample constantly. That was a really bad idea. I had two gigabytes of data to try and wrangle. But here's a list of the longest duration SSIDs. I was able to catch out of Lin SSID. I still have the MAC addresses or the BSS IDs. But yeah, the Krusty Krab is apparently a really long range Wi-Fi network in Metro Detroit. And a minute and a half observation is about five and a half kilometers. And this is that same flight plan, right? Yeah. So this is the flight plan. So we wanted to compare altitudes. So we basically, so I was using ForeFlight. So flew kind of an S pattern over Lake Orient and Oxford, Michigan. Thank you to the citizens of Lake Orient and Oxford for letting us bother your skies that day. One path at 2,500 feet and then climbed up to 3,500 feet and tried to just follow the same path. And you see how well I did or did not do. So at 1,500 altitude of 1,500, we got 101 again, max per minute. When we increase that by a thousand feet, we're getting 49. So you can see the signals are starting to degrade the higher we're getting, but we're still getting some significant traffic. Oh, I'm sorry. I'm hitting the wrong button. So yeah, did we go too fast? I don't know. I don't think that's a thing you can do that's got too fast, but yeah. So this was one thing that we would like to explore more is what is the speed? Because we were going about 220 feet per second horizontally. Wiggles seem to be taking samples about every five seconds. So that's about 1,100 feet per sample. So that may have impacted our ability to scan. And then we still had this kind of nagging question. Are we seeing a lot of data? Are we seeing more than we should be? Are we seeing less than we should be? So we decided to do some more driving. And since we love Woodward Avenue, we decided to go do a ward drive from 11 Mile Road to Square Lake Road on Woodward, which is a distance of 9.8 miles. And you see the results there. Ward driving, we took 14 minutes to cover that path, speed of 42 miles an hour, and we observed 2,210 MAC addresses for a rate of 157 MACs per minute. Or flying, we went a lot faster, covered the distance in 4 minutes at 148 miles an hour, got about a third the number of MACs. We got a lot less MACs, 783, but we collected them a lot faster at 197 MACs per minute. So our conclusion from that is that, at least in this case, ward driving collects more MACs, but ward flying collects them faster. So take your pick. I would say flying is probably more fun. So yeah, a little more distance analysis. This is on the stretch down Woodward Avenue, which we had a discrete starting and stopping distance without any overlap, so we could get a clear measure of how long we could see a signal without worrying about, oh, was it looping around and whatnot. So again, our maximum distance here is about 4 kilometers. What I find, one of the things I find really interesting, again, we got a car and then Uconnect based on a past thing I used to do. I know that's... We love Uconnect. Right, I love Uconnect. Yes, yes. But so we were able to catch cars from the air while we were flying down Woodward. So this is, sorry, this was the ward drive. Oh, is that the ward drive one? Yeah, this is the ward drive one. And so what we see from here is the distance, because we were, like, our top distances on the ward flying were like 9 kilometers, 5 kilometers. These are down to like 4. So we're pretty sure we were just tracking cars. And then our old friend 000d97 shows up again. Something fairly visible from wherever, but we were getting a lot less distance clearly with the ward driving versus the ward flying. And then... And then when you fly, you have to take a cockpit selfie because it's cool. Right. I can be like... It's so cool. I was flying. You got to do it twice. So yeah, further investigation. You know, different speeds and altitudes. I would really love to just, you know, every 500 feet, same route and all that. But that takes a lot of time, uses a lot of fuel. Aircraft construction. Do we get better results if we're in a composite aircraft without metal wrapping around us? And if somebody wants to donate a Cirrus for further research, please also see me afterwards. Hardware platforms, maybe using some drones that could carry a payload, antenna placement, additional radios, and then directional antennas, etc. Yeah, so that's what we got. So thank you. Thank you all for coming out. Thanks to Pontiac Tower and Detroit Approach for working with us, even though they had no idea what we were doing up there. Thanks to all the mats. There were more of them. Yes, their mats at the Aerospace Village were all over the place. All right. Thank you all.