WEBVTT

00:00.000 --> 00:02.820
So good afternoon, everybody, and welcome.

00:02.820 --> 00:05.940
This is my, amazingly, my second talk at DEF CON.

00:05.940 --> 00:10.220
It's such a privilege and honor to talk once at DEF CON, but twice.

00:10.220 --> 00:11.700
It's just unbelievable.

00:11.840 --> 00:23.340
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.

00:23.400 --> 00:26.740
I couldn't have done this presentation without them.

00:26.740 --> 00:29.780
So I've got to do the obligatory, who am I?

00:29.780 --> 00:32.020
So my name is Paul Brownridge, obviously.

00:32.060 --> 00:36.440
I started my working life as an engineer in Cape Town in South Africa.

00:36.740 --> 00:45.280
I have an OT background, and then just by a series of accidents found myself into working cybersecurity.

00:45.280 --> 00:49.720
So I do a lot of OT testing, maritime, IoT, APIs, a lot of interesting stuff.

00:49.720 --> 00:52.360
I mean, we do a lot of interesting stuff.

00:52.360 --> 01:01.280
So quite topical, probably something that's been talked about maybe five or six times at this conference is the MV Dolly.

01:01.280 --> 01:01.900
Is it hacked?

01:01.900 --> 01:07.000
Well, there's a lot of, lot of opinion on the internet, right?

01:07.000 --> 01:09.220
Everybody's an armchair warrior at the end of the day.

01:09.380 --> 01:13.880
They reckon, yes, it was hacked, definitely, it's deep state, etc.

01:13.880 --> 01:15.820
Other people say, no, not possible.

01:16.220 --> 01:23.880
I think that once you understand how ships are architected, do you understand actually that maybe the answer is somewhere in the middle.

01:23.880 --> 01:33.680
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.

01:33.680 --> 01:39.200
So really sort of like a high level view of the systems on the ship.

01:40.640 --> 01:47.420
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?

01:47.420 --> 01:51.840
I mean, that is a mess or somebody's not getting the bonuses here.

01:52.940 --> 01:55.800
Okay, so let's start with the main engines.

01:55.800 --> 02:02.960
So the picture that you see over there, that is a typical engine on a container ship.

02:02.960 --> 02:04.200
It's one engine.

02:04.220 --> 02:09.620
It differs from other engines that you're used to in that it's supported by ancillary systems.

02:09.620 --> 02:16.140
So there's pumps, for instance, they handle the cooling, the fuel injection, etc.

02:16.140 --> 02:20.780
And these are handled by generators in redundant arrays.

02:21.940 --> 02:25.840
The generators will power the steering without any power.

02:25.840 --> 02:27.460
Obviously, there's no steering.

02:27.780 --> 02:32.000
And this is all organized by the power management system, so the PMS.

02:32.000 --> 02:39.900
That is in turn managed by a network control system called the integrated alarm and monitoring system.

02:39.900 --> 02:49.580
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.

02:49.580 --> 02:51.560
We'll take a look at those in turn.

02:54.460 --> 02:56.540
Of course, we've got the steering controls, right?

02:56.700 --> 03:00.960
We have the controls at the helm tied into autopilot.

03:01.240 --> 03:07.400
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.

03:07.660 --> 03:11.020
It's as we go through these slides, it's something to note all the time.

03:11.020 --> 03:15.720
There's always going to be somebody in charge, which is really important.

03:16.420 --> 03:17.280
So there we go.

03:17.280 --> 03:24.180
The helm, the steering gear, the steering pad, which is basically a deck that you can steer the ship from.

03:24.260 --> 03:30.940
Any emergency situation, you can manually control the ship in case anything goes wrong, all right?

03:30.940 --> 03:37.940
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.

03:40.060 --> 03:43.760
This is, you can see the picture on the left-hand side, this is what you see in the movies, right?

03:43.760 --> 03:46.060
With the telegraph, you know, full steam ahead.

03:46.520 --> 03:51.640
But on the right-hand side, this is the more modern derivation of that.

03:51.640 --> 04:01.880
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.

04:01.880 --> 04:12.000
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.

04:12.120 --> 04:17.940
What's important to know that at any time of this, yet again, the captain can override any of these controls.

04:18.420 --> 04:24.060
So if there's a blackout on the ship, like what happened to Emi Dali, right?

04:24.060 --> 04:26.000
What are the procedures to restart this?

