WEBVTT

00:00.000 --> 00:01.180
Right, sorry about that.

00:01.180 --> 00:02.560
We should be good to go now.

00:02.560 --> 00:04.620
We're going to be talking about hacking an oil rig.

00:04.820 --> 00:13.340
This is some work that we've done in the last year or so about hacking a semi-submersible drilling rig.

00:13.400 --> 00:15.140
It's based on a true story.

00:15.400 --> 00:22.080
What we're presenting to you here is maybe a little bit different to what actually happened, maybe to preserve the identity of some of the people involved.

00:22.280 --> 00:24.240
I'm going to tell you who we are.

00:24.240 --> 00:25.840
So, I'm Andrew.

00:25.840 --> 00:27.200
I used to work at sea.

00:27.200 --> 00:30.160
That's me in the Suez Canal on a container ship 13 years ago.

00:30.160 --> 00:33.680
So I know the ins and outs of boats, vessels, machinery, things like that.

00:33.680 --> 00:35.200
I also do pen testing.

00:35.300 --> 00:37.840
And this... Chris?

00:38.040 --> 00:40.960
This is me on my stag do.

00:41.540 --> 00:46.400
I come from an industrial control system background and I also do pen testing.

00:48.260 --> 00:49.900
So, what were we doing?

00:49.900 --> 00:52.460
Well, we were trying to prevent this from happening.

00:52.460 --> 01:05.540
This is Deepwater Horizon, which was a really quite serious event that happened when an oil rig had an issue down at the bottom of the sea where oil and gas started leaking up back towards the rig and it exploded.

01:05.680 --> 01:09.020
Now, our customer's concerned about something called a drive-away.

01:09.180 --> 01:12.400
Now, a semi-submersible rig isn't actually attached to the seabed.

01:12.400 --> 01:14.800
It holds its position using thrusters.

01:15.040 --> 01:19.020
So there's big propellers that can turn around on the bottom of the vessel that hold it in position.

01:19.020 --> 01:26.660
The riser drops all the way down to the bottom to a thing called a BOP, a blow-off prevention valve, which can shut off the oil well if it needs to.

01:26.720 --> 01:29.740
Now, what they're worried about is the oil rig driving off to the side.

01:29.740 --> 01:35.480
So if we can take it off position, that riser will snap and you might get a Deepwater Horizon situation.

01:35.480 --> 01:37.320
So this is obviously quite a bad thing.

01:37.920 --> 01:39.280
So, the rigs.

01:39.640 --> 01:41.280
This was the rigs we were looking at.

01:41.280 --> 01:43.760
They were actually docked at the time.

01:43.760 --> 01:45.140
So it's called warm stack.

01:45.140 --> 01:49.040
So they're still operating, but not drilling at that moment in time.

01:49.040 --> 01:51.480
This did present some problems, though.

01:51.860 --> 01:55.540
This is what we were presented with when we first got to the rig.

01:55.840 --> 01:57.660
Now, you might notice something there.

01:58.020 --> 01:59.580
172 steps.

01:59.680 --> 02:00.940
No lift.

02:00.960 --> 02:03.080
Every fucking day.

02:03.080 --> 02:03.740
Two weeks.

02:03.740 --> 02:05.340
Two weeks of this as well.

02:05.340 --> 02:06.580
It's pretty tiring.

02:07.500 --> 02:14.540
I was also there, not only with Chris, but our other colleague, Marsh, who was absolutely terrified of heights.

02:14.860 --> 02:17.300
Now, it's really quite a long way up.

02:17.340 --> 02:19.200
He's walking across a mesh catwalk there.

02:19.200 --> 02:20.520
There's a big drop down.

02:20.640 --> 02:23.440
We had to go back down every day as well, so that's us going back down.

02:24.180 --> 02:26.240
Also, Marsh, he likes a smoke.

02:26.360 --> 02:29.780
Now, to smoke, you have to go outside onto the rear deck with the lifeboats.

02:30.060 --> 02:35.060
And the problem is, the view down there, you can see how far it is down to the sea.

02:35.880 --> 02:37.480
Now, this rig is huge.

02:37.840 --> 02:40.080
Normally, to get to the rig, you'd land on a helipad.

02:40.080 --> 02:45.700
So there's a helipad on the top of it, you go down, and you can get down into the accommodation and explore the entire vessel.

02:45.820 --> 02:48.840
I'm not going to tell you everything about the machinery on it, just some of it.

02:49.500 --> 02:51.560
So this is a cross-section of a rig.

02:52.620 --> 02:53.520
The bridge.

02:53.520 --> 02:54.840
It's got a bridge like a ship.

02:54.840 --> 02:55.540
You can steer it.

02:55.540 --> 02:58.320
You can literally drive it from one place to another like any ship.

02:58.660 --> 03:00.360
It's also got generators.

03:00.500 --> 03:03.340
So it produces electrical power to power the thrusters.

03:03.340 --> 03:06.580
The thrusters on the bottom there, you can see two at each one of those legs.

03:06.580 --> 03:07.340
They can rotate.

03:07.340 --> 03:08.220
They're called azipods.

03:08.220 --> 03:09.980
Spin round and move it in any direction.

03:10.260 --> 03:14.020
You've also got big switchboards that control those thrusters and all the different motors.

