WEBVTT

00:00.000 --> 00:01.960
Hello and good afternoon everyone.

00:01.960 --> 00:07.720
Welcome to our presentation on hijacking marine autopilots.

00:08.740 --> 00:12.790
Alrighty, let's start off with a video.

00:14.140 --> 00:24.840
This is a chart plotter that's updating an autopilot and what looks to be a very simple and routine update process.

00:24.840 --> 00:31.280
However, that's not the case here and that's what we are going to show you through this presentation.

00:34.540 --> 00:45.420
Alrighty, for those familiar with CAN data, what we have is the upgrade happening over the CAN network, sending all this data to the autopilot, which is a malicious firmware update.

00:45.740 --> 00:52.480
At this point, the autopilot then takes the update and reboots and then it starts sending out what's called address claims.

00:52.780 --> 01:01.220
This is something we'll talk about a little bit more later if you're not familiar with CAN, but essentially we are taking control over the engine controller on the network.

01:03.120 --> 01:08.440
So, this research and what you'll see here, we wanted to follow a responsible disclosure process.

01:08.740 --> 01:14.700
Obviously, we want to be ethical hackers, improve the cyber security industry and the maritime industry.

01:14.700 --> 01:15.920
We don't want to harm them.

01:16.220 --> 01:28.620
So, what we did once we discovered some of these things here was inform the manufacturer of this directly, shared a PowerPoint of these findings, and we also asked them if they had a vulnerability reporting system and unfortunately they did not.

01:28.620 --> 01:34.320
So, what we did is proceeded to submit information to MITRE to request a CVE ID.

01:34.520 --> 01:41.700
We did this late April 2025, giving us more than three months to present and we did receive a CVE ID.

01:41.700 --> 01:43.960
It's currently in the reserve but public state.

01:44.300 --> 01:49.660
After this presentation becomes public, there will be more information on it.

01:49.680 --> 01:54.340
But additionally, we decided also not to name the company or the product here.

01:55.680 --> 01:57.320
So, my name is Carson.

01:57.320 --> 02:05.300
I am a current master's student at Colorado State University studying systems engineering and I have my bachelor's in electrical engineering.

02:06.940 --> 02:08.460
Hi, I'm Rick.

02:08.600 --> 02:12.920
I'm a current PhD student in systems engineering at Colorado State.

02:12.920 --> 02:16.740
I got my bachelor's in computer science and then my master's in systems.

02:17.000 --> 02:18.840
Both of us work for Dr.

02:18.840 --> 02:23.200
Jeremy Daly, who is an associate professor in our department at Colorado State.

02:24.880 --> 02:36.360
We work for the system cyber research lab located at the powerhouse energy campus at Colorado State and our main research focus areas are critical infrastructure, embedded cyber security.

02:36.360 --> 02:39.500
We do a lot of work on commercial vehicle cyber security.

02:39.520 --> 02:42.380
We presented at the main stage last year on that.

02:42.380 --> 02:51.740
We have a big truck as you can see and we get to take that out on fun rides in the airport during all the snow that Fort Collins gets and we build out a lot of electronics as well.

02:53.060 --> 02:57.160
So, we do a lot of truck research, so why suddenly investigate boats?

02:57.160 --> 02:58.620
Well, I do have a theory.

02:58.840 --> 03:03.360
So, our advisor got a boat and took it out on the water with us.

03:03.620 --> 03:07.260
Carson was water skiing, fell off the boat, decided to hack an autopilot.

03:07.840 --> 03:10.880
And meanwhile, Rick was too afraid to even get in the water.

03:12.480 --> 03:19.920
Well, on a more serious note though, boats and marine systems are used in a wide variety of industries.

03:19.920 --> 03:23.820
It's important for transportation, shipping, and in military applications.

03:23.820 --> 03:28.440
There's also hobbies and entertainment as well, some research and rescue.

03:28.440 --> 03:34.060
And in some ways and in some parts, they are part of critical infrastructure, in some parts they aren't.

03:34.760 --> 03:45.800
To dig a deep more into boats, we are familiar with very much with Canon J1939 and boats have NMEA 2000 network, so that similarity kind of drew us in.

03:46.460 --> 03:53.480
And a lot of boats nowadays do use autopilots for maintaining heading, controlling the radar, and interfacing with GPS and other stuff.

03:53.820 --> 03:58.620
So, that was one of the main reasons why I decided to get into boats and start looking at them in the first place.

