1 00:00:00,000 --> 00:00:01,180 Right, sorry about that. 2 00:00:01,180 --> 00:00:02,560 We should be good to go now. 3 00:00:02,560 --> 00:00:04,620 We're going to be talking about hacking an oil rig. 4 00:00:04,820 --> 00:00:13,340 This is some work that we've done in the last year or so about hacking a semi-submersible drilling rig. 5 00:00:13,400 --> 00:00:15,140 It's based on a true story. 6 00:00:15,400 --> 00: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. 7 00:00:22,280 --> 00:00:24,240 I'm going to tell you who we are. 8 00:00:24,240 --> 00:00:25,840 So, I'm Andrew. 9 00:00:25,840 --> 00:00:27,200 I used to work at sea. 10 00:00:27,200 --> 00:00:30,160 That's me in the Suez Canal on a container ship 13 years ago. 11 00:00:30,160 --> 00:00:33,680 So I know the ins and outs of boats, vessels, machinery, things like that. 12 00:00:33,680 --> 00:00:35,200 I also do pen testing. 13 00:00:35,300 --> 00:00:37,840 And this... Chris? 14 00:00:38,040 --> 00:00:40,960 This is me on my stag do. 15 00:00:41,540 --> 00:00:46,400 I come from an industrial control system background and I also do pen testing. 16 00:00:48,260 --> 00:00:49,900 So, what were we doing? 17 00:00:49,900 --> 00:00:52,460 Well, we were trying to prevent this from happening. 18 00:00:52,460 --> 00: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. 19 00:01:05,680 --> 00:01:09,020 Now, our customer's concerned about something called a drive-away. 20 00:01:09,180 --> 00:01:12,400 Now, a semi-submersible rig isn't actually attached to the seabed. 21 00:01:12,400 --> 00:01:14,800 It holds its position using thrusters. 22 00:01:15,040 --> 00:01:19,020 So there's big propellers that can turn around on the bottom of the vessel that hold it in position. 23 00:01:19,020 --> 00: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. 24 00:01:26,720 --> 00:01:29,740 Now, what they're worried about is the oil rig driving off to the side. 25 00:01:29,740 --> 00:01:35,480 So if we can take it off position, that riser will snap and you might get a Deepwater Horizon situation. 26 00:01:35,480 --> 00:01:37,320 So this is obviously quite a bad thing. 27 00:01:37,920 --> 00:01:39,280 So, the rigs. 28 00:01:39,640 --> 00:01:41,280 This was the rigs we were looking at. 29 00:01:41,280 --> 00:01:43,760 They were actually docked at the time. 30 00:01:43,760 --> 00:01:45,140 So it's called warm stack. 31 00:01:45,140 --> 00:01:49,040 So they're still operating, but not drilling at that moment in time. 32 00:01:49,040 --> 00:01:51,480 This did present some problems, though. 33 00:01:51,860 --> 00:01:55,540 This is what we were presented with when we first got to the rig. 34 00:01:55,840 --> 00:01:57,660 Now, you might notice something there. 35 00:01:58,020 --> 00:01:59,580 172 steps. 36 00:01:59,680 --> 00:02:00,940 No lift. 37 00:02:00,960 --> 00:02:03,080 Every fucking day. 38 00:02:03,080 --> 00:02:03,740 Two weeks. 39 00:02:03,740 --> 00:02:05,340 Two weeks of this as well. 40 00:02:05,340 --> 00:02:06,580 It's pretty tiring. 41 00:02:07,500 --> 00:02:14,540 I was also there, not only with Chris, but our other colleague, Marsh, who was absolutely terrified of heights. 42 00:02:14,860 --> 00:02:17,300 Now, it's really quite a long way up. 43 00:02:17,340 --> 00:02:19,200 He's walking across a mesh catwalk there. 44 00:02:19,200 --> 00:02:20,520 There's a big drop down. 45 00:02:20,640 --> 00:02:23,440 We had to go back down every day as well, so that's us going back down. 46 00:02:24,180 --> 00:02:26,240 Also, Marsh, he likes a smoke. 47 00:02:26,360 --> 00:02:29,780 Now, to smoke, you have to go outside onto the rear deck with the lifeboats. 48 00:02:30,060 --> 00:02:35,060 And the problem is, the view down there, you can see how far it is down to the sea. 49 00:02:35,880 --> 00:02:37,480 Now, this rig is huge. 50 00:02:37,840 --> 00:02:40,080 Normally, to get to the rig, you'd land on a helipad. 51 00:02:40,080 --> 00: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. 52 00:02:45,820 --> 00:02:48,840 I'm not going to tell you everything about the machinery on it, just some of it. 53 00:02:49,500 --> 00:02:51,560 So this is a cross-section of a rig. 54 00:02:52,620 --> 00:02:53,520 The bridge. 55 00:02:53,520 --> 00:02:54,840 It's got a bridge like a ship. 56 00:02:54,840 --> 00:02:55,540 You can steer it. 57 00:02:55,540 --> 00:02:58,320 You can literally drive it from one place to another like any ship. 58 00:02:58,660 --> 00:03:00,360 It's also got generators. 59 00:03:00,500 --> 00:03:03,340 So it produces electrical power to power the thrusters. 60 00:03:03,340 --> 00:03:06,580 The thrusters on the bottom there, you can see two at each one of those legs. 61 00:03:06,580 --> 00:03:07,340 They can rotate. 62 00:03:07,340 --> 00:03:08,220 They're called azipods. 63 00:03:08,220 --> 00:03:09,980 Spin round and move it in any direction. 64 00:03:10,260 --> 00:03:14,020 You've also got big switchboards that control those thrusters and all the different motors. 65 00:03:14,420 --> 00:03:16,940 Then you've got the actual drilling rig in the middle there. 66 00:03:16,940 --> 00:03:18,360 Now, there's a thing called a top drive. 67 00:03:18,360 --> 00: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. 68 00:03:23,300 --> 00:03:27,620 And you've also got a very, very, very big hoist that lifts it all up, back up and down. 69 00:03:27,820 --> 00:03:29,880 That bit in the middle there is called the drilling package. 70 00:03:29,880 --> 00:03:32,220 And it's made by a different company to the rest of the rig. 71 00:03:32,220 --> 00:03:34,620 It's just dropped onto it and then fitted. 72 00:03:35,220 --> 00:03:36,140 So the bridge. 73 00:03:36,140 --> 00:03:37,520 It looks like this. 74 00:03:37,600 --> 00:03:40,780 It really does look like a large container ship bridge. 75 00:03:40,780 --> 00:03:42,240 There's not much different there. 76 00:03:43,320 --> 00:03:44,740 This is one of the engine rooms. 77 00:03:44,740 --> 00:03:45,900 It had eight generators. 78 00:03:45,900 --> 00: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. 79 00:03:51,420 --> 00:03:52,920 That's one of the switchboard rooms. 80 00:03:52,920 --> 00:03:57,800 It's a water-cooled switchboard, which didn't seem like a great idea to me. 81 00:03:58,300 --> 00:03:59,840 That's the actual drilling derrick. 82 00:03:59,840 --> 00:04:02,660 So the big tower that goes up with the top drive at the top. 83 00:04:02,920 --> 00:04:05,340 You can see cranes, there's all pipework everywhere. 84 00:04:05,460 --> 00:04:07,020 Massively complex thing. 85 00:04:07,020 --> 00:04:08,220 Now I love these. 86 00:04:08,220 --> 00:04:11,600 These are the chairs where the people command the drilling platform. 87 00:04:11,600 --> 00:04:15,240 So they turn the top drive on, they stack and move pipes and things like that. 88 00:04:15,240 --> 00:04:17,260 These are called cyber chairs. 89 00:04:17,620 --> 00:04:18,660 I absolutely love that. 90 00:04:18,660 --> 00:04:20,260 I'd like one in my house actually. 91 00:04:20,260 --> 00:04:22,300 You know, these joysticks, they look really good fun. 92 00:04:22,780 --> 00:04:27,600 This is one of the massive control panels that monitors the BOP on the seabed. 93 00:04:27,600 --> 00:04:28,980 Huge complexity. 94 00:04:29,820 --> 00:04:31,740 This is the BOP itself. 95 00:04:31,740 --> 00:04:35,880 So the BOP sits on the seabed where the drill's going into the rock. 96 00:04:35,920 --> 00:04:38,180 And it has massive hydraulic rams. 97 00:04:38,180 --> 00:04:44,260 So if the drill riser snaps, if the thing goes off station, it will shut it with big rams. 98 00:04:44,260 --> 00:04:47,280 Huge rams that close over, shut that pipe off. 99 00:04:47,440 --> 00:04:49,880 It was this that went wrong in Deepwater Horizon. 100 00:04:49,980 --> 00:04:53,740 Now to control this, you've got this hydraulic equipment up on the main deck. 101 00:04:53,740 --> 00:04:56,500 This area was off-limits to nearly all crew. 102 00:04:56,500 --> 00:04:59,480 Since Deepwater Horizon, you're not allowed into this area. 103 00:04:59,540 --> 00:05:01,260 It's a high security area. 104 00:05:01,260 --> 00:05:02,460 Well, I was. 105 00:05:02,600 --> 00:05:03,340 Maybe I wasn't? 106 00:05:03,340 --> 00:05:04,440 Did we ask? 107 00:05:05,260 --> 00:05:05,800 No. 108 00:05:05,800 --> 00:05:06,620 I think we just walked in. 109 00:05:06,620 --> 00:05:07,740 We just walked in. 110 00:05:07,920 --> 00:05:10,560 Now the BOP is controlled with this little cabinet here. 111 00:05:10,560 --> 00:05:13,100 So it's a Windows XP machine, as you'd expect. 112 00:05:13,100 --> 00:05:14,680 A few buttons and a keyboard. 113 00:05:14,900 --> 00:05:16,360 Normal kind of stuff. 114 00:05:16,600 --> 00:05:18,300 There's some quite amusing stuff on this rig. 115 00:05:18,300 --> 00:05:20,180 It's been about for quite a long time. 116 00:05:20,920 --> 00:05:23,460 I think the BOP was fucked, to be honest. 117 00:05:23,460 --> 00:05:26,620 There's a load of third-party stuff on the same vessel, though. 118 00:05:26,900 --> 00: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. 119 00:05:32,660 --> 00:05:35,460 So there's another company on the vessel that deals with all of this. 120 00:05:35,460 --> 00: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. 121 00:05:40,180 --> 00:05:42,020 So we've got all these different things on the ship. 122 00:05:42,020 --> 00:05:43,680 We've got propulsion, the ship bits. 123 00:05:43,680 --> 00:05:47,020 We've got the DCM, the Drilling Control Network, which are the drilly bits. 124 00:05:47,120 --> 00:05:49,300 You've got the BOP, the Blowout Preventer. 125 00:05:49,400 --> 00:05:49,940 Corporate. 126 00:05:49,940 --> 00:05:52,360 So it's just got a normal network, like anything else. 127 00:05:52,360 --> 00:05:53,340 You've got crew. 128 00:05:53,340 --> 00:05:55,640 Netflix, dodgy file sharing and pornography. 129 00:05:55,720 --> 00:05:57,400 Third-party for those labs. 130 00:05:57,400 --> 00:06:00,820 And the core network, all of the networking equipment that goes in between it. 131 00:06:00,820 --> 00:06:02,240 Now, this was complicated. 132 00:06:02,240 --> 00:06:05,700 We were expecting it to be quite complicated, but not quite as much. 133 00:06:06,560 --> 00:06:08,760 So we did this work in a certain way. 134 00:06:08,760 --> 00:06:10,600 We did some onshore prep first. 135 00:06:10,600 --> 00: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. 136 00:06:16,280 --> 00:06:20,020 It wasn't in London, surprisingly, so we had to travel there. 137 00:06:20,160 --> 00:06:22,160 Once we'd done that, we went offshore. 138 00:06:22,160 --> 00:06:26,500 We went there to the rig, and we spent a week investigating what was going on. 139 00:06:26,800 --> 00:06:28,500 It was really good fun, actually. 140 00:06:28,540 --> 00:06:32,240 I just spent the whole week in a boiler suit, crawling around in little bit spaces. 141 00:06:32,380 --> 00:06:35,300 You spent most of the time in the accommodation, in the air-conditioned bit. 142 00:06:35,820 --> 00:06:36,420 There was food there. 143 00:06:36,420 --> 00:06:39,880 There was food there, and Marsh didn't leave a single little room. 144 00:06:41,160 --> 00:06:44,760 After we'd done that, we gathered a load of information about what was on the vessel. 145 00:06:44,760 --> 00:06:47,700 We saw it was different, so we came back to the office. 146 00:06:47,700 --> 00:06:51,820 We bought a load of equipment that we'd found on the vessel to rip apart and find vulnerabilities in. 147 00:06:52,320 --> 00:06:55,720 We tried to find cracking passwords, things like that. 148 00:06:55,720 --> 00:06:58,340 Then we went back to completely hack the oil rig. 149 00:06:58,340 --> 00:06:59,620 It was really good fun, this. 150 00:07:00,100 --> 00:07:04,020 The way the networks were connected, you've got the propulsion systems. 151 00:07:04,020 --> 00:07:07,160 You've got the things that actually steer and drive the ship. 152 00:07:07,160 --> 00:07:10,640 These were completely air-gapped on this oil rig. 153 00:07:10,880 --> 00:07:12,140 You've also got the other side of things. 154 00:07:12,140 --> 00:07:15,980 You've got a satellite connection coming in, so that's the way the internet comes into the ship. 155 00:07:15,980 --> 00:07:19,880 You've got the core networking that goes to the DCN, so that's the drilling network. 156 00:07:19,880 --> 00:07:22,680 You've got the corporate, the third party, all of those labs. 157 00:07:22,680 --> 00:07:26,420 And you've got the crew, or smut network, as we'd probably more likely call it. 158 00:07:27,520 --> 00:07:31,320 To just give an idea of the complexity of the drilling control network, this is what it looks like. 159 00:07:31,320 --> 00:07:33,560 You've got your three cyber chairs at the top there. 160 00:07:33,560 --> 00:07:36,120 You've got probably four or five different protocols here. 161 00:07:36,220 --> 00:07:39,820 Modbus, TCPIP, different fibre. 162 00:07:39,880 --> 00:07:41,540 It's really quite crazy. 163 00:07:42,000 --> 00:07:42,700 Serial. 164 00:07:42,840 --> 00:07:43,820 Serial, yeah. 165 00:07:43,820 --> 00:07:45,640 A lot of stuff to take in. 166 00:07:45,640 --> 00: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. 167 00:07:52,460 --> 00:07:55,820 Not only was the documentation wrong, but lots of it had been amended. 168 00:07:55,820 --> 00:07:57,400 And this was only on the vessel. 169 00:07:57,400 --> 00:07:59,020 This hadn't gone back shoreside. 170 00:07:59,460 --> 00:08:01,320 So what tricks did we use? 171 00:08:01,380 --> 00:08:07,800 Well, one thing we found really useful on ships is whole ship or whole vessel traffic interception. 172 00:08:07,800 --> 00:08:11,560 So we take the main VSAT connection going in and out of the ship, and we unplug it. 173 00:08:11,560 --> 00:08:13,740 And then we intercept all of that traffic. 174 00:08:13,740 --> 00:08:16,220 So we use one of these little passive network taps. 175 00:08:16,220 --> 00:08:18,340 Now, you probably recognise the top there, Riverbed. 176 00:08:18,340 --> 00:08:19,760 It's a WAN accelerator. 177 00:08:19,760 --> 00:08:24,420 When you've got a slow satellite connection, you want to condense that information down to use less bandwidth. 178 00:08:24,520 --> 00:08:29,040 I've just sat there in line with that, taking all of the traffic from the ship. 179 00:08:29,060 --> 00:08:33,240 I log it into an Intel NUC that we just put in the network cabinet, and it... 180 00:08:33,240 --> 00:08:36,780 Well, there's a lot of pornography there most of the time, to be honest. 181 00:08:36,780 --> 00:08:38,760 But there's also other interesting things. 182 00:08:38,760 --> 00:08:41,000 So we just sit in the network in that position. 183 00:08:41,000 --> 00:08:41,880 Really helpful. 184 00:08:42,740 --> 00:08:45,440 Another trick we use, another Intel NUC. 185 00:08:45,440 --> 00:08:51,060 And this time, we're using three USB Ethernet adapters to passively monitor control networks. 186 00:08:51,100 --> 00:08:55,140 So, again, we're seeing if there's traffic on those networks that's really, really interesting. 187 00:08:55,320 --> 00:09:00,440 If someone says a network's air-gapped, it's actually quite hard to determine that on something this big. 188 00:09:00,440 --> 00:09:05,000 If I suddenly see someone pinging Google on this network, I know that's not air-gapped anymore. 189 00:09:05,620 --> 00: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. 190 00:09:11,040 --> 00:09:12,340 It's a network tracer. 191 00:09:12,340 --> 00: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. 192 00:09:18,580 --> 00:09:22,160 A huge amount of the work we did was tracing cables about the vessel. 193 00:09:22,420 --> 00:09:27,480 It worked for Ethernet, it worked for wired Ethernet, but it wasn't so great for this stuff, fiber. 194 00:09:27,660 --> 00:09:29,300 There was fiber everywhere. 195 00:09:29,300 --> 00:09:31,160 Now, you've got to bear in mind this thing is huge. 196 00:09:31,160 --> 00:09:36,780 You can't run an Ethernet cable through an industrial environment over 150 meters and expect it to work. 197 00:09:36,780 --> 00:09:38,240 So there's a lot of fiber. 198 00:09:38,240 --> 00:09:39,320 We couldn't trace it. 199 00:09:39,320 --> 00:09:42,180 It was something we really struggled with, but we could intercept it. 200 00:09:42,600 --> 00: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. 201 00:09:49,380 --> 00:09:51,140 So it's a really simple way of doing things. 202 00:09:51,220 --> 00: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. 203 00:10:01,380 --> 00:10:07,780 The other thing we were doing, Cisco switches, Juniper switches, they've all got console ports on them. 204 00:10:07,780 --> 00:10:10,100 So these are USB or serial ports. 205 00:10:10,120 --> 00:10:13,140 If you plug into one of those, you'll get a serial console come up. 206 00:10:13,340 --> 00: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. 207 00:10:23,960 --> 00: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. 208 00:10:29,660 --> 00:10:33,820 So we decrypted the passwords from these, and we had access to the entire core network. 209 00:10:34,920 --> 00: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. 210 00:10:42,540 --> 00: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. 211 00:10:54,180 --> 00:10:55,860 It uses the serial console. 212 00:10:56,140 --> 00: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. 213 00:11:01,060 --> 00:11:04,080 You don't have to know the password for the power distribution unit it's connected to. 214 00:11:04,220 --> 00: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. 215 00:11:09,540 --> 00:11:10,940 It's like a backdoor. 216 00:11:11,380 --> 00:11:15,520 Now, what we did was we ripped it out. 217 00:11:15,520 --> 00:11:16,320 Fixed it, first of all. 218 00:11:16,340 --> 00:11:18,100 Fixed it, because it wasn't working properly. 219 00:11:18,100 --> 00: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. 220 00:11:30,000 --> 00:11:32,040 Now, it's quite funny, actually. 221 00:11:32,060 --> 00:11:33,880 Do any of you like Bob the Builder? 222 00:11:34,100 --> 00:11:36,140 Do any of you know what Bob the Builder is? 223 00:11:36,140 --> 00:11:38,760 Hannah likes Bob the Builder, and Lee, awesome! 224 00:11:39,420 --> 00:11:44,760 The password used to encrypt all of the password on the Uplogix was buildermuckdizzy. 225 00:11:44,760 --> 00:11:50,360 Now, Bob the Builder has two companions called Muck and Dizzy, so not a good day for the developer there, really. 226 00:11:52,300 --> 00:11:54,160 Now, passwords. 227 00:11:54,320 --> 00:11:58,140 If you've ever been at sea, you'll realize that people write passwords down everywhere. 228 00:11:58,140 --> 00:12:01,920 Nearly every monitor will have a password stuck to the bottom of it. 229 00:12:02,160 --> 00:12:05,560 So, obviously, that laptop had the password Q2W3E. 230 00:12:06,060 --> 00:12:09,100 The admin password for a console. 231 00:12:09,320 --> 00:12:11,120 I really like the font there. 232 00:12:11,120 --> 00:12:13,220 It brings a certain something to it. 233 00:12:13,680 --> 00:12:14,420 This one's good. 234 00:12:14,420 --> 00:12:15,780 We found another PC. 235 00:12:15,940 --> 00:12:16,740 Password hint. 236 00:12:16,740 --> 00:12:18,420 Who do you work for? 237 00:12:18,580 --> 00:12:19,700 Do you know what's really embarrassing? 238 00:12:19,700 --> 00: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. 239 00:12:24,940 --> 00:12:25,940 There we go. 240 00:12:25,940 --> 00:12:27,820 Four-character password. 241 00:12:28,320 --> 00:12:29,120 Awesome. 242 00:12:30,060 --> 00:12:34,480 The problem with this is, is all of these different parts of that network are operated by different people. 243 00:12:34,480 --> 00:12:35,940 It's not one entity. 244 00:12:35,940 --> 00:12:38,440 And when that happens, you tend to get password reuse. 245 00:12:38,440 --> 00:12:42,620 So, the drilling control network with a given password, it will be reused on another vessel. 246 00:12:42,800 --> 00:12:47,420 The core network, the ones that are using those switches, will be used on other switches on other vessels. 247 00:12:47,420 --> 00:12:49,140 Not just oil rigs, other ships. 248 00:12:50,080 --> 00:12:55,140 Now, this one was probably the most interesting finding that shocked our customer the most. 249 00:12:55,180 --> 00:12:56,480 There was a jump box. 250 00:12:57,380 --> 00:12:58,580 Now, I found this PC. 251 00:12:58,580 --> 00:13:01,660 It was in a machine room buried underneath the drilling platform. 252 00:13:02,220 --> 00:13:04,040 It was turned on. 253 00:13:04,180 --> 00:13:07,140 So, IP config, as you normally would do. 254 00:13:07,140 --> 00:13:10,600 And I saw that it said media disconnected on the main ethernet adapter. 255 00:13:10,600 --> 00:13:13,140 But you could see the domain there, corp.local. 256 00:13:13,140 --> 00:13:16,800 Now, Windows preserves the domain that you were previously connected to on the network address. 257 00:13:16,800 --> 00:13:21,820 So, I knew that this had been connected to a domain network in the past. 258 00:13:21,820 --> 00:13:23,680 So, I had a look around. 259 00:13:23,700 --> 00:13:29,900 And I saw there was a cable about two centimeters away from a network socket on the wall. 260 00:13:30,400 --> 00: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. 261 00:13:36,860 --> 00:13:38,160 Now, what's happened here? 262 00:13:38,160 --> 00:13:42,600 We've now got a bridge between the corporate network and the drilling control network. 263 00:13:42,600 --> 00: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. 264 00:13:48,660 --> 00:13:50,400 He preferred to do it from his office. 265 00:13:50,400 --> 00:13:52,240 So, he added this little jump box. 266 00:13:52,300 --> 00:13:53,760 It got better, though. 267 00:13:54,500 --> 00:13:56,880 There was TeamViewer running on the jump box. 268 00:13:56,880 --> 00: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. 269 00:14:05,080 --> 00:14:09,240 So, now we've got anyone on the internet able to access the drilling control network. 270 00:14:09,980 --> 00:14:11,300 Domain admin. 271 00:14:12,940 --> 00:14:17,880 So, one of the other things that we saw earlier was we saw this little tap that we put in. 272 00:14:17,880 --> 00:14:23,660 And this was just to remind ourselves that this was monitoring and capturing all the network traffic across the VSAT. 273 00:14:23,660 --> 00:14:29,140 So, all of the incoming and outgoing network traffic onto this particular oil rig. 274 00:14:29,200 --> 00:14:33,480 So, we left that on there overnight, recorded all the traffic onto an Intel NUC. 275 00:14:33,480 --> 00:14:37,740 And the next day, we came back and we saw some credentials. 276 00:14:37,740 --> 00:14:42,480 Now, this is an FTP credential that we've gathered here. 277 00:14:42,840 --> 00:14:44,480 Who knows the tool CrapMap? 278 00:14:44,480 --> 00:14:46,280 Anyone use the tool CrapMap Exec? 279 00:14:46,740 --> 00:14:47,340 No? 280 00:14:47,340 --> 00:14:47,820 Okay. 281 00:14:47,820 --> 00: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. 282 00:14:56,440 --> 00: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. 283 00:15:04,880 --> 00:15:09,100 Now, we were a bit suspicious and a bit like, well, it's an FTP user account. 284 00:15:09,100 --> 00:15:11,140 It's not going to have any permission, surely. 285 00:15:12,440 --> 00:15:13,560 Unfortunately, it did. 286 00:15:13,560 --> 00:15:16,360 It had domain admin rights. 287 00:15:16,560 --> 00: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. 288 00:15:27,620 --> 00:15:29,120 Okay, that's not good. 289 00:15:29,740 --> 00:15:31,600 So, then we explored a little bit more. 290 00:15:32,920 --> 00:15:37,220 And any of you who come across the tool Bloodhound, it will generate this beautiful graph for you. 291 00:15:37,220 --> 00:15:42,980 And this was the permissions that the FTP user account had over their network. 292 00:15:43,140 --> 00:15:44,960 So, we explored a little bit more. 293 00:15:44,960 --> 00:15:47,020 And bear in mind, we're sat on an oil rig. 294 00:15:47,720 --> 00: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. 295 00:15:54,500 --> 00:15:55,420 But not that. 296 00:15:55,620 --> 00:15:59,180 Their other head office in one of their other environments in a different region. 297 00:15:59,180 --> 00:16:01,120 And then I explored a little bit more. 298 00:16:01,120 --> 00:16:03,700 Now, they've got 65 oil rigs, this company. 299 00:16:03,700 --> 00:16:10,700 I had domain admin rights and could get from one oil rig across all 65 around the world. 300 00:16:10,700 --> 00:16:16,800 Now, obviously, the latency across the satellite communications was a little bit slow, about 150 milliseconds. 301 00:16:16,940 --> 00:16:18,580 But that is not good. 302 00:16:18,580 --> 00:16:19,980 Not good at all. 303 00:16:21,240 --> 00:16:24,240 So, we then noticed this as well. 304 00:16:24,700 --> 00:16:27,080 So, this is back to that drilling control network. 305 00:16:27,080 --> 00:16:32,120 And we noticed a very small little thing in this diagram. 306 00:16:33,380 --> 00:16:34,420 DER. 307 00:16:34,820 --> 00:16:39,740 So, what this is, think of a black box on an aircraft. 308 00:16:39,740 --> 00:16:42,080 And a black box is a data recorder or a data historian. 309 00:16:42,080 --> 00:16:48,160 It is there to record all of the things that happen on this oil rig from all of the different networks. 310 00:16:48,160 --> 00:16:52,180 Now, if we pop back to that diagram there, this is the drilling control network. 311 00:16:52,180 --> 00:16:56,160 And there's a network connection going back up to this data historian. 312 00:16:56,160 --> 00:16:59,240 So, we thought, OK, this is an interesting thing. 313 00:16:59,240 --> 00:17:06,260 Now, this data historian, waterproof, bomb-proof, you know, supposed to be as robust as a flight recorder. 314 00:17:06,260 --> 00:17:07,900 A black box on a flight recorder. 315 00:17:08,940 --> 00:17:11,840 And then we found this piece of paper. 316 00:17:12,120 --> 00:17:14,080 And that was on there as well. 317 00:17:14,080 --> 00:17:16,200 So, that wasn't great either. 318 00:17:16,900 --> 00: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. 319 00:17:35,200 --> 00:17:36,640 And that's not good. 320 00:17:37,600 --> 00: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. 321 00:17:47,240 --> 00:17:49,700 That was that 172 steps that we saw. 322 00:17:49,920 --> 00: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. 323 00:17:59,260 --> 00:18:01,240 Now, these are all Siemens Scalant switches. 324 00:18:02,220 --> 00:18:06,120 And as you can see, they've all got fiber connections in and they've got the Ethernet connections in. 325 00:18:06,640 --> 00:18:11,900 Now, there's a well-known off-bypass written by a guy called Black Swanburst. 326 00:18:11,900 --> 00:18:12,520 Look it up. 327 00:18:12,520 --> 00:18:14,020 It's really, really interesting. 328 00:18:15,180 --> 00:18:17,020 But we bought one of these. 329 00:18:17,040 --> 00:18:23,120 And what we noticed is that when you change the password, it got longer. 330 00:18:23,420 --> 00:18:26,640 So, we thought, OK, that's pretty interesting. 331 00:18:26,940 --> 00:18:30,620 And literally, these things were everywhere, absolutely everywhere. 332 00:18:31,340 --> 00:18:35,760 And one of our colleagues, Chris Wade, who you may have seen on track one talking about NFC. 333 00:18:35,760 --> 00:18:38,620 And if you haven't seen it, go and watch it on the playback video. 334 00:18:38,620 --> 00:18:40,380 It's absolutely awesome research. 335 00:18:40,380 --> 00:18:43,080 He went what we call full Wade. 336 00:18:43,500 --> 00:18:44,540 Full, full Wade. 337 00:18:44,540 --> 00:18:46,820 And I'm going to do a little demonstration for you here. 338 00:18:46,820 --> 00:18:47,920 One second. 339 00:18:48,720 --> 00:18:54,480 So, the off-bypass generates a script file for you. 340 00:18:54,480 --> 00:18:55,760 And you're not on the screen, Chris. 341 00:18:55,760 --> 00:18:56,740 I'm not on the screen. 342 00:18:56,740 --> 00:18:57,480 OK. 343 00:19:00,560 --> 00:19:01,900 No, not that way. 344 00:19:02,060 --> 00:19:03,000 That way. 345 00:19:06,570 --> 00:19:13,610 So, the config file that you can download looks like this. 346 00:19:13,610 --> 00:19:15,210 There's loads of rubbish in there. 347 00:19:15,210 --> 00:19:27,540 But what was really, really interesting is this encrypted password for the admin account and the standard user account. 348 00:19:27,880 --> 00:19:30,600 So, what we did is we bought loads. 349 00:19:30,600 --> 00:19:32,020 We took them apart. 350 00:19:32,260 --> 00:19:38,080 Chris attached a JTAG connector to it and debugged using IDA, ARM processor. 351 00:19:38,080 --> 00:19:45,780 Debugged and went through the entire firmware to work out how to reverse engineer this password, which was absolutely awesome. 352 00:19:46,400 --> 00:19:47,800 Wrote a little tool. 353 00:19:50,140 --> 00:19:50,560 And... 354 00:19:51,300 --> 00:19:53,040 Excuse my poor typing. 355 00:19:54,400 --> 00:19:56,420 Now, we've hashed a little bit out here. 356 00:19:56,420 --> 00: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. 357 00:20:01,660 --> 00:20:06,040 But basically, those passwords are hashed with a key. 358 00:20:06,520 --> 00:20:07,740 And that is not good. 359 00:20:07,880 --> 00:20:12,240 So, now we've got full access to everywhere on this. 360 00:20:13,320 --> 00:20:19,820 And we can decrypt any password for any Siemens Halat switch that were absolutely everywhere on this oil rig. 361 00:20:22,120 --> 00:20:26,260 Now, the thing was that password that was decrypted wasn't just for the switches on that vessel. 362 00:20:26,260 --> 00:20:29,560 It was common across the drilling packages that had been installed on all vessels. 363 00:20:29,560 --> 00:20:33,020 So, by reverse engineering that encrypted password from one, we got access to other ones. 364 00:20:33,020 --> 00:20:35,360 We found loads of other interesting stuff, though. 365 00:20:36,200 --> 00:20:39,440 I was wandering around the vessel and I noticed... 366 00:20:39,440 --> 00:20:44,140 I walked into what's called the oily zone, which is where they do works on hydraulic parts. 367 00:20:44,280 --> 00:20:45,200 And there was this little room. 368 00:20:45,200 --> 00: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. 369 00:20:51,400 --> 00:20:53,920 Now, that turned out to have the password oilyoily. 370 00:20:54,660 --> 00:20:57,520 That was just plugged directly into the corporate network. 371 00:20:57,520 --> 00:20:59,180 Again, we didn't really find out why. 372 00:20:59,180 --> 00:21:04,500 But what we suspect is someone messing about on their phone instead of working, put their own access point in. 373 00:21:04,640 --> 00:21:09,140 And again, you've got a situation where a Wi-Fi network has just been attached to the corporate network. 374 00:21:09,140 --> 00:21:10,980 And Shoreside had no idea. 375 00:21:11,700 --> 00:21:13,480 Now, the concept of an air gap. 376 00:21:13,680 --> 00:21:16,460 A lot of industrial control networks should be air gapped. 377 00:21:16,460 --> 00:21:18,360 A lot of people say they're air gapped. 378 00:21:18,380 --> 00:21:21,580 What they quite often mean is they think they're air gapped. 379 00:21:21,900 --> 00:21:23,640 We come back to the BOP here. 380 00:21:23,720 --> 00:21:24,660 So, this is a cabinet. 381 00:21:24,660 --> 00:21:28,140 It contains a PC, a load of PLCs, fiber networks. 382 00:21:28,140 --> 00:21:31,540 But it's the core of the BOP controls. 383 00:21:31,620 --> 00: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. 384 00:21:38,300 --> 00:21:42,740 It drops the riser down and fires the BOP. 385 00:21:44,060 --> 00:21:46,240 This was the thing that did that. 386 00:21:46,300 --> 00:21:50,120 Now, what we found, that little area down the bottom there is where that area was. 387 00:21:50,120 --> 00:21:52,420 And it was essentially sealed off when at sea. 388 00:21:53,680 --> 00:21:54,960 We had a look. 389 00:21:55,380 --> 00:21:58,260 And what we saw, we found this office. 390 00:21:58,260 --> 00:22:00,440 And this was kind of buried in the accommodation. 391 00:22:00,520 --> 00:22:02,500 And there was these two screens there. 392 00:22:02,560 --> 00:22:04,620 They were turned off, but we turned them on. 393 00:22:04,620 --> 00:22:07,140 And we found that one of them was an HMI. 394 00:22:07,140 --> 00:22:10,000 So, an interface to the BOP in the accommodation. 395 00:22:10,380 --> 00:22:13,720 It was a slightly dodgy looking connection on the wall. 396 00:22:13,880 --> 00:22:15,740 So, on the left was the normal network. 397 00:22:15,740 --> 00:22:19,260 On the right was the really dodgy network that probably shouldn't have ended up in the accommodation. 398 00:22:19,420 --> 00: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. 399 00:22:25,860 --> 00:22:27,260 Air gapping again. 400 00:22:27,860 --> 00:22:32,080 Now, the propulsion network on this vessel was isolated from everything else. 401 00:22:32,080 --> 00:22:34,700 So, there was no way onto it from outside the vessel. 402 00:22:35,560 --> 00:22:40,020 But when we looked at the switches, we found that they hadn't changed the password. 403 00:22:40,020 --> 00:22:43,280 So, these were Allied Telesis switches with the standard password on them. 404 00:22:43,280 --> 00:22:44,700 So, they hadn't changed them. 405 00:22:44,800 --> 00:22:48,380 They'd made that assumption that no one would ever get on that network. 406 00:22:49,340 --> 00:22:54,120 Now, the propulsion control system, I think it had about 700 of these PLCs. 407 00:22:54,120 --> 00:22:56,640 So, quite a large number of them all over the place. 408 00:22:57,720 --> 00:23:01,420 They don't even have the facility to have a password set on them. 409 00:23:01,420 --> 00:23:04,600 So, you can just telnet into them and reconfigure them once you're in that network. 410 00:23:04,600 --> 00:23:08,220 So, if this ever did end up connected to the internet, it's a game over situation. 411 00:23:08,940 --> 00:23:12,400 Now, an interesting thing was that there wasn't just the rig we were on there. 412 00:23:12,400 --> 00:23:15,200 There was one next to it that was in something called cold stack. 413 00:23:15,240 --> 00:23:16,680 So, that's where they've turned everything off. 414 00:23:16,680 --> 00:23:17,700 There's no power. 415 00:23:17,900 --> 00:23:19,420 They've removed parts. 416 00:23:19,420 --> 00:23:21,280 It's probably not going to work again. 417 00:23:21,600 --> 00:23:22,920 So, the other rig was there. 418 00:23:22,920 --> 00:23:25,620 Now, oddly, this guy didn't volunteer to come with me. 419 00:23:26,420 --> 00:23:32,060 First off, you have to go down 172 steps, along, up 172 steps, back down and around again. 420 00:23:32,200 --> 00:23:35,480 There were no toilets, there was no electricity and there was no air conditioning. 421 00:23:35,900 --> 00:23:37,940 That's a lot of steps if you need a poo. 422 00:23:39,820 --> 00:23:42,460 We found, again, one of these Uplogix devices. 423 00:23:42,460 --> 00:23:44,920 So, these back doors into all of the equipment. 424 00:23:45,060 --> 00:23:47,420 Now, this one was powered down, so we couldn't really do anything with it. 425 00:23:47,420 --> 00:23:49,000 It was a bit awkward to work with. 426 00:23:49,400 --> 00:23:50,840 We also found this. 427 00:23:51,160 --> 00:23:51,720 Everywhere? 428 00:23:51,840 --> 00:23:52,420 Everywhere. 429 00:23:52,420 --> 00:23:53,480 Off the drives on this. 430 00:23:53,480 --> 00:23:57,020 There was quite a lot of interesting files. 431 00:23:57,020 --> 00:24:00,220 But this one was called company.exe.jpg. 432 00:24:00,220 --> 00:24:04,100 And that strongly suggests that some kind of malware controls failed along the line. 433 00:24:05,860 --> 00:24:08,540 Now, you remember I said on the other ship, propulsion was air gap. 434 00:24:08,540 --> 00:24:10,540 That grey box represents the air gap. 435 00:24:10,540 --> 00:24:13,300 Again, we looked on this vessel. 436 00:24:13,540 --> 00:24:15,360 And I saw that little Cisco router. 437 00:24:16,060 --> 00:24:18,520 I mean, it's gaffer taped to the top of that PC. 438 00:24:19,200 --> 00:24:22,420 The oil and gas industry is well known for its very robust engineering. 439 00:24:22,420 --> 00:24:24,200 And it's got a cable coming out of it. 440 00:24:24,200 --> 00:24:27,000 And that cable led to a 3G antenna. 441 00:24:27,420 --> 00:24:32,220 And essentially what this is, is a remote access mechanism into the propulsion system. 442 00:24:32,220 --> 00:24:35,700 So, it's made by the manufacturer of the propulsion systems. 443 00:24:36,140 --> 00:24:40,320 But now what we've got is the situation where that isn't air gapped anymore. 444 00:24:40,520 --> 00: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. 445 00:24:46,700 --> 00:24:51,020 So, now we've got the situation where there's remote access onto the propulsion network. 446 00:24:51,020 --> 00:24:53,180 So, it's quite crazy this, really. 447 00:24:53,200 --> 00:24:55,920 There's a lot of different ways we saw bad things happening. 448 00:24:56,820 --> 00:25:01,620 Now, in conclusion, really, I think this is one of the most interesting jobs we've done. 449 00:25:02,440 --> 00:25:03,780 There was a lot of stuff to find. 450 00:25:03,780 --> 00:25:06,100 I don't think we scratched the surface, really, to be honest. 451 00:25:06,220 --> 00:25:10,580 It was fascinating that the two oil rigs next to each other were actually supposed to be the same. 452 00:25:10,980 --> 00:25:12,580 They were supposed to be almost identical. 453 00:25:12,580 --> 00:25:13,760 They come out of the same yard. 454 00:25:13,760 --> 00:25:15,140 They have the same equipment on them. 455 00:25:15,140 --> 00:25:17,620 But there were all these differences between the two of them. 456 00:25:18,860 --> 00:25:19,760 The complexity. 457 00:25:19,760 --> 00:25:21,260 I mean, it was unprecedented. 458 00:25:21,420 --> 00:25:26,100 If we hadn't have had that tracing tool to trace out ethernet cables, we'd have been screwed. 459 00:25:26,100 --> 00:25:28,300 It would have been impossible to have found what was going on. 460 00:25:28,300 --> 00:25:29,720 Sometimes they go down a deck. 461 00:25:29,720 --> 00:25:31,360 Sometimes they just go through walls. 462 00:25:31,360 --> 00:25:32,560 It was really difficult. 463 00:25:32,860 --> 00:25:35,400 The documentation was completely different to reality. 464 00:25:35,420 --> 00:25:38,920 I mean, it was almost to the point that it was a hindrance rather than a help. 465 00:25:39,440 --> 00:25:43,820 What we found really interesting was the crew were actually really receptive to us being on board. 466 00:25:43,820 --> 00:25:46,100 We were maybe expecting them to be a bit reticent. 467 00:25:46,100 --> 00:25:47,700 You know, we're the geeky guys. 468 00:25:47,700 --> 00:25:49,140 They're there just trying to get their job done. 469 00:25:49,140 --> 00:25:50,920 But they were actually really, really helpful. 470 00:25:51,660 --> 00:25:53,460 I think they learned a lot as well. 471 00:25:53,460 --> 00:25:55,700 And, yeah, we certainly learned some things from them as well. 472 00:25:56,120 --> 00: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. 473 00:26:03,580 --> 00:26:04,980 So I can rip things apart. 474 00:26:04,980 --> 00:26:08,180 I can pull hard drives out and then read memory, get JTAG going off things. 475 00:26:08,180 --> 00:26:12,800 So it allowed us to find vulnerabilities that took us deeper into the rig. 476 00:26:12,800 --> 00:26:17,100 I also found out that bananas in other parts of the world are really, really weird. 477 00:26:18,080 --> 00:26:20,480 But, yeah, that's our talk on oil rigs. 478 00:26:20,580 --> 00:26:21,780 I hope you enjoyed it. 479 00:26:21,780 --> 00:26:24,500 And if anyone's got any questions, fire away. 480 00:26:29,010 --> 00:26:30,310 Are we hiring? 481 00:26:31,110 --> 00:26:35,230 Not right at this second, but we quite often do. 482 00:26:35,230 --> 00:26:36,410 We're a growing company. 483 00:26:37,030 --> 00:26:39,670 I'm going to say not everything's as fun as that. 484 00:26:41,830 --> 00:26:43,950 But I have to say, yeah, some of it is. 485 00:26:43,950 --> 00:26:45,570 Ships are good fun. 486 00:27:01,370 --> 00:27:03,730 So some of them have been mitigated. 487 00:27:04,010 --> 00:27:05,610 They've been mitigated rather than fixed. 488 00:27:05,610 --> 00:27:06,150 Sorry. 489 00:27:12,150 --> 00:27:13,590 I've seen NT4. 490 00:27:15,790 --> 00:27:16,610 Yeah, I think... 491 00:27:16,610 --> 00:27:19,930 XP was the oldest on this one, but I've seen NT4. 492 00:27:20,050 --> 00: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. 493 00:27:28,190 --> 00:27:29,770 Any more questions from anyone? 494 00:27:30,910 --> 00:27:32,250 Follow us on Twitter. 495 00:27:32,670 --> 00:27:35,090 We start fights on the... I start fights on the Internet. 496 00:27:35,870 --> 00:27:37,310 He's quite nice, really. 497 00:27:37,310 --> 00:27:39,790 So, yeah, give us a follow and you see interesting stuff like that. 498 00:27:40,690 --> 00:27:41,550 Thank you very much. 499 00:27:41,550 --> 00:27:42,030 Thank you.