04:26.000 --> 04:33.140
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?

04:33.140 --> 04:36.420
So it could involve using controls local to the generator start.

04:36.420 --> 04:43.400
So you could send your engineers down there, waiting for it to come up to speed, and then closing breakers, for instance.

04:43.400 --> 04:52.980
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.

04:52.980 --> 04:55.580
There's no just like one button, bam, it comes on.

04:55.600 --> 04:58.060
It's a series of processes.

04:58.800 --> 05:04.520
Sometimes you have manual management of the system will need to be performed as load is drawn by the ship.

05:04.520 --> 05:07.440
This would take 30 seconds normally, but you never know.

05:07.440 --> 05:08.840
And it might take several.

05:08.920 --> 05:15.180
But according to regulations, your emergency generator should come on 45 seconds.

05:15.560 --> 05:18.940
But as we all know, in the real world, that hardly ever happens.

05:18.940 --> 05:20.800
I mean, that's the ideal state.

05:21.020 --> 05:25.820
So what could take, or is supposed to take 45 seconds, could take minutes.

05:25.820 --> 05:32.960
And if you are in the open sea with a blackout and your ship is coasting, that is not a problem, right?

05:32.960 --> 05:45.460
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.

05:45.780 --> 05:48.780
So what triggers a blackout?

05:48.780 --> 05:49.980
Well, bad fuel.

05:49.980 --> 05:53.260
Yeah, some of the cheapy fuel that you pick up ports for it.

05:53.260 --> 05:59.840
Ship rolling, some of the heavy seas can cause loss of pressure and cause the ship to blackout.

05:59.980 --> 06:03.040
Electrical problems, bad maintenance, et cetera, et cetera.

06:03.040 --> 06:03.800
It's long.

06:03.800 --> 06:07.060
The older the ship, the worse these problems get.

06:08.800 --> 06:09.860
And cruise ships do blackout.

06:09.960 --> 06:18.740
2013 Carnival Triumph was out of commission for a few days due to battery power fail several times.

06:18.740 --> 06:23.600
And 2019 the Viking Sky generator was out for service maintenance.

06:23.860 --> 06:24.900
Yet again, we see this.

06:24.900 --> 06:31.380
So it's totally possible that these circumstances can exist, that a ship can blackout.

06:31.400 --> 06:37.960
So like I said, you know, all the armchair warriors on the internet saying it was a hack.

06:37.960 --> 06:38.980
Well, we'll see.

06:40.420 --> 06:42.660
So let's take a look at the autopilot.

06:42.820 --> 06:50.720
So as we go, as we saw a slide early on, the autopilot can connect directly to the engine.

06:51.160 --> 06:56.080
But it's always possible to disconnect the autopilot and steer manually.

06:56.260 --> 06:57.780
As I said, this is very important to know.

06:57.780 --> 06:59.480
There's always a human in the loop.

07:00.140 --> 07:06.520
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.

07:06.520 --> 07:08.940
So firmware, downloads, and that.

07:10.280 --> 07:15.120
And if we sort of break it down, we can see it almost becomes like a supply chain attack.

07:15.120 --> 07:18.920
But then you'd have to compromise the firmware supplies.

07:19.140 --> 07:21.360
You have to sign the firmware.

07:21.360 --> 07:24.080
So yes, possible, but very unlikely.

07:24.080 --> 07:28.300
Unless you really expend a lot of energy going back and hacking the supplier.

07:29.600 --> 07:31.500
Propulsion, rarely connected to the internet.

07:31.500 --> 07:33.800
But these are big, big, chunky machines.

07:35.000 --> 07:38.420
This is your typical OT versus IT segregation at the end of the day.

07:39.440 --> 07:40.640
Attacks unlikely.

07:40.660 --> 07:43.680
And if it did happen, the bridge could manually override.

07:43.680 --> 07:46.700
Yet again, somebody, a person's in the loop.

07:48.660 --> 07:51.180
The power systems, frequently network connected.

07:51.180 --> 07:51.960
Fair enough.

07:52.180 --> 07:52.480
Right?

07:52.480 --> 07:58.220
And this is one of those situations that's becoming more and more connected as the years go by.

07:58.220 --> 08:02.540
But attack is unlikely and an event is happening, the bridge could manually override.

08:02.540 --> 08:09.140
Yet this recurring theme is that there's always somebody that can change the ship or is going to be on bridge, et cetera.

