Next speaker up is Mike Godfrey. He's going to talk about how we cost our client 1.2 million pounds, with four lines of code, and less than two hours. So, give a round of applause for Mike. Hello. Well, thanks a lot for coming. We've got a lot to get through in a short amount of time, so we'll get straight into it. As you heard on Mike, I'm at Mike G Hacks. I'm the founder of Insinia. I'm a qualified pen tester. I'm qualified CCNA, CEH. I spent ten years in priority, about 23 years in breaking it. I specialise in hardware and physical, and I'm a qualified commercial and industrial electrician and gas engineer. So, I actually started out in ICS as a commercial gas engineer. To tell you a quick few bits about this talk, we carry out impact-based pen testing. So, you're not going to see Nessus scans, you're not going to see that sort of output. We take on about ten clients a year. So, people that come to us really want to know the true impacts of what's going to happen in their systems. I usually give this talk to my colleague Paul Hunter, who couldn't be here, but my colleague Simon is. So, ask me anything. Simon's also outside of a PLC, and we're going to talk about how to lose 1.2 million pounds in two hours, about $2 million. So, to tell you a bit about us, we're probably the UK leaders in ICS security training. We've got a 16,500 square foot lab that's got loads of legacy technology. It's got all the main manufacturers, Siemens, Omron, Allen-Bradley, etc. We're the only gas-safe cybersecurity company in the UK. We'll talk about why that's relevant in a minute. We've got 10 years' experience in attacking ICS, and we're a city and goods-free training centre. This is a couple of pictures of our lab. So, this is one area, a spoiling plant and a gas rig. This is one of our robotic arms, an ABB, and this is one of our gamification rigs. Here, we've got a short video that shows you a bit about what we do. So, I say we're gas-safe registered. What does that actually mean? Well, gas appliances in the UK, this is a typical domestic appliance. It's from about 24 to 40 kilowatt. When we're talking about gas systems, what we're actually talking about is things like this. So, things that are up to 70,000 kilowatt, 70 megawatt. So, when we talk about gas throughout this talk, this is really what we're talking about. Now, to talk about a few things on SCADA. Firstly, SCADA is probably not what you think. There is an industrial control system. So, a better description would really be control system. The Bellagio fountains are under control system, similar sorts of things. But these cover everything from industrial process, military equipment, transportation. In fact, this is what people, most people, accept as SCADA. But it's prevalent in transportation, in electric, in healthcare, in water, building management systems, in natural gas, in oil, in chemical, manufacturing. So, it's the problem with securing all these things. Now, this is an image from Joe Weiss and basically it outlines the problem perfectly. Now, the issue is that you've got ICS engineers who haven't really integrated properly with IT and you've got IT security specialists who don't really understand the engineering side of it. On that basis, it's very, very difficult to work out what is a cyber attack and what is a cyber failure, because there's a massive skills gap. Um, when these failures happen, they almost cause wars. We'll talk about that in a minute. And the RAF in the UK are still installing their 7300s. It's a really old technology. If you have a look at the problem with that technology, it's old technology, it's insecure by design, it's cross protocol, you've got secure level 1 to level 3 devices, so you've got insufficient backups, which is a big problem, because if you drop the power to an old PLC, then it deletes the program, drops the program. So without proper backups, a big issue. But because these are such good pieces of kit and are so reliable, they don't really warrant a full-time on-site technical facility. So there really isn't ICS engineers on every single location. And there's a lack of ICS security experts. Now, to fly through these, as I've said, we're quite short on time. These are really easy to access, that's why they're not great for hackers. They've got little or no security. They've got default hard-coded credentials quite often. And it should really say there's no protection from physical attacks, because there really isn't. There's almost no traceability of forensic evidence when these are attacked. They're very easy to attack remotely, and there's a range of attack vectors at all levels. And when we have a look at the types of attack that we see on these, ransomware and DDoS aren't as prevalent, but they do still exist. We'll talk about that in a minute. Census spoofing is a really big thing. And disrupting and stopping the process, obviously the aim of what we want to do when we run a pen test. Tampering with SCADA and HMIs, and the list goes on. But really the problem is that these things aren't always baking cakes. They can create harsh chemical reactions, reach super high temperatures, get to immensely high pressures. They've got mechanical components, software components, physical attacks that can destroy operations in seconds. Like I said, surprisingly it's not a recipe for granny's apple pie, it's a recipe for disaster. So when we have a look at the impacts, let's take a look at what happens when these things go wrong. This is a Russian power station. It's probably one of the most famous ICS failures. This basically had a turbine, it was a 1,000 ton turbine that ramped up to such power in milliseconds, it killed 75 people. And if you look on the bottom left picture, you can probably see a guy standing on a wooden bridge. So that shows the scale of this. That basically made Russia almost launch a counter strike against the US because they thought it was a cyber attack. It wasn't at all, it was a cyber failure. It was a $2 sensor that had fallen off the side of a dam that had basically overfilled the reservoir, which was a big, On the left we've got a vehicle manufacturing plant, in the middle we've got a commercial boiler, and on the right we've got an expansion vessel which we've successfully blown up. Now, when we have a look on the left, let's make no mistake about it, that is an automated killing machine. If you walked in there, three-day safety interlocks, it would kill you, without a single shadow of a doubt. So what is it that actually stops it killing you? Well, safety devices. The things we rely on to keep us alive will always fail. And on the left we've got a thermostat, on the right we've got a temperature sensor, so on the far right we've got a pressure relief valve. Now, these will always fail. These are interchangeable parts, so we know they're going to fail at some point. In fact, when they do fail, like this, you've now got a bomb within your building. Because if that pressure ramps up for overheating or for anything like that, and the pressure relief valve does not go off, that's what will happen. And that's exactly how we blew that expansion vessel up. And when we have a look at safety interlocks and the things that we rely on to keep us alive, this is an ABB controller. You can see here we've got a door interlock. This is the controller for that robotic arm and for that interlock. All you need is a screwdriver. In fact, we don't even have the keys for that. So we just use a screwdriver to get into it ordinarily. So it's a big issue. Now, what we know about ICS is that over £30 billion, about $50 billion has been lost in ICS failure, ransom or cyber attacks. There's been 70-plus incidents with severe environmental damage, 1,000-plus deaths reportedly. An environmental disaster at Deepwater Horizon was massive, 68,000-plus square miles of ocean ruined. It's a big, big issue. When we have a look at what most of them run, most of them run Windows. And I know what you're thinking, but believe it or not, Windows does have bugs in it. So it's a big issue. And when we look at these systems, it does get worse. Most run Windows 7 still. Some even run Windows 98. So it's a big, big problem. So when we carry out impact-based pen testing ICS, what do we actually do? Well, the default rules do still apply. If you take a USB killer into these environments, clearly you're going to deck everything. We still use standard tools, et cetera. But you're going to find things on showdown. You're going to find web admin panels. You're going to find misconfigurations. You're going to be able to upgrade firmware. You're going to find default credentials. Now this is where things get a bit different. Now, we talk about the levels, and the Purger ICS model is probably considered the best thing for the levels of these devices. But levels seem to differ depending on where you look. In fact, here I've got three contradicting images of ICS levels. So for the purpose of this talk, and this is the issue, like, I think, like, how are we going to secure this stuff? We can't agree on the levels. But for the purpose of this talk, like, level three we see as SCADA. Level two we see as HMIs, PLCs, and controllers. Level one we see as sensors. And level zero we see as the fabric of buildings and the process. And we're going to talk about why that is. But when we talk about PLCs, we're talking about as programmable logic controller. I'm sure most of you know this anyway. But it's got multiple network types. We're not going to go too much into this, but we've got one of these around the corner. So if you want to see these and how we attack them, we're literally just out here. So we've got this exact one. We're happy to show you it. We're also talking about BMS systems, so building management systems. Now this is where I first started hacking these types of systems as a commercial gas engineer. These basically controlled all the set points and the building management throughout the building. And quite often these sit in these panels. So this is a 415 volt panel on the right-hand side. You need to be qualified to open those in the UK. Here we can actually see where that pressurization unit's had a leap. That's a different issue. But what do we get if we open these up? What we get is a router and a power socket. So straight away for us, that's a good spot. Now what's an ethical hacker going to do when they find a router in a locked cupboard with persistent power? Of course you're going to get your cat to hack it. So what does that hack look like? So what we did was, obviously I wanted to make a device that I could put into this cupboard and it isn't going to get found or isn't really going to alert people straight away. So I made this, it's called a hack plug. And basically it's got multiple interfaces so it can connect to an ethernet, it can work through the power line for extra tracing data, it can connect to wifi, it also works on 3G and 4G and it's got local protocols as well like B2 flow energy so you can connect to it locally. Now to drill into this quickly with the components. Components, it's a surge protector lead, it's got a D-shelled laptop power supply which gives us 4 amps. It's got pi zero, that's running Cali for, for pi two. It's got wifi module, ethernet connector. Yeah, it's got all that in it. So, we'll give you the spec it's off if you want. So, now we're talking about default rules do not apply. So, ICS safe network enumeration. So here's an example of how you'd enumerate an ICS network safely. Because even just enumerating a network can flood it and deny the service on it. So once we've done that, we want to start looking at safe test streaks. So we're not taking down an actual process, although we did and we'll talk about that in a minute. But a lot of what we froze are these test streaks. They work in the exact same way as a process. Um, so they're really, really good bits of kit. But what are we actually talking about when we say SCADA, ICS, plant, PLCs, RTUs? Well, this is what we consider plant equipment, so heating, cooling, distribution. Here we've got gas meters, thermostatic controller, uh, fan core unit and some commercial boilers. Here we've got shop floor equipment, so things that you'd find throughout a process on a shop floor. We've got HMIs, human machine interfaces, quite often run Windows CE, Windows Embedded. Here we've got remote terminal units. I think over here they're referred to as remote, uh, telemetry units. Um, we've also got field terminal units. But more importantly, we've got the sensors. Now these are the tentacles of a control system. They're the eyes and ears of a control system. Um, they report on information such as temperature, pressure, flow, humidity, orientation. They report that back to the PLC. Now these are types of sensors that you can have throughout these environments. So you can have a whole plethora of, um, of sensors available to you. But when we start looking at, uh, sensors, we move into safety devices. Um, when we look at safety interlocks, they're made to keep us alive. They stop machines in an emergency. Obviously throughout processes we have emergency stop buttons, but that's an electrical circuit reporting to an electronic device. In fact, we know from Stuxnet that the emergency stop buttons weren't working. And there's a number of ways of doing that. We've got either heat sensors, expansion vessels, pressure relief valves like we discussed. I'm not gonna list everything here, but you get the idea of, of what we're talking about. Now, when we have a look at attacks, and obviously this is what everyone really wants to see. It's safe, right? Well, actually not even safe's a safe. So this is research I've done over like the past five or six years. It's pretty old now. But you can see it just proves it's locked. That's all it takes to get into it. So I put this out, and I've been in the hacking community for quite a while, and, um, everyone was like, yeah, you know, that's great, but it's a crappy safe, whatever. So I was like, all right, the challenge accepted. So this is Costco's display safe. So this is a century safe. It's a medium range safe. It's not super cheap. It's not super expensive. And it's basically just says we're in Costco. So it's just a rare earth magnet, if you can't hear it, and a sock. Simple as that. So obviously, responsible disclosure. We told Century about this, and we said, look, we found the floor in your safe. And they said, yeah, yeah, that's great, but we're not really interested. We've defended it on the next one. And they're releasing a new version. So it's all right. Fair enough. So, uh, this is their current version. So this is their new version. This is the one that you can buy now. All you actually need to do is take the tape forward, and put it back. And this is their most recent one. So what we're saying is that even safe products aren't necessarily safe and people will more than happily sell you stuff, which is insufficient. Now, when we look at the way that this actually works, this is what's inside them. It's an electromagnetic solenoid valve. I can list off loads of attacks on these. Um, but this video just shows a bit about how it works. So basically when you put the pin in, it doesn't interfere with the lock at all. All it does is closes the circuit, which makes this go like that. That's it. That clears the way for you to do it. So obviously the way to do it is you bang it, which just bounces this up and down. So when you bang it, that's what you're doing. Short circuit here. Short circuit here. Or just use the magnet, and the magnet just emulates this electromagnet. And again, in turn pulls it down. That's it. This one keeps you safe and safe. Nothing complicated. So in fact, when we started looking at these, I went down the security aisle in Homebase, which is like Home Depot over here, and we hacked every single thing in this picture, but they're still happy to sell them. So it's a big problem. But how do we know how to tackle these? Well, in fact, they're all gas valves that we find throughout industrial environments. They're any smart valve, pretty much. And when we look at examples of where these are, on the top left, you've got a gas valve, which is probably what you'd find in your domestic boiler at home. That's just got two electromagnetic solenoids on it. It's just got one for the pilot, one for the main burner. And then here we can see more commercial industrial ones. Now, these are all safety interlocked into things like fire alarms, into emergency stop buttons. So if a fire alarm is triggered, then it will shut the gas supply off into a building. So if you can mess with that, you can mess with these. So that's a big issue. Now, when we have a look at things like sensors, this is in ABB's reception. And basically this says, when you can measure what you're speaking about and express it in numbers, you know something about it. When you cannot measure it, your knowledge is meager and unsatisfactory. And it's completely true. Sensors are probably one of the most important things for an industrial process or a commercial process or whatever you're doing. And sensors really are the keys to the kingdom, I think anyway, and we'll talk about why. Now, like we said, the sensors are the tentacles of the control system. They're very easily spoofed. But the network accepts that data as fact. So if that data has been pushed up from a sensor, the network will always accept it. The PLC will always accept it. It's got no way of checking if it's correct or not. 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. But they're very easy to trick. It's very easy to trick the system into doing something, or more importantly, trick people into doing something. 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. The first thing that he's going to do is shut everything down. In reality, there's nothing going wrong with that process at all. So spoofing the sensors is a big thing. These are really easy to intercept, manipulate, and forward on. A bunch of different ways that they work. But like we said, they look at things like temperature, pressure, fill levels, etc. Then we start to have a look at ICS network attacks. Clearly, denial-of-service attacks still work. With that, you can stop control, you can stop visibility. So if you can carry out a denial-of-service attack, you can stop people controlling those PLCs. 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. Now, with that, if you can connect, you can control. 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. And really, you don't need Metasploit or 1710 Eternal Blue when you have TIA Portal, which is Siemens' proprietary software. 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. So local access is a big thing. Now, when we have a look at the limitations of the network, this is a standard denial-of-service attack. So to anybody that's really technical and uses LOIC or HOIC, you don't need either of them. Literally, all you need is Hyperping, that's it. 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. Really, really simple attack, really simple. Now, when we look at hacking human segregation, the things that we use to keep us alive, these are standard interlocks. So here we've got a Schneider one on the left, and that works with a twin-pole magnetic switch. On the right, we've got a light barrier. But engineers ordinarily use these to cut the system off anyway. So rather than walking right back to a panel, they just stick their hand through it, and that will cut the system off. They're expecting it to anyway. So that's a big problem. But if we have a look at what we need to hack these, of course we use computers. But really, you need things like magnets, screwdrivers, and mirrors. If you've got these three things, you can start causing havoc within industrial environments. So, if we have a look at PLCs and stopping the process, this is another quick video that we made of a demonstration. So here, the test rig is just running the process. It picks this up, verifies there's a hole in it, transfers it over. And here we can see from our attack machine. Sticking in the IP, setting the port number. And there's a couple of frameworks out there that you can get for this. Set port to 102, which is Siemens control port. It counts down here. 3, 2, 1. And that would work as well on any huge industrial process. I mean, don't be fooled, because this is a small rig. Because it's working the exact same way as a proper industrial process would. So, when we start having a look at hacking these safety devices. These are easy to bypass. A lot of them are normally open or normally closed devices. So they're very easy to satisfy or not satisfy. We can very, very easily cause over-pressurization. That turns your infrastructure into a bomb, like we said. And we can see the effects of this here. Whether you want to blow heat exchanges, you want to blow expansion vessels, you want to blow pulse rebuildings. That's a good way of doing it. Obviously, you can overheat processes and equipment. You can blow expansion vessels, like we said. That's often the first thing to go. So, wherever you've got heat in a system, obviously that creates expansion. To absorb that expansion, you need an expansion vessel. If you can cap that, or you can take it out. Or even just overheat or over-pressurize it with a defective PRV. That's exactly what's going to happen. With that, you can destroy property and cause huge damage. Of course, you can kill people. It's one of the biggest effects of this. If you understand the process or the cycle of setup, then your adversary is in trouble. And we call that the modern spanner. Because people say about putting a spanner in the works. Well, you're not going to chuck a spanner in an industrial process. But the right thing in the right place will always work. And really, it's just knowing that system and what that means. Now, of course, in SCADA, things get ransomed. It's a case study of a company in South Brazil. They got done with Cryptolocker. In fact, I think that was a big Taiwanese manufacturer. The biggest manufacturer in Taiwan that was down for two days. And when you look at the cost of what that means, it's a big, big issue. So now, let's get to some of our research. One of our clients, extremely well-known company. We were going to say what sector they were in, but they weren't very happy about it. But basically, they gave us access to multiple lines. But we were provided with one to attack it. So they run four lines in their facility. Each one of those lines makes £10,000 of production a minute. It's a super, super high value. But that's not uncommon. That's not uncommon at all. And that's for each production line. We didn't want to attack level four and five, it was out of scope. So we didn't want to attack that at all. And we did not want to leave a trace, more importantly. So, getting into how we lost our client this money. How did it actually work? Step one, we wanted physical access. Like we said, we want impact-based stuff. And we're going to talk about physical access. That doesn't mean that you have to walk in and do stuff. But we wanted physical access. Next, we wanted to weaponize an Arduino. So we wanted that to enumerate the network. Again, unmanaged switches. So really, really easy to get onto the network. Enumerate the network and tell us what it is. And when we say about physical access, it could be something like this. Again. So it could just be sticking an extension lead in. Which is really, really difficult for people to identify. And then of course, step four was the actual attack. Now this is not our attack code. This is from a framework. But you can see that the attack... I actually struggle to call it an attack. Because all we've actually done is just sent these PLC stop commands. That's it. And we just keep repeating those stop commands. It's really, really difficult to stop. So as much as I want to say it's some super technical work chain, like buffer overflow or shellcode exploit, it really isn't. All it is is just stop commands. And you can see those here. Really, really simple stuff. So within five seconds, the attack's complete. We took the former head of the Metropolitan Police e-crime unit with us to investigate. And he said that after his investigation, there was no way to easily identify the attack. And definitely not enough artifacts. For attribution. So we really got away with it. Really. That's the truth of it. And even when we did get physical access, there was blind spots everywhere. No physical controls. It was a massive, massive problem for them. So the production line was down for two hours. All safety checks were carried out. Again, I would be very naive to think that it's just a simple reset. It's not. Any company that's responsible is going to want to know why their process has stopped. It's somebody trapped in a machine. And when we look at this client, for example, their site was over 40 acres. So it's a huge, huge plant. They're not just going to click reset. What they're going to do is an SCBO. So they're going to do a status check before operation. Before they reset it. So it's down for two hours. It was only one line. That's £10,000. That's 120 minutes. £1.2 million that they lost in that amount of time. If it had been on all four lines, it would have been £4.8 million. So if we look at that compared to the Taiwanese attack that we've just seen, which was two days, they would have lost millions. They would have lost tens, even hundreds of millions. They would have lost on that. So all of these things are critical to the operation of modern society. And now we're seeing a lot of industrial IOT. So when we look at some of the hardware attacks, obviously we attack the sensors, obviously we want to bypass safety interlocks. Even a power surge or a flood would be a legit vector. But really, we look at things like chip decapping, IOT, reverse engineering, UR attacks, and everyone thinks that's some crazy voodoo hacker shit. It's not at all. What it actually is, is me. I was actually at my mum's house on a dining room table when I was at a family event. Basically I've just stripped down a Philips Hue, I've banged some headers into it, and then I've used an Arduino to start carrying out a UR attack. Straight away we've got into the boot loader, we can set the security EMV. As soon as you do that, you drop into a root shell. Simple as that. And we're seeing a lot of this type of stuff in industrial IOT. It's a big, big issue. Again, when we look at current solutions, we didn't want to reinvent the wheel. We wanted to put really sensible things in place for our clients. So we started looking at secure RJ45. Now, unmanaged switches, big issue. Someone's going to plug into it. So we wanted to occupy those ports, and we wanted to do that with secure RJ45. So we went to this company, and we said, look, we're a team of hackers and security engineers. In reality, are we going to be able to stick a screwdriver into your product and get it out? And they said, no, no, no way. Of course you can't. If you did, you'll just damage it. So they sent us a sample kit. This is their sample kit. This is within three minutes of receiving it. So you can see it didn't take a screwdriver at all. It took two spoons. That was it. So what we're saying is there is no real secure options, despite the marketing. So despite what we see people marketing stuff as, we don't really consider them to be secure. There's no real tamper evidence or alerting. It just damages it, if it damages it at all. Like we said, you can get through these without damaging it at all. It's huge limitations on applications and usability of this type of kit. So in summary, hacking ICS is serious. Hacking stuff has severe consequences, obviously, because of what's involved in it. It's not a simple reset or recovery. It loses a shed load of money. And it can mess with things we all rely on to keep us safe and secure. Of course the biggest thing is it can directly kill people. And that has happened with a thousand plus deaths. But what I'd say is that people will often not PLCs, and so it's bad. PLCs are great bits of kit. Super, super reliable bits of kit that we all rely on every day. But they're clearly not as mature as computer systems, and we definitely haven't got that maturity and security of them. So really, that's why we give talks like this, and why we want more people to get involved, and hopefully help us secure them. And that is pretty much it for me. I'm open to any questions. Yeah? Yeah? Yeah. I think, to be honest, this hasn't been on people's radar. And I think security for obscurity has been a big thing for this. Now it's very difficult to get access to labs, and I've been saying a lot more of that now with things like the ICS village. I think it comes to the understanding of what people are doing, but also it comes to the reporting of it. Now under GDPR obviously people have to report if there's been some sort of data breach, but would they have to report a crypto attack? Maybe not. In the UK especially, you're not obliged to report anything to the police. Yeah. Hopefully, yeah. So it's a big issue. I mean, how much is it going on? We haven't really got too much visibility in it. But yeah, I'd say at the moment we've been very lucky. And I think when somebody finds a way to ransom PLCs it's going to be a big problem. Because there's so many of these on Shodan that literally you can get access to hundreds, thousands of them. Cool. Any other questions? Cool. Well yeah, if anyone's got any questions, as I've said, we're right on the corner. Just find me or my colleague Simon at the top of the chat. Cool.