03:59.880 --> 04:09.480
Well, before we dive into how we got the autopilot hack, we want to give everyone a basic 101 on control area networks.

04:09.480 --> 04:22.340
So, although the application layer is still NMEA 2000, most boats still use the physical CAN network, like right beneath the NMEA 2000.

04:22.340 --> 04:23.400
So, what is CAN?

04:23.400 --> 04:31.080
Well, basically it's a two-wire network that has a bunch of embedded computers on it, or we also call them electronic control units or ECUs.

04:31.180 --> 04:37.120
The two wires work on differential signaling and really works well for harsh environments.

04:37.240 --> 04:41.600
It's message-based and does arbitration to avoid conflicts.

04:41.600 --> 04:46.580
It's very reliable, and that's why it's probably used in a lot of different industries and applications.

04:46.700 --> 04:52.160
Cars use them, trucks use them, industrial control systems use them, and also marine systems.

04:54.040 --> 05:01.480
So, part of the vulnerability that we are going to discuss is called an address claim attack.

05:01.800 --> 05:08.520
Address claiming is a very routine procedure in control area networks and in application layers above that.

05:08.540 --> 05:15.600
So, basically, whenever a new device or a node joins the network, it has to have a source address, usually from 0 to 253.

05:15.980 --> 05:18.960
And this is resolved through an address claim message.

05:18.960 --> 05:28.860
So, if you can look at the diagram on your right of the screen, whenever a new device comes into the network, it just sends out an address claim message with a name in the data field.

05:29.640 --> 05:35.160
Now, most conflicts in address claiming are resolved through name priority.

05:35.160 --> 05:38.880
That is, the lower the value of the name field, that wins.

05:39.160 --> 05:43.420
So, say, for example, there are two controllers trying to claim the address 0.

05:43.560 --> 05:47.980
The name priority basically decides who gets to use that address 0.

05:48.320 --> 05:49.960
There is no authentication.

05:49.960 --> 05:53.080
So, essentially, you can steal someone else's address.

05:53.120 --> 05:56.500
And that's what we show in the diagram is what we did here.

05:57.080 --> 06:05.740
Like, say, for example, the engine comes in, normal startup, claims address 0, and now starts using address 0 for sending out all the messages.

06:06.320 --> 06:14.020
Then after some time, there is a malicious autopilot node that comes in, and it claims address 0 with a lower value in the name field.

06:14.660 --> 06:22.020
And then the engine is basically thrown off the network because it can no longer use address 0 and everyone else recognizes the engine through address 0.

06:22.440 --> 06:25.940
And that's a classic example of what an address claim attack is.

06:26.740 --> 06:28.420
Anyway, moving on.

06:29.460 --> 06:39.120
So, the overall motivation of our work, obviously, we look into cyber physical systems, but oftentimes people see boats, trucks as air-gapped.

06:39.220 --> 06:41.520
In reality, this is not really the case.

06:41.780 --> 06:46.140
As they become more modernized, there's more wireless links to them.

06:46.260 --> 06:56.420
But a lot recent exploits have shown that cyber physical systems, such as trucks and boats and other critical infrastructure, they are vulnerable to different forms of external control.

06:57.140 --> 07:03.720
And this is also seen as a pretty big target for other nations, other groups, whatever they may be.

07:03.720 --> 07:12.740
So, our goal as researchers is to improve and harden these systems through discovering vulnerabilities, reporting them properly, and ideally helping secure these devices.

07:15.080 --> 07:18.720
So, this is what a typical marine system architecture may look like.

07:18.720 --> 07:21.320
On the left, we have more of a pleasure craft or a yacht.

07:21.520 --> 07:24.000
On the right is more of a shipping vessel, for instance.

07:24.280 --> 07:30.220
There can be a lot of different devices in there, such as displays, laptops, compasses, autopilots.

07:30.680 --> 07:35.820
Your engine is considered a device on the network because it may have a controller associated with it.

07:36.320 --> 07:43.860
Obviously, smaller boats are going to be a More things to hack on.

07:45.740 --> 07:50.860
So, what we did is we wanted to take that and essentially put it into a small box that we have here.

07:51.340 --> 07:55.200
So, on the photo on the right, we have a chart plotter on the top.

07:55.220 --> 08:00.180
This connects up to the autopilot computer over CAN using the NMEA 2000 protocol.

