So I'm Matt Gaffney, also known as Gaffers. I'm a principal engineer at United Airlines. I'm also a village lead at the Aerospace Village. So a big shout out to those guys, put on a great show this year. I'm going to do a shallow dive into aircraft PKI, and I've got a few caveats to start with. Like I said, this is a shallow dive into the topic. I see a few operators that I recognize in the room, and at least one expert who will know this topic several times better than I ever will. And you'll understand when I say this, this is something you can easily spend three days talking about. It is so complex. So there are some simplifications, and there are some generalizations. And I'm also only going to speak to what I'm authorized to speak to. And through the village, our ethos is to bring light and not heat to the topic of cyber and aerospace. So this will be supplier agnostic, and there are some industry challenges that we're working together to fix, which I cannot cover, all right? That's what we'll go through today. The importance, some use cases, methods A, B, and C, a bit of it on ATA spec 42, and then some about post-quantum world PKI for aircraft. I've included a slide of acronyms because I know the slides are going to be available later through DEF CON. But like I said, those of you who work in aerospace will know what I'm talking about. I will try to name them out every time I mention them the first time around. If I don't, just throw something at me. So why is it important? Well, in aviation, we have this thing called field loadable software, or FLS. And in modern commercial aircraft, FLS is everywhere. And don't just think about your IFE, right? You know, it's like your in-flight entertainment, sorry, with your films or movies. We have sensors which generate logs for maintenance and preventative maintenance, communication systems, control surfaces, and navigation databases. And then for legacy, and in most cases on next-gen aircraft, if you wanted to update the firmware in a line replaceable unit or an LRU, you'd have to take it out and put a new one in. Whereas with the enabled aircraft, there are certain LRUs to which you can just push a new FLS to activate new features or just to update the functionality to fix any bugs. And if you saw my talk on DEF CON 28 on the aircraft information systems domain, you might remember my favorite factoid, and that's that there are about 1400 different software parts on a 787 to control the bathrooms. And so these are the typical use cases. It's not an exhaustive list, but it covers the main use cases in commercial aviation and those which I generally have time for today. So aircraft operators receive FLS from multiple sources. They can be manufacturers, OEMs, suppliers, and even from internal teams who can build a subtype of FLS called UMI, or user modifiable information. A good example of UMI is a configuration load for the aircraft information systems domain on certain aircraft, which will define things like connectivity to the ground, enabling and disabling features or systems. And that is a part we would create and sign before we can put it on the aircraft. And when we receive an FLS from an external source, we are required by regulation to verify its authenticity. For handling FLS, the manufacturers provide operators with the software to which we configure them with the verified supplier's trust chains. And that allows us to verify it's been signed by the trusted entity. As important as verifying its authenticity, it's vital we check the FLS integrity as well. And we're also required by regulation to do that as well. In fact, through various standards, we're mandated to do this before uploading to the aircraft. And there's a new requirement, and I'm sure I'm going to get some eye rolls from somebody in the front row here about the recent implementation or basically new rules around using ARINC 645-1 portable data loaders or PDLs. It's been a bit of a thing for us. But these enforce signature checking of the FLS prior to loading onto the aircraft in a technical sense. So we're not relying on the mechanic or the technician to do those checks. You actually can't physically put it on the aircraft until that signature has been checked, which is great. And it may or may not surprise you when I say that an aircraft can generate hundreds of megabytes, if not several gigabytes of data per flight length. We've come a long way from the days of OOE messages over A-cars, although they do still exist. The vast majority of data comes from the engines. Or certain aircraft, if you have an AD pilot and he slams it on a landing, some of the carbon fiber aircraft, they also generate stress data. And as soon as the aircraft touches down, you get that infamous weight on wheels signal to the avionics, it will start trying to establish a link to the ground systems. And sometimes even before the aircraft reaches the gate. These connections are typically 4G and Wi-Fi. And most airport gates have an access point for a service called gate link, which can best be described as a common use network dedicated for aircraft traffic. And for that reason, many operators also implemented VPN through gate link to their network boundary. And depending on the aircraft, each VPN can require between one and three certificates just for that connection. And that's per aircraft. It's also worth noting the logs are digitally signed and verified before being ingested by the operator in the relevant tools or sent on to third parties for analysis. Certificates can also be used to enforce boundary, server and even application authentication. It does require mapping these certificates to AD identities, which is fun, especially if you operate a large number of enabled aircraft. It's no secret that, you know, at United, we're trying to upgrade our fleet. I think when I started with 150 enabled aircraft in our fleet, which was a minority, by the time we finished updating it, we'll have over a thousand enabled aircraft. And that's going to mean a lot of work in terms of this PKI and the connectivity piece. And the final use case I'd like to cover today touches a little bit on ATA spec 42, which I'm going to cover a bit later on. But suffice to say, there are some real wins possible using certificates in smart cards for user authentication. Not only does it provide two-factor without a mobile device, but it has advantages from a user experience perspective as well. If you're in a public-facing role, would you rather a password with 15 plus characters, which is rotated every three to 12 months? Or would you prefer a smart card with a PIN code instead? And every time you log in, you type in a PIN code. And when you pull the smart card out, it locks the screen automatically. So you get great security, and you also get a great user experience as well. And if you're a gate agent working in a public area, that could be a real win. We're working on it. But going back to signing FLS, so ATA spec 42 requires all PKI subscribers to authenticate to the PKI management platform using those smart card-based hardware certificates, like I just showed you in my hand there. The spec puts a huge emphasis on identity verification, dual controls, and audit of all activities. Without strong authentication mechanisms, all of that would be for naught. In some scenarios, depending on the method used to sign the FLS, the signing certificate can be held on the smart card of those specific subscribers who are authorized to sign the software. So coming on to the signing then, so signing FLS method A, on the left there, we're receiving the software, or it's coming from that internal team. And in method A, it's typically, in this scenario, it's typically unsigned. If it was signed, it would just be verified and then put into the storage or the repository. But in method A, you get your data, your software part here, which is an ARINC 665 load. Basically, it's an ARINC standard of zip file structures and the header files. And then using the manufacturer-provided tools, the device sponsor here will use their smart card and the software will then verify that certificate on his smart card with an OCSP response. And if it's valid, the software will go ahead and sign that software using that device sponsor's private key. And it creates a load with a signed OCSP response along with the data and the encrypted hash or the signature. And this is great. It's got a bunch of advantages. So once an FLS has been signed with a valid certificate, it never needs to be signed again unless that software is modified. So it doesn't matter if that certificate is revoked later or it expires, we know that at the time of signing that that certificate was valid. And also in this situation, the aircraft does not need to access a CRL or a certificate revocation list. It just needs to be configured with a trust chain. The disadvantages are you don't control the PKI and you have to pay for it. And also, you know, these ground system environments often use virtual machines. And if you can imagine here, I've oversimplified it here, but this device sponsor is probably on a laptop going to a jump box to go into a high secure zone. And you've got to get that smart card that he's got on his laptop read by the software that's on a VM through a jump box. That can be tricky to set up. And I'm probably getting some nods in the front row. I can't see for the lights. Method B, a little bit more simplistic. So we will receive data signed or unsigned. If it's signed, we verify the signature and then strip it off. And then we keep our signing signature or signing certificate, sorry, in a HSM, which is used by that software. It's checked by the CRL, of course, and then goes a much more simple structure here and then goes into repository. From the repository, I didn't cover that in the last slide, sorry. There are multiple ways to get that from the repository to the aircraft. There's the over-the-air technique, which some aircraft enable us to do. It still requires a mechanic or a technician to go into the cockpit and press some buttons. And there's some other conditions which have to be true as well. All this science fiction you read about changing software in flight, yeah, I'm not gonna tell you what those conditions are, but there are conditions which stop that kind of thing. We can also use USBs, and these are not your typical USBs you keep at home. These are actually assigned as tools and they are treated as such. They're signed in and out of the tool store. They go through procedures to wipe and clean them, or at least they should anyway. And then the one in the middle there is a PDL or a portable data loader. That's what I was talking about earlier with 6451. And they will connect to the network, pull the software into the PDL. You walk to the aircraft and plug the PDL into the aircraft and do it that way. And then there's method C, which is very similar to method A, but it also includes assigned SCDP response as well. And as far as I'm aware, and correct me if I'm wrong, but I'm not aware of this method in use for commercial aircraft today. It may well happen in the future, but today it's not currently in operation for commercial aircraft. But it does have practical uses where FLS is designed to be kept for a long term. Because while I said earlier in method A, the FLS doesn't need to be re-assigned. That's only as long as the CA it was issued from remains valid. So that could be a few years or it could be 20 years, depending on when you've caught it in that cycle. Method C allows for really long-term FLS to remain valid with the least amount of disruption to any aircraft FLS you've got loaded on there. It's also an interesting solution for record keeping in aircraft maintenance, where you have to keep documentation sometimes for the lifespan of the aircraft and you have to be able to prove that it hasn't been modified during that time. So this is a typical process load for the generation of an aircraft certificate. It is not by all means the only way of doing it, but I'm pressed for time, so it's the only one I'm going to cover today. So keying an aircraft is part of the maintenance function, and this means procedures are in place to make sure it's done only when authorized and there's adequate documentation and approvals in the process. So obviously your device sponsor here or somebody in your technical operations department, tech ops, will generate the key instruction or the key generation work instruction. And then someone would go to the aircraft and generate that key pair. And then depending on whether you've got over the air or whether you're using PDLs and USBs, you will bring that CSR back to the network, validate it, and then send it off to your PKI provider. The RA function there, that's the registration authority, that's an interesting one. So this is an ATA spec 42 requirement, and it's all about dual control. ATA spec 42 requires the PKI to have this registration authority who proves all registrations and requests. And when an airline outsources their PKI operation to a third party, there can be a need to insert an airline employee as the RA inside the PKI provider. And that's where this stuff gets interesting. And this is especially important for confirming aircraft identities because the PKI provider, they do PKI, they don't do aircraft, right? Not all the time, but there is one. And this creates a challenge when it comes to the audit side of the PKI. And obviously that audit is a key part of spec 42. But yes, the RA will authenticate and approve the CSR. That then gets passed on to the certificate authority who will again validate the CSR information and the signature and then issue the certificate. And then your technician goes back, retrieves the certificate, generates the loading work instruction, takes it to the aircraft, the aircraft validates the certificate and, you know, bobs your uncle. That's a typical process. And as you can see, one of the key things is that just like if you were generating, you know, a key pair on a server, the private key stays on the aircraft. Spec 42. So the ATA e-business data security working group, or the DSWG, is to set the strategic path for these standards and ensure that all project team efforts and specification changes requests are consistent with the industry's e-business vision, mission, and strategic plan. I couldn't paste that from their website. I never sound that professional. But basically, it's a group formed by experts across the industry, including OAMs, manufacturers, operators. I'm in there. I feel less intelligent than I usually do in that room because these guys have just brains the size of a planet, but it's important that we're there. Suppliers are in the room, and then interested parties from the ATA membership as well. And ATA Spec 42 has a strong emphasis on the establishment of trust based on verified identity. So when you become a subscriber as a person, you go through identity checks to verify that you are who you say you are. And that then goes through two-person control as well. We also have strong emphasis on certificate usage, technical and procedural controls, protection of PII, audit documents. It's 410 pages, and it's very complex language. I'm going to be straight with you. The first time I read it, it was tough. I did not get it. It took me several reads, and it also put me to sleep a few times. I'm not going to lie. It's a good cure for insomnia. But we were told that all PKI have to basically used to design software parts shall now be compliant with ATA Spec 42. So what that means is, if we're using one certificate to sign parts, then we're going to start using ATA Spec 42 compliant certificates for all of our PKI. So that's what we've been doing. Audit scope is defined by the network and technology used in operating the PKI. It's a bit like the fruit of the poison tree. So everything the PKI touches is in scope. So remember that RA rule I was talking about earlier? This is where it gets fun because the RA is considered part of the PKI. But they use the operator's IT and network. And so to avoid bringing the entire operator IT into a very painful and thorough audit, they need to use a very locked down IT device with bare bones of what's required and minimum interaction with the network and the infrastructure. It's strictly controlled by the certificate policy and the certificate practice statement and forms a part of the on-site checks during the annual audit. So we've got a few of these all over the country, actually, because a lot of us are remote. And the auditor's going to have to go and fly and see them and check they're locked down to the specifications in the CPS. So it's fun. And then finally, so the challenges to radiation PKI in a post-quantum world. This one's been really eating away at my brain the last six to 12 months. Because the threats are not only very real, but also very difficult to figure out in terms of aviation. Depending on who you talk to, quantum computer capable of breaking Shor's algorithm is either five, 10, 15, or 20 years away. But regardless, an aircraft lifespan is typically 30 years or even more. And once an aircraft is certified, it's really hard to change it. It's certainly very expensive. I mean, the rumor is it takes so much testing that changing one line of code in the avionics costs a million dollars, just because you have to go through all those tests afterwards. I don't know if that's true or not, but that's what I've been told. So imagine how much effort it would take to enable post-quantum key sizes across all manufacturers and all fleets. Does the hardware in the LIU have the required memory and processing power for PQ algorithms? The switch from SHA-1 to SHA-2 back in about 2017 caused a friend of mine in a previous job to complain a lot about how it now took 10 minutes to create a key pair instead of the five minutes that it used to. How long would a post-quantum safe signature take to generate in an LIU? I don't know. That's going to be an interesting one to do. So I'm coming to the end here and I want to talk a little bit about the way ahead. So at the operator level, some advice from the DSWG is to start an inventory of all your PKI use cases. And when NIST finally figures out which algorithms are good to use for which use case, start identifying those suitable algorithms for each one. And then with the manufacturers and OEMs, we're going to figure out the embedded software challenge because that's a big one. If you've ever coded in C, dealing with memory pointers and the digital signature, which was a few dozen kilobytes, is now several megabytes. That's going to be fun. And of course, we need to do a lot of testing, regulator approval, and it's not going to happen in the timeline we've got for post-quantum computing to become a thing or to become a threat. So we're up against it on that front. I'm going to be back in the village after this talk. If anyone wants to come and talk about post-quantum PKI, I'm all ears. I'd love to hear from any experts out there. I can take that back to DSWG and maybe sound a little bit more intelligent than I usually do. But yeah. Or if you want to come back and talk PKI, I'll be there for a little bit. I've got malorts. I live in Chicago now, so it's obligatory to become a malort fan. So I've got malorts if you want that too. But yeah, I've got a few moments for questions, I think. Crack at this. Light is bright. Thank you. So gentleman in the front. It's hard to say yes to that. The reason being is that it's not specifically covered in regulation. A lot of this isn't, actually. It's actually more to do with the manufacturers send down recommendations and instructions to operators on how to do things. And they also build things around a secure framework. They all have product security teams and they all do a lot of work. They can't share a lot of information with us, except for these recommendations and instructions, right? And the FAA has quite rightly said, even if it's a recommendation, you implemented it as if it was an instruction, right? So that's good. And that's what we do. So that signing of the logs coming off the aircraft, obviously, is probably a part of that risk assessment that the manufacturers have gone through, because that is potentially safety related. If the logs are tampered with, then either a required, you know, maintenance check or job is not going to be done, or it's going to be done and it's not required, right? And that's a problem. So that's why they're signed. So when they come off and they're analyzed, we're sure of their integrity. Yeah. Good question. Yeah, sorry. Sorry, say that again. With method A, you just grab a new certificate and carry on. With method B, you get a new certificate and re-sign everything. Yes, sir. Yeah, yeah. When I say logs, I mean all of it. Yeah. Yeah. Focal is a part of that. So for those who don't know, focal data is engine related. And actually, we don't decode that. Back to the engine manufacturers, they decode it and they're really nice. They sell it back to us. Yeah, as well. Yeah. All right. I think I'm being kicked off stage. So like I said, I'm in the village. You want to come and chat and share some of my log. Thanks.