08:10.360 --> 08:11.760
So, conclusion.

08:11.800 --> 08:14.700
Yes, ships can be hacked, but it takes time.

08:14.700 --> 08:16.000
It's a manual process.

08:16.700 --> 08:19.260
And was the MVDALI hacked?

08:19.280 --> 08:21.460
Well, no.

08:21.540 --> 08:23.120
It's practically impossible.

08:23.120 --> 08:26.680
I mean, it's possible, but it's very, very improbable.

08:26.680 --> 08:28.680
You need a large amount of time over there.

08:28.700 --> 08:33.520
You need to know the systems, you basically need to engineer, tons of social engineering.

08:33.520 --> 08:39.560
So for an armchair hacker from your state, hacking the ship, very improbable.

08:39.940 --> 08:44.700
Unfortunately, polarized views from uninformed commentators do not help.

08:44.700 --> 08:47.400
You need to understand how these ships are architected.

08:48.320 --> 08:54.220
So, last year, I had about 150 slides.

08:54.420 --> 08:59.960
And I managed to get to 120 of them before time got called.

09:00.440 --> 09:01.920
So I blasted through 30.

09:01.920 --> 09:05.380
So I'm going to do a recap of what I did last year.

09:05.380 --> 09:09.280
And this is the systems recap.

09:11.380 --> 09:13.140
Integrated control and monitoring system.

09:13.140 --> 09:15.240
This is the brains, the eyes of the ship.

09:15.240 --> 09:21.680
This controls the PLCs in the engine room, rudder control, power management.

09:22.160 --> 09:25.760
These extremely, extremely important piece of equipment.

09:25.820 --> 09:28.380
Without it, the ship cannot operate.

09:28.520 --> 09:32.560
So from an attacker's point of view, this is a high value target.

09:32.560 --> 09:35.920
So it's something that we take a look at all the time while we're busy pen testing ships.

09:37.980 --> 09:40.120
This is the ECDIS, the charting system.

09:40.600 --> 09:43.080
These run in redundant arrays.

09:44.120 --> 09:46.580
Basically, as you can see, there's a map on there.

09:46.580 --> 09:50.360
It tells you where you are on the ocean.

09:51.360 --> 09:58.320
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.

09:58.320 --> 10:01.520
So if these systems go down, then the ship has got to stop.

10:01.720 --> 10:07.120
But failing that, particularly with some of the older ships, we've got some old school maps, right?

10:07.120 --> 10:08.600
You can see the drawers over there.

10:08.600 --> 10:12.300
Those are actually all charts from the oceans around the world.

10:12.300 --> 10:14.840
And these get delivered by hand whenever there's an update.

10:14.840 --> 10:23.420
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.

10:24.520 --> 10:26.100
Safety management system.

10:26.460 --> 10:37.800
So this is a separate room, usually near the bridge, that whenever there's an emergency situation on board, it is organized over here.

10:37.800 --> 10:44.000
So this is very interesting from an attacker's point of view because it has handles into the rest of the ship.

10:44.000 --> 10:55.000
It is from the ICMS all the way to the ECTIS, pressurized doors, CCTV, fire alarm systems.

10:55.000 --> 10:58.120
This is so important at the end of the day.

10:58.540 --> 11:04.640
You basically can coordinate like with the lifeboats, et cetera.

11:05.080 --> 11:19.800
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.

11:21.820 --> 11:25.300
This is an idealized version of the IT versus OT system of ship.

11:25.300 --> 11:29.200
We've got internet coming down by VSAT into the core.

11:29.200 --> 11:30.240
We've got the corporate network.

11:30.240 --> 11:35.100
As usual, you've got your bean counters on the ship, your accountants and your people.

11:35.100 --> 11:40.120
Then you've got third parties, something like point of sales, et cetera.

11:40.120 --> 11:44.660
And your crew, obviously you need to provide Netflix, et cetera, for your crew.

11:44.680 --> 11:47.240
And that's split up into Wi-Fi and wired.

11:47.240 --> 11:48.860
You can see the line down the middle.

11:48.860 --> 11:51.280
You see the bridge and the engine room.

11:51.620 --> 11:58.300
And this is what you want in the real world, but it doesn't always work out.

11:59.000 --> 12:00.680
We'll see a little bit later.

12:00.680 --> 12:02.040
This is really how it looks like.

12:02.040 --> 12:02.860
It's a mess.