03:14.420 --> 03:16.940
Then you've got the actual drilling rig in the middle there.

03:16.940 --> 03:18.360
Now, there's a thing called a top drive.

03:18.360 --> 03:23.300
This is a kind of 2 megawatt motor that drives the drilling rig down from the top all the way to the seabed.

03:23.300 --> 03:27.620
And you've also got a very, very, very big hoist that lifts it all up, back up and down.

03:27.820 --> 03:29.880
That bit in the middle there is called the drilling package.

03:29.880 --> 03:32.220
And it's made by a different company to the rest of the rig.

03:32.220 --> 03:34.620
It's just dropped onto it and then fitted.

03:35.220 --> 03:36.140
So the bridge.

03:36.140 --> 03:37.520
It looks like this.

03:37.600 --> 03:40.780
It really does look like a large container ship bridge.

03:40.780 --> 03:42.240
There's not much different there.

03:43.320 --> 03:44.740
This is one of the engine rooms.

03:44.740 --> 03:45.900
It had eight generators.

03:45.900 --> 03:51.020
So on the left you've got a big generator, on the right a slightly smaller generator, loads of other ancillary equipment around it.

03:51.420 --> 03:52.920
That's one of the switchboard rooms.

03:52.920 --> 03:57.800
It's a water-cooled switchboard, which didn't seem like a great idea to me.

03:58.300 --> 03:59.840
That's the actual drilling derrick.

03:59.840 --> 04:02.660
So the big tower that goes up with the top drive at the top.

04:02.920 --> 04:05.340
You can see cranes, there's all pipework everywhere.

04:05.460 --> 04:07.020
Massively complex thing.

04:07.020 --> 04:08.220
Now I love these.

04:08.220 --> 04:11.600
These are the chairs where the people command the drilling platform.

04:11.600 --> 04:15.240
So they turn the top drive on, they stack and move pipes and things like that.

04:15.240 --> 04:17.260
These are called cyber chairs.

04:17.620 --> 04:18.660
I absolutely love that.

04:18.660 --> 04:20.260
I'd like one in my house actually.

04:20.260 --> 04:22.300
You know, these joysticks, they look really good fun.

04:22.780 --> 04:27.600
This is one of the massive control panels that monitors the BOP on the seabed.

04:27.600 --> 04:28.980
Huge complexity.

04:29.820 --> 04:31.740
This is the BOP itself.

04:31.740 --> 04:35.880
So the BOP sits on the seabed where the drill's going into the rock.

04:35.920 --> 04:38.180
And it has massive hydraulic rams.

04:38.180 --> 04:44.260
So if the drill riser snaps, if the thing goes off station, it will shut it with big rams.

04:44.260 --> 04:47.280
Huge rams that close over, shut that pipe off.

04:47.440 --> 04:49.880
It was this that went wrong in Deepwater Horizon.

04:49.980 --> 04:53.740
Now to control this, you've got this hydraulic equipment up on the main deck.

04:53.740 --> 04:56.500
This area was off-limits to nearly all crew.

04:56.500 --> 04:59.480
Since Deepwater Horizon, you're not allowed into this area.

04:59.540 --> 05:01.260
It's a high security area.

05:01.260 --> 05:02.460
Well, I was.

05:02.600 --> 05:03.340
Maybe I wasn't?

05:03.340 --> 05:04.440
Did we ask?

05:05.260 --> 05:05.800
No.

05:05.800 --> 05:06.620
I think we just walked in.

05:06.620 --> 05:07.740
We just walked in.

05:07.920 --> 05:10.560
Now the BOP is controlled with this little cabinet here.

05:10.560 --> 05:13.100
So it's a Windows XP machine, as you'd expect.

05:13.100 --> 05:14.680
A few buttons and a keyboard.

05:14.900 --> 05:16.360
Normal kind of stuff.

05:16.600 --> 05:18.300
There's some quite amusing stuff on this rig.

05:18.300 --> 05:20.180
It's been about for quite a long time.

05:20.920 --> 05:23.460
I think the BOP was fucked, to be honest.

05:23.460 --> 05:26.620
There's a load of third-party stuff on the same vessel, though.

05:26.900 --> 05:32.660
When you're drilling, you've got to pump something called mud down that drill chain that takes all the bits of rock and brings it back up again.

05:32.660 --> 05:35.460
So there's another company on the vessel that deals with all of this.

05:35.460 --> 05:40.120
And this is called the Cement Lab and the Mud Lab, where they analyse stuff that comes back up from the seabed.

05:40.180 --> 05:42.020
So we've got all these different things on the ship.

05:42.020 --> 05:43.680
We've got propulsion, the ship bits.

05:43.680 --> 05:47.020
We've got the DCM, the Drilling Control Network, which are the drilly bits.

05:47.120 --> 05:49.300
You've got the BOP, the Blowout Preventer.

05:49.400 --> 05:49.940
Corporate.

05:49.940 --> 05:52.360
So it's just got a normal network, like anything else.

05:52.360 --> 05:53.340
You've got crew.

05:53.340 --> 05:55.640
Netflix, dodgy file sharing and pornography.

05:55.720 --> 05:57.400
Third-party for those labs.

05:57.400 --> 06:00.820
And the core network, all of the networking equipment that goes in between it.

06:00.820 --> 06:02.240
Now, this was complicated.

