start	end	text
0	29740	All right, thanks for coming to my talk. So first, the obligatory who am I slide. I'm a research scientist at the University of Washington. I was also a grad student there. And back when I was a grad student, I did some of the early car hacking work there. And we did that in collaboration with UC San Diego. And after I finished my PhD, I went there as a postdoc to start on a project where they were looking
29740	59520	to do some of the similar type of research that we did with the cars, but on planes instead. And so that's how I got into looking at these avionics systems. So first of all, what is AERINC? AERINC is a company that was founded in 1929 to basically manage all the aviation related radio licenses. This was chartered by the Federal Radio Commission.
59740	76540	The predecessor to the FCC, because that didn't come around until 1934. But basically, they just, they initially managed those radio licenses. And then later, they, they started to define some of the communication protocols.
76540	85910	The company was up until fairly recently owned by a lot of the major airlines and some of the manufacturers like Boeing.
86890	96230	And it was sort of a neutral way for many airlines and manufacturers to agree upon standards.
96670	109270	So the reason that they're important is they developed this thing called ACARS in 1978. And this was initially to automatically report these OOOI events.
110050	126410	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. And this determines crew pay apparently. So this was very important to the airlines to get that accurate.
126410	143450	And so ACARS was developed to automatically report these events over, over radio when these happened. And since then, ACARS has been sort of expanded to be a generic way of doing ground to air messaging.
143690	154950	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.
156870	171430	So Air Inc. 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.
172050	181190	They also run the ACARS infrastructure. They do have another competitor, but they're one of the major providers.
181190	205190	They were acquired by Rockwell Collins fairly recently, and now they're owned by United Technologies. But there was sort of a conflict of interest between sort of the commercial messaging services and their standards division. And so the standards part got acquired by SAE International, who does a bunch of the automotive standards.
205930	212850	So there's sort of three different classes of standards that Air Inc. defines. And so this is right out of the foreword of one of their
214530	224850	specifications. So there are things that they call characteristics, which are not necessarily, you know, a full blown specification, but basically expressing
225810	229270	the desires of the various airline manufacturers
230170	230730	or
232090	234410	airline, airline
235190	237970	God, why am I blanking? The airliners.
238890	244710	Yeah. So, and then there's the actual specifications, which are more technical and they
246410	259950	they fully define things like the various data buses that are used in planes. And then there's reports that, well, they're not that interesting to us hackers.
260750	270770	So let's start with Air Inc. 429. So I like to call this the CAN bus of aviation. So as you might know, the CAN bus is used to send messages between
272730	292810	different components in the car. And similarly on airplanes, on a lot of them, they use Air Inc. 429. And instead of sending several bytes at a time, as with a CAN, Air Inc. 429 can only send 32-bit words.
293050	299230	They're sent over a differential pair. There's both low speed and high speed versions of Air Inc. 429.
299950	307850	The low speed version goes at what 12 and a half kilobits per second and the high speed version is 100 kilobits per second.
308850	322870	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.
323230	334850	And one of the really interesting things that distinguishes Air Inc. 429 from CAN is that it is physically a single sender, multiple receiver network.
335130	343390	And so this means that if your in-flight entertainment system is connected up to some other part of
344170	353530	the plane, say the flight management computer, to receive like the current altitude or things like that to show passengers, it only has
354070	359710	the physical hardware to receive that information. It can't actually assert that back onto the bus.
359770	367050	And so you might have heard claims before about, you know, 737s could go sideways or whatnot through the in-flight entertainment system.
367050	377130	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
377550	385690	and assumed you could just send and spoof them, but you actually can't. You can just receive them.
387090	389270	For various reasons,
389950	396570	the label is set most significant bit first, while the rest of the data is least significant bit first.
396690	406750	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.
406750	414350	And then you have to figure out if it was automatically swapped or not. And then in some cases it'll have like...
415450	426450	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.
427250	436990	So that's a bit unfortunate, but it is what it is. So there's a few different types of messages. Some of the original stuff were sort of status messages.
436990	446930	And they have a few bits dedicated to what they call this signed status matrix. And so they'll send values like the current altitude or current heading.
447430	460360	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.
461280	482880	There's also what they call the character-oriented protocol. And this is used to send sort of character streams between various systems. 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.
482920	486320	It's also used to push things to the printer, for example.
486960	492100	And then there's also this bit-oriented protocol that I'll talk about in a second.
492360	511880	So this is right out of the 429 specification, just to make it a bit more concrete as to what this looks like. So you have this parity bit here as the last bit. You have this label. This SDI is either a source or destination. So in planes, you'll have redundant units.
512490	521430	And so this will indicate whether it's which side of the plane the redundant unit is on.
522680	532450	And then, you know, this is a pretty old standard. So they'll commonly send things as binary coded decimal values or, in some cases, binary values.
532450	542990	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.
545360	561060	Yeah, so a bit more about the character-oriented protocol. As opposed to these sort of status messages, they specify the receiver of a particular message and the label.
561660	573520	This is, you know, used by the communications management unit, the display, the printer, things like that. And there's sort of a handshake that goes on between the various units involved where
574420	583960	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
584840	586560	as it goes along.
588160	601900	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
601900	614140	oh so fun to deal with. There's two versions. The first version is sort of similar to the character-oriented protocol, where basically there's a handshake and it says,
614140	627120	you know, how much data you're about to transfer and which block you're transferring and things like that. And so that goes back and forth. And then surprise, version three, it's Ethernet.
627940	634740	It is, this just blew my mind that they actually decided to put 802
635480	648460	frame right into and shove it into these erring 429 wards. And this is used by the new VHF data radio standard that I'll talk about in a bit.
649060	650720	And it also
651620	658400	has a 16-bit CRC along with, you know, the standard Ethernet bits there as well.
660080	672440	615 defines the data loader. So this is used to update flight navigation databases, firmware in some cases, things like that. It's the protocol is pretty similar to the character-oriented protocol
673120	676520	with some minor differences to deal with
678140	705960	specifics of data loading. And this is actually a photo from a 737 of a data loader that is installed into the plane. 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. But yeah, again, it is what it is. And yeah, almost certainly no code signing there.
706980	715820	I've heard that the recommended best practice for authenticating these updates is to check the return address on the label from
716600	718420	from where you got it from.
719400	727240	It's better now in newer planes, but this, you know, this is still sort of in many planes today.
728760	738520	618 defines the air-ground link in ACARS. So those ACARS messages consist of a mode. There's sort of two different modes
741100	745840	of ACARS messages that you can send. It has the address of the
746520	754100	of the aircraft that you're talking to, which is based on the tail number. There's an acknowledgement counter, which is used to
754580	757300	it's basically like a TCP acknowledgement number
758240	759700	that just cycles through
760660	771720	so that you can confirm that aircraft has received a particular packet. There's a two character label which identifies the type of message.
772300	777840	And if it's a multi, if the message can't fit within a single ACARS packet
777840	785080	it gets split up into blocks. And so there's a block identifier there to indicate which particular part of
785620	798600	the message it is. Then there's just, you know, the regular text and a checksum. So 618 also defines how this gets transmitted over the air and it's basically just a frequency shift keying or minimum shift keying
799240	805560	modem. If you tune in on, what is it, 131.5 megahertz
806400	815780	using, you know, just AM modulation, you'll hear the squawks occasionally, which are these ACARS packets.
816160	822020	The radio itself, the interface between the communications management unit and the radio itself is defined
822740	834500	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.
835560	844260	There's this new thing too called VDL2, VHF Data Link 2, which is a new digital mode. It uses
845620	853960	sort of a newer modulation scheme that's completely digital and instead of this sort of homegrown
855260	869320	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
870460	875940	dealing with acknowledgements and sort of link layer issues.
877760	902480	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.
902480	908240	This new VDL link also will support things like automatically or
908920	923380	yeah automatically contacting of air traffic control. So there's air traffic control applications that are being sent over this now. I believe that's used more in Europe than the US, but maybe that's coming.
924680	926780	There's a couple of other ACARS standards
927780	928700	that you
928700	951480	should know about. So 619 defines the interface between this communication management unit and other LRUs. So LRUs are Line Replaceable Units. They're basically just a generic term for the other units in a plane. So things like the flight management computer,
951480	964540	cockpit printer, the MCDU, all these other things are just LRUs. It's kind of the, the car equivalent would be ECU for example. Each industry sort of has its own term.
965000	970280	So this just defines sort of a generic way to forward messages
971160	983380	from the CMU to these other systems. For example, pushing a message from the CMU to the cockpit printer to, you know, have your connecting gate information, for example.
983860	994420	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.
995220	999600	So speaking of the communications management unit, they have a standard for that as well.
1000300	1009540	Originally, this was just called the ACARS unit, but now it's sort of a generic communications hub. It can send things like
1010560	1022960	engine performance and diagnostic data, you know, it'll talk to the printer. It can push flight plan updates to the FMS, although they have to be
1023640	1033020	manually confirmed by the pilots. And it also sort of defines the physical interface to the rest of
1033820	1044100	the aircraft. So here's a couple of figures from the standard which basically define what all the pins are on the BAT connector.
1044580	1053000	And there's a bunch of different 429 buses that connect and a lot of discrete inputs, especially for those
1054100	1055960	out, off, in, and
1057280	1061620	out, on, out, off, on, in messages.
1064460	1070700	So the way that you typically interact with this communications management unit is with
1071460	1078960	what's called the MCDU. This is also defined in an AIRINC standard, SENT-39A.
1079140	1084160	It stands for Multi-Purpose Control and Display Unit, and this is sort of a common interface for
1085120	1090820	for the communications management unit, flight management system, things like that.
1091300	1100680	Originally, they were sort of separate systems that had their own display, but this now allows a common interface to all these systems.
1104540	1115400	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.
1115780	1118660	So 702A talks about... what?
1119560	1123520	Okay, well, yeah, it's just... yeah, it's fine.
1123620	1129800	So there are standards that cover the flight management system, cockpit printer,
1129800	1136440	the 777 has its own unique data bus, which...
1137520	1144080	well, to be honest, you can't get surplus 777 parts off of eBay, so I'm not that interested in them.
1144380	1154220	Same with 664. This is actually a deterministic Ethernet for aviation, sort of a high reliability version of Ethernet
1154220	1163000	that guarantees no packet loss, and this is used on newer aircraft such as the 787 or A380.
1163000	1172140	And it sort of simulates those unidirectional 429 buses with VLANs, and supposedly that works.
1172700	1176680	Probably works, but, you know, there's... we'll see.
1176680	1186100	There's this standard called GateLink, which lets you do Wi-Fi to the aircraft, and this connects with the communications management unit.
1186100	1200660	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.
1200660	1210560	And then there's also 825, which I recently just became aware of, which is basically using... or adapting the CAN bus for aviation.
1210980	1216280	So basically that's all I have, so thanks for your attention, and I'll take any questions.
1221730	1222770	Questions?
1228300	1230320	Okay, sure.
1240120	1249860	So the thing that stops them from sending messages is that the hardware to send and receive 429 packets is different.
1249860	1256420	And so basically it's just a... it's physically just a receiver module there.
1256420	1266620	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.
1271580	1272780	Yes.
1281690	1282730	Okay.
1285310	1286510	Yes.
1286510	1287830	Yes.
1291310	1299430	Yeah, so the question is, simulating 429 with VLANs, is that going to supplant 429?
1299450	1303690	So I believe in the 787 and A380, it does.
1303710	1307370	They use Ethernet.
1307370	1309090	I'm getting an ish, so...
1313740	1317720	Okay, so he said basic systems still have 429.
1327570	1329410	Yes, yes.
1329410	1338990	So the question there was, does that change the assumption about just having the hardware to send or just having the hardware to receive?
1338990	1339790	And yes, it does.
1339790	1347890	And that's why you have to ensure this isolation through the network switches and with VLANs and things like that.
1348750	1355270	I wish I could get my hands on a switch to play with this, but they cost like $50,000.
1356010	1360070	And they're not really falling off the back of a truck or anything, so...
1360950	1362310	I'm sad.
1364790	1366070	Anything else?
1367390	1369350	Oh, wow!
1379640	1380500	All right, thanks.