08:00.620 --> 08:02.840
That's what the backbone cable is there for.

08:02.900 --> 08:04.160
And a power supply.

08:04.380 --> 08:11.560
On the left, we just have a systems diagram showing that you can plug in via an SD card, for instance, to update things.

08:11.560 --> 08:15.400
And you can also plug in with your laptop using a CAN device.

08:17.280 --> 08:22.060
So, taking a look at the autopilot hardware itself, this is what the PCB looks like.

08:22.340 --> 08:30.360
Some of the first questions that you want to ask when hardware reverse engineering is, how can I update this and how can I connect to it and start reading data, figure out how it works?

08:30.840 --> 08:35.240
So, we removed it from the enclosure and started looking at the very small part numbers on there.

08:35.880 --> 08:38.540
Kind of hard to read using microscopes.

08:40.240 --> 08:42.000
Let's see, soldering equipment.

08:42.460 --> 08:47.780
But ideally, we want to locate the data sheets from there, look at the user manuals and the wiring diagrams.

08:48.260 --> 08:51.000
So, if you notice, I've highlighted something down here.

08:51.000 --> 08:53.680
This is a standard connector for the NMEA 2000.

08:53.680 --> 08:56.480
This has CAN high and CAN low, power and ground on there.

08:56.480 --> 08:58.620
So, that was something important to note on there.

09:00.580 --> 09:06.180
As we dive in a little bit deeper, we start to understand how the autopilot works and what features it has.

09:06.480 --> 09:10.340
So, on the top right, we have a wonderful 20-pin header, which looks pretty interesting.

09:10.940 --> 09:16.420
As we dive deeper, we can see that we can send and receive NMEA 2000 frames from this autopilot.

09:16.640 --> 09:20.480
It has the ability to control the steering wheel via a feedback mechanism.

09:20.480 --> 09:29.020
It can control the angle of the router and that 20-pin header, we can actually extract the firmware via JTAG and update it as well over the CAN network.

09:30.980 --> 09:39.760
So, one of the things that we discovered while we were looking up this device and the part numbers is that there is a software update available online through the manufacturer.

09:41.160 --> 09:43.420
This was something that we'll cover a little bit later.

09:43.420 --> 09:48.600
And then on the right, we just have an image of what the memory map looks like for this specific chip architecture.

09:49.200 --> 09:53.340
These are very important things when you want to reverse engineer firmware.

09:53.680 --> 09:59.780
So, we initially plugged in using something called a We then switched to a JLink for more consistency.

10:00.020 --> 10:05.500
But what we plugged into is a programming port, which was unfortunately unlocked for us.

10:05.520 --> 10:09.940
What we can do with this is extract, modify, and upload firmware to it.

10:09.940 --> 10:14.500
We can perform live debugging and also view the registers on the chip live.

10:17.520 --> 10:23.760
So, now that we have the firmware, this is what a usual high-level overview of software reverse engineering looks like.

10:23.760 --> 10:28.340
First, from identifying the binary architecture all the way through locating the patch target.

10:28.420 --> 10:30.980
Now, when you get a binary, you don't know what any of this means.

10:30.980 --> 10:32.540
It's essentially ones and zeros.

10:32.820 --> 10:36.300
So, we have to go through and make it a lot more human readable.

10:36.380 --> 10:44.240
This takes many hours of us sitting there scratching our heads trying to rename functions, trying to figure out which strings map to what.

10:44.560 --> 10:49.080
One of the key things that we did was we wanted to send out this address claim.

10:49.380 --> 10:58.180
And so, we looked for what registers are correlated to the can send function and start remapping and renaming functions in that binary.

10:58.680 --> 11:07.220
We used a very popular tool, you might recognize it, to identify the flow and code regions and, as I said, identify the can-related functionality.

11:07.620 --> 11:11.020
So, we wanted to modify a specific function to do something specific.

11:11.020 --> 11:21.740
Now, this is just one example of what you can do, but we wanted to implement this address claim attack, removing the legitimate device from the network and keep it from communicating any further.

11:21.740 --> 11:24.600
This ideally demonstrates control over the network.

11:24.600 --> 11:27.720
So, on the left side, this is what the initial binary looks like.

11:27.920 --> 11:30.800
And the highlighted part, this is what the arguments are.

11:30.800 --> 11:33.760
It gets passed in a message and data bytes.