06:02.240 --> 06:05.700
We were expecting it to be quite complicated, but not quite as much.

06:06.560 --> 06:08.760
So we did this work in a certain way.

06:08.760 --> 06:10.600
We did some onshore prep first.

06:10.600 --> 06:15.880
So they gave us documentation, as much as they could give us, so we could work out what we needed to take with us.

06:16.280 --> 06:20.020
It wasn't in London, surprisingly, so we had to travel there.

06:20.160 --> 06:22.160
Once we'd done that, we went offshore.

06:22.160 --> 06:26.500
We went there to the rig, and we spent a week investigating what was going on.

06:26.800 --> 06:28.500
It was really good fun, actually.

06:28.540 --> 06:32.240
I just spent the whole week in a boiler suit, crawling around in little bit spaces.

06:32.380 --> 06:35.300
You spent most of the time in the accommodation, in the air-conditioned bit.

06:35.820 --> 06:36.420
There was food there.

06:36.420 --> 06:39.880
There was food there, and Marsh didn't leave a single little room.

06:41.160 --> 06:44.760
After we'd done that, we gathered a load of information about what was on the vessel.

06:44.760 --> 06:47.700
We saw it was different, so we came back to the office.

06:47.700 --> 06:51.820
We bought a load of equipment that we'd found on the vessel to rip apart and find vulnerabilities in.

06:52.320 --> 06:55.720
We tried to find cracking passwords, things like that.

06:55.720 --> 06:58.340
Then we went back to completely hack the oil rig.

06:58.340 --> 06:59.620
It was really good fun, this.

07:00.100 --> 07:04.020
The way the networks were connected, you've got the propulsion systems.

07:04.020 --> 07:07.160
You've got the things that actually steer and drive the ship.

07:07.160 --> 07:10.640
These were completely air-gapped on this oil rig.

07:10.880 --> 07:12.140
You've also got the other side of things.

07:12.140 --> 07:15.980
You've got a satellite connection coming in, so that's the way the internet comes into the ship.

07:15.980 --> 07:19.880
You've got the core networking that goes to the DCN, so that's the drilling network.

07:19.880 --> 07:22.680
You've got the corporate, the third party, all of those labs.

07:22.680 --> 07:26.420
And you've got the crew, or smut network, as we'd probably more likely call it.

07:27.520 --> 07:31.320
To just give an idea of the complexity of the drilling control network, this is what it looks like.

07:31.320 --> 07:33.560
You've got your three cyber chairs at the top there.

07:33.560 --> 07:36.120
You've got probably four or five different protocols here.

07:36.220 --> 07:39.820
Modbus, TCPIP, different fibre.

07:39.880 --> 07:41.540
It's really quite crazy.

07:42.000 --> 07:42.700
Serial.

07:42.840 --> 07:43.820
Serial, yeah.

07:43.820 --> 07:45.640
A lot of stuff to take in.

07:45.640 --> 07:52.460
The problem was, when we got on the vessel, we found that the documentation didn't line up at all with what was on there.

07:52.460 --> 07:55.820
Not only was the documentation wrong, but lots of it had been amended.

07:55.820 --> 07:57.400
And this was only on the vessel.

07:57.400 --> 07:59.020
This hadn't gone back shoreside.

07:59.460 --> 08:01.320
So what tricks did we use?

08:01.380 --> 08:07.800
Well, one thing we found really useful on ships is whole ship or whole vessel traffic interception.

08:07.800 --> 08:11.560
So we take the main VSAT connection going in and out of the ship, and we unplug it.

08:11.560 --> 08:13.740
And then we intercept all of that traffic.

08:13.740 --> 08:16.220
So we use one of these little passive network taps.

08:16.220 --> 08:18.340
Now, you probably recognise the top there, Riverbed.

08:18.340 --> 08:19.760
It's a WAN accelerator.

08:19.760 --> 08:24.420
When you've got a slow satellite connection, you want to condense that information down to use less bandwidth.

08:24.520 --> 08:29.040
I've just sat there in line with that, taking all of the traffic from the ship.

08:29.060 --> 08:33.240
I log it into an Intel NUC that we just put in the network cabinet, and it...

08:33.240 --> 08:36.780
Well, there's a lot of pornography there most of the time, to be honest.

08:36.780 --> 08:38.760
But there's also other interesting things.

08:38.760 --> 08:41.000
So we just sit in the network in that position.

08:41.000 --> 08:41.880
Really helpful.

08:42.740 --> 08:45.440
Another trick we use, another Intel NUC.

08:45.440 --> 08:51.060
And this time, we're using three USB Ethernet adapters to passively monitor control networks.

08:51.100 --> 08:55.140
So, again, we're seeing if there's traffic on those networks that's really, really interesting.

08:55.320 --> 09:00.440
If someone says a network's air-gapped, it's actually quite hard to determine that on something this big.

09:00.440 --> 09:05.000
If I suddenly see someone pinging Google on this network, I know that's not air-gapped anymore.

09:05.620 --> 09:11.040
The other thing, I'm sure some of you probably used one of these in the past, especially if you've ever worked in IT.

09:11.040 --> 09:12.340
It's a network tracer.

09:12.340 --> 09:18.420
So you plug Ethernet into the little box there, and then you wave it about in network cabinets to find where that cable goes.

