WEBVTT

00:00.000 --> 00:02.660
All right, thanks for coming to my talk.

00:03.120 --> 00:06.640
So first, the obligatory who am I slide.

00:06.640 --> 00:09.780
I'm a research scientist at the University of Washington.

00:09.920 --> 00:12.140
I was also a grad student there.

00:12.360 --> 00:16.780
And back when I was a grad student, I did some of the early car hacking work there.

00:17.040 --> 00:21.100
And we did that in collaboration with UC San Diego.

00:21.280 --> 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.

00:37.040 --> 00:40.900
And so that's how I got into looking at these avionics systems.

00:41.560 --> 00:43.220
So first of all, what is AERINC?

00:43.240 --> 00:53.400
AERINC is a company that was founded in 1929 to basically manage all the aviation related radio licenses.

00:53.680 --> 00:59.520
This was chartered by the Federal Radio Commission.

00:59.740 --> 01:04.980
The predecessor to the FCC, because that didn't come around until 1934.

01:04.980 --> 01:10.300
But basically, they just, they initially managed those radio licenses.

01:10.300 --> 01:16.540
And then later, they, they started to define some of the communication protocols.

01:16.540 --> 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.

01:26.890 --> 01:36.230
And it was sort of a neutral way for many airlines and manufacturers to agree upon standards.

01:36.670 --> 01:42.470
So the reason that they're important is they developed this thing called ACARS in 1978.

01:42.470 --> 01:49.270
And this was initially to automatically report these OOOI events.

01:50.050 --> 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.

01:59.070 --> 02:02.490
And this determines crew pay apparently.

02:02.490 --> 02:06.410
So this was very important to the airlines to get that accurate.

02:06.410 --> 02:15.070
And so ACARS was developed to automatically report these events over, over radio when these happened.

02:15.470 --> 02:23.450
And since then, ACARS has been sort of expanded to be a generic way of doing ground to air messaging.

02:23.690 --> 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.

02:36.870 --> 02:38.670
So Air Inc.

02:38.670 --> 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.

02:52.050 --> 02:56.790
They also run the ACARS infrastructure.

02:56.790 --> 03:01.190
They do have another competitor, but they're one of the major providers.

03:01.190 --> 03:10.050
They were acquired by Rockwell Collins fairly recently, and now they're owned by United Technologies.

03:10.050 --> 03:18.070
But there was sort of a conflict of interest between sort of the commercial messaging services and their standards division.

03:18.070 --> 03:25.190
And so the standards part got acquired by SAE International, who does a bunch of the automotive standards.

03:25.930 --> 03:29.790
So there's sort of three different classes of standards that Air Inc.

03:29.790 --> 03:30.370
defines.

03:30.370 --> 03:35.650
And so this is right out of the foreword of one of their specifications.

03:35.710 --> 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?

03:56.470 --> 03:57.970
The airliners.

03:58.890 --> 03:59.610
Yeah.

03:59.870 --> 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.

04:14.550 --> 04:19.950
And then there's reports that, well, they're not that interesting to us hackers.

04:20.750 --> 04:22.010
So let's start with Air Inc.

04:22.070 --> 04:22.790
429.

04:23.070 --> 04:25.430
So I like to call this the CAN bus of aviation.

04:26.150 --> 04:35.070
So as you might know, the CAN bus is used to send messages between different components in the car.

04:35.490 --> 04:41.310
And similarly on airplanes, on a lot of them, they use Air Inc.

04:41.310 --> 04:42.390
429.

04:42.870 --> 04:49.750
And instead of sending several bytes at a time, as with a CAN, Air Inc.

04:49.750 --> 04:52.810
429 can only send 32-bit words.

04:53.050 --> 04:54.730
They're sent over a differential pair.

04:54.730 --> 04:58.090
There's both low speed and high speed versions of Air Inc.

04:58.090 --> 04:59.230
429.

04:59.950 --> 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.

05:08.850 --> 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.

05:23.230 --> 05:27.590
And one of the really interesting things that distinguishes Air Inc.

05:27.590 --> 05:34.850
429 from CAN is that it is physically a single sender, multiple receiver network.

05:35.130 --> 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.

05:56.370 --> 05:59.710
It can't actually assert that back onto the bus.

05:59.770 --> 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.

06:07.050 --> 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.

06:22.810 --> 06:25.690
You can just receive them.

