[00:00.000 --> 00:06.400] Good morning. Ah, there we go. Good morning, everyone. I am Lillian Ashbaker. I represent [00:06.400 --> 00:12.600] the Aerospace Village. I do the speaker CFP process. The Aerospace Village, in conjunction [00:12.600 --> 00:17.560] with the Creator Stage team, is pleased to introduce Craig. He is presenting on an [00:17.560 --> 00:23.800] adversarial approach to airline revenue management. So, please welcome Craig to the stage. [00:33.100 --> 00:43.940] Well, hey, everyone. I'm Craig. A little about me. I first moved into state for work [00:43.940 --> 00:52.000] about 15 years ago and started flying a lot since then. By trade, I work with Splunk and [00:52.560 --> 00:57.600] but my background was Cisco and carrier sort of networking stuff. [00:58.320 --> 01:07.520] But yeah, so firstly, what's this talk not about? So, I'm not all about these big clickbait, [01:07.520 --> 01:12.180] you know, sort of travel articles where when really when you break them down at the end of [01:12.180 --> 01:18.640] the day, it's like sign up for this credit card, get a sign on bonus and, you know, pick the most [01:18.640 --> 01:26.200] expensive fare out there to advertise it through. So, with that, just a little disclaimer. [01:32.460 --> 01:42.200] Okay. Just a little disclaimer. I guess the intended audience for this talk is supposed [01:42.200 --> 01:46.700] to be, I guess, people at airlines or whatever so they can defend their systems better, right? [01:48.400 --> 01:56.400] But yeah, and with that, just some caveats. Look, I'm just a dude. This is an interest topic to me. [01:56.400 --> 02:00.640] I haven't been trained. I just sort of, you know, black box as I've gone along and learned stuff. [02:00.640 --> 02:05.140] So, hopefully I'm sharing that with you. There's a lot of information to cover. So, [02:05.140 --> 02:10.680] it probably will be a bit high level. Come see me later. I'll get us popping the slides if you like. [02:10.680 --> 02:20.340] But yeah. So, firstly, why is the airline and travel industry the way it is? [02:20.600 --> 02:27.080] It's high fixed costs. It's very regulated. You know, not only do airlines have to get approval [02:27.080 --> 02:31.540] from, you know, both governments to operate flights between two countries, they actually [02:31.540 --> 02:36.420] have to, you know, apply for slots. And so, these slots sometimes like, you know, IP4 addresses [02:36.420 --> 02:41.640] where it's pretty congested at some of the airports like London and JFK and whatnot. [02:41.760 --> 02:47.520] So, in fact, you see things like I think Malaysia is flying almost empty planes to London just to [02:47.520 --> 02:54.200] keep their slots because if they don't use them, they lose them, right? And they do trades and, [02:54.200 --> 02:59.280] you know, it's a 75 billion once for one of the slots recently sold for. So, with that, [02:59.280 --> 03:04.400] there's also this concept of fortress hubs, which are like the big hubs of certain airlines that [03:04.400 --> 03:11.620] they have such a dominant hold on the market. So, with that, what does the revenue management [03:11.620 --> 03:16.940] team do? And what they do is basically try and maximize the return they can get on by filling [03:16.940 --> 03:23.320] an aircraft. And what they're concerned about is either if you boil it down. So, this is a [03:23.320 --> 03:28.700] bit of an academic science. There's quite a lot of journal articles and research on this. [03:28.700 --> 03:33.320] But for our purposes, if you boil it down, really what they're trying to look out for [03:33.960 --> 03:38.460] is making sure they get the highest price for every seat, not letting it go empty or selling [03:38.460 --> 03:45.740] it out too cheap. So, thinking about that, how can they be disrupted? We're not going to really [03:45.740 --> 03:54.000] talk about any of these today, but just wanted to highlight the fact that it ranges straight from, [03:54.660 --> 03:58.380] I guess, using a same-day flight change or some of your actual benefits that they offer [03:58.880 --> 04:05.700] in some ways can reduce the return they would get. But in other things actually become more [04:05.700 --> 04:09.780] related, like fraud where it's credit card abuse and that sort of stuff, or [04:09.780 --> 04:17.320] by cashing out things for gift cards. So, with that, how do fares exist in the world? So, [04:17.320 --> 04:22.520] when you go to an airline website or your Expedia or whatever, what do you actually see? [04:22.520 --> 04:27.720] Why does it come up that way? I've often overheard people go, oh, the price went up [04:27.720 --> 04:32.500] because of my cookies or whatever. But generally, you find there are things called [04:32.500 --> 04:37.580] rules attached to them that might be days of the week or where the fare is published. [04:37.580 --> 04:42.520] And the other concern is the dynamic inventory that's involved. So, we'll talk a bit about that. [04:42.520 --> 04:49.220] As you can see, it's extremely complex computationally. And there is... [04:49.860 --> 04:59.100] Karl Tabarkin of ITA has written a very great presentation on the computer complexity of [04:59.100 --> 05:03.620] actually calculating these things. Because most international trips, so when there's multiple [05:03.620 --> 05:09.580] connections, actually it can be tens of millions of possible connections of fares and flights [05:09.580 --> 05:14.780] and whatnot. So, that's why sometimes when you go to book, it might say this price has expired [05:14.780 --> 05:21.200] because actually you're sort of looking at case availability. So, what do fares look like? [05:21.200 --> 05:26.120] This is an example from probably one of the tools that you can sort of buy closer access to these [05:26.680 --> 05:32.400] the actual board a travel agent would see. It's not the same system, but it's like a read-only [05:32.400 --> 05:37.500] one that consumers can subscribe to. But this is sort of what they look like. So, [05:37.500 --> 05:43.900] they all have like a basis or an identifier code. And now this code is a bunch of numbers, [05:43.900 --> 05:48.660] I mean, sorry, a bunch of letters. But usually these letters indicate the first one is the inventory code [05:48.660 --> 05:52.720] and the others, depending on the airline, might indicate the seasonality or other sorts of [05:52.720 --> 05:59.020] restrictions for a family of fares. So, this is some here. It's just an example for London to [05:59.020 --> 06:03.460] New York. You can see the round trip that those prices are actually the base fare before you add [06:03.460 --> 06:09.400] taxes and surcharges. And you can also see that in things like the minimum maximum stay that [06:09.400 --> 06:15.340] they have. So, the SU is a Sunday stay and it's an old sort of traditional concept that they used [06:15.340 --> 06:20.620] to catch business travellers with. Because if you forced, you know, leisure travellers are more [06:20.620 --> 06:24.280] likely to stay over a weekend, whereas business travellers, you know, want to go home on Friday [06:24.280 --> 06:31.420] or whatever. So, as we talked about that, they're published on two sort of bases generally. [06:31.420 --> 06:39.780] The routing basis where it's explicitly showing you which transit points you can book with that [06:39.780 --> 06:48.080] particular fare. And the other way is the mileage or an NPM basis. Now, I've got a little calculation [06:48.080 --> 06:54.560] there if you can see on the screen of how an NPM sort of works. But essentially, it's using the [06:54.560 --> 07:00.320] great circle distance that some of you may have seen with like impossible travel and whatnot. [07:01.340 --> 07:09.140] Alerts in your scenes. And then, so they can make it work through their particular hubs. Often, [07:09.140 --> 07:13.660] you have a concept of a ticketed point deduction, where basically you can get extra miles to finish [07:13.660 --> 07:20.200] the trip because they, because say, for instance, this one, they allow you to fly through Chicago. [07:21.100 --> 07:25.840] So, just a brief thing, when you're combining these fares and looking at stuff, there's quite [07:25.980 --> 07:30.220] a number of rules that are involved. And we just sort of looked at the routing. But as you can see, [07:30.220 --> 07:34.960] and I did speak about that Sunday stay. But yeah, there's all these other things to take [07:34.960 --> 07:41.000] into account. So, behind the scenes, when you actually buy a ticket, it kind of looks like this. [07:41.000 --> 07:46.420] So, I did have a picture earlier of a Qatar ticket on there. But this shows a more complex [07:46.420 --> 07:51.600] sort of ticket where, at least this is my understanding anyway. But the important thing [07:51.600 --> 07:57.720] to know is that when you get your reservation, your PNR, your six letter identifier, just because [07:57.720 --> 08:01.500] it says confirmed or on request or whatever in there, it doesn't actually mean you can board the [08:01.500 --> 08:08.520] flight. You need a, you actually need that valid e-ticket in there. And then when you check in, [08:08.520 --> 08:12.920] that's when it actually marks the basically coupon. It's similar to the old paper tickets, [08:12.920 --> 08:17.640] but marks that it's used. And these have to be used in order or basically the rest of your flights [08:17.640 --> 08:23.520] are cancelled. Just going back to that last one, we can sort of see there an example of where [08:23.520 --> 08:27.480] there's an issue with the e-ticket, even though you have a valid reservation and you can't check [08:27.480 --> 08:36.480] in on that one yet. So moving across to the dynamic, how they manage dynamic inventory, [08:36.480 --> 08:42.340] you might've seen things like five seats less or whatnot, but essentially they use, what they use [08:42.340 --> 08:48.980] is buckets, which are given letters and they, and the different fares will attach to different [08:48.980 --> 08:55.360] buckets. And that's how they sort of manage the pricing. So if you look in, if you look at that, [08:55.360 --> 08:59.260] here's an example of a, here's an example in what, what a travel agent would see in what [08:59.260 --> 09:05.120] they call the distribution systems that shows the availability for a particular flight. This is a [09:05.120 --> 09:10.000] flight from Dubai to London. And what you can actually see on this one is quite interesting [09:10.000 --> 09:15.400] is that because the Y is the highest price or fully flex economy, it's the highest they have, [09:15.400 --> 09:19.820] and also the generic term for that class. But what you can see because it's zero, it means it's like [09:19.820 --> 09:27.220] completely no seats to sell. And generally we know that they oversell by about 10 or 20% most [09:27.220 --> 09:32.160] flights if they can. So with it being zero and closed, they weren't not taking any more bookings. [09:32.160 --> 09:36.900] But the other interesting thing is we're seeing nine, which is the maximum for any one time that [09:36.900 --> 09:41.820] if they're only single digits. So the actual business and first cabin on this particular [09:41.820 --> 09:45.820] flight is quite empty. So there's probably a chance that people will get, there'll be a bit [09:45.820 --> 09:52.300] of a cabin roll and to sell more seats and to fill it up, some of the more frequent flyers [09:52.300 --> 09:57.380] or people traveling alone might actually get, when they go to the gate, might be given a new seat [09:57.380 --> 10:06.400] upgraded. So moving on, how do we handle connections? Now with connections, it's the [10:06.400 --> 10:12.400] same sort of thing, but what you need to keep in mind is your fare class or your availability needs [10:12.400 --> 10:17.800] to match for all segments. And not only that, you also need it for every person. So if you search [10:17.800 --> 10:23.600] for one person on this, you would get, you would see the cheaper like R fare for business. [10:23.640 --> 10:28.760] But if you had two people, if you're going, it would show a higher price when you actually [10:28.760 --> 10:32.500] search. And that's not like a cookie because you already searched. It's because this [10:32.500 --> 10:37.140] second connecting flight only has one seat available in that R class. So learning some of [10:37.140 --> 10:42.820] this can help you piece together and understand like, oh, I found a good fare. I want to book this, [10:42.820 --> 10:50.520] which days can I actually go and really narrow it down. So following the money, where it all goes [10:50.520 --> 10:55.260] and whatnot, basically there's a thing called a validating carrier. And that's the one that [10:55.260 --> 10:59.960] issues the ticket. And that's the e-ticket database they use. Interesting fact is American Airlines [10:59.960 --> 11:06.380] has all their serial numbers start with 001, but every, because they were the first computerized [11:06.380 --> 11:12.060] airline, but all of the airlines basically have one of these three digit identifiers that for [11:12.060 --> 11:18.000] identifying which stock that is. You also have a concept of a marketing carrier. Now that's the [11:18.000 --> 11:22.160] flight number you buy. And so you might, if you've heard of a code share before, or ever booked a [11:22.160 --> 11:27.100] flight like that, where you're like, maybe you've booked Finnair, but it's actually like a American [11:27.100 --> 11:31.340] or British flight. That's what a code share is. An operating carrier, obviously the metal that [11:31.340 --> 11:36.500] you're on. So just an example, like to tie some of these concepts together. This is a little bit of [11:36.500 --> 11:41.300] an unusual boarding pass because it's printed by Aer Lingus, and then it's an [11:41.300 --> 11:46.580] American flight that was sold as British Airways. But you can also see there with this electronic, [11:46.580 --> 11:51.960] there's the longer marking there with starting in 125. And that's the e-ticket [11:52.540 --> 12:00.640] serial number, right? The 25 below there is also like a sequence number of how, which [12:00.640 --> 12:08.680] the check-in or when they were at the outstation, when you sort of checked [12:08.680 --> 12:15.120] in online and when it went on the manifest. So having regard to those sort of concepts, [12:15.120 --> 12:22.000] I'll talk about some of the weaknesses. So why you sometimes see those fares now getting so low, [12:22.000 --> 12:26.740] like $1 or $15 as we saw before, is that a lot of the components now come up as [12:27.640 --> 12:35.020] carrier surcharges under this fuel surcharge that started in 2004. So yeah, initially they're [12:35.020 --> 12:40.160] only like $20 or something because the oil price was fluctuating. But then what happened was, I [12:40.160 --> 12:43.220] guess the airlines realized they didn't have to pay at that time, they thought they didn't have [12:43.220 --> 12:49.220] to pay commissions and other things on these amounts. So from my perspective, they kind of [12:49.220 --> 12:54.280] seem a bit like junk fees, like resort fees and stuff that you might pay at hotels. The [12:54.840 --> 13:00.160] interesting fact is that because of the way they're levied, it actually has become more [13:00.160 --> 13:05.240] complicated. The calculations have become more complicated. And one thing that's interesting to [13:05.240 --> 13:12.000] note is that the way they're published, the validating carrier decides whether to apply [13:12.000 --> 13:16.460] it or not. It's not necessarily the airline that you're flying on. So this presented some [13:16.460 --> 13:26.120] opportunities that errors could creep in. So as I say here, the S1 record is just a database [13:26.120 --> 13:32.620] record that has the criteria for applying the surcharge and how much it is, but [13:35.060 --> 13:39.940] when all the things that matches. And the fact that it has like sequence numbers, [13:39.940 --> 13:45.840] it sort of works a bit like a firewall rule. So when we talk about exploits for this, [13:45.840 --> 13:51.340] the good old days, what people were doing for a while was that they were actually just going over [13:51.340 --> 13:55.360] to another airline's desk and getting them to book flights, like a ticketing desk and getting [13:55.360 --> 14:01.260] them to book flights for the other airline and have them issued by one that didn't levy the [14:01.260 --> 14:08.380] surcharge. But there was an IATA resolution and that's kind of gone away. But I guess the more [14:08.380 --> 14:15.720] interesting ones and the more technical ones for us and for defenders is the way that those S1 [14:15.720 --> 14:22.080] records work and they apply it. So I've got a bit of an example here from one of the apps code, [14:22.080 --> 14:29.760] the fare publishing manual there. So some of you may also be able to see how these can sort of [14:29.760 --> 14:35.840] break or be pushed at the end of that sequence can be skipped. So for instance, and it might [14:35.840 --> 14:41.600] depend on whether the fare actually is compatible with other fares. But if it is, for instance, [14:41.600 --> 14:46.580] the last one has, if all ticketed points are wholly within the US, well, what happens if you [14:46.580 --> 14:52.780] have a domestic segment in Canada or Mexico or whatever, for instance? It wouldn't apply it. [14:52.780 --> 14:59.140] So just a demo of this, I can show you. This is quite an old one. People in the sort of travel [14:59.140 --> 15:05.200] community don't really like this stuff shared, but this is an old one. I found it interesting [15:05.200 --> 15:11.500] to try and even just get this stuff to work. It's a bit like pen testing, but this is one here [15:11.500 --> 15:19.160] where it's a fare for $727, a normal return. And with a surcharge of close to 60%. [15:20.160 --> 15:24.840] So what happens is if we actually add another segment that's compatible there [15:24.840 --> 15:33.660] and break that application, what you're doing is you're actually adding [15:33.660 --> 15:38.620] another fare on there and it's pushing the base price up. But because the surcharge was so low, [15:38.620 --> 15:45.320] it's actually dropped your price down. You've added £100 in this instance, but you've lost, [15:45.320 --> 15:52.780] it's miscalculated the price by 260. Another thing that's sort of interesting is the way, [15:52.780 --> 15:58.640] because of the competitive nature of markets, how there is sometimes arbitrage opportunities. [15:58.640 --> 16:03.200] But this can be a bit of effort. You might have to start your ticket there. But sometimes it [16:03.200 --> 16:07.680] could be worth it. For instance, if you're in Hong Kong and you start your journey in Japan, [16:07.680 --> 16:12.120] or you're in the US and you start it in Canada, but these things fluctuate and change. [16:12.640 --> 16:16.300] Another thing to look for is some of these countries with unstable currencies, [16:17.660 --> 16:22.860] some ticket, sometimes they are fixed exchange rates. For instance, Egypt changed their official [16:22.860 --> 16:29.500] exchange rate by 50%. And there was some good deals that came out of that for a period. But [16:29.600 --> 16:33.700] a lot of the other countries actually publish in euros or US dollars that have unstable currency. [16:33.700 --> 16:41.880] So it doesn't happen all the time. Another vulnerability that's been a bit more popularized [16:41.880 --> 16:49.880] and talked about over the last 10 years is hidden city ticketing. This is a very well-known practice [16:49.880 --> 16:57.280] that all airlines hate, bash up agents if they try and do it right. But essentially, you can see [16:57.280 --> 17:03.240] here, if you're comparing this, this is a Delta flight. You're trying to go to Atlanta, right? But [17:03.240 --> 17:08.320] if you look directly, it's going to be close to $200. But when a Nashville flight is tagged [17:08.320 --> 17:14.720] onto the end of it, it's less than half. Now, the reason for that is, I guess, business [17:14.720 --> 17:18.720] customers want to fly direct. Generally, people pay more for a direct and whatever competitions [17:18.720 --> 17:24.940] in the different markets. So they want to fill those seats, but not do it. The issues with these [17:24.940 --> 17:30.400] things is that it is generally against the terms of conditions of carriage. And what they also do [17:30.400 --> 17:35.020] is if people are checking bags, they don't short check it to your destination. That is, of course, [17:35.020 --> 17:40.640] unless you have an overnight or longer layover. So if the fare is actually flexible, you could [17:40.640 --> 17:45.440] be totally within the rules by booking one of these and say, well, I'll go to Nashville for [17:45.580 --> 17:50.500] a weekend in three weeks because you live in Atlanta, for instance. So sometimes you can [17:50.500 --> 17:57.480] make these things work without actually breaking the rules. Another thing I'll talk about is [17:58.260 --> 18:02.580] mistake fares. So sometimes you see things in the press. There's been a few good ones where [18:06.060 --> 18:09.940] they will... first class of 500 bucks returned from Asia or whatever, because [18:11.100 --> 18:16.760] often it's either the allowed routing has been... there's a mistake or the base fare has been [18:16.760 --> 18:20.620] uploaded incorrectly because it's still... I believe it's still kind of manual in a lot of [18:20.620 --> 18:26.380] ways. There's still a lot of spreadsheets that are used. So in the past, the USDOT used to be very [18:26.920 --> 18:33.260] aggressive in enforcing this legislation on post price increase. But in 2015, what happened was [18:33.260 --> 18:38.020] there was a very large issue with United. If you Google, you might be able to find some more [18:38.020 --> 18:43.800] information. But essentially this issue was they published in Danish Krona. They made a mistake [18:43.800 --> 18:49.920] where it was a divide by 1000 issue on the base fare. Now, this is because the Danish Krona uses [18:49.920 --> 18:57.500] the comma as a decimal point rather than a period. So the key thing to know out of this now is that [18:58.580 --> 19:05.940] that they're allowing airlines to more easily get out of these fares if they demonstrate it was a [19:05.940 --> 19:09.980] mistaken fare. Now, one of the ways they would do that, I guess, is there's a lot of blogs and [19:09.980 --> 19:17.620] stuff that sort of try to profit off this. And yeah, so I mean, as Roaring Kitty would say, [19:17.620 --> 19:21.520] as for me, I like the fare. It's just a good fare. Because sometimes you don't understand. [19:21.520 --> 19:26.680] It's hard to understand, I guess, when you often see them publishing base fares of $1 [19:26.680 --> 19:33.240] for transatlantic flights. Like, how do you know necessarily? So if you're an airline, [19:33.240 --> 19:38.380] what could you do, right? So they have a thing called an agency debit memo. Now, [19:39.180 --> 19:44.120] you can find those policies online as well. Most airlines publish them. And that also will show [19:44.120 --> 19:47.440] you sort of conditions of what they're actually looking for and how they go after travel agents [19:47.440 --> 19:53.160] that maliciously do stuff. The example of what a travel agent might do is hold stuff on a fictitious [19:53.160 --> 19:57.960] name. So like, you know, how you can do free holds, for instance. They're basically holding [19:57.960 --> 20:04.580] the seats and then they cancel it and re-hold it, you know. So they do chargebacks for that. [20:04.580 --> 20:08.340] And there's like a credit cards chargeback. There's like a processing fee attached to that. [20:08.380 --> 20:14.460] But I guess my other point is that they could kind of think like us, you know, I think fraud [20:14.460 --> 20:18.960] teams and other teams could learn a lot from how what we, the advanced detections and things we run [20:18.960 --> 20:24.600] in SOX. Because in a lot of ways, a lot of the detection stuff is similar and we're just used to [20:25.800 --> 20:32.320] hackers and impossible travel and things like that. And sort of finally, if you're interested [20:32.320 --> 20:37.600] by this and you want to know a bit more, it's great to be out of those. It's sometimes hard [20:37.600 --> 20:43.800] to get the same visibility into all these things that a travel agent would get. But with those [20:43.800 --> 20:48.220] tools like ExpertFlyer that I showed before, KBS tool, they're like subscription ones where you can [20:48.220 --> 20:54.700] actually get sort of read-only access. But it's not 100% what you can do. And they don't actually [20:54.700 --> 21:01.100] can't support pricing. But another one that's great, that's really, really good is the ITX Matrix. [21:01.480 --> 21:06.180] So that will actually give you sort of a full pricing engine that you can... it was basically [21:06.180 --> 21:11.100] the backend for Google Flights at one stage. And what I like about that is that [21:11.100 --> 21:16.760] you can put really advanced fairing specs in there. So you can say only show me, only use like [21:16.760 --> 21:21.440] for the calculation, only use fares or only show me stuff that's compatible with this particular [21:21.440 --> 21:27.540] fare basis code. Lock it down to all that sort of stuff. And the even better thing is that you [21:27.540 --> 21:34.720] can actually turn off the availability checks. Because to get more better use of your CPU time. [21:35.620 --> 21:41.940] So with that, I guess to say thanks for everyone. I've got a few more things here, [21:41.940 --> 21:46.880] if people are interested. Particularly recommend that the MIT, I guess it was for a computing [21:46.880 --> 21:52.100] course, but that MIT's computational complexity of air travel planning, really, really good. [21:52.680 --> 21:58.120] And I would have liked to talk about that, but I hope that's a bird's eye overview. And [21:59.020 --> 22:01.700] if you have any questions, come see me at the bar or something. [22:01.700 --> 22:08.380] Good. Now, conscious of time, let's crack on. I want to talk today about electronic flight bags. [22:08.700 --> 22:13.900] But before we go there, a little bit about me. I am a pilot. I'm a really bad pilot. I've landed [22:13.900 --> 22:19.380] at the wrong runway before, so never fly with me. But I also am part of a company called Pentest [22:19.380 --> 22:23.940] Partners, where we do a lot of red teaming, but also a lot of embedded system work. We've got [22:23.940 --> 22:29.260] multiple pilots on the team. So we do quite a bit with airplanes. And over the last few years, [22:29.260 --> 22:35.160] we've learned how to hack or not hack airplanes. Before we start, though, it's really, really [22:35.160 --> 22:42.620] important that we disclose vulnerabilities in aviation responsibly. There's something about [22:42.620 --> 22:47.700] hacking planes that drives the media into a frenzy. You say plane hacking, they go crazy. [22:47.700 --> 22:51.640] And the result, it damages industry, and I think it makes us less safe. [22:51.920 --> 22:57.820] My wife is a lousy flyer. So the last thing I want to do is make her more scared of flying. [22:58.640 --> 23:03.080] It does take a long time to fix bugs in aviation, and I'll explain why in a bit. [23:03.080 --> 23:09.300] But the most important thing you cannot do, you cannot hack an airplane sat in your seat [23:09.300 --> 23:14.840] in coach. It doesn't work like that. There have been some issues over the years with the media [23:14.840 --> 23:19.880] going crazy with stories about hacking airplanes. I'm not going to dwell on those. But before we [23:19.880 --> 23:24.440] start, how do you connect to an airplane? Well, there are lots of different interfaces. We all [23:24.440 --> 23:30.340] want in-flight Wi-Fi nowadays, but pilots have had that for years. You've got maintenance access, [23:30.340 --> 23:35.980] you've got quick access recorders that now spin up over Wi-Fi. But just to prove that point, [23:35.980 --> 23:40.620] you cannot hack an airplane from the cabin. And the reason for that is we have really good network [23:40.620 --> 23:46.400] segregation in the bit in the back, the bit that we sit in. That's called the passenger information [23:46.400 --> 23:51.460] entertainment services domain, and we consider it to be dirty. Up front, we have the aircraft [23:51.460 --> 23:57.620] control domain, which is really secure, really well segregated, then completely isolated from [23:57.620 --> 24:01.860] the other networks. But the one I want to look at at the moment is the electronic flight bag, [24:01.860 --> 24:08.400] which was one of the systems that pilots use and connect to with connectivity. So what is an EFB? [24:08.400 --> 24:13.140] Well, last time you boarded an airplane and you looked left into the cockpit as you walked in, [24:13.140 --> 24:17.640] did you see the pilots had a tablet? Maybe it was a little computer, maybe it was an iPad, [24:17.640 --> 24:23.380] maybe an Android tab. It's essentially a device that they use to make their operations safer [24:23.900 --> 24:28.260] and more efficient. So there's lots of different things that an EFB does. [24:28.580 --> 24:34.980] It's, for example, it has your roster, your passenger list, it has your weight and balance, [24:34.980 --> 24:39.100] so you can make sure the airplane is properly balanced and within its performance envelope. [24:39.100 --> 24:43.220] But most importantly... we're still there? I've just lost audio. [24:43.220 --> 24:50.220] Yeah. Can we have it? There we go. We're back again. Most importantly, it also is used to [24:50.220 --> 24:57.500] calculate engine performance, or perf. Now, performance, you might not appreciate this. [24:57.500 --> 25:03.820] It's very rare that we use full power when we take off. Really rare. And the reason we don't [25:03.820 --> 25:07.720] is we don't want to burn lots of fuel because it's expensive and bad for the environment. [25:07.720 --> 25:12.340] And we also don't want to wear the engines much. So if we use less power, [25:12.340 --> 25:16.820] we've got lots of runway, we're not very heavily loaded, we use a D rate, [25:16.820 --> 25:21.340] or what's called a flex temp in Airbus, or a D rate with Boeing planes. [25:22.080 --> 25:26.300] And we calculate that using lots and lots of different data sources, like the wind, the weight, [25:26.300 --> 25:30.740] the pressure altitude of the runway, all sorts of things that tell us how much power to use on [25:30.740 --> 25:35.540] departure. But before we go there, I want to look at some of the bugs, things that have gone wrong, [25:35.540 --> 25:40.280] not hacks, just things that have gone wrong. There's all sorts of examples of things that [25:40.280 --> 25:44.820] have just gone wrong. For example, Raven Air, they used a digital maintenance system, [25:44.820 --> 25:48.740] and they got ransomed, and their backup got ransomed. And as a result of that, [25:48.740 --> 25:52.100] they couldn't prove the airplanes were airworthy, so they didn't fly. [25:53.240 --> 25:59.240] American had a lockup on their electronic flight bags. There was a duplication in one of the [25:59.240 --> 26:05.360] Jefferson databases. I think they duplicated the chart, so the map of the runways, at Reagan [26:05.360 --> 26:09.640] National, and it caused the entire application to lock up, and a lot of airplanes didn't move that [26:09.640 --> 26:15.940] day. Southwest had a bug a few years ago. They lost their weather feed. Now, pilots, you can't [26:15.940 --> 26:19.040] just look out the window, see what the weather's doing. You need to know what it's doing up there, [26:19.040 --> 26:23.080] and also where you're going. And you need that weather feed. No weather, no flying. A lot of [26:23.080 --> 26:28.200] flights didn't go. Mistakes happen with weight and balance as well. This is a really interesting [26:28.200 --> 26:32.400] incident. It's published. You can go and read it yourself. And the airplane type was changed [26:32.400 --> 26:39.260] at the very last minute from an Airbus A320 to an Airbus A321. Primary difference is it's longer, [26:39.260 --> 26:43.060] but the load sheet wasn't changed. All the passengers from the shorter plane were loaded at [26:43.060 --> 26:48.440] the front, and the airplane ended up out of balance. Pilot goes down the runway, tries to [26:48.440 --> 26:53.020] rotate on the stick, and nothing happened. There's not very much runway left. What do you do? You've [26:53.020 --> 26:59.680] passed V1. You've got to VR. You're not at V2, so you can't really fly away yet. So the pilot, [27:00.140 --> 27:08.160] very sensible individual, gave it full power, toga, and the airplane took off. Primarily to do with [27:08.160 --> 27:13.940] the increased rotation moment because the engines dangle off the wings. So they got away because [27:13.940 --> 27:19.000] they gave it full power. But yeah, that was a really very, nearly very, very serious incident. [27:19.000 --> 27:23.180] Another one to do with performance. This was a confusing incident that happened at Lisbon [27:23.180 --> 27:30.060] Airport. Now there was some runway intersection markers. So quite often on the short-haul flights, [27:30.060 --> 27:33.920] you might see they don't line up for the whole runway. They go from a displaced threshold, [27:33.920 --> 27:38.140] right? They run maybe halfway along the runway sometimes, and they don't need the whole runway. [27:38.140 --> 27:43.100] So it's quicker. But the intersection markings were a bit confusing. They've been renamed. They [27:43.100 --> 27:46.980] were given temporary names. And when pilots were putting them into their flight bag to do their [27:46.980 --> 27:51.440] performance calculations from the engines, the calculator thought there was more runway than [27:51.440 --> 27:56.380] they actually had. So it said, hey, we need less power. We've got more runway. And over a period of [27:56.520 --> 28:01.340] a couple of weeks, eight flights very nearly didn't make it out of Lisbon. Now that was all fixed, [28:01.340 --> 28:09.260] which is great. We lost that audio again. Hello? Audio. Yeah, there we go. We're back. Good. [28:09.540 --> 28:14.320] Very interesting incident happened earlier this year. This was Alaska. They had two tail strikes. [28:14.320 --> 28:18.720] So they hit the back of the airplane when they were trying to take off on January 26th. [28:18.940 --> 28:23.060] Amazing response. So within a matter of minutes, they realized there was an issue, [28:23.060 --> 28:27.440] had a ground stop. Awesome, awesome response from the airline. And what had gone wrong, [28:27.440 --> 28:32.500] was a software bug in one of their flight bag applications that was miscalculating their load, [28:32.500 --> 28:36.940] therefore not enough power was going on. There was another one that happened on April 17th. [28:36.940 --> 28:41.700] They had a related application issue with weight and balance. But actually, I was really impressed [28:41.700 --> 28:46.980] just how quickly they responded to this. But things do go wrong sometimes. So this is an [28:46.980 --> 28:52.140] airplane that had a really nasty tail strike, tore the backside out of the plane. And yeah, [28:52.140 --> 28:56.800] they didn't realize they'd had that tail strike until they tried to pressurize the aircraft, [28:56.800 --> 29:02.840] and it wouldn't pressurize. And there have very sadly been deaths. The picture on the right is [29:02.840 --> 29:10.020] from an incident report, a crash that happened in Canada. A very tired 747 freight crew miscalculated [29:10.020 --> 29:14.000] the amount of weight they had on board. And very sadly, the airplane never made it airborne, [29:14.000 --> 29:17.740] went straight through the instrument landing system and sadly, burst into flames. A very, [29:17.740 --> 29:22.680] very sad incident. It also happens on landing as well. When we land in commercial airliners, [29:22.680 --> 29:28.920] we don't want to use too much brake because brake pads are expensive. That carbon fiber, [29:28.920 --> 29:33.760] we don't want to use too much. So we'll typically use an auto-brake setting that's related to our [29:33.760 --> 29:38.000] weight, the length of the runway, the amount of headwind, we've got all sorts of cool things. [29:38.640 --> 29:43.840] This is Quito Airport, very difficult approach, surrounded by hills and over-stressed pilots used [29:43.840 --> 29:47.320] the wrong auto-brake setting from their calculations and over-ran the end of the [29:47.320 --> 29:52.500] runway. They chose auto-land, so auto-brake two, and they should have been using auto-brake four. [29:52.680 --> 30:00.100] So where I'm getting to with all of this is, could you cause an incident like that as a result of a [30:00.100 --> 30:07.360] hack? And we found some bugs that we think could in certain scenarios. So the first major problem [30:07.360 --> 30:12.120] you need to know about, those computers, those tablets that the pilots are using, you might be [30:12.120 --> 30:16.820] really surprised to know about the quality of the lockdown on those devices. Sometimes we'll find [30:16.820 --> 30:25.860] EFBs with no pin, or the pilot's birth date, or on smaller operators you find no MDM, no real [30:25.860 --> 30:31.020] lockdown. Even some small operators have sent their pilots off to Best Buy to buy the tablet [30:31.020 --> 30:37.420] for themselves. Wow. But also there's a lack of proper understanding. On the ground, cybersecurity [30:37.420 --> 30:42.260] experts, in the air, pilots, sometimes those interactions don't go so well. And good examples [30:42.260 --> 30:49.240] of that. Hey, let's use Face ID. Let's use Face ID to make my EFB nice and secure. So it's really [30:49.240 --> 30:55.040] easy. Great. Unfortunately, pilots have a habit of wearing mirrored sunglasses, which does not [30:55.040 --> 30:59.880] work well with Face ID, I promise you. And the one time you probably need your electronic flight bag [30:59.880 --> 31:05.740] more than anything is when shit goes down. Maybe you have a depressurization event, [31:06.310 --> 31:10.860] you go to your electronic quick reference handbook, which is of course on your iPad, [31:10.860 --> 31:15.880] but you're wearing an oxygen mask because the oxygen has just flown out of the door plug. [31:16.800 --> 31:20.360] Not a good day, right? So we really need to think carefully about how we unlock things. [31:20.460 --> 31:26.380] So first of all, we've got problems with local lockdowns. And with physical access to an EFB for [31:26.520 --> 31:29.660] a short period of time, we found some interesting bugs. I'm going to walk you through. One of the [31:29.660 --> 31:35.160] very first we found was in Boeing, OPT, onboard performance tool. And this is the tool that's used [31:35.160 --> 31:41.040] to calculate performance. So you'll spit in a bunch of data and it'll give you your V speeds. [31:41.040 --> 31:48.040] So V1, the point at which you can break and stop without going off the end. VR, rotation. V2, [31:48.040 --> 31:53.100] the point at which you can climb away safely with only one engine. That spot between V1 and V2 is [31:53.100 --> 31:57.740] kind of squeaky bum time if it all goes wrong. Now, that's actually a photograph of one of [31:57.740 --> 32:00.980] Boeing's tools. They brought it along to RSA a couple of years ago. Really, really cool thing [32:00.980 --> 32:06.600] to do. And we discovered that the database had no integrity text. So with a few moments physical [32:06.600 --> 32:10.980] access, you could change the data. You could make the runway look longer than it actually was. And [32:10.980 --> 32:15.620] therefore, we'd spit out the wrong data. You could extend the runway and then the V speeds went wrong [32:15.620 --> 32:21.640] and the pilots would use the wrong amount of power for departure. Good news. Boeing handled [32:21.640 --> 32:26.280] it brilliantly. I could not have asked for a better response to this vulnerability. It's kind [32:26.280 --> 32:29.240] of good news for Boeing, which I think they kind of need at the moment. I don't know. [32:29.240 --> 32:34.600] It was a really good experience. They responded to us really quickly. They acknowledged it. They [32:34.600 --> 32:38.000] gave us a call every month to say, this is how we're doing it and said, by the way, [32:38.440 --> 32:43.420] it's going to take two years to fix it. Like, what? You know, Google Project Zero, that's 90 [32:43.420 --> 32:49.180] days, right? And you drop it like it's hot. Aviation is different. It took them a couple [32:49.180 --> 32:56.180] of weeks to fix the bug. It took them a couple of years to recertify the code. Because you can't [32:56.180 --> 33:01.720] just go and update aviation systems. You need to recertify them to make sure they are safe in [33:01.720 --> 33:06.320] absolutely every possible scenario. And that was fine. And they published it and it was all good. [33:06.320 --> 33:14.340] They got it sorted. Another bug. This is a semi-installed EFB. It was a kiosk and a 747 [33:14.340 --> 33:19.760] we looked at. And it was unbelievably poorly secure. So it could break out. Password was [33:19.760 --> 33:25.380] password. Great. And there were two of them for redundancy purposes, but they were networked [33:25.380 --> 33:30.360] and it was easy to compromise one from the other. So that removed the value of having redundancy [33:30.360 --> 33:34.040] in a cross check. Because you could hack them both to spit out the same wrong data. [33:35.080 --> 33:42.280] This was funny. It had a USB port on it and a sticker saying not to use it. Okay. [33:44.160 --> 33:49.420] Now, this vendor never, ever engaged properly. Actually, Boeing even gave them a bit of a kick [33:49.420 --> 33:54.120] on our behalf. They intervened to try and help it along. Still nothing. And actually, after 18 [33:54.120 --> 33:58.880] months, we agreed with the Aviation ISAC, which is the industry's cybersecurity and sharing body, [33:58.880 --> 34:03.800] that actually it was reasonable to disclose in public once we told the airlines about it first. [34:03.800 --> 34:09.100] And they helped us do that. That was really cool. What about some new things? So we've done Boeing. [34:09.260 --> 34:17.600] Let's talk about Airbus. So this is Airbus, NavBlue, FlySmart, LPG, LPC, NG. There are [34:17.600 --> 34:22.680] more TLAs in aviation than there are in cybersecurity. LPC, less paper cockpit, [34:22.680 --> 34:27.880] NG, next generation. NavBlue is a company that's been acquired by Airbus. And we found a bug. [34:28.260 --> 34:33.580] Almost exactly the same as Boeing OPT. So you can tamper with the runway databases and make [34:33.580 --> 34:37.820] pilots use the wrong amount of power. So it spit out the wrong information. Pilots do the wrong [34:37.820 --> 34:41.900] thing. So we started vulnerability disclosure. And you're probably looking at that going, [34:41.900 --> 34:48.220] that's 2021, Ken. Yes, it is. So we sent it to Airbus. They've got a great PCER team. We sent [34:48.220 --> 34:52.580] it to them. They came back to us quickly. They replied to us after a month and said, [34:52.580 --> 34:57.460] yeah, it's the operator's problem. I'm summarizing about four pages of email here. [34:57.460 --> 35:03.700] But yeah, that's not our problem. That's for the airlines. Okay, that's a novel discussion. [35:03.700 --> 35:08.520] So we started going into some of the regulations. And I'm not going to talk about EFB regs because [35:08.520 --> 35:13.260] they're really complicated, but they are different around the world. EASA, European Aviation Safety [35:13.260 --> 35:21.600] Agency is actually fairly robust on EFB regs. FAA is slightly different. Installed EFBs, [35:21.600 --> 35:25.760] completely different set of regulations to a portable EFB. And the Civil Aviation Authority [35:25.760 --> 35:31.400] in my home country also has a different set of regs as well. So we looked at the regs [35:31.400 --> 35:37.620] and found AMC 2025, AMC Additional Means of Compliance. So this is basically the regulation [35:37.620 --> 35:43.220] that you're supposed to follow when you're keeping your EFB software up to date. And it [35:43.220 --> 35:47.500] actually said you're supposed to do an integrity check. And that's the one thing we thought was [35:47.500 --> 35:54.140] missing. Great. So we had another call with Airbus and said, hey, we think you're not following the [35:54.140 --> 35:59.500] regs. And this was a really weird conversation where they said, we're not going to fix it [35:59.500 --> 36:02.580] because we've analyzed your vulnerability and decided that fixing it would be a product [36:02.580 --> 36:08.620] improvement. I've got that in writing. Long version, basically, we had a near argument with [36:08.620 --> 36:14.300] their engineering team. And they told us that it didn't matter because you'd have to hack both EFBs [36:14.300 --> 36:18.980] at once because pilots cross-check on both. Well, they don't actually. They use one. Typically, [36:18.980 --> 36:24.500] one pilot will do the entry of the data, pass to the co-pilot, and they will verify the data entry, [36:24.500 --> 36:30.680] then make the calculation. And to prove that, most planes now have a minimum equipment list [36:30.680 --> 36:39.400] that only requires one EFB. So that was a shame. So we pushed over the period of a year. And they [36:39.400 --> 36:43.680] came back and said, yeah, we've evaluated it. We consider it as a product improvement. So we're [36:43.680 --> 36:50.680] not going to fix it. Okay. And then one of our friendly airline clients said, do you know what [36:50.680 --> 36:54.320] you could do? You could have a chat with the regulator. I was like, why didn't we think of [36:54.320 --> 37:00.180] this before? Have a chat with the regulator. So we spoke to EASA, who are lovely, by the way, [37:00.180 --> 37:05.980] and we said, we've got this vulnerability and Airbus have said they won't fix it. And we're like, [37:05.980 --> 37:10.720] what do you think? And they said, I think we agree. And then miraculously on 10th of April, [37:10.720 --> 37:14.600] it's been fixed. It's amazing what happens when you get the regulator involved, isn't it? [37:14.600 --> 37:17.620] So it has been fixed, which is great, which is why we're talking about it now. [37:17.780 --> 37:24.780] But why was it so hard? I think some of it is around some of the struggles between [37:25.480 --> 37:31.740] flight safety and engineering and cybersecurity, because some of those are competing interests. [37:31.740 --> 37:37.780] It's so critically important. Same problem we see in OT, cultural separations between [37:37.780 --> 37:43.580] cybersecurity and safety engineering. I think there was also a bit of a reluctance to acknowledge [37:43.580 --> 37:47.280] it. I've spoken to Airbus a few times about this, and they've never publicly acknowledged [37:47.900 --> 37:52.040] the detail of this vulnerability. And what's really weird is actually Airbus have got a really [37:52.040 --> 37:58.120] good reputation with their customers for being really engaging with them on cybersecurity. [37:58.120 --> 38:01.940] They've got test rigs, all sorts of stuff. It's actually, they do some really cool things, [38:01.940 --> 38:05.940] so we don't understand why we had to involve the regulator here. [38:06.080 --> 38:10.360] There's another bug we found. This was well handled by them. This is a slightly different [38:10.360 --> 38:16.080] set of the package. It's called Fly Smart Plus, and the updater for the iOS app had intentionally [38:16.080 --> 38:20.380] had ATS disabled. So application transport security, they turned it off, which meant [38:20.380 --> 38:25.320] weirdly, you could man the middle over Wi-Fi and tamper with the updates. [38:26.040 --> 38:31.020] And like attacks over Wi-Fi, really? But actually, there's one odd thing about pilots as they always [38:31.020 --> 38:35.820] stay in the same damn layover hotels every night. You can guarantee that layover hotel is going to [38:35.820 --> 38:40.060] have a pilot from their airline in. So actually, you know where they're going to be. So maybe a [38:40.060 --> 38:45.860] Wi-Fi attack is a bit more plausible. Another one, so Lufthansa, this is actually the Lufthansa [38:45.860 --> 38:50.680] systems part of the business that produce a really good charting application called eRoute manual, [38:50.680 --> 38:58.360] used by loads and loads of airlines. And we had a very similar issue. Whilst they did have an [38:58.360 --> 39:05.160] integrity check, unfortunately, the key for that integrity check was 1, 2, 3, 4, 5, 6, 7, 8, [39:05.980 --> 39:11.000] 9, 10, twice. And so we flagged this to them. They said, yeah, that's great. We get we agree [39:11.000 --> 39:15.640] with you. We disclosed it to them. What it meant was you could tamper with, for example, approach [39:15.640 --> 39:23.140] plates. So you could tamper with, I'll walk you through this. So this is how you approach to an [39:23.140 --> 39:29.180] airport. So you're supposed to arrive at 5,000 feet at DME 14 to the BRA VOR. That's your initial [39:29.180 --> 39:36.180] fix. Your safety height's now 4,600 feet till you get to top of descent D at DME 12.4. You then [39:36.180 --> 39:42.360] descend on 170 degree heading to a safe point at your final fix at 3,900. And then you can get [39:42.360 --> 39:46.760] down to your minimum descent altitude to the point of getting to the middle marker at DME 4, [39:46.760 --> 39:51.180] so four miles from the airport, at which point you either go around or you land. And we discovered [39:51.180 --> 39:55.080] you could tamper with all those so you could convince the pilots to go lower and potentially [39:55.080 --> 40:01.000] have a control flight into the ground. I hope that doesn't happen. They were awesome. It took [40:01.000 --> 40:04.860] them two years, but they were really good, really engaging, and have since asked us out to give some [40:04.860 --> 40:12.660] talks to them. Yeah. So that is me and EFBs. I want to give a very quick rattle around airports [40:12.660 --> 40:19.300] next. The other side of things. Airports are incredibly complicated places with lots of really [40:19.300 --> 40:26.260] interesting things going on. We were asked by one airport to look at their departure boards. [40:26.260 --> 40:30.100] We said, yeah, we've got bugs in those. We think we can inject our own flights and completely tamper [40:30.100 --> 40:35.620] with everything. They said, what a cool organization. We said, go on then. Put a flight on our boards. [40:35.620 --> 40:40.280] So we did. But of course, that was just proving the point. We could have trashed that system and [40:40.280 --> 40:45.080] then there would have been chaos at the airport. Runway lighting is also a major issue. We know [40:45.080 --> 40:49.720] of one airport where their runway lighting controllers were airside and then they expanded [40:49.720 --> 40:55.080] the parking lots and they ended up landside. And then someone came along and stole all the controllers [40:55.080 --> 40:59.380] and the runway lights stopped working. Oops. These are really good fun. If you ever fly into Heathrow's [40:59.380 --> 41:04.780] Terminal 5, they use robot pushback tugs. Never got to have a go at them. Haven't managed to pen [41:04.780 --> 41:09.600] test them yet, but I'm really pushing BA and IAG to see if we can have a pop. Really interesting [41:09.600 --> 41:16.020] devices. Fueling is also a major problem. There's two primary providers. It's all API-based, all [41:16.020 --> 41:20.040] done through tablets. I think there's a really interesting set of research to be done there. [41:20.040 --> 41:25.960] And ground power is a major problem as well. I'm not going to talk about spoofing ADS-B. I'm not [41:25.960 --> 41:30.220] going to talk about that either. But what I really wanted to get to here is if you're doing research [41:30.220 --> 41:35.080] in aviation, please make sure you disclose it responsibly. Don't drop it like it's hot in the [41:35.080 --> 41:40.760] public. It's not going to be possible to fix that bug and publish it in 90 days data. It's going to [41:40.760 --> 41:47.640] take a while. If you're struggling to get airlines or manufacturers to listen to you, there's a couple [41:47.640 --> 41:51.820] of really awesome routes you can go. So the Aviation ISAC will help broker vulnerability disclosure [41:51.820 --> 41:57.020] for you. If you're struggling too, the DEFCON Aerospace Village, wherever there, we helped found it. [41:57.060 --> 42:01.360] We will help you as well. There's lots of really cool organizations that can help you disclose [42:01.360 --> 42:08.720] vulnerabilities to airline and get things fixed. Planes are very complicated. They have really, [42:08.720 --> 42:13.240] really important safety engineering in there. So it does take a while to get the bugs fixed. So just [42:13.240 --> 42:19.860] bear with whilst they fixed it safely and responsibly. It would be lovely just to push [42:19.860 --> 42:24.980] an update, wouldn't it? But the chance of blue screening a plane? Should we just not go there? [42:25.340 --> 42:30.020] Anyway, that is me. Hope you found it interesting. That's my email. That's the firm I work for. We're [42:30.020 --> 42:33.100] over in the Aerospace Village if you want to come and have a chat. We've got a flight simulator to [42:33.100 --> 42:35.020] play with, but thank you so much.