Hello, everybody. Thanks for joining me this afternoon. My name's MonkeyDragon, and I'll be talking a little bit about some fun shenanigans that took place on commercial airlines. So, I'm a blue team operator. Do some threat hunting, forensics IR, just had a lot of fun with things. And also, really love war driving, so if you guys do, come check us out. I think Mr. Bill in Segfault will be talking about war driving a little bit later this afternoon. So, definitely stick around for that. So, how many folks in the audience have flown recently? I have to suspect a number of y'all. Great! Awesome. Of those folks, who all happen to use in-flight connectivity? Okay, alright, cool. Let's talk a little bit more about that, shall we? So, before diving into it, just a couple of terms, just so we have them. In-flight connectivity and in-flight entertainment, IFC, IFE. And then for the portable electronic devices, I'll probably be calling them PED or P-E-D. And then I did want to call out the DER, which is the Designated Engineering Representative. And this is an FAA-approved representative. And it comes into play with dealing with any sort of systems that need to be integrated into aircraft, which are going to be our in-flight entertainment systems. And a quick distinction. So, evil twins are access points that pose as legitimate networks, and they'd want to get people to connect to them to do some mischief, whereas rogue APs are unapproved access points that are connected to the network, whether by actors or potentially rogue IT. That out of the way, I had a fun thing last year where I had actually started building this talk, an idea about the term raw-dogging, and apparently there was an article on CNN about raw-dogging airplanes. And so I wanted to put that in there as a little bit of an LOL moment, to kind of set the stage here where it's like, hey, you've probably got extra work to do, so if you're on the plane, just chill out and look out the window. Maybe do a little bit of digital detoxing. Moving on. Let's see here. Pardon. Okay, so I want to go ahead and paint a picture. You're at the airport, right? We're all in a rush. Whether that's trying to get somewhere, you've got your family, you might have a presentation that you've got to get together that's probably already due because your boss sprung it on you last minute. So a number of different reasons why you'd probably want to connect to the Wi-Fi on a plane. And in doing so, you've probably tried to connect to it maybe as you're getting to your terminal, or you might be in a situation where that plane actually provides service from gate to gate compared to some that are just offering services at cruising elevation. And so you connect to your device in a rush, you see a portal, kind of like, whatever, I'm pretty sure that was Hardhat Brigade Airlines. Absolutely, let me go ahead and connect to that. Not paying too much of an attention to it, but there might be some kind of shenanigans. Oh, and Darknet. Who likes Darknet diaries? Absolutely, yes. Make sure to connect and catch up, I know I need to, I've been a bad boy. So moving on, let's talk a little bit about airplanes, right? So we've got a complex kind of mixture of avionic systems that help keep this airframe running smoothly. And so the DER comes into play to integrate systems that provide us the connectivity that allows to reach back to the infrastructure, whether that's terrestrial connections through, say, mobile services, or if you're over the sea, it might be through satellites. So those systems need to get that sign off from the DER in order to incorporate it and ensure that these flight systems are safe, so that we as passengers knowingly get onto them, can fly and enjoy that in the kind of comfort knowing that we're going to get there. And so I wanted to make sure I called those DERs because I have a few friends that are, and they're pretty sharp. I like those fellas. And ladies, they're all of them. All of them. So back to you, old cabin. We've got, right, we jump on, we connect. So what are the components that comprise the in-flight entertainment or in-flight connectivity system? Probably going to have a server on board and a modem, most likely. And so those devices will collectively provide you with the services that you're going to see on there, whether that's going to be music, maybe texting services, data, et cetera, et cetera. In addition to that, you're going to have the access points that you're connecting to. Some planes have a handful of them, some maybe a couple, some quite a few more. So one of the things as a blue teamer is that it really helps to understand what that infrastructure looks like on the aircraft. So as you start to dive in to the logs, you kind of really get an understanding of what you're seeing as it comes into play, because chances are you might be using just kind of built-in detections. You might have some curated detections. But in order to really understand what's going on there, having a bit of an understanding of what that infrastructure looks like is very beneficial. I will say that it's a good time because I get to talk with engineers that help design and build those systems, and they're stellar. And it's a great way to kind of understand how everything comes together. And that helps us kind of formulate processes and ideas with which to kind of add and improve to the security of those systems, so that all of us that get on there can actually enjoy ourselves and not worry about whether or not you're connecting to whatever it might be. So going back to connecting, was it hard to have brigade airlines that you connected to? And if you did, what kind of stuff was in that captive portal, right? Name, email, put any password, did you happen to pay for anything? And if it felt kind of weird in the moment, thinking back on that, oh my gosh, what if that was an evil twin that you connected to? That's a little bit disconcerting. So evil twins. Last year, some fella decided to get up to no good and started broadcasting evil twins on an airline down in Australia. And so this is the actual article pulled from online talking about that. And this person had decided to throw up a captive portal and do a number of things that are kind of outlined in this article. And they actually do a really good job trying to define appropriately what an evil twin is, so that any of the folks that don't understand what these different terms are with regards to what that environment looks like, to kind of just help remind folks, like be attention, be attentive, right? The kind of things that will often relate to our friends and family and coworkers and cohorts as they go about their day. And so, yeah, this is kind of, I think, one of the first times, if I recall correctly, the actual, the NBC article called out that I think it was the first time that somebody had actually been caught performing this attack and actually kind of brought to any sort of justice. Oh, snap. Snake's on a plane. So, talking about being wary of those connections, right? So, you've recognized that something's a bit off, right? It felt weird connecting to that access point. And, dang it, what the hell did I put in there? So, if it feels off and you're not quite sure what's going on, talk with the in-flight staff. It's their job to kind of relay, like, oh, okay, we've got a situation going on. They can talk with the passengers. They can relay that information back home so that your security engineers can take a look at that at a later time. The tough thing, right, I talked about earlier. You've got scenarios where you'd connect while you're actually at cruising altitude. And then there are those scenarios where you might be able to connect at the gate, right? For anyone that's flown out of San Diego or anywhere that's got Southwest, a lot of them have services gate-to-gate. And so you think about the opportunity for an actor to perform an evil twin attack, which, while I would suggest it's kind of a rough place to do that kind of stuff because it's a contested area. But, again, if you're doing that in a tube flying in the sky, you've got nowhere to go. It's bad. It's a federal offense. Don't do it. But there are still going to be people that do that that aren't doing it for research, for those companies that have actually hired them to do that. And so it's no good. So let's go hunting. Again, be aware about the infrastructure, and that'll kind of help get you curated into going, OK, what am I looking for, right? There's tons of data. You figure if you're in some sim looking at all the logs coming through, syslog, all the authentication events, maybe perhaps there's transactions between the clients and the infrastructure on wing. They might be monetary transactions, all sorts of things. Those are stuff to look for. And detections. So there are tons of detections on there. Some of the pre-built ones can be very beneficial. I've taken a look at ones that we happen to use and ones that maybe a lot of our competitors might use. And there are some good ones, and there are some that are rather confusing. And it's really understanding kind of how everything ties together. So playbooks are very important. Having good defined definitions of what those detections are can be very helpful. Let's see... Pardon. It's been a long day. So yeah, be really aware of what all these events look like in your sim. So as you start to tie together everything and kind of start to correlate what's going on, you're going to start to kind of build that idea of what's going on in the environment, right? You've got your idea and say, this is what I'm going to hunt for. And so we're going to go ahead and start off on that. So what detections? I'm thinking about it with some of the providers out there. There might be Ruckus. There might be Ubiquity. There might be a number of other ones, right? And so some of the things that might be beneficial are looking at ad hoc networks that show up. And those could be perfectly benign, right? I'll talk about that a little bit later. AP impersonations is going to be a thing that we tie into in any sort of rogue AP events. And one of the interesting things is that if we think about kind of the layout at airports, where you've got airlines from the same network kind of parked next to each other at the gates, you're going to get some cross-contamination on your data there, because you figure, hey, I've got an airplane broadcasting a SID that I'm broadcasting, and that's not a MAC address in my whitelist. So you're going to get events like that. So there's going to be a ton of noise. And it can be a pain if you're kind of not aware of that as you look at the logs just kind of blindly. And so let's kind of look at what some examples might look like. These are fun and bogus, of course, because, I don't know, AI is fun to use. And so if we look at it, we've kind of got a little bit of context built here. As we can see, right, typical things, time events, and we get some sort of warning here letting us know that there's a rogue AP in this particular building. A lot of the times you're going to get some good information. Sometimes you won't. Thankfully, the events that I think many of the folks on the team that I'm on have looked at have had good, useful information, and that's probably due to the engineers that are actually putting in the work beforehand and actually sending that data to the logs. So definitely high-five your detection engineers. And then moving forward, we've got a little bit closer to what may have happened here where we are detecting an impersonated AP, letting us know that, hey, hard hat brigade, free. While it is a legitimate SID, we've got a BSSID that some folks in the audience may recognize the first three octets on that MAC address, so that might come into play later. Seems all right. Maybe it doesn't. So here's where things kind of get interesting. If you've got a rather noisy environment where you have all those events that I talked about earlier, your auth events, all sorts of things where it's fairly typical traffic, you're going to need to figure out which ones are important. Sometimes it's easy. Sometimes it's overly verbose. Sometimes you don't have enough information to where it's actually all that useful. So thankfully, hard hat brigade sim has some great details on there. I wish it was a real sim. It works pretty well. One of the things that can make it easy is to take that data, correlate it, and then start to build yourself tables out, right? A big part of an investigation when you're working on things is to make sure you capture boatload of data because you want to be able to relay to any sort of folks upstream, if there is an event, what's going on. So as we're looking through here, there's a number of things, right? And, well, shoot, it's the same darn message. And maybe some of these are benign, maybe some of these are cool, right? We talked about how there are scenarios where planes might be parked next to each other and kind of tattling on each other. Why are you broadcasting this? Why are you broadcasting that? But one of those looks a bit different. Oh, gee, it's that same one with the first three leading octets. Anybody in the audience know what OUI that might be? Oh, no. Nobody? I heard alpha. Was that it? Yes? Nice. I'll have a sticker for you later. Prevention where possible. So, again, on-wing infrastructure, right? The more you know about that is going to help. The cool thing is there's a ton of great technology out there that is likely to be implemented on newer aircraft, right? You figure the service life of these airframes can be a long time. And so their likelihood is you're going to see different levels of hardware on there. And so as you get onto these newer aircraft, the services get better. The tools for detections get better. It's a lot easier for us to do the job we need to do as detection engineers and threat hunters and threat analysts as we kind of work through things. And so working with, again, talking about the engineers that build these systems, right? Maybe the folks that are building the firmware for the modems that are going on there. Maybe the folks that are writing the software that the clientele that write on the aircraft use. Working with them earlier on to build stronger, better-capable detections is going to be very helpful. And so you want to think about these things. And then also, as you kind of go through and you sift through the data, right? Always new opportunities to tune old alerts. Maybe write new ones based on that. And so it's that kind of process and workflow that, as we're all going about our day, sometimes there are times where you look at it. And you don't have the time to do it. So I know that's something that we've been kind of stressing lately with the folks that I work with, the great folks, is to really think about, like, hey, what's that cyclic process, right? So if you're not doing that, it's definitely something you want to jump into and kind of remind yourselves, we've got to go back and look at these things. And then as you get more data, just those thresholds, right? Are those IOCs good? Are they old? Are they deprecated? These are things that we want to continue to think about. So we have a ton of events. And if you're lucky enough, you've got some good detections in play, whether they're built in or ones that you've custom written. And so things that we want to look at, right? Are those BSSIDs something that are out of the ordinary? Are they ones that you look at and go, oh, that seems off? And then does the data tell you the story? Filter out that noise, right? Apple relays, the Apple private relays, that's super noisy, but it's legitimate. And so these are things that detection engineers want to make sure they incorporate into those detections so that you're not generating a ton of noise. Use that query foo. I've had the opportunity of working with folks that just the way their mind works with how they're generating these detections is really cool. And gets me thinking better about, hey, how the heck am I going to approach that so that my life's easier the next time around? And since we're thinking about an investigation, right, set the stage for that document heavily. Take a lot of screenshots. Oh, and probably note when and where you took the screenshots, because I've done that before. And that's no fun, trying to go back and fix all that stuff and go, where the hell did I get that information? So let's start hunting. We're going to go ahead and hunt the blue skies. There's a ton of different tools, right? You might have your sim. Wireshark's always going to be good if you've got, if you're lucky enough to capture PCAPs on there. I'm hoping we can get some other things to try in, like, a dev environment to play with and give us a bit more of that. ADS-B is super helpful a lot of the time as you're kind of taking the data from the events that you're looking at and try to correlate things, right? Kind of put together, like, hey, what's the MO for an actor that might have showed up? FlightAware was useful to the war drivers out there. Wiggle is great. Leverage the hell out of that. It's great. They're great. Love them. Hopefully they're around so I can give them some stickers. And then, of course, leverage the tools, right? Leverage OpenAI. Any sort of AI ML tools can help with kind of building some base detections that can be super good just to kind of add some additional brain cycles in there. So let's talk a little bit more about some considerations that might come into play. So here we see case in point. I think this is San Diego right here. And we can see a couple of aircraft that are parked next to each other. And so, again, when you have those kinds of scenarios, sometimes you're able to kind of get a little bit more enriched detail by using things like ADSB or Wiggle. And it can kind of help prove out what that data is looking like as you're hunting. Speaking of Wiggle, here's that same spot at whatever point in time I happen to take these slides. You can just see, as we'd suspect, it's super dense. There's a ton of devices there, many of which are probably people up to shenanigans, right? It's kind of one of those reasons why you really reconsider when you're connecting to Wi-Fi services at any location. But Wiggle's great, and this really helps with determining, right? If we go back to that article that I brought up earlier, the particular actor had leveraged a particular tradecraft that, unfortunately for them, wasn't super great. But that helped tie into play with actually discovering where they were on Wiggle. And so it's kind of good to think outside of the box of the tools that we use, whether it's for fun, as a hobby, as things we're learning about, and incorporate that into our professional lives, and it might actually help out. So great, we've sifted through all this data, and you happen to be the analyst on task, and you found something. All right, now we're going to start working on putting all that data together and prove out whether or not your theory of, I believe it to be on these flights, I believe it to be this person. Let's go ahead and prove that out. So the note-taking, again, very, very important. The details, right? Building a nice time chart to kind of put all that stuff together so that you have something to support and give to your instant response commander, should something like, okay, we've got an event going on in an airline. I would have loved to put up Hack the Box's IR report. It's a great template, at least from what I'd looked at. A ton of detail on there, and thankfully it's really easy to get to, but I would check it out if you're interested in looking in that space, or if perhaps you're looking to kind of enrich any sort of templates that you might have on hand at your place. So the report. Thinking about the different kinds of reports that you might put together, right? You've got your executive summary, that's important. Just enough detail in there to kind of give them what they need for any sort of briefs that they've got to give, that they might be interested in. Your technical analysis as an analyst on there is going to be super helpful to really prove out if your theory comes to play of what's going on. Providing an impact to the business is going to be great, and there's a ton of different metrics that can go out to that, and I really should have added those in there, but I didn't have enough time, so I apologize. And then thinking about, right, your timeline, any sort of approaches to respond and recover. Those are going to be what you'll need to provide a strong statement to your executive staff to give them what they need. And I think I went way too fast because I've got closing thoughts now, so I'll open it up for questions here in a moment. But, hey, there's malicious acts going on in the sky, and some of them are going to be low-hanging fruit, right? In this particular case, the person wasn't very... they weren't very strong with what they were doing, and so we were able to find them with not too much difficulty. But a lot of that, I think, came from thinking outside of the box, right? I think this is where coming to the RF village, where we've got a lot of clever folks working to solve tons of different problems, those come into play. I find that a lot of the times in a corporate environment, you end up kind of getting into this thought process where you're just continuously repeating the same thing on replay over and over, and oftentimes what you end up with is this kind of doldrum of, okay, I did the thing, I checked the box. But coming at it creatively is always going to be a way to help you find one of these kind of scenarios, because when we've spoken with the other team that was looking, they didn't see the... they didn't see the... what am I trying to say here? They didn't see the bones in the sand telling them a story, but you get the right mind on there with a bit of creativity coming at it from a different angle, the story changes. And so I think the real message here is sometimes step back out, looking at it in a different way can be incredibly helpful and kind of going, oh my goodness, we've actually got something going on, even though it actually looks rather benign. So be vigilant and spend that extra time taking and looking at the review, looking at the details, looking at what's coming forward and actually poking its head out to say, hey, that's actually the smoking bullet there. Oh, and of course, because stuff, these are my views, not my employer's views. Whatever. And questions. Perfect. Everybody here knows how to hunt for evil twins on aircraft. Thank you. But feel free to come up and ask me questions. I probably spoke a little bit quicker than I wanted to, but I'm kind of hopped up on caffeine right now. Yes, sir. Question. The question is, is it typically a one-time offender or are we seeing repeat offenses? In this particular case, oddly enough, we had a detection that came in and it had happened sometime back and we kind of wrote it off because it's like, hey, this is, what we're seeing here is not indicative of an act of offensive nature. It's like, this is a device that anybody might use. And so you have to make that decision, right? Here's where, are we going to blacklist the OUI for an alpha wireless adapter because, oh my gosh, hackers are evil. Like, they're just like the ones I see on TV. Or is it a case of actually talking with the business units and saying like, hey, yes, I hear your voice. I hear your question. I hear what your concerns are. But we need to look at what the kind of like the deeper scenario is. But there are times where, yes, they might be singular entities and that might make it more difficult to actually kind of piece together what's going on. So I think it depends. I think it depends is often an answer I end up using for a lot of these questions. So hopefully I don't say that for every single one of them. Any other questions? Yes, sir. Oh, the question is, are there any issues with having Wi-Fi hotspots on the plane? And I think that's kind of like a multidimensional answer. And that might be down to the infrastructure on wing and the detections that let you know if it's happening or not. For the customers, oftentimes they might not even notice if they're just connecting to, you know, an SSID that says, cool, I'm Delta. It's like, all right, cool, I'm going to connect to Delta. And they might not know otherwise. So for the customer, it might not mean anything. So it's really going to depend on that point of do you have detections in place to let you know, hey, there's something going on that I should be concerned of or I might not even know. And so that's where that kind of having more verbose details coming in from your logging environment are going to be super helpful to actually detect those kinds of things and whatnot. So I think, again, it depends, right? So I think it depends on where you are in that timeline of actually experiencing that. But there are going to be issues, absolutely. Thinking about if you've got, like, if you've got an IDS in there that's going to actively block and stuff, depending upon what that looks like. So I think there's a number of different scenarios where, yes, it's going to be very problematic. And there might be other scenarios where it's not, from the customer's perspective. Obviously, if you're on the defensive side looking at it, yeah, I'd rather not see those going on. And the other thing, are those even going to work half the time, depending upon where they're flying to? So I think there's a ton of different scenarios where you might encounter it temporarily. It might be problematic. And also, what kind of device is actually broadcasting? Is it just a little off-the-shelf device? Or is it something that somebody put together that's actually broadcasting a tremendous amount of power? Hopefully that helped. Any other? Cool. Thank you for hanging out with me for a bit. Fast as it may have been. I'm MonkeyDragon. I'm part of the Hard Hat Brigade. You'll probably see a couple of lads coming by later to talk about more driving, so definitely stick around for that. But thanks for hanging out for a bit, and I hope you all appreciate the time over here. And enjoy the rest of your day. Thanks so much.