06:27.090 --> 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.

06:36.690 --> 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.

06:46.750 --> 06:51.910
And then you have to figure out if it was automatically swapped or not.

06:51.910 --> 06:54.350
And then in some cases it'll have like...

06:55.450 --> 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.

07:07.250 --> 07:11.390
So that's a bit unfortunate, but it is what it is.

07:11.390 --> 07:13.790
So there's a few different types of messages.

07:14.010 --> 07:16.990
Some of the original stuff were sort of status messages.

07:16.990 --> 07:21.950
And they have a few bits dedicated to what they call this signed status matrix.

07:21.950 --> 07:26.930
And so they'll send values like the current altitude or current heading.

07:27.430 --> 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.

07:41.280 --> 07:44.540
There's also what they call the character-oriented protocol.

07:44.540 --> 07:49.140
And this is used to send sort of character streams between various systems.

07:49.140 --> 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.

08:02.920 --> 08:06.320
It's also used to push things to the printer, for example.

08:06.960 --> 08:12.100
And then there's also this bit-oriented protocol that I'll talk about in a second.

08:12.360 --> 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.

08:19.420 --> 08:23.420
So you have this parity bit here as the last bit.

08:23.420 --> 08:24.940
You have this label.

08:25.040 --> 08:28.200
This SDI is either a source or destination.

08:28.340 --> 08:31.880
So in planes, you'll have redundant units.

08:32.490 --> 08:41.430
And so this will indicate whether it's which side of the plane the redundant unit is on.

08:42.680 --> 08:45.960
And then, you know, this is a pretty old standard.

08:45.960 --> 08:52.450
So they'll commonly send things as binary coded decimal values or, in some cases, binary values.

08:52.450 --> 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.

09:05.360 --> 09:10.420
Yeah, so a bit more about the character-oriented protocol.

09:10.420 --> 09:21.060
As opposed to these sort of status messages, they specify the receiver of a particular message and the label.

09:21.660 --> 09:27.860
This is, you know, used by the communications management unit, the display, the printer, things like that.

09:27.860 --> 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.

09:48.160 --> 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.

10:04.500 --> 10:06.660
There's two versions.

10:06.880 --> 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.

10:22.360 --> 10:24.180
And so that goes back and forth.

10:24.180 --> 10:27.120
And then surprise, version three, it's Ethernet.

10:27.940 --> 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.

10:42.640 --> 10:48.460
And this is used by the new VHF data radio standard that I'll talk about in a bit.

10:49.060 --> 10:58.400
And it also has a 16-bit CRC along with, you know, the standard Ethernet bits there as well.

11:00.080 --> 11:02.780
615 defines the data loader.

11:02.780 --> 11:09.140
So this is used to update flight navigation databases, firmware in some cases, things like that.

11:09.140 --> 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.

11:20.380 --> 11:26.380
And this is actually a photo from a 737 of a data loader that is installed into the plane.

11:26.380 --> 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.

11:38.660 --> 11:41.760
But yeah, again, it is what it is.

11:41.760 --> 11:45.960
And yeah, almost certainly no code signing there.

11:46.980 --> 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.

11:59.400 --> 12:07.240
It's better now in newer planes, but this, you know, this is still sort of in many planes today.

12:08.760 --> 12:12.880
618 defines the air-ground link in ACARS.

12:12.880 --> 12:16.540
So those ACARS messages consist of a mode.

12:16.540 --> 12:23.640
There's sort of two different modes of ACARS messages that you can send.

12:23.640 --> 12:30.340
It has the address of the of the aircraft that you're talking to, which is based on the tail number.

12:30.340 --> 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.

12:46.780 --> 12:51.720
There's a two character label which identifies the type of message.

12:52.300 --> 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.

13:00.560 --> 13:06.860
And so there's a block identifier there to indicate which particular part of the message it is.

13:06.860 --> 13:10.100
Then there's just, you know, the regular text and a checksum.

13:10.360 --> 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.

13:20.260 --> 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.

13:36.160 --> 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.

13:55.560 --> 14:03.560
There's this new thing too called VDL2, VHF Data Link 2, which is a new digital mode.

14:03.560 --> 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.

14:37.760 --> 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.

15:02.480 --> 15:13.560
This new VDL link also will support things like automatically or yeah automatically contacting of air traffic control.

