1 00:00:00,000 --> 00:00:01,960 Hello and good afternoon everyone. 2 00:00:01,960 --> 00:00:07,720 Welcome to our presentation on hijacking marine autopilots. 3 00:00:08,740 --> 00:00:12,790 Alrighty, let's start off with a video. 4 00:00:14,140 --> 00: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. 5 00:00:24,840 --> 00:00:31,280 However, that's not the case here and that's what we are going to show you through this presentation. 6 00:00:34,540 --> 00: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. 7 00:00:45,740 --> 00: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. 8 00:00:52,780 --> 00: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. 9 00:01:03,120 --> 00:01:08,440 So, this research and what you'll see here, we wanted to follow a responsible disclosure process. 10 00:01:08,740 --> 00:01:14,700 Obviously, we want to be ethical hackers, improve the cyber security industry and the maritime industry. 11 00:01:14,700 --> 00:01:15,920 We don't want to harm them. 12 00:01:16,220 --> 00: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. 13 00:01:28,620 --> 00:01:34,320 So, what we did is proceeded to submit information to MITRE to request a CVE ID. 14 00:01:34,520 --> 00:01:41,700 We did this late April 2025, giving us more than three months to present and we did receive a CVE ID. 15 00:01:41,700 --> 00:01:43,960 It's currently in the reserve but public state. 16 00:01:44,300 --> 00:01:49,660 After this presentation becomes public, there will be more information on it. 17 00:01:49,680 --> 00:01:54,340 But additionally, we decided also not to name the company or the product here. 18 00:01:55,680 --> 00:01:57,320 So, my name is Carson. 19 00:01:57,320 --> 00: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. 20 00:02:06,940 --> 00:02:08,460 Hi, I'm Rick. 21 00:02:08,600 --> 00:02:12,920 I'm a current PhD student in systems engineering at Colorado State. 22 00:02:12,920 --> 00:02:16,740 I got my bachelor's in computer science and then my master's in systems. 23 00:02:17,000 --> 00:02:18,840 Both of us work for Dr. 24 00:02:18,840 --> 00:02:23,200 Jeremy Daly, who is an associate professor in our department at Colorado State. 25 00:02:24,880 --> 00: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. 26 00:02:36,360 --> 00:02:39,500 We do a lot of work on commercial vehicle cyber security. 27 00:02:39,520 --> 00:02:42,380 We presented at the main stage last year on that. 28 00:02:42,380 --> 00: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. 29 00:02:53,060 --> 00:02:57,160 So, we do a lot of truck research, so why suddenly investigate boats? 30 00:02:57,160 --> 00:02:58,620 Well, I do have a theory. 31 00:02:58,840 --> 00:03:03,360 So, our advisor got a boat and took it out on the water with us. 32 00:03:03,620 --> 00:03:07,260 Carson was water skiing, fell off the boat, decided to hack an autopilot. 33 00:03:07,840 --> 00:03:10,880 And meanwhile, Rick was too afraid to even get in the water. 34 00:03:12,480 --> 00:03:19,920 Well, on a more serious note though, boats and marine systems are used in a wide variety of industries. 35 00:03:19,920 --> 00:03:23,820 It's important for transportation, shipping, and in military applications. 36 00:03:23,820 --> 00:03:28,440 There's also hobbies and entertainment as well, some research and rescue. 37 00:03:28,440 --> 00:03:34,060 And in some ways and in some parts, they are part of critical infrastructure, in some parts they aren't. 38 00:03:34,760 --> 00: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. 39 00:03:46,460 --> 00: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. 40 00:03:53,820 --> 00: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. 41 00:03:59,880 --> 00: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. 42 00:04:09,480 --> 00: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. 43 00:04:22,340 --> 00:04:23,400 So, what is CAN? 44 00:04:23,400 --> 00: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. 45 00:04:31,180 --> 00:04:37,120 The two wires work on differential signaling and really works well for harsh environments. 46 00:04:37,240 --> 00:04:41,600 It's message-based and does arbitration to avoid conflicts. 47 00:04:41,600 --> 00:04:46,580 It's very reliable, and that's why it's probably used in a lot of different industries and applications. 48 00:04:46,700 --> 00:04:52,160 Cars use them, trucks use them, industrial control systems use them, and also marine systems. 49 00:04:54,040 --> 00:05:01,480 So, part of the vulnerability that we are going to discuss is called an address claim attack. 50 00:05:01,800 --> 00:05:08,520 Address claiming is a very routine procedure in control area networks and in application layers above that. 51 00:05:08,540 --> 00: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. 52 00:05:15,980 --> 00:05:18,960 And this is resolved through an address claim message. 53 00:05:18,960 --> 00: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. 54 00:05:29,640 --> 00:05:35,160 Now, most conflicts in address claiming are resolved through name priority. 55 00:05:35,160 --> 00:05:38,880 That is, the lower the value of the name field, that wins. 56 00:05:39,160 --> 00:05:43,420 So, say, for example, there are two controllers trying to claim the address 0. 57 00:05:43,560 --> 00:05:47,980 The name priority basically decides who gets to use that address 0. 58 00:05:48,320 --> 00:05:49,960 There is no authentication. 59 00:05:49,960 --> 00:05:53,080 So, essentially, you can steal someone else's address. 60 00:05:53,120 --> 00:05:56,500 And that's what we show in the diagram is what we did here. 61 00:05:57,080 --> 00: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. 62 00:06:06,320 --> 00: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. 63 00:06:14,660 --> 00: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. 64 00:06:22,440 --> 00:06:25,940 And that's a classic example of what an address claim attack is. 65 00:06:26,740 --> 00:06:28,420 Anyway, moving on. 66 00:06:29,460 --> 00: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. 67 00:06:39,220 --> 00:06:41,520 In reality, this is not really the case. 68 00:06:41,780 --> 00:06:46,140 As they become more modernized, there's more wireless links to them. 69 00:06:46,260 --> 00: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. 70 00:06:57,140 --> 00:07:03,720 And this is also seen as a pretty big target for other nations, other groups, whatever they may be. 71 00:07:03,720 --> 00: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. 72 00:07:15,080 --> 00:07:18,720 So, this is what a typical marine system architecture may look like. 73 00:07:18,720 --> 00:07:21,320 On the left, we have more of a pleasure craft or a yacht. 74 00:07:21,520 --> 00:07:24,000 On the right is more of a shipping vessel, for instance. 75 00:07:24,280 --> 00:07:30,220 There can be a lot of different devices in there, such as displays, laptops, compasses, autopilots. 76 00:07:30,680 --> 00:07:35,820 Your engine is considered a device on the network because it may have a controller associated with it. 77 00:07:36,320 --> 00:07:43,860 Obviously, smaller boats are going to be a More things to hack on. 78 00:07:45,740 --> 00: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. 79 00:07:51,340 --> 00:07:55,200 So, on the photo on the right, we have a chart plotter on the top. 80 00:07:55,220 --> 00:08:00,180 This connects up to the autopilot computer over CAN using the NMEA 2000 protocol. 81 00:08:00,620 --> 00:08:02,840 That's what the backbone cable is there for. 82 00:08:02,900 --> 00:08:04,160 And a power supply. 83 00:08:04,380 --> 00: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. 84 00:08:11,560 --> 00:08:15,400 And you can also plug in with your laptop using a CAN device. 85 00:08:17,280 --> 00:08:22,060 So, taking a look at the autopilot hardware itself, this is what the PCB looks like. 86 00:08:22,340 --> 00: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? 87 00:08:30,840 --> 00:08:35,240 So, we removed it from the enclosure and started looking at the very small part numbers on there. 88 00:08:35,880 --> 00:08:38,540 Kind of hard to read using microscopes. 89 00:08:40,240 --> 00:08:42,000 Let's see, soldering equipment. 90 00:08:42,460 --> 00:08:47,780 But ideally, we want to locate the data sheets from there, look at the user manuals and the wiring diagrams. 91 00:08:48,260 --> 00:08:51,000 So, if you notice, I've highlighted something down here. 92 00:08:51,000 --> 00:08:53,680 This is a standard connector for the NMEA 2000. 93 00:08:53,680 --> 00:08:56,480 This has CAN high and CAN low, power and ground on there. 94 00:08:56,480 --> 00:08:58,620 So, that was something important to note on there. 95 00:09:00,580 --> 00:09:06,180 As we dive in a little bit deeper, we start to understand how the autopilot works and what features it has. 96 00:09:06,480 --> 00:09:10,340 So, on the top right, we have a wonderful 20-pin header, which looks pretty interesting. 97 00:09:10,940 --> 00:09:16,420 As we dive deeper, we can see that we can send and receive NMEA 2000 frames from this autopilot. 98 00:09:16,640 --> 00:09:20,480 It has the ability to control the steering wheel via a feedback mechanism. 99 00:09:20,480 --> 00: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. 100 00:09:30,980 --> 00: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. 101 00:09:41,160 --> 00:09:43,420 This was something that we'll cover a little bit later. 102 00:09:43,420 --> 00: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. 103 00:09:49,200 --> 00:09:53,340 These are very important things when you want to reverse engineer firmware. 104 00:09:53,680 --> 00:09:59,780 So, we initially plugged in using something called a We then switched to a JLink for more consistency. 105 00:10:00,020 --> 00:10:05,500 But what we plugged into is a programming port, which was unfortunately unlocked for us. 106 00:10:05,520 --> 00:10:09,940 What we can do with this is extract, modify, and upload firmware to it. 107 00:10:09,940 --> 00:10:14,500 We can perform live debugging and also view the registers on the chip live. 108 00:10:17,520 --> 00:10:23,760 So, now that we have the firmware, this is what a usual high-level overview of software reverse engineering looks like. 109 00:10:23,760 --> 00:10:28,340 First, from identifying the binary architecture all the way through locating the patch target. 110 00:10:28,420 --> 00:10:30,980 Now, when you get a binary, you don't know what any of this means. 111 00:10:30,980 --> 00:10:32,540 It's essentially ones and zeros. 112 00:10:32,820 --> 00:10:36,300 So, we have to go through and make it a lot more human readable. 113 00:10:36,380 --> 00: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. 114 00:10:44,560 --> 00:10:49,080 One of the key things that we did was we wanted to send out this address claim. 115 00:10:49,380 --> 00: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. 116 00:10:58,680 --> 00: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. 117 00:11:07,620 --> 00:11:11,020 So, we wanted to modify a specific function to do something specific. 118 00:11:11,020 --> 00: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. 119 00:11:21,740 --> 00:11:24,600 This ideally demonstrates control over the network. 120 00:11:24,600 --> 00:11:27,720 So, on the left side, this is what the initial binary looks like. 121 00:11:27,920 --> 00:11:30,800 And the highlighted part, this is what the arguments are. 122 00:11:30,800 --> 00:11:33,760 It gets passed in a message and data bytes. 123 00:11:33,760 --> 00: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. 124 00:11:42,640 --> 00: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. 125 00:11:51,880 --> 00:11:55,100 The file name is a swap or software update. 126 00:11:55,140 --> 00:11:58,900 It's really just an S record encoded into an XML format. 127 00:11:59,380 --> 00: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. 128 00:12:07,780 --> 00: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. 129 00:12:14,400 --> 00: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. 130 00:12:21,820 --> 00:12:23,020 Click upgrade. 131 00:12:23,740 --> 00: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. 132 00:12:32,560 --> 00:12:37,820 The autopilot takes this and then reboots and then starts sending out address claims. 133 00:12:37,820 --> 00:12:41,600 And this can be nefarious if used improperly. 134 00:12:42,740 --> 00:12:44,700 But ideally, this is hacked. 135 00:12:44,760 --> 00:12:49,500 All right, we've demonstrated that we can send arbitrary messages from the autopilot. 136 00:12:49,760 --> 00:12:54,140 Now, this is, again, just one example, but it's not limited to address claim messages. 137 00:12:54,140 --> 00:12:57,280 We could be sending out different GPS commands. 138 00:12:57,500 --> 00:13:01,940 We could be sending out other commands to control various other parts of a marine network. 139 00:13:05,140 --> 00:13:09,360 So, essentially, at this point, we have gained two important things. 140 00:13:09,360 --> 00:13:17,620 One is remote code execution on the autopilot and that leading to arbitrary injection with any targeted messages. 141 00:13:17,700 --> 00: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. 142 00:13:28,580 --> 00: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. 143 00:13:45,160 --> 00: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. 144 00:13:56,420 --> 00: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, 145 00:14:16,060 --> 00:14:20,200 go through a secure boot process during power up and so forth. 146 00:14:21,500 --> 00:14:24,800 With that, that ends our presentation. 147 00:14:25,280 --> 00: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. 148 00:15:13,040 --> 00: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. 149 00:15:25,040 --> 00:15:26,340 Sorry, just got a quick question. 150 00:15:26,340 --> 00:15:26,760 Yeah, sure. 151 00:15:26,760 --> 00: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? 152 00:15:35,180 --> 00:15:40,040 Well, to be honest, different boats have different architectures. 153 00:15:40,040 --> 00:15:40,280 Yeah . 154 00:15:40,280 --> 00:15:46,600 But however, autopilots, from what I know, autopilots are present on a lot of larger vessels as well. 155 00:15:46,600 --> 00:15:47,040 Right . 156 00:15:47,660 --> 00:15:51,940 And they operate a lot different, so it depends on what protocols they're using. 157 00:15:51,940 --> 00:15:54,840 The big boats also will be using it at the age of 15. 158 00:15:55,700 --> 00:15:56,460 Oh, okay, good. 159 00:15:56,460 --> 00:15:57,160 Thank you, Max. 160 00:15:59,780 --> 00:16:02,680 So, what we have here is a chart plotter. 161 00:16:02,680 --> 00:16:08,260 Autopilots and an actual linking console that we are going to claim the address of. 162 00:16:13,360 --> 00:16:16,700 I'm outdated to the firmware updates. 163 00:16:16,720 --> 00:16:19,240 Scrolling the SD card on here. 164 00:16:27,660 --> 00:16:29,720 It's not showing up. 165 00:16:30,940 --> 00:16:32,540 There you go. 166 00:16:49,120 --> 00:16:52,440 So, we have normal messages coming across the network right now. 167 00:16:52,440 --> 00:16:55,200 So, I'm going to go ahead and select that malicious upgrades file. 168 00:16:56,240 --> 00:16:59,300 And I'm going to select the device that I want to upgrade with it. 169 00:16:59,960 --> 00:17:01,720 And click start upgrade. 170 00:17:02,580 --> 00:17:07,800 Now, this is sending out this upgrade to the autopilot, which is down here. 171 00:17:07,860 --> 00:17:10,760 There's not really any authentication process. 172 00:17:11,040 --> 00:17:13,240 There's... it's being sent in plain text as well. 173 00:17:13,240 --> 00:17:17,440 So, a simple capture and replay would also work to upgrade the autopilot. 174 00:17:18,240 --> 00:17:20,440 Unfortunately, this is not working out here. 175 00:17:23,160 --> 00:17:26,620 It is by wire over NDA 2.0. 176 00:17:28,840 --> 00:17:38,000 Unfortunately, the server out here is not working for some reason. 177 00:17:38,000 --> 00:17:40,440 And that's what happens when you try to give live demos. 178 00:17:41,460 --> 00:17:45,260 Well, what we are going to do is simply look at the can dump. 179 00:17:49,020 --> 00:17:52,260 That's the update being sent out from the autopilot right there. 180 00:17:58,700 --> 00:17:59,200 Yeah. 181 00:17:59,200 --> 00:17:59,850 Do you even know... 182 00:18:06,740 --> 00:18:12,400 There's some aftermarket devices that you can purchase, just like hot electronics. 183 00:18:12,540 --> 00:18:17,640 I, myself, am not familiar with standard devices that have that on there. 184 00:18:17,720 --> 00:18:20,560 We usually just purchase random things off the internet. 185 00:18:22,120 --> 00:18:26,140 So, again, I noticed in the apartment, they still have a control system. 186 00:18:26,140 --> 00:18:29,260 You go to chartplotter, and that integrates with the smartwatch that they make. 187 00:18:29,260 --> 00:18:31,880 You know, if I'm going to do things remotely, I'm going to do a lot of optics. 188 00:18:33,340 --> 00:18:36,520 And you can control the 12-way motor state on your wrist. 189 00:18:36,560 --> 00:18:37,700 So , you can do that. 190 00:18:39,820 --> 00:18:41,420 But, yeah, I'll be fine. 191 00:18:41,420 --> 00: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. 192 00:18:53,100 --> 00:18:58,080 Yeah, there's actually another student in our lab sitting right here that has looked at something like that. 193 00:18:58,080 --> 00:19:01,640 Obviously, we need to look into it a little bit more. 194 00:19:01,640 --> 00:19:05,060 But there are devices out there that can interface between the two. 195 00:19:05,700 --> 00:19:08,860 Well, on a nicer note, this simulator is now working. 196 00:19:09,000 --> 00:19:11,720 You can see the engine controller is active on there. 197 00:19:11,960 --> 00:19:16,540 So, there's a source ID of 00 on the right side that you'll see. 198 00:19:16,540 --> 00: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. 199 00:19:24,980 --> 00:19:27,260 Should be right about now. 200 00:19:30,710 --> 00:19:32,030 And it's gone. 201 00:19:33,190 --> 00:19:35,770 So, you're seeing a bunch of address claim messages. 202 00:19:35,770 --> 00:19:37,130 So , what this allows is... 203 00:19:38,970 --> 00:19:40,650 Sorry about that. 204 00:19:40,750 --> 00:19:42,750 Looks like our timer is almost over. 205 00:19:42,750 --> 00:19:44,650 We have 20 minutes on the clock. 206 00:19:46,770 --> 00:19:49,030 But that's what it allows us to do. 207 00:19:49,030 --> 00:19:50,530 It kicks the engine off the network. 208 00:19:50,530 --> 00: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. 209 00:19:58,190 --> 00:20:00,990 So, say, for example, your brake is trying to tell your... 210 00:20:00,990 --> 00:20:03,430 This is a typical truck scenario example, though. 211 00:20:03,430 --> 00:20:08,250 But when you're driving a big rig, your brake tells your engine to slow down. 212 00:20:08,710 --> 00:20:10,950 It tells your transmission to slow down. 213 00:20:10,950 --> 00:20:14,630 Essentially, the engine can't hear any of those messages anymore. 214 00:20:14,650 --> 00:20:16,310 With an address claim. 215 00:20:18,150 --> 00:20:20,970 With that, we would like to conclude our presentation. 216 00:20:20,970 --> 00:20:21,570 Thank you. 217 00:20:21,570 --> 00:20:24,770 And if you have any questions, please go ahead.