09:18.580 --> 09:22.160
A huge amount of the work we did was tracing cables about the vessel.

09:22.420 --> 09:27.480
It worked for Ethernet, it worked for wired Ethernet, but it wasn't so great for this stuff, fiber.

09:27.660 --> 09:29.300
There was fiber everywhere.

09:29.300 --> 09:31.160
Now, you've got to bear in mind this thing is huge.

09:31.160 --> 09:36.780
You can't run an Ethernet cable through an industrial environment over 150 meters and expect it to work.

09:36.780 --> 09:38.240
So there's a lot of fiber.

09:38.240 --> 09:39.320
We couldn't trace it.

09:39.320 --> 09:42.180
It was something we really struggled with, but we could intercept it.

09:42.600 --> 09:49.220
So what we've got here, at the top there, we've got two media converters taking fiber through to Ethernet, and then we're intercepting it again.

09:49.380 --> 09:51.140
So it's a really simple way of doing things.

09:51.220 --> 10:00.820
It uses those little pluggable modules, so we can actually change the different protocols that we're using, get it back to Ethernet, intercept it, and mess about with it if we want as well.

10:01.380 --> 10:07.780
The other thing we were doing, Cisco switches, Juniper switches, they've all got console ports on them.

10:07.780 --> 10:10.100
So these are USB or serial ports.

10:10.120 --> 10:13.140
If you plug into one of those, you'll get a serial console come up.

10:13.340 --> 10:23.920
If you pull the power out the back of the switch and reboot it with holding the mode button down, you can get it into this mode where you can just type flash in it, and it will boot, and then you can get the config of the switch out.

10:23.960 --> 10:29.460
Now, what we were relying on there was the password from one switch being the same as the password on other switches.

10:29.660 --> 10:33.820
So we decrypted the passwords from these, and we had access to the entire core network.

10:34.920 --> 10:42.500
Another thing we did, and I think this is something that maybe was a bit different to traditional ICS testing, this thing's called an Uplogix.

10:42.540 --> 10:54.180
It's an out-of-band management device, and the idea is if you're dialing into the main router on the ship, and you change the config, and you lock yourself out, this is a backdoor to allow you back in.

10:54.180 --> 10:55.860
It uses the serial console.

10:56.140 --> 11:01.060
Now, an interesting thing is it stores the passwords on it, so you don't have to know the password for that router.

11:01.060 --> 11:04.080
You don't have to know the password for the power distribution unit it's connected to.

11:04.220 --> 11:09.540
So you're coming in out-of-band into this Uplogix, and then you've got all these different switches, routers that you can connect to.

11:09.540 --> 11:10.940
It's like a backdoor.

11:11.380 --> 11:15.520
Now, what we did was we ripped it out.

11:15.520 --> 11:16.320
Fixed it, first of all.

11:16.340 --> 11:18.100
Fixed it, because it wasn't working properly.

11:18.100 --> 11:30.000
So we fixed the power supply, ripped it out, pulled the hard drive out, read the data off the hard drive, reverse-engineered the way it encrypts the passwords stored on that hard drive, and then we had the passwords for all of the core networking equipment connected to it.

11:30.000 --> 11:32.040
Now, it's quite funny, actually.

11:32.060 --> 11:33.880
Do any of you like Bob the Builder?

11:34.100 --> 11:36.140
Do any of you know what Bob the Builder is?

11:36.140 --> 11:38.760
Hannah likes Bob the Builder, and Lee, awesome!

11:39.420 --> 11:44.760
The password used to encrypt all of the password on the Uplogix was buildermuckdizzy.

11:44.760 --> 11:50.360
Now, Bob the Builder has two companions called Muck and Dizzy, so not a good day for the developer there, really.

11:52.300 --> 11:54.160
Now, passwords.

11:54.320 --> 11:58.140
If you've ever been at sea, you'll realize that people write passwords down everywhere.

11:58.140 --> 12:01.920
Nearly every monitor will have a password stuck to the bottom of it.

12:02.160 --> 12:05.560
So, obviously, that laptop had the password Q2W3E.

12:06.060 --> 12:09.100
The admin password for a console.

12:09.320 --> 12:11.120
I really like the font there.

12:11.120 --> 12:13.220
It brings a certain something to it.

12:13.680 --> 12:14.420
This one's good.

12:14.420 --> 12:15.780
We found another PC.

12:15.940 --> 12:16.740
Password hint.

12:16.740 --> 12:18.420
Who do you work for?

12:18.580 --> 12:19.700
Do you know what's really embarrassing?

12:19.700 --> 12:24.520
I typed about 30 passwords before I typed in the name of the company because I didn't read the password hint.

12:24.940 --> 12:25.940
There we go.

12:25.940 --> 12:27.820
Four-character password.

12:28.320 --> 12:29.120
Awesome.

12:30.060 --> 12:34.480
The problem with this is, is all of these different parts of that network are operated by different people.

12:34.480 --> 12:35.940
It's not one entity.

12:35.940 --> 12:38.440
And when that happens, you tend to get password reuse.

12:38.440 --> 12:42.620
So, the drilling control network with a given password, it will be reused on another vessel.

12:42.800 --> 12:47.420
The core network, the ones that are using those switches, will be used on other switches on other vessels.