11:33.760 --> 11:41.320
So, we essentially just patched that to be a hard-coded address claim in here just to provide a proof of concept.

11:42.640 --> 11:51.580
Once we had those opcodes that we needed to patch the firmware, we actually had to upload it back into that file that we can access online.

11:51.880 --> 11:55.100
The file name is a swap or software update.

11:55.140 --> 11:58.900
It's really just an S record encoded into an XML format.

11:59.380 --> 12:07.020
Luckily, Wikipedia has a lot of information on S records, which helped us figure out how to do all the checksums and what all the headers mean for each line.

12:07.780 --> 12:14.400
After we patched the file, we then can save this to an SD card, at which point we go back to what we saw earlier.

12:14.400 --> 12:21.820
We're inserting the SD card into this chart plotter, navigate to the file that we want to upload, and select the target device.

12:21.820 --> 12:23.020
Click upgrade.

12:23.740 --> 12:32.460
And so, what we get again now is the software update being sent over the network without any authentication, only that checksum there.

12:32.560 --> 12:37.820
The autopilot takes this and then reboots and then starts sending out address claims.

12:37.820 --> 12:41.600
And this can be nefarious if used improperly.

12:42.740 --> 12:44.700
But ideally, this is hacked.

12:44.760 --> 12:49.500
All right, we've demonstrated that we can send arbitrary messages from the autopilot.

12:49.760 --> 12:54.140
Now, this is, again, just one example, but it's not limited to address claim messages.

12:54.140 --> 12:57.280
We could be sending out different GPS commands.

12:57.500 --> 13:01.940
We could be sending out other commands to control various other parts of a marine network.

13:05.140 --> 13:09.360
So, essentially, at this point, we have gained two important things.

13:09.360 --> 13:17.620
One is remote code execution on the autopilot and that leading to arbitrary injection with any targeted messages.

13:17.700 --> 13:27.700
And that could be used by a nefarious actor, honestly, to gain control over the NMEA network and also control of physical actuators through the autopilot even.

13:28.580 --> 13:45.160
Well, there is some physical access involved in this, but as marine systems keep getting bigger and bigger and there is more IoT devices being plugged into marine systems, a lot of these devices also have Wi-Fi networks, which is something which is interesting.

13:45.160 --> 13:54.660
So, it'll be interesting to see what other things can be done and how or whether or not this can be done totally wirelessly without even needing a chart plotter in the first place.

13:56.420 --> 14:16.060
So, to conclude our presentation, basically, what we want to say out loud to the entire community and the maritime community is we need to follow good software practices, disable JTAGs in production, possibly encrypt firmware, maybe remove identifiers from PCB components in production,

14:16.060 --> 14:20.200
go through a secure boot process during power up and so forth.

14:21.500 --> 14:24.800
With that, that ends our presentation.

14:25.280 --> 14:34.480
However, we do also have a demo and we are planning to show the entire thing live to you guys if you are patient for a couple of minutes with us.

15:13.040 --> 15:24.500
Unfortunately, we don't have an HDMI for the chart plotter, but if you can see our setup up here, you are even welcome to come up to see this around the stage.

15:25.040 --> 15:26.340
Sorry, just got a quick question.

15:26.340 --> 15:26.760
Yeah, sure.

15:26.760 --> 15:33.200
People are going to come up there, but how earth-basic is this time on, like, massive ships and stuff like that?

15:35.180 --> 15:40.040
Well, to be honest, different boats have different architectures.

15:40.040 --> 15:40.280
Yeah .

15:40.280 --> 15:46.600
But however, autopilots, from what I know, autopilots are present on a lot of larger vessels as well.

15:46.600 --> 15:47.040
Right .

15:47.660 --> 15:51.940
And they operate a lot different, so it depends on what protocols they're using.

15:51.940 --> 15:54.840
The big boats also will be using it at the age of 15.

15:55.700 --> 15:56.460
Oh, okay, good.

15:56.460 --> 15:57.160
Thank you, Max.

15:59.780 --> 16:02.680
So, what we have here is a chart plotter.

16:02.680 --> 16:08.260
Autopilots and an actual linking console that we are going to claim the address of.

16:13.360 --> 16:16.700
I'm outdated to the firmware updates.

16:16.720 --> 16:19.240
Scrolling the SD card on here.

16:27.660 --> 16:29.720
It's not showing up.

16:30.940 --> 16:32.540
There you go.