12:03.040 --> 12:10.600
So it comes on the VSAT into the core network and then RDP, not the protocol, but remote distribution points.

12:11.400 --> 12:14.200
And these are basically just big chunks of Cisco equipment.

12:14.200 --> 12:15.400
We can see in the next slide.

12:15.560 --> 12:19.960
And these are broken down via VLAN trunks into cabin switches.

12:21.120 --> 12:22.240
This is basically what it looks like.

12:22.240 --> 12:23.000
This is on the ship.

12:23.000 --> 12:29.100
So anybody who's been in a data center, any on prem stuff, it looks exactly the same.

12:29.100 --> 12:30.340
It's all off the shelf stuff.

12:30.340 --> 12:33.760
It's nothing bespoke for the maritime industry.

12:34.900 --> 12:42.860
Breaking it down further, we have the VLAN trunking down to the cabin switches.

12:43.200 --> 12:48.600
And we have it split off into TVs, VoIPs, light, Wi-Fi, TV.

12:49.100 --> 12:55.020
The most important to remember on all this is it comes down over a single connection.

12:55.340 --> 12:57.720
And as an attacker, that is very interesting.

12:58.940 --> 13:00.700
We got the propulsion system.

13:01.480 --> 13:06.340
In the olden days, you used to have the big riders that used to have the pop wash.

13:06.600 --> 13:12.060
But now these are independent systems that you can control from the ICMS.

13:12.540 --> 13:16.940
And actually, the recent ones that we tested are controlled by Wi-Fi.

13:16.940 --> 13:20.620
Just normal 2.4 gig Wi-Fi, which is quite scary at the end of the day.

13:20.620 --> 13:24.280
This is not even dedicated cables at the end of the day.

13:24.280 --> 13:25.680
So yeah.

13:28.320 --> 13:32.020
So one of the things when we test ships is we walk around.

13:32.020 --> 13:36.480
This goes back to my early days in refinery, is you see pipes everywhere.

13:36.480 --> 13:37.480
You see cables going everywhere.

13:37.480 --> 13:38.340
You don't know where everything is.

13:38.340 --> 13:41.900
So you spend such a large amount of time chasing stuff down.

13:42.140 --> 13:55.980
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,

13:55.980 --> 13:56.200
right?

13:56.200 --> 13:58.360
So in case something goes wrong, it's like, cool.

13:58.360 --> 14:00.620
So you have systems just running like this constantly.

14:00.620 --> 14:17.120
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.

14:17.120 --> 14:18.220
This is like a rugged PC.

14:18.220 --> 14:19.740
It's a Windows-based PC.

14:20.380 --> 14:22.940
But we wanted to know more of what it did.

14:22.940 --> 14:31.540
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.

14:31.540 --> 14:32.940
It's an IP to serial connector.

14:32.940 --> 14:39.280
So what it does, it takes IP, internet protocol, then it changes it into

14:42.640 --> 14:43.720
a serial bus.

14:43.780 --> 14:51.760
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.

14:51.760 --> 14:54.000
So this is why you have the IP to serial.

14:54.000 --> 14:59.760
So we wanted to model the attack surface and that.

14:59.760 --> 15:06.700
So what we did is we took a look, so we knew that the IP to serial was going to the bridge ICMS.

15:06.700 --> 15:09.200
This was going to the charting system.

15:09.200 --> 15:14.400
So it would track where we were at a certain time from one distance to the next.

15:14.400 --> 15:17.700
But it was also talking to the PLCs on the main engine.

15:17.700 --> 15:19.480
It was asking for revolutions a second.

15:19.480 --> 15:21.900
It was asking for maybe fuel consumption.

15:21.900 --> 15:25.920
And then it was doing some fancy mathematics.

15:25.920 --> 15:28.940
It was predicting the fuel consumption.

15:29.300 --> 15:39.500
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.

15:39.500 --> 15:43.360
There's the ground and one of the serial connections in there.

15:43.640 --> 15:46.260
We noticed that one of the wires was missing.

15:46.260 --> 15:55.120
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.

15:55.120 --> 15:57.640
But that's how it would normally happen.

15:57.640 --> 15:59.360
But what we found is it was transmit only.

15:59.360 --> 16:02.440
So the piece of equipment was just taking from the bridge.

16:02.500 --> 16:03.040
Which is great.

16:03.040 --> 16:05.180
From attacker's point of view, there's nothing you can do.