12:47.420 --> 12:49.140
Not just oil rigs, other ships.

12:50.080 --> 12:55.140
Now, this one was probably the most interesting finding that shocked our customer the most.

12:55.180 --> 12:56.480
There was a jump box.

12:57.380 --> 12:58.580
Now, I found this PC.

12:58.580 --> 13:01.660
It was in a machine room buried underneath the drilling platform.

13:02.220 --> 13:04.040
It was turned on.

13:04.180 --> 13:07.140
So, IP config, as you normally would do.

13:07.140 --> 13:10.600
And I saw that it said media disconnected on the main ethernet adapter.

13:10.600 --> 13:13.140
But you could see the domain there, corp.local.

13:13.140 --> 13:16.800
Now, Windows preserves the domain that you were previously connected to on the network address.

13:16.800 --> 13:21.820
So, I knew that this had been connected to a domain network in the past.

13:21.820 --> 13:23.680
So, I had a look around.

13:23.700 --> 13:29.900
And I saw there was a cable about two centimeters away from a network socket on the wall.

13:30.400 --> 13:36.520
Now, I thought maybe, maybe if I plug that in, I'll get an IP address and I'll be straight onto the domain.

13:36.860 --> 13:38.160
Now, what's happened here?

13:38.160 --> 13:42.600
We've now got a bridge between the corporate network and the drilling control network.

13:42.600 --> 13:48.660
Now, the reason we think this was put in was the electrician didn't like walking out to the middle of the rig to get access to the drilling control network.

13:48.660 --> 13:50.400
He preferred to do it from his office.

13:50.400 --> 13:52.240
So, he added this little jump box.

13:52.300 --> 13:53.760
It got better, though.

13:54.500 --> 13:56.880
There was TeamViewer running on the jump box.

13:56.880 --> 14:04.880
So, when it was connected to the corporate network, there was a four-digit pin protecting access from the open internet to the drilling control network.

14:05.080 --> 14:09.240
So, now we've got anyone on the internet able to access the drilling control network.

14:09.980 --> 14:11.300
Domain admin.

14:12.940 --> 14:17.880
So, one of the other things that we saw earlier was we saw this little tap that we put in.

14:17.880 --> 14:23.660
And this was just to remind ourselves that this was monitoring and capturing all the network traffic across the VSAT.

14:23.660 --> 14:29.140
So, all of the incoming and outgoing network traffic onto this particular oil rig.

14:29.200 --> 14:33.480
So, we left that on there overnight, recorded all the traffic onto an Intel NUC.

14:33.480 --> 14:37.740
And the next day, we came back and we saw some credentials.

14:37.740 --> 14:42.480
Now, this is an FTP credential that we've gathered here.

14:42.840 --> 14:44.480
Who knows the tool CrapMap?

14:44.480 --> 14:46.280
Anyone use the tool CrapMap Exec?

14:46.740 --> 14:47.340
No?

14:47.340 --> 14:47.820
Okay.

14:47.820 --> 14:56.340
So, CrapMap Exec is a password spraying tool that allows you to put a username, a password, and a domain if you need it.

14:56.440 --> 15:04.880
And you give it an IP range, and it will go and test that password and report back to you in a yellow font, which we'll see in a second, whether that works.

15:04.880 --> 15:09.100
Now, we were a bit suspicious and a bit like, well, it's an FTP user account.

15:09.100 --> 15:11.140
It's not going to have any permission, surely.

15:12.440 --> 15:13.560
Unfortunately, it did.

15:13.560 --> 15:16.360
It had domain admin rights.

15:16.560 --> 15:27.060
An FTP account that was transferring data to and from the corporate environment back in their head office, back to this oil rig, had domain admin rights.

15:27.620 --> 15:29.120
Okay, that's not good.

15:29.740 --> 15:31.600
So, then we explored a little bit more.

15:32.920 --> 15:37.220
And any of you who come across the tool Bloodhound, it will generate this beautiful graph for you.

15:37.220 --> 15:42.980
And this was the permissions that the FTP user account had over their network.

15:43.140 --> 15:44.960
So, we explored a little bit more.

15:44.960 --> 15:47.020
And bear in mind, we're sat on an oil rig.

15:47.720 --> 15:54.120
We found that from the oil rig, I had domain admin permissions on to their corporate network, back in their head office.

15:54.500 --> 15:55.420
But not that.

15:55.620 --> 15:59.180
Their other head office in one of their other environments in a different region.

15:59.180 --> 16:01.120
And then I explored a little bit more.

16:01.120 --> 16:03.700
Now, they've got 65 oil rigs, this company.

16:03.700 --> 16:10.700
I had domain admin rights and could get from one oil rig across all 65 around the world.

16:10.700 --> 16:16.800
Now, obviously, the latency across the satellite communications was a little bit slow, about 150 milliseconds.

16:16.940 --> 16:18.580
But that is not good.

16:18.580 --> 16:19.980
Not good at all.

16:21.240 --> 16:24.240
So, we then noticed this as well.

16:24.700 --> 16:27.080
So, this is back to that drilling control network.

16:27.080 --> 16:32.120
And we noticed a very small little thing in this diagram.

16:33.380 --> 16:34.420
DER.

16:34.820 --> 16:39.740
So, what this is, think of a black box on an aircraft.