16:49.120 --> 16:52.440
So, we have normal messages coming across the network right now.

16:52.440 --> 16:55.200
So, I'm going to go ahead and select that malicious upgrades file.

16:56.240 --> 16:59.300
And I'm going to select the device that I want to upgrade with it.

16:59.960 --> 17:01.720
And click start upgrade.

17:02.580 --> 17:07.800
Now, this is sending out this upgrade to the autopilot, which is down here.

17:07.860 --> 17:10.760
There's not really any authentication process.

17:11.040 --> 17:13.240
There's... it's being sent in plain text as well.

17:13.240 --> 17:17.440
So, a simple capture and replay would also work to upgrade the autopilot.

17:18.240 --> 17:20.440
Unfortunately, this is not working out here.

17:23.160 --> 17:26.620
It is by wire over NDA 2.0.

17:28.840 --> 17:38.000
Unfortunately, the server out here is not working for some reason.

17:38.000 --> 17:40.440
And that's what happens when you try to give live demos.

17:41.460 --> 17:45.260
Well, what we are going to do is simply look at the can dump.

17:49.020 --> 17:52.260
That's the update being sent out from the autopilot right there.

17:58.700 --> 17:59.200
Yeah.

17:59.200 --> 17:59.850
Do you even know...

18:06.740 --> 18:12.400
There's some aftermarket devices that you can purchase, just like hot electronics.

18:12.540 --> 18:17.640
I, myself, am not familiar with standard devices that have that on there.

18:17.720 --> 18:20.560
We usually just purchase random things off the internet.

18:22.120 --> 18:26.140
So, again, I noticed in the apartment, they still have a control system.

18:26.140 --> 18:29.260
You go to chartplotter, and that integrates with the smartwatch that they make.

18:29.260 --> 18:31.880
You know, if I'm going to do things remotely, I'm going to do a lot of optics.

18:33.340 --> 18:36.520
And you can control the 12-way motor state on your wrist.

18:36.560 --> 18:37.700
So , you can do that.

18:39.820 --> 18:41.420
But, yeah, I'll be fine.

18:41.420 --> 18:48.340
I kind of, like, I asked a lot of people, I'll try to integrate this with anything that you can, any kind of sci-fi remote or something like that.

18:53.100 --> 18:58.080
Yeah, there's actually another student in our lab sitting right here that has looked at something like that.

18:58.080 --> 19:01.640
Obviously, we need to look into it a little bit more.

19:01.640 --> 19:05.060
But there are devices out there that can interface between the two.

19:05.700 --> 19:08.860
Well, on a nicer note, this simulator is now working.

19:09.000 --> 19:11.720
You can see the engine controller is active on there.

19:11.960 --> 19:16.540
So, there's a source ID of 00 on the right side that you'll see.

19:16.540 --> 19:24.860
And then once we start sending out the data frames with a lot of zeros on the right-hand side, you'll notice that the engine actually gets kicked off the network.

19:24.980 --> 19:27.260
Should be right about now.

19:30.710 --> 19:32.030
And it's gone.

19:33.190 --> 19:35.770
So, you're seeing a bunch of address claim messages.

19:35.770 --> 19:37.130
So , what this allows is...

19:38.970 --> 19:40.650
Sorry about that.

19:40.750 --> 19:42.750
Looks like our timer is almost over.

19:42.750 --> 19:44.650
We have 20 minutes on the clock.

19:46.770 --> 19:49.030
But that's what it allows us to do.

19:49.030 --> 19:50.530
It kicks the engine off the network.

19:50.530 --> 19:58.190
And at this point, if there are other controllers on the network that are trying to send out messages to the engine, the engine will not receive it.

19:58.190 --> 20:00.990
So, say, for example, your brake is trying to tell your...

20:00.990 --> 20:03.430
This is a typical truck scenario example, though.

20:03.430 --> 20:08.250
But when you're driving a big rig, your brake tells your engine to slow down.

20:08.710 --> 20:10.950
It tells your transmission to slow down.

20:10.950 --> 20:14.630
Essentially, the engine can't hear any of those messages anymore.

20:14.650 --> 20:16.310
With an address claim.

20:18.150 --> 20:20.970
With that, we would like to conclude our presentation.

20:20.970 --> 20:21.570
Thank you.

20:21.570 --> 20:24.770
And if you have any questions, please go ahead.