16:05.180 --> 16:07.120
You can't inject anything down the line.

16:07.180 --> 16:08.260
Fantastic, right?

16:08.480 --> 16:14.120
But then we started taking a look at the connection from the IP to serial to the PLC.

16:14.400 --> 16:15.400
And that was using Modbus.

16:15.400 --> 16:17.820
Now Modbus, five minutes?

16:18.200 --> 16:18.940
Seriously?

16:19.240 --> 16:19.880
All right.

16:20.980 --> 16:22.800
So it's using Modbus, right?

16:22.800 --> 16:25.100
And Modbus was, that went quickly, right?

16:25.220 --> 16:30.980
And Modbus is like a, you have to call out to the piece of equipment for it to broadcast its value to you.

16:31.500 --> 16:35.060
So this is interesting from attacker's point of view.

16:35.060 --> 16:37.280
Because now we have access to the machine.

16:37.780 --> 16:41.240
So now we can inject values into the PLCs at the end of the day.

16:41.300 --> 16:44.120
And in terms of attack service, this is very interesting to us.

16:44.940 --> 16:49.260
However, what was more interesting, like I said, I got lots of slides, right?

16:49.260 --> 16:55.480
So what was more interesting, we took a look at the system and we noticed we had team viewer on there, right?

16:56.080 --> 16:58.200
So yeah, yeah.

16:58.200 --> 17:06.260
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?

17:06.260 --> 17:08.660
But they were too afraid to turn it off, like I was saying before.

17:08.660 --> 17:11.980
So you had a machine that was not updated.

17:11.980 --> 17:14.460
It was still connected to the internet.

17:14.480 --> 17:19.620
You could potentially connect up to the PLC and ruin everything at the end of the day, right?

17:19.620 --> 17:22.240
So it was, we found this very amusing.

17:23.000 --> 17:24.080
But it was good.

17:24.640 --> 17:28.420
I, yeah, I'm gonna have to blast through my slides again.

17:28.420 --> 17:29.840
I'm really sorry about this, guys.

17:29.840 --> 17:32.820
But how many minutes?

17:32.820 --> 17:33.380
Three minutes?

17:33.380 --> 17:34.080
Two minutes?

17:36.620 --> 17:37.340
Okay.

17:41.980 --> 17:42.980
Shit, okay.

17:44.360 --> 17:46.980
So I'm gonna blast my slides quick.

17:48.440 --> 17:50.680
Next year, when you come and see me talk, I'll do this properly.

17:50.680 --> 17:54.460
I'll do this first so I can actually get through this time.

17:55.760 --> 18:02.760
Basically, TLDR, we managed to compromise the thruster system from our cabins at the end of the day.

18:02.760 --> 18:07.820
So I'm gonna run to the conclusion.

18:17.580 --> 18:19.200
Those are really interesting slides, aren't they?

18:19.200 --> 18:20.120
Sorry, guys.

18:22.940 --> 18:24.360
See team view again?

18:24.360 --> 18:24.820
Yeah.

18:26.300 --> 18:26.820
Okay.

18:26.820 --> 18:28.060
So I'm gonna hack it up.

18:28.060 --> 18:31.100
So I actually had some stuff about regulation as well, but that's very boring.

18:31.100 --> 18:32.280
Nobody wants to go through that.

18:32.320 --> 18:32.760
Okay.

18:37.600 --> 18:40.820
So ships can be hacked, but it takes time and it takes presence.

18:41.020 --> 18:47.400
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?

18:47.400 --> 18:48.460
We can see what's going on.

18:48.460 --> 18:49.440
We can run the lines.

18:50.440 --> 18:58.240
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.

18:58.240 --> 18:59.540
It's not gonna happen.

19:00.260 --> 19:04.600
However, social engineering is still a factor that is something to consider.

19:06.200 --> 19:09.120
Convergence and modernization often introduce new risks.

19:09.120 --> 19:11.600
And this is true because a lot of the time we're getting IP to serial.

19:11.600 --> 19:21.860
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?

19:21.960 --> 19:24.480
There's undocumented stuff everywhere.

19:24.480 --> 19:39.060
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.

19:39.420 --> 19:49.420
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.

19:50.900 --> 19:52.880
It's crazy.

19:53.280 --> 19:54.440
And that's it.

19:54.440 --> 19:56.820
Thank you for coming to see my talk.