15:13.560 --> 15:17.340
So there's air traffic control applications that are being sent over this now.

15:17.340 --> 15:23.380
I believe that's used more in Europe than the US, but maybe that's coming.

15:24.680 --> 15:31.040
There's a couple of other ACARS standards that you should know about.

15:31.040 --> 15:39.160
So 619 defines the interface between this communication management unit and other LRUs.

15:39.160 --> 15:41.440
So LRUs are Line Replaceable Units.

15:41.440 --> 15:48.140
They're basically just a generic term for the other units in a plane.

15:48.140 --> 15:57.380
So things like the flight management computer, cockpit printer, the MCDU, all these other things are just LRUs.

15:57.420 --> 16:02.240
It's kind of the, the car equivalent would be ECU for example.

16:02.240 --> 16:04.540
Each industry sort of has its own term.

16:05.000 --> 16:14.000
So this just defines sort of a generic way to forward messages from the CMU to these other systems.

16:14.000 --> 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.

16:23.860 --> 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.

16:35.220 --> 16:39.600
So speaking of the communications management unit, they have a standard for that as well.

16:40.300 --> 16:47.220
Originally, this was just called the ACARS unit, but now it's sort of a generic communications hub.

16:47.220 --> 16:56.200
It can send things like engine performance and diagnostic data, you know, it'll talk to the printer.

16:56.340 --> 17:06.100
It can push flight plan updates to the FMS, although they have to be manually confirmed by the pilots.

17:06.380 --> 17:14.940
And it also sort of defines the physical interface to the rest of the aircraft.

17:14.940 --> 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.

17:24.580 --> 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.

17:44.460 --> 17:53.160
So the way that you typically interact with this communications management unit is with what's called the MCDU.

17:53.160 --> 17:58.960
This is also defined in an AIRINC standard, SENT-39A.

17:59.140 --> 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.

18:11.300 --> 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.

18:24.540 --> 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.

18:35.780 --> 18:38.660
So 702A talks about... what?

18:39.560 --> 18:43.520
Okay, well, yeah, it's just... yeah, it's fine.

18:43.620 --> 18:56.440
So there are standards that cover the flight management system, cockpit printer, the 777 has its own unique data bus, which...

18:57.520 --> 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.

19:04.380 --> 19:06.680
Same with 664.

19:06.680 --> 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.

19:23.000 --> 19:32.140
And it sort of simulates those unidirectional 429 buses with VLANs, and supposedly that works.

19:32.700 --> 19:36.680
Probably works, but, you know, there's... we'll see.

19:36.680 --> 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.

19:46.100 --> 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.

20:00.660 --> 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.

20:10.980 --> 20:16.280
So basically that's all I have, so thanks for your attention, and I'll take any questions.

20:21.730 --> 20:22.770
Questions?

20:28.300 --> 20:30.320
Okay, sure.

20:40.120 --> 20:49.860
So the thing that stops them from sending messages is that the hardware to send and receive 429 packets is different.

20:49.860 --> 20:56.420
And so basically it's just a... it's physically just a receiver module there.

20:56.420 --> 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.

21:11.580 --> 21:12.780
Yes.

21:21.690 --> 21:22.730
Okay.

21:25.310 --> 21:26.510
Yes.

21:26.510 --> 21:27.830
Yes.

21:31.310 --> 21:39.430
Yeah, so the question is, simulating 429 with VLANs, is that going to supplant 429?

21:39.450 --> 21:43.690
So I believe in the 787 and A380, it does.

21:43.710 --> 21:47.370
They use Ethernet.

21:47.370 --> 21:49.090
I'm getting an ish, so...

21:53.740 --> 21:57.720
Okay, so he said basic systems still have 429.

22:07.570 --> 22:09.410
Yes, yes.

22:09.410 --> 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?

22:18.990 --> 22:19.790
And yes, it does.

22:19.790 --> 22:27.890
And that's why you have to ensure this isolation through the network switches and with VLANs and things like that.

22:28.750 --> 22:35.270
I wish I could get my hands on a switch to play with this, but they cost like $50,000.

22:36.010 --> 22:40.070
And they're not really falling off the back of a truck or anything, so...

22:40.950 --> 22:42.310
I'm sad.

22:44.790 --> 22:46.070
Anything else?

22:47.390 --> 22:49.350
Oh, wow!

22:59.640 --> 23:00.500
All right, thanks.

