So good afternoon, everybody, and welcome. This is my, amazingly, my second talk at DEF CON. It's such a privilege and honor to talk once at DEF CON, but twice. It's just unbelievable. So before I continue, I'd like to thank my colleagues, Kerry Coburn, John Waksmanski, Mike Leonard, Ken, and, yeah, the rest of the P2P team that are here helping out. I couldn't have done this presentation without them. So I've got to do the obligatory, who am I? So my name is Paul Brownridge, obviously. I started my working life as an engineer in Cape Town in South Africa. I have an OT background, and then just by a series of accidents found myself into working cybersecurity. So I do a lot of OT testing, maritime, IoT, APIs, a lot of interesting stuff. I mean, we do a lot of interesting stuff. So quite topical, probably something that's been talked about maybe five or six times at this conference is the MV Dolly. Is it hacked? Well, there's a lot of, lot of opinion on the internet, right? Everybody's an armchair warrior at the end of the day. They reckon, yes, it was hacked, definitely, it's deep state, etc. Other people say, no, not possible. I think that once you understand how ships are architected, do you understand actually that maybe the answer is somewhere in the middle. What I'm going to be doing is going to be going through the individual systems, examining some of the attack surface and maybe some of the threat vectors and that. So really sort of like a high level view of the systems on the ship. So to be quite honest, before I came across this picture, I didn't know how much damage the ship actually done, which is quite scary, isn't it? I mean, that is a mess or somebody's not getting the bonuses here. Okay, so let's start with the main engines. So the picture that you see over there, that is a typical engine on a container ship. It's one engine. It differs from other engines that you're used to in that it's supported by ancillary systems. So there's pumps, for instance, they handle the cooling, the fuel injection, etc. And these are handled by generators in redundant arrays. The generators will power the steering without any power. Obviously, there's no steering. And this is all organized by the power management system, so the PMS. That is in turn managed by a network control system called the integrated alarm and monitoring system. And then you have these multiple systems all over the ship that tie into it by a series of either serial connections, either IP over serial, etc. We'll take a look at those in turn. Of course, we've got the steering controls, right? We have the controls at the helm tied into autopilot. And it's important to note that at this time, there is a physical switch that if anything goes wrong, you can turn that off. It's as we go through these slides, it's something to note all the time. There's always going to be somebody in charge, which is really important. So there we go. The helm, the steering gear, the steering pad, which is basically a deck that you can steer the ship from. Any emergency situation, you can manually control the ship in case anything goes wrong, all right? Then, of course, these systems tie into the rudder and the steering gear, as I mentioned in the previous slide, it's all tied in with the generators. This is, you can see the picture on the left-hand side, this is what you see in the movies, right? With the telegraph, you know, full steam ahead. But on the right-hand side, this is the more modern derivation of that. It's important to note that a lot of these systems are tied down to certain revs so that it doesn't cause any potentially dangerous vibrations on the ship. Or sometimes it's also economics as well because a ship will have a most economical, I can say, revolution band and they'll be tied into that. What's important to know that at any time of this, yet again, the captain can override any of these controls. So if there's a blackout on the ship, like what happened to Emi Dali, right? What are the procedures to restart this? Well, normally it's as simple as pressing a single button on the screen, but how do we do this when the rest of your ship does not have any power, right? So it could involve using controls local to the generator start. So you could send your engineers down there, waiting for it to come up to speed, and then closing breakers, for instance. And this is important to note because it's a process like any OT system, any refinery, any chemical processes, everything works in a sequence. There's no just like one button, bam, it comes on. It's a series of processes. Sometimes you have manual management of the system will need to be performed as load is drawn by the ship. This would take 30 seconds normally, but you never know. And it might take several. But according to regulations, your emergency generator should come on 45 seconds. But as we all know, in the real world, that hardly ever happens. I mean, that's the ideal state. So what could take, or is supposed to take 45 seconds, could take minutes. And if you are in the open sea with a blackout and your ship is coasting, that is not a problem, right? But if you're approaching a bridge or a built-up system, just 45 seconds or even sometimes if these systems are installed, a minute or two minutes can end in emergency, like we saw in the previous slide. So what triggers a blackout? Well, bad fuel. Yeah, some of the cheapy fuel that you pick up ports for it. Ship rolling, some of the heavy seas can cause loss of pressure and cause the ship to blackout. Electrical problems, bad maintenance, et cetera, et cetera. It's long. The older the ship, the worse these problems get. And cruise ships do blackout. 2013 Carnival Triumph was out of commission for a few days due to battery power fail several times. And 2019 the Viking Sky generator was out for service maintenance. Yet again, we see this. So it's totally possible that these circumstances can exist, that a ship can blackout. So like I said, you know, all the armchair warriors on the internet saying it was a hack. Well, we'll see. So let's take a look at the autopilot. So as we go, as we saw a slide early on, the autopilot can connect directly to the engine. But it's always possible to disconnect the autopilot and steer manually. As I said, this is very important to know. There's always a human in the loop. But if we take a look at the threat landscape, we're finding more and more that these systems are connected up to the internet. So firmware, downloads, and that. And if we sort of break it down, we can see it almost becomes like a supply chain attack. But then you'd have to compromise the firmware supplies. You have to sign the firmware. So yes, possible, but very unlikely. Unless you really expend a lot of energy going back and hacking the supplier. Propulsion, rarely connected to the internet. But these are big, big, chunky machines. This is your typical OT versus IT segregation at the end of the day. Attacks unlikely. And if it did happen, the bridge could manually override. Yet again, somebody, a person's in the loop. The power systems, frequently network connected. Fair enough. Right? And this is one of those situations that's becoming more and more connected as the years go by. But attack is unlikely and an event is happening, the bridge could manually override. Yet this recurring theme is that there's always somebody that can change the ship or is going to be on bridge, et cetera. So, conclusion. Yes, ships can be hacked, but it takes time. It's a manual process. And was the MVDALI hacked? Well, no. It's practically impossible. I mean, it's possible, but it's very, very improbable. You need a large amount of time over there. You need to know the systems, you basically need to engineer, tons of social engineering. So for an armchair hacker from your state, hacking the ship, very improbable. Unfortunately, polarized views from uninformed commentators do not help. You need to understand how these ships are architected. So, last year, I had about 150 slides. And I managed to get to 120 of them before time got called. So I blasted through 30. So I'm going to do a recap of what I did last year. And this is the systems recap. Integrated control and monitoring system. This is the brains, the eyes of the ship. This controls the PLCs in the engine room, rudder control, power management. These extremely, extremely important piece of equipment. Without it, the ship cannot operate. So from an attacker's point of view, this is a high value target. So it's something that we take a look at all the time while we're busy pen testing ships. This is the ECDIS, the charting system. These run in redundant arrays. Basically, as you can see, there's a map on there. It tells you where you are on the ocean. Obviously, without it, the captain could not know where he's supposed to be going, and the crew don't know where they're going or where they are. So if these systems go down, then the ship has got to stop. But failing that, particularly with some of the older ships, we've got some old school maps, right? You can see the drawers over there. Those are actually all charts from the oceans around the world. And these get delivered by hand whenever there's an update. So it's quite reassuring that you still have these manual methods of the ship knowing where they are at the end of the day. Safety management system. So this is a separate room, usually near the bridge, that whenever there's an emergency situation on board, it is organized over here. So this is very interesting from an attacker's point of view because it has handles into the rest of the ship. It is from the ICMS all the way to the ECTIS, pressurized doors, CCTV, fire alarm systems. This is so important at the end of the day. You basically can coordinate like with the lifeboats, et cetera. It's something to note as well that as the crew is running around trying to organize an emergency situation, they can use these iPads or these window systems to log in and take a look at what's going on at the same time. This is an idealized version of the IT versus OT system of ship. We've got internet coming down by VSAT into the core. We've got the corporate network. As usual, you've got your bean counters on the ship, your accountants and your people. Then you've got third parties, something like point of sales, et cetera. And your crew, obviously you need to provide Netflix, et cetera, for your crew. And that's split up into Wi-Fi and wired. You can see the line down the middle. You see the bridge and the engine room. And this is what you want in the real world, but it doesn't always work out. We'll see a little bit later. This is really how it looks like. It's a mess. So it comes on the VSAT into the core network and then RDP, not the protocol, but remote distribution points. And these are basically just big chunks of Cisco equipment. We can see in the next slide. And these are broken down via VLAN trunks into cabin switches. This is basically what it looks like. This is on the ship. So anybody who's been in a data center, any on prem stuff, it looks exactly the same. It's all off the shelf stuff. It's nothing bespoke for the maritime industry. Breaking it down further, we have the VLAN trunking down to the cabin switches. And we have it split off into TVs, VoIPs, light, Wi-Fi, TV. The most important to remember on all this is it comes down over a single connection. And as an attacker, that is very interesting. We got the propulsion system. In the olden days, you used to have the big riders that used to have the pop wash. But now these are independent systems that you can control from the ICMS. And actually, the recent ones that we tested are controlled by Wi-Fi. Just normal 2.4 gig Wi-Fi, which is quite scary at the end of the day. This is not even dedicated cables at the end of the day. So yeah. So one of the things when we test ships is we walk around. This goes back to my early days in refinery, is you see pipes everywhere. You see cables going everywhere. You don't know where everything is. So you spend such a large amount of time chasing stuff down. And because ships have this churn of engineers, et cetera, a lot of people don't know where the systems do or even sometimes they leave the systems on because they're too afraid to turn them off because they don't know what it does, but they don't want to turn it off at the end of the day, right? So in case something goes wrong, it's like, cool. So you have systems just running like this constantly. So we knew there was something coming in that monitored the fuel consumption, but we didn't know where it was, a little bug over here. This is like a rugged PC. It's a Windows-based PC. But we wanted to know more of what it did. So you can see on the side over there, anybody who worked with OT systems a lot, you'll recognize that little box over there. It's an IP to serial connector. So what it does, it takes IP, internet protocol, then it changes it into a serial bus. Now, the thing is when you work in OT, these systems have been around for 30, 40 years, and they still operate on discrete systems. So this is why you have the IP to serial. So we wanted to model the attack surface and that. So what we did is we took a look, so we knew that the IP to serial was going to the bridge ICMS. This was going to the charting system. So it would track where we were at a certain time from one distance to the next. But it was also talking to the PLCs on the main engine. It was asking for revolutions a second. It was asking for maybe fuel consumption. And then it was doing some fancy mathematics. It was predicting the fuel consumption. So what we did is once we took a look at the IP to serial connection going to the bridge, we noticed that instead of three wires, you can see there's two wires. There's the ground and one of the serial connections in there. We noticed that one of the wires was missing. So usually when you have a serial to serial connection, you'll pull the PLC or the piece of equipment and it will talk back to you. But that's how it would normally happen. But what we found is it was transmit only. So the piece of equipment was just taking from the bridge. Which is great. From attacker's point of view, there's nothing you can do. You can't inject anything down the line. Fantastic, right? But then we started taking a look at the connection from the IP to serial to the PLC. And that was using Modbus. Now Modbus, five minutes? Seriously? All right. So it's using Modbus, right? And Modbus was, that went quickly, right? And Modbus is like a, you have to call out to the piece of equipment for it to broadcast its value to you. So this is interesting from attacker's point of view. Because now we have access to the machine. So now we can inject values into the PLCs at the end of the day. And in terms of attack service, this is very interesting to us. However, what was more interesting, like I said, I got lots of slides, right? So what was more interesting, we took a look at the system and we noticed we had team viewer on there, right? So yeah, yeah. I mean, what is more amusing, even more amusing, was that the fact that the company actually had stopped paying for the service four years before, right? But they were too afraid to turn it off, like I was saying before. So you had a machine that was not updated. It was still connected to the internet. You could potentially connect up to the PLC and ruin everything at the end of the day, right? So it was, we found this very amusing. But it was good. I, yeah, I'm gonna have to blast through my slides again. I'm really sorry about this, guys. But how many minutes? Three minutes? Two minutes? Okay. Shit, okay. So I'm gonna blast my slides quick. Next year, when you come and see me talk, I'll do this properly. I'll do this first so I can actually get through this time. Basically, TLDR, we managed to compromise the thruster system from our cabins at the end of the day. So I'm gonna run to the conclusion. Those are really interesting slides, aren't they? Sorry, guys. See team view again? Yeah. Okay. So I'm gonna hack it up. So I actually had some stuff about regulation as well, but that's very boring. Nobody wants to go through that. Okay. So ships can be hacked, but it takes time and it takes presence. One of the things that we noticed is that we have the advantage of when we're on the ship, we can talk to engineers, we can look at the documentation, right? We can see what's going on. We can run the lines. In an idealized world, hackers are not gonna sit on the other side of the world, go through the V set, take over the vessel. It's not gonna happen. However, social engineering is still a factor that is something to consider. Convergence and modernization often introduce new risks. And this is true because a lot of the time we're getting IP to serial. Before we had discrete systems, now we have trunking, like we said before, and it's possible to RDP into systems, et cetera, to team view, right? There's undocumented stuff everywhere. One of the things when we test a ship, we have a little AP, AP monitoring, and the client or the vendor has installed so many access points, right, that the client, the retesting, has no idea what the hell is going on. Probably about six or seven undocumented APs on a ship at any one time, right, which is bonkers, right, because all of these just bridge the man over there. It's crazy. And that's it. Thank you for coming to see my talk.