[00:01.200 --> 00:06.300] Next speaker up is Mike Godfrey. He's going to talk about how we cost our client 1.2 million [00:06.300 --> 00:12.080] pounds, with four lines of code, and less than two hours. So, give a round of applause [00:12.080 --> 00:12.900] for Mike. [00:20.020 --> 00:24.500] Hello. Well, thanks a lot for coming. We've got a lot to get through in a short amount [00:24.500 --> 00:31.100] of time, so we'll get straight into it. As you heard on Mike, I'm at Mike G Hacks. I'm [00:31.100 --> 00:35.540] the founder of Insinia. I'm a qualified pen tester. I'm qualified CCNA, CEH. I spent ten [00:35.540 --> 00:40.720] years in priority, about 23 years in breaking it. I specialise in hardware and physical, [00:40.720 --> 00:44.020] and I'm a qualified commercial and industrial electrician and gas engineer. So, I actually [00:44.020 --> 00:46.360] started out in ICS as a commercial gas engineer. [00:47.160 --> 00:51.040] To tell you a quick few bits about this talk, we carry out impact-based pen testing. So, [00:51.040 --> 00:54.280] you're not going to see Nessus scans, you're not going to see that sort of output. We take [00:54.280 --> 00:59.260] on about ten clients a year. So, people that come to us really want to know the true impacts [00:59.260 --> 01:02.720] of what's going to happen in their systems. I usually give this talk to my colleague Paul [01:02.720 --> 01:07.040] Hunter, who couldn't be here, but my colleague Simon is. So, ask me anything. Simon's also [01:07.040 --> 01:11.700] outside of a PLC, and we're going to talk about how to lose 1.2 million pounds in two [01:11.700 --> 01:12.800] hours, about $2 million. [01:13.480 --> 01:18.040] So, to tell you a bit about us, we're probably the UK leaders in ICS security training. We've [01:18.040 --> 01:22.560] got a 16,500 square foot lab that's got loads of legacy technology. It's got all the main [01:22.560 --> 01:26.800] manufacturers, Siemens, Omron, Allen-Bradley, etc. We're the only gas-safe cybersecurity [01:26.800 --> 01:30.820] company in the UK. We'll talk about why that's relevant in a minute. We've got 10 years' [01:30.820 --> 01:34.720] experience in attacking ICS, and we're a city and goods-free training centre. This is a [01:34.720 --> 01:39.420] couple of pictures of our lab. So, this is one area, a spoiling plant and a gas rig. [01:39.420 --> 01:44.580] This is one of our robotic arms, an ABB, and this is one of our gamification rigs. Here, [01:44.580 --> 01:46.460] we've got a short video that shows you a bit about what we do. [03:10.770 --> 03:14.250] So, I say we're gas-safe registered. What does that actually mean? Well, gas appliances [03:14.250 --> 03:19.610] in the UK, this is a typical domestic appliance. It's from about 24 to 40 kilowatt. When we're [03:19.610 --> 03:22.890] talking about gas systems, what we're actually talking about is things like this. So, things [03:22.890 --> 03:26.910] that are up to 70,000 kilowatt, 70 megawatt. So, when we talk about gas throughout this [03:26.910 --> 03:31.310] talk, this is really what we're talking about. Now, to talk about a few things on SCADA. [03:31.630 --> 03:35.350] Firstly, SCADA is probably not what you think. There is an industrial control system. So, [03:35.510 --> 03:39.110] a better description would really be control system. The Bellagio fountains are under control [03:39.110 --> 03:43.510] system, similar sorts of things. But these cover everything from industrial process, [03:43.510 --> 03:48.590] military equipment, transportation. In fact, this is what people, most people, accept [03:48.590 --> 03:55.150] as SCADA. But it's prevalent in transportation, in electric, in healthcare, in water, building [03:55.150 --> 04:01.990] management systems, in natural gas, in oil, in chemical, manufacturing. So, it's the problem [04:01.990 --> 04:06.190] with securing all these things. Now, this is an image from Joe Weiss and basically it [04:06.190 --> 04:10.610] outlines the problem perfectly. Now, the issue is that you've got ICS engineers who haven't [04:10.610 --> 04:13.830] really integrated properly with IT and you've got IT security specialists who don't really [04:13.830 --> 04:18.350] understand the engineering side of it. On that basis, it's very, very difficult to work [04:18.350 --> 04:21.430] out what is a cyber attack and what is a cyber failure, because there's a massive skills [04:21.430 --> 04:25.350] gap. Um, when these failures happen, they almost cause wars. We'll talk about that in [04:25.410 --> 04:29.530] a minute. And the RAF in the UK are still installing their 7300s. It's a really old [04:29.530 --> 04:34.150] technology. If you have a look at the problem with that technology, it's old technology, [04:34.150 --> 04:39.030] it's insecure by design, it's cross protocol, you've got secure level 1 to level 3 devices, [04:39.030 --> 04:41.950] so you've got insufficient backups, which is a big problem, because if you drop the [04:41.950 --> 04:46.330] power to an old PLC, then it deletes the program, drops the program. So without proper backups, [04:46.410 --> 04:50.130] a big issue. But because these are such good pieces of kit and are so reliable, they don't [04:50.130 --> 04:54.090] really warrant a full-time on-site technical facility. So there really isn't ICS engineers [04:54.090 --> 04:58.530] on every single location. And there's a lack of ICS security experts. Now, to fly through [04:58.530 --> 05:02.750] these, as I've said, we're quite short on time. These are really easy to access, that's [05:02.750 --> 05:06.670] why they're not great for hackers. They've got little or no security. They've got default [05:06.670 --> 05:11.130] hard-coded credentials quite often. And it should really say there's no protection from [05:11.130 --> 05:14.890] physical attacks, because there really isn't. There's almost no traceability of forensic [05:14.890 --> 05:18.270] evidence when these are attacked. They're very easy to attack remotely, and there's a [05:18.270 --> 05:21.770] range of attack vectors at all levels. And when we have a look at the types of attack [05:21.770 --> 05:25.110] that we see on these, ransomware and DDoS aren't as prevalent, but they do still exist. [05:25.110 --> 05:29.610] We'll talk about that in a minute. Census spoofing is a really big thing. And disrupting [05:29.610 --> 05:32.650] and stopping the process, obviously the aim of what we want to do when we run a pen test. [05:33.070 --> 05:37.650] Tampering with SCADA and HMIs, and the list goes on. But really the problem is that these [05:37.650 --> 05:41.410] things aren't always baking cakes. They can create harsh chemical reactions, reach super [05:41.410 --> 05:44.530] high temperatures, get to immensely high pressures. They've got mechanical components, [05:44.530 --> 05:48.710] software components, physical attacks that can destroy operations in seconds. Like I said, [05:48.710 --> 05:51.670] surprisingly it's not a recipe for granny's apple pie, it's a recipe for disaster. [05:52.450 --> 05:55.350] So when we have a look at the impacts, let's take a look at what happens when these things [05:55.350 --> 06:00.810] go wrong. This is a Russian power station. It's probably one of the most famous ICS failures. [06:00.810 --> 06:05.450] This basically had a turbine, it was a 1,000 ton turbine that ramped up to such power in [06:05.450 --> 06:09.790] milliseconds, it killed 75 people. And if you look on the bottom left picture, you can [06:09.790 --> 06:15.330] probably see a guy standing on a wooden bridge. So that shows the scale of this. That basically [06:15.330 --> 06:18.330] made Russia almost launch a counter strike against the US because they thought it was [06:18.430 --> 06:22.830] a cyber attack. It wasn't at all, it was a cyber failure. It was a $2 sensor that had [06:22.830 --> 06:29.770] fallen off the side of a dam that had basically overfilled the reservoir, which was a big, [06:29.770 --> 06:33.690] On the left we've got a vehicle manufacturing plant, in the middle we've got a commercial [06:33.690 --> 06:37.090] boiler, and on the right we've got an expansion vessel which we've successfully blown up. [06:37.330 --> 06:40.350] Now, when we have a look on the left, let's make no mistake about it, that is an automated [06:40.350 --> 06:44.630] killing machine. If you walked in there, three-day safety interlocks, it would kill you, without [06:44.770 --> 06:49.410] a single shadow of a doubt. So what is it that actually stops it killing you? Well, [06:49.410 --> 06:53.290] safety devices. The things we rely on to keep us alive will always fail. And on the left [06:53.290 --> 06:57.270] we've got a thermostat, on the right we've got a temperature sensor, so on the far right [06:57.270 --> 07:01.330] we've got a pressure relief valve. Now, these will always fail. These are interchangeable [07:01.330 --> 07:04.610] parts, so we know they're going to fail at some point. In fact, when they do fail, like [07:04.610 --> 07:09.830] this, you've now got a bomb within your building. Because if that pressure ramps up for overheating [07:09.830 --> 07:13.190] or for anything like that, and the pressure relief valve does not go off, that's what [07:13.190 --> 07:16.170] will happen. And that's exactly how we blew that expansion vessel up. [07:16.570 --> 07:19.210] And when we have a look at safety interlocks and the things that we rely on to keep us [07:19.210 --> 07:26.890] alive, this is an ABB controller. You can see here we've got a door interlock. This [07:26.890 --> 07:31.010] is the controller for that robotic arm and for that interlock. All you need is a screwdriver. [07:31.010 --> 07:35.170] In fact, we don't even have the keys for that. So we just use a screwdriver to get into it [07:35.170 --> 07:40.230] ordinarily. So it's a big issue. Now, what we know about ICS is that over £30 [07:40.230 --> 07:45.210] billion, about $50 billion has been lost in ICS failure, ransom or cyber attacks. There's [07:45.210 --> 07:50.210] been 70-plus incidents with severe environmental damage, 1,000-plus deaths reportedly. An environmental [07:50.210 --> 07:56.630] disaster at Deepwater Horizon was massive, 68,000-plus square miles of ocean ruined. [07:56.630 --> 08:01.550] It's a big, big issue. When we have a look at what most of them run, most of them run [08:01.550 --> 08:04.770] Windows. And I know what you're thinking, but believe it or not, Windows does have bugs [08:04.770 --> 08:10.750] in it. So it's a big issue. And when we look at these systems, it does get worse. Most [08:10.750 --> 08:16.350] run Windows 7 still. Some even run Windows 98. So it's a big, big problem. [08:16.730 --> 08:22.770] So when we carry out impact-based pen testing ICS, what do we actually do? Well, the default [08:22.770 --> 08:25.890] rules do still apply. If you take a USB killer into these environments, clearly you're going [08:25.890 --> 08:30.410] to deck everything. We still use standard tools, et cetera. But you're going to find [08:30.410 --> 08:35.530] things on showdown. You're going to find web admin panels. You're going to find misconfigurations. [08:35.710 --> 08:39.710] You're going to be able to upgrade firmware. You're going to find default credentials. [08:40.410 --> 08:44.790] Now this is where things get a bit different. Now, we talk about the levels, and the Purger [08:44.790 --> 08:48.750] ICS model is probably considered the best thing for the levels of these devices. But [08:48.750 --> 08:52.630] levels seem to differ depending on where you look. In fact, here I've got three contradicting [08:52.630 --> 08:57.910] images of ICS levels. So for the purpose of this talk, and this is the issue, like, I [08:57.910 --> 09:01.250] think, like, how are we going to secure this stuff? We can't agree on the levels. But for [09:01.250 --> 09:04.910] the purpose of this talk, like, level three we see as SCADA. Level two we see as HMIs, [09:04.910 --> 09:09.370] PLCs, and controllers. Level one we see as sensors. And level zero we see as the fabric [09:09.370 --> 09:13.210] of buildings and the process. And we're going to talk about why that is. But when we talk [09:13.210 --> 09:17.070] about PLCs, we're talking about as programmable logic controller. I'm sure most of you know [09:17.070 --> 09:20.510] this anyway. But it's got multiple network types. We're not going to go too much into [09:20.510 --> 09:23.550] this, but we've got one of these around the corner. So if you want to see these and how [09:23.550 --> 09:27.850] we attack them, we're literally just out here. So we've got this exact one. We're happy to [09:27.850 --> 09:31.870] show you it. We're also talking about BMS systems, so building management systems. Now [09:31.870 --> 09:36.610] this is where I first started hacking these types of systems as a commercial gas engineer. [09:36.610 --> 09:39.770] These basically controlled all the set points and the building management throughout the [09:39.770 --> 09:45.390] building. And quite often these sit in these panels. So this is a 415 volt panel on the [09:45.390 --> 09:49.730] right-hand side. You need to be qualified to open those in the UK. Here we can actually [09:49.730 --> 09:53.350] see where that pressurization unit's had a leap. That's a different issue. But what do we [09:53.350 --> 09:59.450] get if we open these up? What we get is a router and a power socket. So straight away for [09:59.450 --> 10:03.650] us, that's a good spot. Now what's an ethical hacker going to do when they find a router in a [10:03.650 --> 10:08.490] locked cupboard with persistent power? Of course you're going to get your cat to hack it. [10:08.490 --> 10:12.790] So what does that hack look like? So what we did was, obviously I wanted to make a device that [10:12.790 --> 10:15.890] I could put into this cupboard and it isn't going to get found or isn't really going to [10:15.890 --> 10:19.090] alert people straight away. So I made this, it's called a hack plug. And basically it's got [10:19.090 --> 10:23.270] multiple interfaces so it can connect to an ethernet, it can work through the power line for [10:23.270 --> 10:27.750] extra tracing data, it can connect to wifi, it also works on 3G and 4G and it's got local [10:27.750 --> 10:31.750] protocols as well like B2 flow energy so you can connect to it locally. Now to drill into this [10:31.750 --> 10:35.750] quickly with the components. Components, it's a surge protector lead, it's got a D-shelled [10:35.750 --> 10:40.910] laptop power supply which gives us 4 amps. It's got pi zero, that's running Cali for, for pi [10:40.910 --> 10:46.070] two. It's got wifi module, ethernet connector. Yeah, it's got all that in it. So, we'll give [10:46.070 --> 10:50.610] you the spec it's off if you want. So, now we're talking about default rules do not apply. [10:50.730 --> 10:54.990] So, ICS safe network enumeration. So here's an example of how you'd enumerate an ICS network [10:54.990 --> 10:59.330] safely. Because even just enumerating a network can flood it and deny the service on it. So [10:59.330 --> 11:03.610] once we've done that, we want to start looking at safe test streaks. So we're not taking down [11:03.610 --> 11:06.970] an actual process, although we did and we'll talk about that in a minute. But a lot of what [11:06.970 --> 11:11.230] we froze are these test streaks. They work in the exact same way as a process. Um, so they're [11:11.230 --> 11:15.950] really, really good bits of kit. But what are we actually talking about when we say SCADA, [11:15.950 --> 11:21.150] ICS, plant, PLCs, RTUs? Well, this is what we consider plant equipment, so heating, cooling, [11:21.150 --> 11:25.750] distribution. Here we've got gas meters, thermostatic controller, uh, fan core unit and [11:25.750 --> 11:29.810] some commercial boilers. Here we've got shop floor equipment, so things that you'd find [11:29.810 --> 11:35.070] throughout a process on a shop floor. We've got HMIs, human machine interfaces, quite often [11:35.070 --> 11:39.250] run Windows CE, Windows Embedded. Here we've got remote terminal units. I think over here [11:39.250 --> 11:44.230] they're referred to as remote, uh, telemetry units. Um, we've also got field terminal units. [11:44.270 --> 11:47.890] But more importantly, we've got the sensors. Now these are the tentacles of a control system. [11:47.890 --> 11:51.470] They're the eyes and ears of a control system. Um, they report on information such as [11:51.470 --> 11:56.590] temperature, pressure, flow, humidity, orientation. They report that back to the PLC. Now [11:56.590 --> 11:59.990] these are types of sensors that you can have throughout these environments. So you can have a [11:59.990 --> 12:04.650] whole plethora of, um, of sensors available to you. But when we start looking at, uh, [12:04.650 --> 12:09.090] sensors, we move into safety devices. Um, when we look at safety interlocks, they're made to [12:09.090 --> 12:13.250] keep us alive. They stop machines in an emergency. Obviously throughout processes we have [12:13.250 --> 12:17.330] emergency stop buttons, but that's an electrical circuit reporting to an electronic device. In [12:17.330 --> 12:21.290] fact, we know from Stuxnet that the emergency stop buttons weren't working. And there's a [12:21.290 --> 12:25.150] number of ways of doing that. We've got either heat sensors, expansion vessels, pressure [12:25.150 --> 12:28.590] relief valves like we discussed. I'm not gonna list everything here, but you get the idea of, [12:28.590 --> 12:33.810] of what we're talking about. Now, when we have a look at attacks, and obviously this is what [12:33.810 --> 12:41.630] everyone really wants to see. It's safe, right? Well, actually not even safe's a safe. So this [12:41.630 --> 12:45.410] is research I've done over like the past five or six years. It's pretty old now. But you can see [12:45.410 --> 12:54.390] it just proves it's locked. That's all it takes to get into it. So I put this out, and I've been [12:54.390 --> 12:56.770] in the hacking community for quite a while, and, um, everyone was like, yeah, you know, [12:56.770 --> 13:00.790] that's great, but it's a crappy safe, whatever. So I was like, all right, the challenge [13:00.790 --> 13:06.830] accepted. So this is Costco's display safe. So this is a century safe. It's a medium range [13:06.830 --> 13:12.650] safe. It's not super cheap. It's not super expensive. And it's basically just says we're in [13:12.650 --> 13:36.500] Costco. So it's just a rare earth magnet, if you can't hear it, and a sock. Simple as that. So [13:36.500 --> 13:40.260] obviously, responsible disclosure. We told Century about this, and we said, look, we found [13:40.260 --> 13:42.960] the floor in your safe. And they said, yeah, yeah, that's great, but we're not really [13:42.960 --> 13:47.000] interested. We've defended it on the next one. And they're releasing a new version. So [13:47.000 --> 13:52.060] it's all right. Fair enough. So, uh, this is their current version. So this is their new [13:52.060 --> 13:54.060] version. This is the one that you can buy now. [14:13.460 --> 14:25.260] All you actually need to do is take the tape forward, and put it back. And this is their most [14:25.260 --> 14:30.060] recent one. So what we're saying is that even safe products aren't necessarily safe and people [14:30.060 --> 14:34.120] will more than happily sell you stuff, which is insufficient. Now, when we look at the way that [14:34.120 --> 14:38.560] this actually works, this is what's inside them. It's an electromagnetic solenoid valve. I can [14:38.560 --> 14:43.200] list off loads of attacks on these. Um, but this video just shows a bit about how it works. [14:49.080 --> 14:56.260] So basically when you put the pin in, it doesn't interfere with the lock at all. All it does is [14:56.260 --> 15:03.880] closes the circuit, which makes this go like that. That's it. That clears the way for you to do it. [15:04.040 --> 15:08.520] So obviously the way to do it is you bang it, which just bounces this up and down. [15:08.520 --> 15:09.940] So when you bang it, that's what you're doing. [15:09.940 --> 15:11.860] Short circuit here. [15:12.020 --> 15:13.560] Short circuit here. [15:14.320 --> 15:19.540] Or just use the magnet, and the magnet just emulates this electromagnet. [15:20.000 --> 15:21.960] And again, in turn pulls it down. [15:22.580 --> 15:26.280] That's it. This one keeps you safe and safe. Nothing complicated. [15:26.280 --> 15:30.980] So in fact, when we started looking at these, I went down the security aisle in Homebase, which is like [15:30.980 --> 15:36.400] Home Depot over here, and we hacked every single thing in this picture, but they're still happy to sell them. [15:36.660 --> 15:37.860] So it's a big problem. [15:37.860 --> 15:40.520] But how do we know how to tackle these? [15:40.980 --> 15:44.600] Well, in fact, they're all gas valves that we find throughout industrial environments. [15:44.600 --> 15:46.480] They're any smart valve, pretty much. [15:46.860 --> 15:51.820] And when we look at examples of where these are, on the top left, you've got a gas valve, [15:51.820 --> 15:54.180] which is probably what you'd find in your domestic boiler at home. [15:54.920 --> 15:57.960] That's just got two electromagnetic solenoids on it. [15:57.960 --> 16:00.000] It's just got one for the pilot, one for the main burner. [16:00.500 --> 16:03.260] And then here we can see more commercial industrial ones. [16:03.260 --> 16:07.820] Now, these are all safety interlocked into things like fire alarms, into emergency stop buttons. [16:07.820 --> 16:11.360] So if a fire alarm is triggered, then it will shut the gas supply off into a building. [16:11.780 --> 16:13.960] So if you can mess with that, you can mess with these. [16:14.040 --> 16:15.280] So that's a big issue. [16:15.780 --> 16:20.320] Now, when we have a look at things like sensors, this is in ABB's reception. [16:20.400 --> 16:25.420] And basically this says, when you can measure what you're speaking about and express it in numbers, you know something about it. [16:25.420 --> 16:29.100] When you cannot measure it, your knowledge is meager and unsatisfactory. [16:29.200 --> 16:30.720] And it's completely true. [16:30.720 --> 16:36.000] Sensors are probably one of the most important things for an industrial process or a commercial process or whatever you're doing. [16:36.300 --> 16:40.360] And sensors really are the keys to the kingdom, I think anyway, and we'll talk about why. [16:40.540 --> 16:44.100] Now, like we said, the sensors are the tentacles of the control system. [16:44.100 --> 16:45.720] They're very easily spoofed. [16:45.720 --> 16:48.200] But the network accepts that data as fact. [16:48.280 --> 16:52.360] So if that data has been pushed up from a sensor, the network will always accept it. [16:52.360 --> 16:53.640] The PLC will always accept it. [16:53.640 --> 16:56.660] It's got no way of checking if it's correct or not. [16:56.660 --> 17:03.200] They work on a 4 to 20 milliamp circuit, some of them, which measures things like resistance, current, or digital output, so with a UID, etc. [17:03.620 --> 17:04.960] But they're very easy to trick. [17:04.960 --> 17:09.000] It's very easy to trick the system into doing something, or more importantly, trick people into doing something. [17:09.160 --> 17:14.880] Now, if you can spoof these sensors and you make it look like heat detectors are going off everywhere, that looks to an operator like there's a fire. [17:14.920 --> 17:16.760] The first thing that he's going to do is shut everything down. [17:16.760 --> 17:19.240] In reality, there's nothing going wrong with that process at all. [17:19.340 --> 17:21.140] So spoofing the sensors is a big thing. [17:21.220 --> 17:23.620] These are really easy to intercept, manipulate, and forward on. [17:23.800 --> 17:25.560] A bunch of different ways that they work. [17:25.560 --> 17:29.460] But like we said, they look at things like temperature, pressure, fill levels, etc. [17:30.060 --> 17:32.940] Then we start to have a look at ICS network attacks. [17:33.440 --> 17:35.240] Clearly, denial-of-service attacks still work. [17:35.240 --> 17:37.580] With that, you can stop control, you can stop visibility. [17:37.660 --> 17:41.420] So if you can carry out a denial-of-service attack, you can stop people controlling those PLCs. [17:41.700 --> 17:48.960] Obviously, we look at things like fuzzing protocols, but most of the switches that we find on these systems are unmanaged, which is a big, big problem, obviously. [17:49.220 --> 17:51.620] Now, with that, if you can connect, you can control. [17:51.620 --> 17:59.940] So you can attack any levels connected to the network, whether that's a supervisory thing or a corporate network, you can attack all of them. [18:00.000 --> 18:06.740] And really, you don't need Metasploit or 1710 Eternal Blue when you have TIA Portal, which is Siemens' proprietary software. [18:06.780 --> 18:13.300] If you can get onto a network, you literally click enumerate all the PLCs around you, and it will give you a list of all of them, which is a massive, massive issue. [18:13.320 --> 18:14.900] So local access is a big thing. [18:15.400 --> 18:19.940] Now, when we have a look at the limitations of the network, this is a standard denial-of-service attack. [18:19.940 --> 18:24.300] So to anybody that's really technical and uses LOIC or HOIC, you don't need either of them. [18:24.300 --> 18:26.880] Literally, all you need is Hyperping, that's it. [18:27.280 --> 18:35.980] Here it just shows a basic denial-of-service attack, but on that port and the right IP address, you'll stop a supervisor communicating with that network, basically. [18:36.480 --> 18:38.800] Really, really simple attack, really simple. [18:39.320 --> 18:44.520] Now, when we look at hacking human segregation, the things that we use to keep us alive, these are standard interlocks. [18:44.520 --> 18:48.120] So here we've got a Schneider one on the left, and that works with a twin-pole magnetic switch. [18:48.120 --> 18:50.320] On the right, we've got a light barrier. [18:50.500 --> 18:53.220] But engineers ordinarily use these to cut the system off anyway. [18:53.220 --> 18:57.740] So rather than walking right back to a panel, they just stick their hand through it, and that will cut the system off. [18:57.740 --> 18:59.180] They're expecting it to anyway. [18:59.580 --> 19:00.860] So that's a big problem. [19:00.860 --> 19:04.600] But if we have a look at what we need to hack these, of course we use computers. [19:04.600 --> 19:07.560] But really, you need things like magnets, screwdrivers, and mirrors. [19:07.840 --> 19:12.820] If you've got these three things, you can start causing havoc within industrial environments. [19:13.200 --> 19:21.040] So, if we have a look at PLCs and stopping the process, this is another quick video that we made of a demonstration. [19:21.280 --> 19:23.760] So here, the test rig is just running the process. [19:24.060 --> 19:28.160] It picks this up, verifies there's a hole in it, transfers it over. [19:31.120 --> 19:33.240] And here we can see from our attack machine. [19:36.120 --> 19:38.500] Sticking in the IP, setting the port number. [19:39.820 --> 19:42.600] And there's a couple of frameworks out there that you can get for this. [19:46.030 --> 19:49.350] Set port to 102, which is Siemens control port. [19:52.350 --> 19:53.450] It counts down here. [19:53.450 --> 19:55.950] 3, 2, 1. [19:57.230 --> 20:00.550] And that would work as well on any huge industrial process. [20:00.550 --> 20:02.290] I mean, don't be fooled, because this is a small rig. [20:02.290 --> 20:05.690] Because it's working the exact same way as a proper industrial process would. [20:06.070 --> 20:09.210] So, when we start having a look at hacking these safety devices. [20:09.270 --> 20:10.470] These are easy to bypass. [20:10.470 --> 20:12.930] A lot of them are normally open or normally closed devices. [20:12.930 --> 20:15.090] So they're very easy to satisfy or not satisfy. [20:15.090 --> 20:18.110] We can very, very easily cause over-pressurization. [20:18.570 --> 20:20.790] That turns your infrastructure into a bomb, like we said. [20:20.790 --> 20:22.390] And we can see the effects of this here. [20:22.390 --> 20:26.090] Whether you want to blow heat exchanges, you want to blow expansion vessels, you want to blow pulse rebuildings. [20:26.090 --> 20:27.630] That's a good way of doing it. [20:28.170 --> 20:30.390] Obviously, you can overheat processes and equipment. [20:30.410 --> 20:32.030] You can blow expansion vessels, like we said. [20:32.030 --> 20:33.190] That's often the first thing to go. [20:33.190 --> 20:36.630] So, wherever you've got heat in a system, obviously that creates expansion. [20:36.810 --> 20:39.470] To absorb that expansion, you need an expansion vessel. [20:39.590 --> 20:41.150] If you can cap that, or you can take it out. [20:41.150 --> 20:44.170] Or even just overheat or over-pressurize it with a defective PRV. [20:44.170 --> 20:45.550] That's exactly what's going to happen. [20:46.010 --> 20:47.990] With that, you can destroy property and cause huge damage. [20:47.990 --> 20:49.310] Of course, you can kill people. [20:49.450 --> 20:51.010] It's one of the biggest effects of this. [20:51.030 --> 20:54.370] If you understand the process or the cycle of setup, then your adversary is in trouble. [20:54.450 --> 20:55.730] And we call that the modern spanner. [20:55.730 --> 20:57.870] Because people say about putting a spanner in the works. [20:57.890 --> 20:59.690] Well, you're not going to chuck a spanner in an industrial process. [20:59.690 --> 21:02.370] But the right thing in the right place will always work. [21:02.370 --> 21:05.390] And really, it's just knowing that system and what that means. [21:06.310 --> 21:08.230] Now, of course, in SCADA, things get ransomed. [21:08.230 --> 21:10.630] It's a case study of a company in South Brazil. [21:10.930 --> 21:12.590] They got done with Cryptolocker. [21:12.590 --> 21:14.450] In fact, I think that was a big Taiwanese manufacturer. [21:14.450 --> 21:17.690] The biggest manufacturer in Taiwan that was down for two days. [21:17.690 --> 21:20.890] And when you look at the cost of what that means, it's a big, big issue. [21:21.590 --> 21:23.370] So now, let's get to some of our research. [21:23.590 --> 21:25.830] One of our clients, extremely well-known company. [21:26.370 --> 21:29.170] We were going to say what sector they were in, but they weren't very happy about it. [21:29.170 --> 21:31.490] But basically, they gave us access to multiple lines. [21:31.490 --> 21:33.370] But we were provided with one to attack it. [21:33.370 --> 21:36.010] So they run four lines in their facility. [21:36.290 --> 21:39.770] Each one of those lines makes £10,000 of production a minute. [21:40.010 --> 21:41.330] It's a super, super high value. [21:41.330 --> 21:43.950] But that's not uncommon. That's not uncommon at all. [21:44.450 --> 21:46.290] And that's for each production line. [21:46.450 --> 21:48.890] We didn't want to attack level four and five, it was out of scope. [21:48.890 --> 21:50.270] So we didn't want to attack that at all. [21:50.270 --> 21:52.770] And we did not want to leave a trace, more importantly. [21:53.130 --> 21:55.970] So, getting into how we lost our client this money. [21:56.070 --> 21:57.090] How did it actually work? [21:57.090 --> 21:58.750] Step one, we wanted physical access. [21:58.750 --> 22:00.530] Like we said, we want impact-based stuff. [22:00.550 --> 22:01.930] And we're going to talk about physical access. [22:01.930 --> 22:04.790] That doesn't mean that you have to walk in and do stuff. [22:04.790 --> 22:06.130] But we wanted physical access. [22:07.090 --> 22:09.130] Next, we wanted to weaponize an Arduino. [22:09.130 --> 22:11.130] So we wanted that to enumerate the network. [22:11.130 --> 22:12.410] Again, unmanaged switches. [22:12.410 --> 22:14.250] So really, really easy to get onto the network. [22:14.310 --> 22:16.170] Enumerate the network and tell us what it is. [22:16.230 --> 22:19.490] And when we say about physical access, it could be something like this. [22:19.490 --> 22:20.090] Again. [22:20.290 --> 22:22.270] So it could just be sticking an extension lead in. [22:22.270 --> 22:24.550] Which is really, really difficult for people to identify. [22:24.870 --> 22:27.550] And then of course, step four was the actual attack. [22:27.910 --> 22:29.510] Now this is not our attack code. [22:29.510 --> 22:30.610] This is from a framework. [22:30.610 --> 22:32.230] But you can see that the attack... [22:32.230 --> 22:34.010] I actually struggle to call it an attack. [22:34.010 --> 22:37.070] Because all we've actually done is just sent these PLC stop commands. [22:37.070 --> 22:37.950] That's it. [22:37.950 --> 22:40.090] And we just keep repeating those stop commands. [22:40.090 --> 22:42.090] It's really, really difficult to stop. [22:42.130 --> 22:45.550] So as much as I want to say it's some super technical work chain, [22:45.550 --> 22:48.290] like buffer overflow or shellcode exploit, [22:48.290 --> 22:49.070] it really isn't. [22:49.070 --> 22:50.630] All it is is just stop commands. [22:50.630 --> 22:51.890] And you can see those here. [22:52.790 --> 22:54.330] Really, really simple stuff. [22:54.470 --> 22:56.990] So within five seconds, the attack's complete. [22:57.050 --> 23:01.670] We took the former head of the Metropolitan Police e-crime unit with us to investigate. [23:01.770 --> 23:03.490] And he said that after his investigation, [23:03.490 --> 23:05.710] there was no way to easily identify the attack. [23:05.710 --> 23:07.050] And definitely not enough artifacts. [23:07.050 --> 23:08.930] For attribution. [23:09.050 --> 23:10.190] So we really got away with it. [23:10.190 --> 23:11.630] Really. That's the truth of it. [23:11.630 --> 23:13.250] And even when we did get physical access, [23:13.250 --> 23:14.650] there was blind spots everywhere. [23:14.650 --> 23:15.990] No physical controls. [23:15.990 --> 23:17.670] It was a massive, massive problem for them. [23:18.150 --> 23:20.250] So the production line was down for two hours. [23:20.250 --> 23:21.810] All safety checks were carried out. [23:22.130 --> 23:24.790] Again, I would be very naive to think that it's just a simple reset. [23:24.790 --> 23:25.490] It's not. [23:25.510 --> 23:29.190] Any company that's responsible is going to want to know why their process has stopped. [23:29.190 --> 23:30.570] It's somebody trapped in a machine. [23:30.570 --> 23:32.970] And when we look at this client, for example, [23:32.970 --> 23:34.950] their site was over 40 acres. [23:35.030 --> 23:36.950] So it's a huge, huge plant. [23:37.510 --> 23:38.890] They're not just going to click reset. [23:38.890 --> 23:40.470] What they're going to do is an SCBO. [23:40.470 --> 23:42.530] So they're going to do a status check before operation. [23:42.550 --> 23:43.950] Before they reset it. [23:43.950 --> 23:46.550] So it's down for two hours. It was only one line. [23:46.550 --> 23:48.690] That's £10,000. That's 120 minutes. [23:48.690 --> 23:51.650] £1.2 million that they lost in that amount of time. [23:51.650 --> 23:53.290] If it had been on all four lines, [23:53.290 --> 23:54.590] it would have been £4.8 million. [23:54.770 --> 23:57.030] So if we look at that compared to the Taiwanese attack [23:57.030 --> 23:59.430] that we've just seen, which was two days, [23:59.430 --> 24:00.970] they would have lost millions. [24:00.970 --> 24:02.710] They would have lost tens, even hundreds of millions. [24:02.710 --> 24:03.730] They would have lost on that. [24:04.590 --> 24:07.030] So all of these things are critical to the operation [24:07.030 --> 24:08.290] of modern society. [24:08.290 --> 24:10.430] And now we're seeing a lot of industrial IOT. [24:11.130 --> 24:13.390] So when we look at some of the hardware attacks, [24:13.390 --> 24:14.750] obviously we attack the sensors, [24:14.750 --> 24:16.510] obviously we want to bypass safety interlocks. [24:16.510 --> 24:19.430] Even a power surge or a flood would be a legit vector. [24:19.710 --> 24:21.130] But really, we look at things like [24:21.130 --> 24:23.110] chip decapping, IOT, reverse engineering, [24:23.110 --> 24:25.030] UR attacks, and everyone thinks that's some [24:25.030 --> 24:26.930] crazy voodoo hacker shit. It's not at all. [24:26.930 --> 24:29.670] What it actually is, is me. [24:29.670 --> 24:31.530] I was actually at my mum's house on a dining room table [24:31.530 --> 24:33.230] when I was at a family event. [24:33.890 --> 24:35.830] Basically I've just stripped down a Philips Hue, [24:35.830 --> 24:37.710] I've banged some headers into it, [24:37.710 --> 24:39.870] and then I've used an Arduino to start carrying out [24:39.950 --> 24:41.730] a UR attack. Straight away [24:41.730 --> 24:44.350] we've got into the boot loader, we can set the security EMV. [24:44.550 --> 24:45.970] As soon as you do that, [24:45.970 --> 24:47.250] you drop into a root shell. [24:47.630 --> 24:49.750] Simple as that. And we're seeing a lot of this [24:49.750 --> 24:51.670] type of stuff in industrial IOT. [24:51.810 --> 24:53.010] It's a big, big issue. [24:53.890 --> 24:55.690] Again, when we look at current solutions, [24:55.690 --> 24:57.650] we didn't want to reinvent the wheel. We wanted [24:57.650 --> 24:59.930] to put really sensible things in place [24:59.930 --> 25:01.750] for our clients. So we started looking at [25:01.750 --> 25:03.790] secure RJ45. Now, unmanaged switches, [25:03.790 --> 25:05.710] big issue. Someone's going to plug into it. [25:05.710 --> 25:07.670] So we wanted to occupy those ports, and we [25:07.670 --> 25:09.750] wanted to do that with secure RJ45. [25:10.030 --> 25:11.690] So we went to this company, [25:11.690 --> 25:13.970] and we said, look, we're a team of hackers and security [25:13.970 --> 25:15.990] engineers. In reality, [25:15.990 --> 25:17.710] are we going to be able to stick a screwdriver into [25:17.710 --> 25:19.730] your product and get it out? And they said, no, [25:19.730 --> 25:21.750] no, no way. Of course you can't. If you did, you'll [25:21.750 --> 25:23.790] just damage it. So they sent us a sample [25:23.790 --> 25:25.690] kit. This is their sample kit. [25:25.690 --> 25:27.810] This is within three minutes of receiving it. [25:43.640 --> 25:44.540] So you can see it didn't [25:44.540 --> 25:46.700] take a screwdriver at all. It took two spoons. [25:47.180 --> 25:48.540] That was it. So [25:48.540 --> 25:50.480] what we're saying is there is no real secure [25:50.480 --> 25:52.440] options, despite the marketing. So despite [25:52.440 --> 25:54.560] what we see people marketing stuff as, we don't really [25:54.560 --> 25:56.700] consider them to be secure. There's no real tamper [25:56.700 --> 25:58.480] evidence or alerting. It just damages it, if it [25:58.480 --> 26:00.480] damages it at all. Like we said, you can get through these [26:00.920 --> 26:02.480] without damaging it at all. [26:02.480 --> 26:04.580] It's huge limitations on applications and usability [26:04.580 --> 26:06.000] of this type of kit. [26:06.940 --> 26:08.500] So in summary, [26:09.300 --> 26:10.860] hacking ICS is serious. [26:10.860 --> 26:12.640] Hacking stuff has severe consequences, [26:12.640 --> 26:14.240] obviously, because of what's involved in it. [26:14.240 --> 26:16.300] It's not a simple reset or recovery. It [26:16.300 --> 26:18.420] loses a shed load of money. [26:18.800 --> 26:20.500] And it can mess with things we all rely on [26:20.500 --> 26:22.680] to keep us safe and secure. Of course the biggest [26:22.680 --> 26:25.060] thing is it can directly kill people. [26:25.060 --> 26:27.140] And that has happened with a thousand plus deaths. [26:27.420 --> 26:28.600] But what I'd say is that people [26:28.600 --> 26:30.480] will often not PLCs, and so it's bad. [26:30.480 --> 26:32.640] PLCs are great bits of kit. Super, super [26:32.640 --> 26:35.200] reliable bits of kit that we all rely on every day. [26:35.400 --> 26:36.700] But they're clearly not as [26:36.700 --> 26:38.760] mature as computer systems, and we definitely haven't [26:38.760 --> 26:40.620] got that maturity and security of them. [26:41.060 --> 26:42.780] So really, that's why we give talks like this, and why we [26:42.780 --> 26:44.680] want more people to get involved, and hopefully help us [26:44.680 --> 26:46.760] secure them. And that is pretty much it [26:46.760 --> 26:48.480] for me. I'm open to any questions. [26:50.640 --> 26:51.240] Yeah? [26:51.240 --> 26:51.680] Yeah? [26:53.360 --> 27:01.900] Yeah. [27:03.380 --> 27:04.740] I think, to be honest, this hasn't [27:04.740 --> 27:06.600] been on people's radar. And I think security [27:06.600 --> 27:08.600] for obscurity has been a big thing for this. Now it's [27:08.600 --> 27:10.640] very difficult to get access to labs, and I've been saying [27:10.740 --> 27:12.740] a lot more of that now with things like the ICS village. [27:12.740 --> 27:14.560] I think it comes to the understanding [27:14.900 --> 27:16.280] of what people are doing, but also [27:16.720 --> 27:19.200] it comes to the reporting of it. Now under GDPR [27:19.200 --> 27:20.960] obviously people have to report if there's been some sort [27:20.960 --> 27:23.040] of data breach, but would they have to report a crypto attack? [27:23.040 --> 27:25.120] Maybe not. In the UK [27:25.120 --> 27:26.940] especially, you're not obliged to report anything [27:26.940 --> 27:27.840] to the police. [27:30.120 --> 27:30.640] Yeah. [27:31.400 --> 27:32.320] Hopefully, yeah. [27:33.860 --> 27:35.040] So it's a big issue. [27:35.040 --> 27:36.820] I mean, how much is it going on? We haven't really got too [27:36.820 --> 27:38.980] much visibility in it. But yeah, I'd say [27:38.980 --> 27:40.800] at the moment we've been very lucky. And I think [27:40.800 --> 27:42.760] when somebody finds a way to ransom PLCs [27:42.760 --> 27:45.160] it's going to be a big problem. Because there's so many of these on Shodan [27:45.160 --> 27:46.980] that literally you can get access to [27:46.980 --> 27:48.520] hundreds, thousands of them. [27:51.670 --> 27:52.890] Cool. Any other questions? [27:54.550 --> 27:55.050] Cool. [27:55.050 --> 27:57.410] Well yeah, if anyone's got any questions, as I've said, we're right on the corner. [27:57.970 --> 27:59.010] Just find me or my colleague Simon [27:59.010 --> 28:00.190] at the top of the chat. [28:00.950 --> 28:01.470] Cool.