1 00:00:00,000 --> 00:00:02,660 All right, thanks for coming to my talk. 2 00:00:03,120 --> 00:00:06,640 So first, the obligatory who am I slide. 3 00:00:06,640 --> 00:00:09,780 I'm a research scientist at the University of Washington. 4 00:00:09,920 --> 00:00:12,140 I was also a grad student there. 5 00:00:12,360 --> 00:00:16,780 And back when I was a grad student, I did some of the early car hacking work there. 6 00:00:17,040 --> 00:00:21,100 And we did that in collaboration with UC San Diego. 7 00:00:21,280 --> 00:00:36,960 And after I finished my PhD, I went there as a postdoc to start on a project where they were looking to do some of the similar type of research that we did with the cars, but on planes instead. 8 00:00:37,040 --> 00:00:40,900 And so that's how I got into looking at these avionics systems. 9 00:00:41,560 --> 00:00:43,220 So first of all, what is AERINC? 10 00:00:43,240 --> 00:00:53,400 AERINC is a company that was founded in 1929 to basically manage all the aviation related radio licenses. 11 00:00:53,680 --> 00:00:59,520 This was chartered by the Federal Radio Commission. 12 00:00:59,740 --> 00:01:04,980 The predecessor to the FCC, because that didn't come around until 1934. 13 00:01:04,980 --> 00:01:10,300 But basically, they just, they initially managed those radio licenses. 14 00:01:10,300 --> 00:01:16,540 And then later, they, they started to define some of the communication protocols. 15 00:01:16,540 --> 00:01:25,910 The company was up until fairly recently owned by a lot of the major airlines and some of the manufacturers like Boeing. 16 00:01:26,890 --> 00:01:36,230 And it was sort of a neutral way for many airlines and manufacturers to agree upon standards. 17 00:01:36,670 --> 00:01:42,470 So the reason that they're important is they developed this thing called ACARS in 1978. 18 00:01:42,470 --> 00:01:49,270 And this was initially to automatically report these OOOI events. 19 00:01:50,050 --> 00:01:59,030 So that is when a plane gets off the ground or out of the gate, off the ground, on the ground and in the gate. 20 00:01:59,070 --> 00:02:02,490 And this determines crew pay apparently. 21 00:02:02,490 --> 00:02:06,410 So this was very important to the airlines to get that accurate. 22 00:02:06,410 --> 00:02:15,070 And so ACARS was developed to automatically report these events over, over radio when these happened. 23 00:02:15,470 --> 00:02:23,450 And since then, ACARS has been sort of expanded to be a generic way of doing ground to air messaging. 24 00:02:23,690 --> 00:02:34,950 So you can, you know, if you get like connecting flight information that is often pushed through messages sent to ACARS and various things like that. 25 00:02:36,870 --> 00:02:38,670 So Air Inc. 26 00:02:38,670 --> 00:02:51,430 developed ACARS back in 78, but they've gone on since to develop a number of standards to encourage interoperability between manufacturers of these avionics systems. 27 00:02:52,050 --> 00:02:56,790 They also run the ACARS infrastructure. 28 00:02:56,790 --> 00:03:01,190 They do have another competitor, but they're one of the major providers. 29 00:03:01,190 --> 00:03:10,050 They were acquired by Rockwell Collins fairly recently, and now they're owned by United Technologies. 30 00:03:10,050 --> 00:03:18,070 But there was sort of a conflict of interest between sort of the commercial messaging services and their standards division. 31 00:03:18,070 --> 00:03:25,190 And so the standards part got acquired by SAE International, who does a bunch of the automotive standards. 32 00:03:25,930 --> 00:03:29,790 So there's sort of three different classes of standards that Air Inc. 33 00:03:29,790 --> 00:03:30,370 defines. 34 00:03:30,370 --> 00:03:35,650 And so this is right out of the foreword of one of their specifications. 35 00:03:35,710 --> 00:03:56,470 So there are things that they call characteristics, which are not necessarily, you know, a full blown specification, but basically expressing the desires of the various airline manufacturers or airline, airline God, why am I blanking? 36 00:03:56,470 --> 00:03:57,970 The airliners. 37 00:03:58,890 --> 00:03:59,610 Yeah. 38 00:03:59,870 --> 00:04:14,550 So, and then there's the actual specifications, which are more technical and they they fully define things like the various data buses that are used in planes. 39 00:04:14,550 --> 00:04:19,950 And then there's reports that, well, they're not that interesting to us hackers. 40 00:04:20,750 --> 00:04:22,010 So let's start with Air Inc. 41 00:04:22,070 --> 00:04:22,790 429. 42 00:04:23,070 --> 00:04:25,430 So I like to call this the CAN bus of aviation. 43 00:04:26,150 --> 00:04:35,070 So as you might know, the CAN bus is used to send messages between different components in the car. 44 00:04:35,490 --> 00:04:41,310 And similarly on airplanes, on a lot of them, they use Air Inc. 45 00:04:41,310 --> 00:04:42,390 429. 46 00:04:42,870 --> 00:04:49,750 And instead of sending several bytes at a time, as with a CAN, Air Inc. 47 00:04:49,750 --> 00:04:52,810 429 can only send 32-bit words. 48 00:04:53,050 --> 00:04:54,730 They're sent over a differential pair. 49 00:04:54,730 --> 00:04:58,090 There's both low speed and high speed versions of Air Inc. 50 00:04:58,090 --> 00:04:59,230 429. 51 00:04:59,950 --> 00:05:07,850 The low speed version goes at what 12 and a half kilobits per second and the high speed version is 100 kilobits per second. 52 00:05:08,850 --> 00:05:22,870 Like CAN, there's sort of a label which either defines the message type or defines the recipient of a particular message based on the type of message that it is. 53 00:05:23,230 --> 00:05:27,590 And one of the really interesting things that distinguishes Air Inc. 54 00:05:27,590 --> 00:05:34,850 429 from CAN is that it is physically a single sender, multiple receiver network. 55 00:05:35,130 --> 00:05:56,370 And so this means that if your in-flight entertainment system is connected up to some other part of the plane, say the flight management computer, to receive like the current altitude or things like that to show passengers, it only has the physical hardware to receive that information. 56 00:05:56,370 --> 00:05:59,710 It can't actually assert that back onto the bus. 57 00:05:59,770 --> 00:06:07,050 And so you might have heard claims before about, you know, 737s could go sideways or whatnot through the in-flight entertainment system. 58 00:06:07,050 --> 00:06:22,810 What I think probably happened there is they might have gotten onto the in-flight entertainment system and ran something similar to Wireshark and saw all these packets coming in and assumed you could just send and spoof them, but you actually can't. 59 00:06:22,810 --> 00:06:25,690 You can just receive them. 60 00:06:27,090 --> 00:06:36,570 For various reasons, the label is set most significant bit first, while the rest of the data is least significant bit first. 61 00:06:36,690 --> 00:06:46,750 And honestly, this is the hardest part about dealing with 429, especially because some transceivers decide to be helpful and automatically swap the Indianness for you. 62 00:06:46,750 --> 00:06:51,910 And then you have to figure out if it was automatically swapped or not. 63 00:06:51,910 --> 00:06:54,350 And then in some cases it'll have like... 64 00:06:55,450 --> 00:07:06,450 So if you do an exchange between two different units where they exchange their system address labels, you have to deal with the Indianness there and it's just complete insanity. 65 00:07:07,250 --> 00:07:11,390 So that's a bit unfortunate, but it is what it is. 66 00:07:11,390 --> 00:07:13,790 So there's a few different types of messages. 67 00:07:14,010 --> 00:07:16,990 Some of the original stuff were sort of status messages. 68 00:07:16,990 --> 00:07:21,950 And they have a few bits dedicated to what they call this signed status matrix. 69 00:07:21,950 --> 00:07:26,930 And so they'll send values like the current altitude or current heading. 70 00:07:27,430 --> 00:07:40,360 And the signed status matrix bits say either, you know, whether it's positive or negative, north or south, whether a system is okay or failing or running a self test, things like that. 71 00:07:41,280 --> 00:07:44,540 There's also what they call the character-oriented protocol. 72 00:07:44,540 --> 00:07:49,140 And this is used to send sort of character streams between various systems. 73 00:07:49,140 --> 00:08:02,880 So this is used, for example, between the communications management unit that I'll talk about in a bit and the MCDU, the display unit that I'll talk about in a bit. 74 00:08:02,920 --> 00:08:06,320 It's also used to push things to the printer, for example. 75 00:08:06,960 --> 00:08:12,100 And then there's also this bit-oriented protocol that I'll talk about in a second. 76 00:08:12,360 --> 00:08:19,420 So this is right out of the 429 specification, just to make it a bit more concrete as to what this looks like. 77 00:08:19,420 --> 00:08:23,420 So you have this parity bit here as the last bit. 78 00:08:23,420 --> 00:08:24,940 You have this label. 79 00:08:25,040 --> 00:08:28,200 This SDI is either a source or destination. 80 00:08:28,340 --> 00:08:31,880 So in planes, you'll have redundant units. 81 00:08:32,490 --> 00:08:41,430 And so this will indicate whether it's which side of the plane the redundant unit is on. 82 00:08:42,680 --> 00:08:45,960 And then, you know, this is a pretty old standard. 83 00:08:45,960 --> 00:08:52,450 So they'll commonly send things as binary coded decimal values or, in some cases, binary values. 84 00:08:52,450 --> 00:09:02,990 And you can also send discrete bits as well from, you know, like sensors to say whether, you know, the wheels are on the ground or not. 85 00:09:05,360 --> 00:09:10,420 Yeah, so a bit more about the character-oriented protocol. 86 00:09:10,420 --> 00:09:21,060 As opposed to these sort of status messages, they specify the receiver of a particular message and the label. 87 00:09:21,660 --> 00:09:27,860 This is, you know, used by the communications management unit, the display, the printer, things like that. 88 00:09:27,860 --> 00:09:46,560 And there's sort of a handshake that goes on between the various units involved where the unit that wants to initiate a transfer sends a request to send, the other unit says clear to send back, and they sort of acknowledge data as it goes along. 89 00:09:48,160 --> 00:10:04,320 This has been, this is still used, but it's kind of been deprecated in a favor for something they call the bit-oriented protocol, which is used to send five nibbles at a time, which is oh so fun to deal with. 90 00:10:04,500 --> 00:10:06,660 There's two versions. 91 00:10:06,880 --> 00:10:22,360 The first version is sort of similar to the character-oriented protocol, where basically there's a handshake and it says, you know, how much data you're about to transfer and which block you're transferring and things like that. 92 00:10:22,360 --> 00:10:24,180 And so that goes back and forth. 93 00:10:24,180 --> 00:10:27,120 And then surprise, version three, it's Ethernet. 94 00:10:27,940 --> 00:10:42,520 It is, this just blew my mind that they actually decided to put 802 frame right into and shove it into these erring 429 wards. 95 00:10:42,640 --> 00:10:48,460 And this is used by the new VHF data radio standard that I'll talk about in a bit. 96 00:10:49,060 --> 00:10:58,400 And it also has a 16-bit CRC along with, you know, the standard Ethernet bits there as well. 97 00:11:00,080 --> 00:11:02,780 615 defines the data loader. 98 00:11:02,780 --> 00:11:09,140 So this is used to update flight navigation databases, firmware in some cases, things like that. 99 00:11:09,140 --> 00:11:20,380 It's the protocol is pretty similar to the character-oriented protocol with some minor differences to deal with specifics of data loading. 100 00:11:20,380 --> 00:11:26,380 And this is actually a photo from a 737 of a data loader that is installed into the plane. 101 00:11:26,380 --> 00:11:38,660 And yes, it literally takes floppies and you set the little switch to which unit you want to update and you press go and then it updates the system, which I thought was pretty weird. 102 00:11:38,660 --> 00:11:41,760 But yeah, again, it is what it is. 103 00:11:41,760 --> 00:11:45,960 And yeah, almost certainly no code signing there. 104 00:11:46,980 --> 00:11:58,420 I've heard that the recommended best practice for authenticating these updates is to check the return address on the label from from where you got it from. 105 00:11:59,400 --> 00:12:07,240 It's better now in newer planes, but this, you know, this is still sort of in many planes today. 106 00:12:08,760 --> 00:12:12,880 618 defines the air-ground link in ACARS. 107 00:12:12,880 --> 00:12:16,540 So those ACARS messages consist of a mode. 108 00:12:16,540 --> 00:12:23,640 There's sort of two different modes of ACARS messages that you can send. 109 00:12:23,640 --> 00:12:30,340 It has the address of the of the aircraft that you're talking to, which is based on the tail number. 110 00:12:30,340 --> 00:12:46,660 There's an acknowledgement counter, which is used to it's basically like a TCP acknowledgement number that just cycles through so that you can confirm that aircraft has received a particular packet. 111 00:12:46,780 --> 00:12:51,720 There's a two character label which identifies the type of message. 112 00:12:52,300 --> 00:13:00,560 And if it's a multi, if the message can't fit within a single ACARS packet it gets split up into blocks. 113 00:13:00,560 --> 00:13:06,860 And so there's a block identifier there to indicate which particular part of the message it is. 114 00:13:06,860 --> 00:13:10,100 Then there's just, you know, the regular text and a checksum. 115 00:13:10,360 --> 00:13:20,260 So 618 also defines how this gets transmitted over the air and it's basically just a frequency shift keying or minimum shift keying modem. 116 00:13:20,260 --> 00:13:35,780 If you tune in on, what is it, 131.5 megahertz using, you know, just AM modulation, you'll hear the squawks occasionally, which are these ACARS packets. 117 00:13:36,160 --> 00:13:54,500 The radio itself, the interface between the communications management unit and the radio itself is defined in Ericsson 16, which basically just lets the communications management unit retune the radio and it defines sort of the analog signals that are sent between them. 118 00:13:55,560 --> 00:14:03,560 There's this new thing too called VDL2, VHF Data Link 2, which is a new digital mode. 119 00:14:03,560 --> 00:14:35,940 It uses sort of a newer modulation scheme that's completely digital and instead of this sort of homegrown ACARS protocol for doing acknowledgements and things like that, it uses this AVLC framing system, which is based on HDLC, which is sort of a common way of dealing with acknowledgements and sort of link layer issues. 120 00:14:37,760 --> 00:15:02,480 So there's the Ericsson 750 standard that defines both the radio and this new digital mode, but there's a, there's, in 618 they also define ACARS over AVLC and so you can carry these traditional ACARS messages over this new VDL link. 121 00:15:02,480 --> 00:15:13,560 This new VDL link also will support things like automatically or yeah automatically contacting of air traffic control. 122 00:15:13,560 --> 00:15:17,340 So there's air traffic control applications that are being sent over this now. 123 00:15:17,340 --> 00:15:23,380 I believe that's used more in Europe than the US, but maybe that's coming. 124 00:15:24,680 --> 00:15:31,040 There's a couple of other ACARS standards that you should know about. 125 00:15:31,040 --> 00:15:39,160 So 619 defines the interface between this communication management unit and other LRUs. 126 00:15:39,160 --> 00:15:41,440 So LRUs are Line Replaceable Units. 127 00:15:41,440 --> 00:15:48,140 They're basically just a generic term for the other units in a plane. 128 00:15:48,140 --> 00:15:57,380 So things like the flight management computer, cockpit printer, the MCDU, all these other things are just LRUs. 129 00:15:57,420 --> 00:16:02,240 It's kind of the, the car equivalent would be ECU for example. 130 00:16:02,240 --> 00:16:04,540 Each industry sort of has its own term. 131 00:16:05,000 --> 00:16:14,000 So this just defines sort of a generic way to forward messages from the CMU to these other systems. 132 00:16:14,000 --> 00:16:23,380 For example, pushing a message from the CMU to the cockpit printer to, you know, have your connecting gate information, for example. 133 00:16:23,860 --> 00:16:34,420 And then 620 sort of defines the way that the ground segment works and how airlines communicate with the service provider to send this information back and forth. 134 00:16:35,220 --> 00:16:39,600 So speaking of the communications management unit, they have a standard for that as well. 135 00:16:40,300 --> 00:16:47,220 Originally, this was just called the ACARS unit, but now it's sort of a generic communications hub. 136 00:16:47,220 --> 00:16:56,200 It can send things like engine performance and diagnostic data, you know, it'll talk to the printer. 137 00:16:56,340 --> 00:17:06,100 It can push flight plan updates to the FMS, although they have to be manually confirmed by the pilots. 138 00:17:06,380 --> 00:17:14,940 And it also sort of defines the physical interface to the rest of the aircraft. 139 00:17:14,940 --> 00:17:24,100 So here's a couple of figures from the standard which basically define what all the pins are on the BAT connector. 140 00:17:24,580 --> 00:17:41,620 And there's a bunch of different 429 buses that connect and a lot of discrete inputs, especially for those out, off, in, and out, on, out, off, on, in messages. 141 00:17:44,460 --> 00:17:53,160 So the way that you typically interact with this communications management unit is with what's called the MCDU. 142 00:17:53,160 --> 00:17:58,960 This is also defined in an AIRINC standard, SENT-39A. 143 00:17:59,140 --> 00:18:10,820 It stands for Multi-Purpose Control and Display Unit, and this is sort of a common interface for for the communications management unit, flight management system, things like that. 144 00:18:11,300 --> 00:18:20,680 Originally, they were sort of separate systems that had their own display, but this now allows a common interface to all these systems. 145 00:18:24,540 --> 00:18:35,400 So this was... I thought this was a 20-minute talk, so I was going to wrap it up here by mentioning some other AIRINC standards that are interesting. 146 00:18:35,780 --> 00:18:38,660 So 702A talks about... what? 147 00:18:39,560 --> 00:18:43,520 Okay, well, yeah, it's just... yeah, it's fine. 148 00:18:43,620 --> 00:18:56,440 So there are standards that cover the flight management system, cockpit printer, the 777 has its own unique data bus, which... 149 00:18:57,520 --> 00:19:04,080 well, to be honest, you can't get surplus 777 parts off of eBay, so I'm not that interested in them. 150 00:19:04,380 --> 00:19:06,680 Same with 664. 151 00:19:06,680 --> 00:19:23,000 This is actually a deterministic Ethernet for aviation, sort of a high reliability version of Ethernet that guarantees no packet loss, and this is used on newer aircraft such as the 787 or A380. 152 00:19:23,000 --> 00:19:32,140 And it sort of simulates those unidirectional 429 buses with VLANs, and supposedly that works. 153 00:19:32,700 --> 00:19:36,680 Probably works, but, you know, there's... we'll see. 154 00:19:36,680 --> 00:19:46,100 There's this standard called GateLink, which lets you do Wi-Fi to the aircraft, and this connects with the communications management unit. 155 00:19:46,100 --> 00:20:00,660 So this is a way to push updates to the plane through Wi-Fi instead of going over the much more expensive VHF radios or satellite. 156 00:20:00,660 --> 00:20:10,560 And then there's also 825, which I recently just became aware of, which is basically using... or adapting the CAN bus for aviation. 157 00:20:10,980 --> 00:20:16,280 So basically that's all I have, so thanks for your attention, and I'll take any questions. 158 00:20:21,730 --> 00:20:22,770 Questions? 159 00:20:28,300 --> 00:20:30,320 Okay, sure. 160 00:20:40,120 --> 00:20:49,860 So the thing that stops them from sending messages is that the hardware to send and receive 429 packets is different. 161 00:20:49,860 --> 00:20:56,420 And so basically it's just a... it's physically just a receiver module there. 162 00:20:56,420 --> 00:21:06,620 And so, you know, even if you take total control over the system, you still can't physically turn that into something that can transmit data back onto that 429 bus. 163 00:21:11,580 --> 00:21:12,780 Yes. 164 00:21:21,690 --> 00:21:22,730 Okay. 165 00:21:25,310 --> 00:21:26,510 Yes. 166 00:21:26,510 --> 00:21:27,830 Yes. 167 00:21:31,310 --> 00:21:39,430 Yeah, so the question is, simulating 429 with VLANs, is that going to supplant 429? 168 00:21:39,450 --> 00:21:43,690 So I believe in the 787 and A380, it does. 169 00:21:43,710 --> 00:21:47,370 They use Ethernet. 170 00:21:47,370 --> 00:21:49,090 I'm getting an ish, so... 171 00:21:53,740 --> 00:21:57,720 Okay, so he said basic systems still have 429. 172 00:22:07,570 --> 00:22:09,410 Yes, yes. 173 00:22:09,410 --> 00:22:18,990 So the question there was, does that change the assumption about just having the hardware to send or just having the hardware to receive? 174 00:22:18,990 --> 00:22:19,790 And yes, it does. 175 00:22:19,790 --> 00:22:27,890 And that's why you have to ensure this isolation through the network switches and with VLANs and things like that. 176 00:22:28,750 --> 00:22:35,270 I wish I could get my hands on a switch to play with this, but they cost like $50,000. 177 00:22:36,010 --> 00:22:40,070 And they're not really falling off the back of a truck or anything, so... 178 00:22:40,950 --> 00:22:42,310 I'm sad. 179 00:22:44,790 --> 00:22:46,070 Anything else? 180 00:22:47,390 --> 00:22:49,350 Oh, wow! 181 00:22:59,640 --> 00:23:00,500 All right, thanks.