DCSG1 - Actual OT Cyber Security - Dillon Lee
Transcript
Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.
All right. Good afternoon, everyone. Please join me in welcoming Dylan Lee from the ICS Village for actual OT cybersecurity.
Please take it away. >> Thank you for having me at Def Con. So, this is actual OT cybersecurity.
Uh quickly, who am I? I'm Dylan Lee. I work at Dragos. You'll see me in the ICS Village at the different Def Con events that are around and other events where ICS Village is at. And then I am an advisor for the Northwood Technical College back in the states uh in Wisconsin. So, in OT security, we have a different set of goals than either cloud or AI or crypto and blockchain. We got to hear all about different goals for these organizations. In OT, the number one
priority is safety. We can actually hurt people with our systems. So, people can lose loss of life. There could be impact if physically. There could be incidents that impact communities and manufacturing and entire regions can be impacted by these processes. Um reliability is the second priority. So, these systems, once they are safe, are they up and running? Are they on? Are they moving as intended? And then finally, it's the availability. It's the system needs to be available when we need it. So, alarming historians is that data accessible in the way we need it for potentially compliance or more of a support function for safety. Um when I was in manufacturing and integration, you walk into a lot of manufacturing facilities and there's always signs of like what is your why?
And there's always some guy that like why he wants to go home safely is his boat or his family or his home. And that's why people want to be safe at work. So, there's always signs of what is your why, why do we want to be safe, and that's why a lot of things like personal protection gear, safety toes, safety glasses, hard hats are worn in these environments because they are dangerous.
Um and then again, our reliability and availability are the second priorities for these environments. Um So, jumping into it, actual cybersecurity for OT is pitched all the
time. It's still the five critical controls. It's your risk-based vulnerability management, secure remote access, visibility monitoring, defensible architecture, and ICS incident response plans. These are a core foundation, and a lot of this has already been solved by the IT organizations in the past. So, their goals and priorities have expanded. On the OT side of things,
we are still very immature as a community. So, a lot of these fundamentals, secure remote access, we are still not doing very well at all or not doing it. So, for us, we're still focused on these five critical controls, and that's where our focus is.
ICS incident response plan. This is going to look different than your typical IT department or your cloud team of how they handle response. Because sometimes you have to go and involve the physical processes, the physical teams at these sites to make sure when this cyber incident happens, we're not going to cause greater harm to the process. Or potentially now start to cause harm to the process when they were still running safely. So, if we go and need to patch a controller, update a computer, wipe a machine, and bring it back online, we need to make sure that we're not causing control impact to these
processes. >> [snorts] >> Um in a lot of different organizations around the world, there's an example from OSHA in the states, uh the ERG from Canada. These are response guidelines and standards built for physical manufacturing environments. What do they do in case of a fire? What do they do in case of a chemical spill? And cybersecurity for OT can use a lot of the same security practices that these environments are using today.
So, what is needed to get started? A lot of the times we recommend buying some steel toes. There's a lot of folks getting started in OT security and just buying some safety glasses, steel toes, cuz we want to go to these sites and figure out what are we actually protecting. There's a lot of the times when people move from cloud or IT or to getting in this the first time, they don't actually know what a power plant is. They know they work for the security organization of a manufacturer, water,
whatever, but they don't know what the actual physical process is. Uh second is finding that gray beard at the site. There is someone that has been there for a long time. They know the processes, they know the risks, they know how to take you through that environment and explain what is happening to you in terms that you will understand. And then finally, uh a bribe. It helps a lot if you go in with Red Bull, some jerky, some candy, cuz these manufacturing guys are working four-10s, four-12s, third shift. Bring them something. They want food, energy drink, coffee. They love it. So, whenever we do like on sites, a lot of times we'll bring, you know, we'll stop at the gas station, get some food, and bring it to these environments.
So, now that we've gone through and and visited a site, we want to build that incident response plan with those folks so that we know how to protect those processes. Um So, once you go through that you kind of hit that first box of going through your incident response planning. Working with them, building it out so you're not going to impact the process. Sometimes this also means bringing in like PR and legal. It's always a fun discussion, but you know, the first phase is sort of done. And you can move on to the defensible architecture. Sometimes this is done, and then sometimes you get entire environments off a single shared switch, and it's just flat all the way across.
Um in these environments, you know, our recommendation is segment IT and OT.
We're not even getting to the phase of doing firewalls, you know, micro segmentation, zero trust, any of it. Just physically put them on different switching infrastructure. They can be linked, they can be all of that, but just start the process. Cuz once you kind of have that process in place and that physical switching implementation to pull that rip cord and go in with firewalls and the next stage of segmentation it's basically moving your WAN links to a firewall and your uplink from the firewall. It's a much easier jump, and you can decide what systems need to be blocked, and you can start with any any allowed, and restrict your processes back as you go.
Um when you try to go through and do segmentation for OT and let's segment everything in one shot it never works. Every single time there's environments that are too intertwined, too interconnected, too many dependencies on IT and when we start breaking those dependencies, we get kicked out of the environment. We are not allowed back in the plant, they are not going to talk to us. They're not going to work with us because we're causing impact. So, doing this like baby step approach to segmentation, making sure we're not causing impact, is a much more successful journey down this path.
Um when you start to figure out those dependencies, you are able to decide as an organization if they should exist in IT or if they should exist in OT. And
whatever you decide, you can start to build out your DMZ, um operational servers, and moving the OT systems out of IT into their own zone. Again, we're not going to just rip and replace. We're not going to just disconnect everything day one. As we build our dependency list and understand what's happening, we're able to start to build out segmentation in baby steps.
So, some of the key points for segmentation and defensible architecture is policy enforcement. So, what does it mean for IT and OT? And also policy enforcement of like procurement teams. A lot of times, these people can just go buy a switch from whichever supplier they're working with and just buy it and put it on the floor and move on. We need to, as an IT organization or as an OT security organization, work with these folks to say, "Hey, if you're going to buy a switch or router or a networking device, it must meet these requirements so that we can work with this device, we can manage this device, we can patch this device in the future."
Um people and process. Working with your procurement teams, your supply chain vendors, and the processes around that procurement and implementation. Um and then high-risk vulnerabilities. As we're going through this process, if we see a Fortinet from 2012 that hasn't
been patched on the floor, that's probably a priority that we should make note of and work forward with on updating, protecting those high-level assets as we build out the rest of our segmentation. Cuz if you don't protect the front door, there's no point in building out the rest of the segmentation behind it if they can just blow on through. So, as we kind of go down the path, we've gone through and started build out some segmentation. We may not be done, but we have a process sort of started. Um and you get this nice little feedback loop of going back and saying, "Is there updates to our incident response plan?"
And then you get to go through and move forward to the next phase. Visibility monitoring. So, I work at Dragos. This is my bread and butter. We go through and do asset inventory. We're doing monitoring for traffic. We're doing threat hunting. We're mapping your vulnerabilities. We're doing threat detection of your environments. And a lot of that availability comes with passive monitoring technologies. Um again, your environments start to get nice and mixed on the floor. Is it substations? Is it pump controls? And how passive monitoring usually intermixes with sensors. Sometimes there's active, sometimes there's passive. Um and you go through and we'll pull that data off of either taps or ER span or switching infrastructure to collect that data.
The goal with a lot of passive monitoring is to get that north-south. Do we see everything coming in and out of the environment? And then once we sort of have that capability, we want to know what everything is in the environment. So, that's your east-west coverage. Seeing all the machines, all the devices on the machines, and those processes. Because then we can monitor for impact of those processes.
And some high-level goals for asset inventory is that automated identification. So, people are plugging things in or process change or firmware changes, we can see it because sometimes it's done on USB or serial. Uh zone labeling, where are these devices? Vulnerability tracking, again, if there's a switch at the bottom of the stack that's vulnerable and there's a Fortinet at the top of the stack, we can prioritize those completely differently if we know which zone and which area they're in. Crown jewels, are these systems important? Are they safety systems? What are they? And then a lot of the companies want real hands-on environmental knowledge, so working with the electricians, the automations engineers to validate that this inventory is correct.
And you get into, again, hey, we found more assets. Go back to your architecture, and which also feeds back into your response plan of, hey, I know there's a safety system or crown jewel, and it's again feeding back to those first systems. Uh secure mode access, IT has done a great job at this. They've built the tools. There's a large gap in OT. Um MFA, I'm sure everyone's heard of it. You should probably just do it. Everyone's kind of missing this one. Um and then doing secondary controls, so terminal jump host style functions, doing um breaking of protocols, so we're not just RDP'ing into the DMZ and then RDP out, you're doing breaking, um and then monitoring of those systems.
Um seriously, like the amount of times we find breaches from not turning on MFA is wild, so we could start with MFA for secure mode access, that would be amazing. Um and again, it's this continuous loop back into the previous phases of building on top of your knowledge and then updating your previous knowledge.
And then finally, we get to the risk based vulnerability management. So, when we're going through and determining a risk, a lot of times we look at two controllers. They're two PLCs, they're the same exact thing. They're both vulnerable. Which one do we want to focus on first? And you go on, you ask the plant people, what are they? Oh, they're compressors. Both of them are compressors. Well, that doesn't really truly help yet of which one should we focus on. And then you find out one is the entire process area compressor and the one is the maintenance shop. So, now that you have some more context of what this is, you can start to prioritize this. One as a crown jewel and safety and then one as availability, maintenance windows and downtime.
So, trying to figure out which of these two we're going to focus on comes a little easier the more knowledge we have. So, the external mitigations on these, there's a firewall on the side of maintenance shop, they're segmented off, whatever it may be. And then on the process side, it's still sitting on IT. There's no segmentation, it's on the general avail, you know, network of IT. So, for us, one, the process area, that's a huge risk to the business. And then two, on the maintenance shop, it's not as much of a risk, it's not impacting process, it would impact maintenance and they get angry, but we're not going to lose something when that goes down.
So, for us, you know, life cycle of that device, there's no timeline for maintenance. Hey, that machine though in the manufacturing is getting life cycled next week. Okay, we don't care about the vulnerabilities after next week because they're going through a maintenance window, they're going through downtime or they're going to upgrade the firmware as a maintenance cycle. So, we can change our priorities of vulnerability management and the risk that go along with these devices. And sometimes like the The just don't matter cuz they're just replacing the whole device. So, as part of these life cycle processes, vulns will literally just get mitigated as these plants are maintained under support contracts.
So, sometimes you get to build out these like nice timelines, sometimes they just don't exist of you find the vuln, you go through and say, "Okay, we're going to do the virtual patching at a firewall. We're going to block Ethernet IP and Modbus and make sure we're validating that these systems are mitigated. And then you have to go through and work with the maintenance personnel or someone at the plant to say, "When is the next maintenance window?" And they're going to say, "Hey, it's next week." Or it's in 6 months. Or if you work in foundries and refineries, they're going to say it's in 4 and 1/2 years.
Um so, then you have to go through and figure out, okay, device life cycle out is, you know, three quarters away or four quarters away. And then also you have to see if, "Hey, can I even get into that maintenance window?" When we're doing and working with our oil and gas customers, to get into a maintenance window, we have to submit that 9 months early. So, even if they say, "Hey, we can get into it in 3 years." We have to make sure that all that paperwork, everything that's going to be done is documented and ready to be staged 9 months before deployment or 9 months before that PLC is even upgraded for some of these refinery sites.
And there's also medical for like pharmaceuticals. They have compliance validation, they have compliance checks, and a lot of these different industries all have windows and compliance and validation processes that we sort of have to go through to even do these mitigation processes of changing firewalls, changing device firmware, validating that vulnerability is protected or managed. And then you get this lovely web of sort of feedback loop into everything. So, as we go down this journey, you go through a stage, you go back and you update your different documentation. We're going through and doing patching of devices or changing firewall rules to manage vulnerabilities. And then you need to go back and make sure that, "Hey, is the architecture still defensible? Is it still available?
Is it still safe? Are we still monitoring? Hey, we put in secure mode access. Are we actually monitoring when people are coming into the environment? Can I see when people are interacting with a PLC or did we somehow change the network in a way that we no longer see those systems?" So, a lot of this becomes this continuous feedback loop and not just a check the box, move on sort of process.
Um So, the five critical controls, it's just a giant feedback loop. It's always been a feedback loop even when IT was focused on these systems. It's still an IT and OT system today. It's still a feedback loop and it's not going to change anytime soon. Um