16:39.740 --> 16:42.080
And a black box is a data recorder or a data historian.

16:42.080 --> 16:48.160
It is there to record all of the things that happen on this oil rig from all of the different networks.

16:48.160 --> 16:52.180
Now, if we pop back to that diagram there, this is the drilling control network.

16:52.180 --> 16:56.160
And there's a network connection going back up to this data historian.

16:56.160 --> 16:59.240
So, we thought, OK, this is an interesting thing.

16:59.240 --> 17:06.260
Now, this data historian, waterproof, bomb-proof, you know, supposed to be as robust as a flight recorder.

17:06.260 --> 17:07.900
A black box on a flight recorder.

17:08.940 --> 17:11.840
And then we found this piece of paper.

17:12.120 --> 17:14.080
And that was on there as well.

17:14.080 --> 17:16.200
So, that wasn't great either.

17:16.900 --> 17:34.960
And so now we've got this sort of nice network where we can go from the oil rig back into the core, back into the data flight recorder, and then we're back into the drilling control network from the Internet.

17:35.200 --> 17:36.640
And that's not good.

17:37.600 --> 17:47.240
So, one of the other things that we noticed is that because of these massive differences, so going from the top of an oil rig down to the bottom stanchions is a long way.

17:47.240 --> 17:49.700
That was that 172 steps that we saw.

17:49.920 --> 17:59.160
So, what they did is they had fiber networks absolutely everywhere to get the communications from the top of the oil rig down to the very, very bottom where the thrusters were.

17:59.260 --> 18:01.240
Now, these are all Siemens Scalant switches.

18:02.220 --> 18:06.120
And as you can see, they've all got fiber connections in and they've got the Ethernet connections in.

18:06.640 --> 18:11.900
Now, there's a well-known off-bypass written by a guy called Black Swanburst.

18:11.900 --> 18:12.520
Look it up.

18:12.520 --> 18:14.020
It's really, really interesting.

18:15.180 --> 18:17.020
But we bought one of these.

18:17.040 --> 18:23.120
And what we noticed is that when you change the password, it got longer.

18:23.420 --> 18:26.640
So, we thought, OK, that's pretty interesting.

18:26.940 --> 18:30.620
And literally, these things were everywhere, absolutely everywhere.

18:31.340 --> 18:35.760
And one of our colleagues, Chris Wade, who you may have seen on track one talking about NFC.

18:35.760 --> 18:38.620
And if you haven't seen it, go and watch it on the playback video.

18:38.620 --> 18:40.380
It's absolutely awesome research.

18:40.380 --> 18:43.080
He went what we call full Wade.

18:43.500 --> 18:44.540
Full, full Wade.

18:44.540 --> 18:46.820
And I'm going to do a little demonstration for you here.

18:46.820 --> 18:47.920
One second.

18:48.720 --> 18:54.480
So, the off-bypass generates a script file for you.

18:54.480 --> 18:55.760
And you're not on the screen, Chris.

18:55.760 --> 18:56.740
I'm not on the screen.

18:56.740 --> 18:57.480
OK.

19:00.560 --> 19:01.900
No, not that way.

19:02.060 --> 19:03.000
That way.

19:06.570 --> 19:13.610
So, the config file that you can download looks like this.

19:13.610 --> 19:15.210
There's loads of rubbish in there.

19:15.210 --> 19:27.540
But what was really, really interesting is this encrypted password for the admin account and the standard user account.

19:27.880 --> 19:30.600
So, what we did is we bought loads.

19:30.600 --> 19:32.020
We took them apart.

19:32.260 --> 19:38.080
Chris attached a JTAG connector to it and debugged using IDA, ARM processor.

19:38.080 --> 19:45.780
Debugged and went through the entire firmware to work out how to reverse engineer this password, which was absolutely awesome.

19:46.400 --> 19:47.800
Wrote a little tool.

19:50.140 --> 19:50.560
And...

19:51.300 --> 19:53.040
Excuse my poor typing.

19:54.400 --> 19:56.420
Now, we've hashed a little bit out here.

19:56.420 --> 20:01.660
This has been disclosed through Siemens already, but we've hashed a little bit out here because we don't want to give away the key.

20:01.660 --> 20:06.040
But basically, those passwords are hashed with a key.

20:06.520 --> 20:07.740
And that is not good.

20:07.880 --> 20:12.240
So, now we've got full access to everywhere on this.

20:13.320 --> 20:19.820
And we can decrypt any password for any Siemens Halat switch that were absolutely everywhere on this oil rig.

20:22.120 --> 20:26.260
Now, the thing was that password that was decrypted wasn't just for the switches on that vessel.

20:26.260 --> 20:29.560
It was common across the drilling packages that had been installed on all vessels.

20:29.560 --> 20:33.020
So, by reverse engineering that encrypted password from one, we got access to other ones.

20:33.020 --> 20:35.360
We found loads of other interesting stuff, though.

20:36.200 --> 20:39.440
I was wandering around the vessel and I noticed...

20:39.440 --> 20:44.140
I walked into what's called the oily zone, which is where they do works on hydraulic parts.

20:44.280 --> 20:45.200
And there was this little room.

20:45.200 --> 20:51.080
And when I was in that little room, I could see on my laptop a network, a Wi-Fi network called oily zone.

20:51.400 --> 20:53.920
Now, that turned out to have the password oilyoily.

20:54.660 --> 20:57.520
That was just plugged directly into the corporate network.

20:57.520 --> 20:59.180
Again, we didn't really find out why.

20:59.180 --> 21:04.500
But what we suspect is someone messing about on their phone instead of working, put their own access point in.

21:04.640 --> 21:09.140
And again, you've got a situation where a Wi-Fi network has just been attached to the corporate network.

21:09.140 --> 21:10.980
And Shoreside had no idea.

21:11.700 --> 21:13.480
Now, the concept of an air gap.

21:13.680 --> 21:16.460
A lot of industrial control networks should be air gapped.

21:16.460 --> 21:18.360
A lot of people say they're air gapped.

21:18.380 --> 21:21.580
What they quite often mean is they think they're air gapped.

21:21.900 --> 21:23.640
We come back to the BOP here.

21:23.720 --> 21:24.660
So, this is a cabinet.

21:24.660 --> 21:28.140
It contains a PC, a load of PLCs, fiber networks.

21:28.140 --> 21:31.540
But it's the core of the BOP controls.

21:31.620 --> 21:38.300
So, when something really bad happens, there was literally big emergency buttons all over the vessel that you could hit, say you were going off station.

21:38.300 --> 21:42.740
It drops the riser down and fires the BOP.

21:44.060 --> 21:46.240
This was the thing that did that.

21:46.300 --> 21:50.120
Now, what we found, that little area down the bottom there is where that area was.

21:50.120 --> 21:52.420
And it was essentially sealed off when at sea.

21:53.680 --> 21:54.960
We had a look.

21:55.380 --> 21:58.260
And what we saw, we found this office.

21:58.260 --> 22:00.440
And this was kind of buried in the accommodation.

22:00.520 --> 22:02.500
And there was these two screens there.

22:02.560 --> 22:04.620
They were turned off, but we turned them on.

22:04.620 --> 22:07.140
And we found that one of them was an HMI.

22:07.140 --> 22:10.000
So, an interface to the BOP in the accommodation.

22:10.380 --> 22:13.720
It was a slightly dodgy looking connection on the wall.

22:13.880 --> 22:15.740
So, on the left was the normal network.

22:15.740 --> 22:19.260
On the right was the really dodgy network that probably shouldn't have ended up in the accommodation.

22:19.420 --> 22:24.900
So, now we've got the situation where this network that should have strict controls has been brought to the other side of the vessel.

22:25.860 --> 22:27.260
Air gapping again.

22:27.860 --> 22:32.080
Now, the propulsion network on this vessel was isolated from everything else.

22:32.080 --> 22:34.700
So, there was no way onto it from outside the vessel.

22:35.560 --> 22:40.020
But when we looked at the switches, we found that they hadn't changed the password.

22:40.020 --> 22:43.280
So, these were Allied Telesis switches with the standard password on them.

22:43.280 --> 22:44.700
So, they hadn't changed them.

22:44.800 --> 22:48.380
They'd made that assumption that no one would ever get on that network.

22:49.340 --> 22:54.120
Now, the propulsion control system, I think it had about 700 of these PLCs.

22:54.120 --> 22:56.640
So, quite a large number of them all over the place.

22:57.720 --> 23:01.420
They don't even have the facility to have a password set on them.

23:01.420 --> 23:04.600
So, you can just telnet into them and reconfigure them once you're in that network.

23:04.600 --> 23:08.220
So, if this ever did end up connected to the internet, it's a game over situation.

23:08.940 --> 23:12.400
Now, an interesting thing was that there wasn't just the rig we were on there.

23:12.400 --> 23:15.200
There was one next to it that was in something called cold stack.

23:15.240 --> 23:16.680
So, that's where they've turned everything off.

23:16.680 --> 23:17.700
There's no power.

23:17.900 --> 23:19.420
They've removed parts.

23:19.420 --> 23:21.280
It's probably not going to work again.

23:21.600 --> 23:22.920
So, the other rig was there.

23:22.920 --> 23:25.620
Now, oddly, this guy didn't volunteer to come with me.

23:26.420 --> 23:32.060
First off, you have to go down 172 steps, along, up 172 steps, back down and around again.

23:32.200 --> 23:35.480
There were no toilets, there was no electricity and there was no air conditioning.

23:35.900 --> 23:37.940
That's a lot of steps if you need a poo.

23:39.820 --> 23:42.460
We found, again, one of these Uplogix devices.

23:42.460 --> 23:44.920
So, these back doors into all of the equipment.

23:45.060 --> 23:47.420
Now, this one was powered down, so we couldn't really do anything with it.

23:47.420 --> 23:49.000
It was a bit awkward to work with.

23:49.400 --> 23:50.840
We also found this.

23:51.160 --> 23:51.720
Everywhere?

23:51.840 --> 23:52.420
Everywhere.

23:52.420 --> 23:53.480
Off the drives on this.

23:53.480 --> 23:57.020
There was quite a lot of interesting files.

23:57.020 --> 24:00.220
But this one was called company.exe.jpg.

24:00.220 --> 24:04.100
And that strongly suggests that some kind of malware controls failed along the line.

24:05.860 --> 24:08.540
Now, you remember I said on the other ship, propulsion was air gap.

24:08.540 --> 24:10.540
That grey box represents the air gap.

24:10.540 --> 24:13.300
Again, we looked on this vessel.

24:13.540 --> 24:15.360
And I saw that little Cisco router.

24:16.060 --> 24:18.520
I mean, it's gaffer taped to the top of that PC.

24:19.200 --> 24:22.420
The oil and gas industry is well known for its very robust engineering.

24:22.420 --> 24:24.200
And it's got a cable coming out of it.

24:24.200 --> 24:27.000
And that cable led to a 3G antenna.

24:27.420 --> 24:32.220
And essentially what this is, is a remote access mechanism into the propulsion system.

24:32.220 --> 24:35.700
So, it's made by the manufacturer of the propulsion systems.

24:36.140 --> 24:40.320
But now what we've got is the situation where that isn't air gapped anymore.

24:40.520 --> 24:46.440
There was a handy laminated piece of paper that had the username and password for that little Cisco box sat right there.

24:46.700 --> 24:51.020
So, now we've got the situation where there's remote access onto the propulsion network.

24:51.020 --> 24:53.180
So, it's quite crazy this, really.

24:53.200 --> 24:55.920
There's a lot of different ways we saw bad things happening.

24:56.820 --> 25:01.620
Now, in conclusion, really, I think this is one of the most interesting jobs we've done.

25:02.440 --> 25:03.780
There was a lot of stuff to find.

25:03.780 --> 25:06.100
I don't think we scratched the surface, really, to be honest.

25:06.220 --> 25:10.580
It was fascinating that the two oil rigs next to each other were actually supposed to be the same.

25:10.980 --> 25:12.580
They were supposed to be almost identical.

25:12.580 --> 25:13.760
They come out of the same yard.

25:13.760 --> 25:15.140
They have the same equipment on them.

25:15.140 --> 25:17.620
But there were all these differences between the two of them.

25:18.860 --> 25:19.760
The complexity.

25:19.760 --> 25:21.260
I mean, it was unprecedented.

25:21.420 --> 25:26.100
If we hadn't have had that tracing tool to trace out ethernet cables, we'd have been screwed.

25:26.100 --> 25:28.300
It would have been impossible to have found what was going on.

25:28.300 --> 25:29.720
Sometimes they go down a deck.

25:29.720 --> 25:31.360
Sometimes they just go through walls.

25:31.360 --> 25:32.560
It was really difficult.

25:32.860 --> 25:35.400
The documentation was completely different to reality.

25:35.420 --> 25:38.920
I mean, it was almost to the point that it was a hindrance rather than a help.

25:39.440 --> 25:43.820
What we found really interesting was the crew were actually really receptive to us being on board.

25:43.820 --> 25:46.100
We were maybe expecting them to be a bit reticent.

25:46.100 --> 25:47.700
You know, we're the geeky guys.

25:47.700 --> 25:49.140
They're there just trying to get their job done.

25:49.140 --> 25:50.920
But they were actually really, really helpful.

25:51.660 --> 25:53.460
I think they learned a lot as well.

25:53.460 --> 25:55.700
And, yeah, we certainly learned some things from them as well.

25:56.120 --> 26:03.580
The other thing I found that worked really well is that we combined Chris's ICS knowledge, so he knows the industrial control systems, with my hardware knowledge.

26:03.580 --> 26:04.980
So I can rip things apart.

26:04.980 --> 26:08.180
I can pull hard drives out and then read memory, get JTAG going off things.

26:08.180 --> 26:12.800
So it allowed us to find vulnerabilities that took us deeper into the rig.

26:12.800 --> 26:17.100
I also found out that bananas in other parts of the world are really, really weird.

26:18.080 --> 26:20.480
But, yeah, that's our talk on oil rigs.

26:20.580 --> 26:21.780
I hope you enjoyed it.

26:21.780 --> 26:24.500
And if anyone's got any questions, fire away.

26:29.010 --> 26:30.310
Are we hiring?

26:31.110 --> 26:35.230
Not right at this second, but we quite often do.

26:35.230 --> 26:36.410
We're a growing company.

26:37.030 --> 26:39.670
I'm going to say not everything's as fun as that.

26:41.830 --> 26:43.950
But I have to say, yeah, some of it is.

26:43.950 --> 26:45.570
Ships are good fun.

27:01.370 --> 27:03.730
So some of them have been mitigated.

27:04.010 --> 27:05.610
They've been mitigated rather than fixed.

27:05.610 --> 27:06.150
Sorry.

27:12.150 --> 27:13.590
I've seen NT4.

27:15.790 --> 27:16.610
Yeah, I think...

27:16.610 --> 27:19.930
XP was the oldest on this one, but I've seen NT4.

27:20.050 --> 27:25.690
Yeah, XP was the oldest we found on there, but there was probably embedded stuff that was running from things from before XP.

27:28.190 --> 27:29.770
Any more questions from anyone?

27:30.910 --> 27:32.250
Follow us on Twitter.

27:32.670 --> 27:35.090
We start fights on the... I start fights on the Internet.

27:35.870 --> 27:37.310
He's quite nice, really.

27:37.310 --> 27:39.790
So, yeah, give us a follow and you see interesting stuff like that.

27:40.690 --> 27:41.550
Thank you very much.

27:41.550 --> 27:42.030
Thank you.

