1 00:00:00,000 --> 00:00:00,900 Hey everybody. 2 00:00:01,340 --> 00:00:03,060 I appreciate everybody for coming. 3 00:00:03,540 --> 00:00:07,260 I appreciate, I feel bad for Tony getting sick. 4 00:00:07,260 --> 00:00:09,220 I was actually just going to talk on Sunday. 5 00:00:09,220 --> 00:00:12,560 Tony Turner was going to be here and talk about OT. 6 00:00:12,560 --> 00:00:17,920 I think he was doing network segmentation and using it to protect OT or ICS environments and got sick. 7 00:00:17,920 --> 00:00:19,040 So I was filling in. 8 00:00:19,040 --> 00:00:20,580 So I appreciate everybody for coming. 9 00:00:20,580 --> 00:00:23,560 This is actually a talk that I did at bSize ICS this year. 10 00:00:23,560 --> 00:00:26,200 So most of you are probably familiar with bSize ICS, right? 11 00:00:26,200 --> 00:00:27,220 Show of hands. 12 00:00:27,340 --> 00:00:27,980 Right? 13 00:00:29,160 --> 00:00:37,100 And so we actually started this year, the ICS or OT specific version of bSize and had a great turnout. 14 00:00:37,180 --> 00:00:45,980 And then we're actually going to see a couple of other spin-ups across the world next year, which is really exciting, like in Singapore and Belgium. 15 00:00:45,980 --> 00:00:49,780 We'll be back in Miami next year with bSize ICS. 16 00:00:49,840 --> 00:00:55,260 So just real quick, everything we're going to talk about here is educational purposes only. 17 00:00:55,260 --> 00:00:56,980 So this is just me, myself and I. 18 00:00:56,980 --> 00:00:59,760 It's not associated with my day job or any other organizations. 19 00:00:59,760 --> 00:01:04,340 I'm affiliated with for my day job. 20 00:01:04,480 --> 00:01:06,760 I actually work with Floor. 21 00:01:06,800 --> 00:01:15,220 If you're not familiar with Floor, I had no idea what Floor did when I went to work there 14 years ago, but we're actually one of the world's largest engineering and construction companies. 22 00:01:15,220 --> 00:01:21,480 So I had actually already started to get into OT in 2010 when Stuxnet occurred. 23 00:01:21,480 --> 00:01:22,900 Anybody hear of Stuxnet? 24 00:01:22,900 --> 00:01:24,200 Only a few folks, right? 25 00:01:24,200 --> 00:01:29,280 And so when Stuxnet happened, I just was, this is an amazing piece of malware. 26 00:01:29,280 --> 00:01:32,880 It wasn't that it used four zero days for Windows. 27 00:01:32,880 --> 00:01:35,320 Like, it's not necessarily a big deal. 28 00:01:35,320 --> 00:01:40,620 And it's like, okay, you took control over these nuclear centrifuges that spun gas, right? 29 00:01:40,620 --> 00:01:43,480 Uranium gas to enrich it to make nuclear weapons. 30 00:01:43,480 --> 00:01:46,280 And it would physically break down those machines. 31 00:01:46,280 --> 00:01:47,680 That was fascinating. 32 00:01:47,680 --> 00:02:05,860 But really where I thought it was extremely fascinating was the fact that the operators that sat in the control room, they sat there and all the lights made it look like everything was perfectly fine, where behind the scenes, all those centrifuges were spinning up and spinning down and spinning up and spinning down. 33 00:02:05,860 --> 00:02:10,720 And they were physically breaking down over time, even though they thought everything was okay. 34 00:02:10,720 --> 00:02:14,120 And that was the beauty, I thought, of Stuxnet. 35 00:02:14,120 --> 00:02:19,680 And that kind of gets into the conversation around OT and ICS. 36 00:02:19,900 --> 00:02:22,620 So I do a lot in OT-ICS. 37 00:02:22,620 --> 00:02:24,300 Some of you might know me from LinkedIn. 38 00:02:24,360 --> 00:02:28,100 So I do post on LinkedIn on OT-ICS cybersecurity. 39 00:02:28,100 --> 00:02:30,040 So if we're not connected, feel free to reach out. 40 00:02:30,040 --> 00:02:32,760 You can always ping me there and ask questions. 41 00:02:33,800 --> 00:02:35,400 We'll skip over that. 42 00:02:35,400 --> 00:02:42,920 I also have a full 25-hour intro to OT-ICS cybersecurity course on YouTube. 43 00:02:42,920 --> 00:02:45,160 So just look for Mike Holcomb. 44 00:02:45,160 --> 00:03:02,020 So this presentation I actually had put together because I was actually having a conversation one day with the gentleman that runs one of the world's largest OT-ICS programs, literally, for one of the world's largest oil and gas companies. 45 00:03:02,760 --> 00:03:07,160 And I hadn't been in OT very long, about two years. 46 00:03:07,440 --> 00:03:10,360 And he was talking about a PLC. 47 00:03:10,360 --> 00:03:15,460 And if you're not familiar with a PLC, it's the most common type of control system we use. 48 00:03:15,460 --> 00:03:17,840 It's essentially a little computer. 49 00:03:17,840 --> 00:03:24,440 And it's physically wired into different parts and components and systems out in the real world. 50 00:03:25,060 --> 00:03:29,060 And he was mentioned as like, oh, it's PC, PLC. 51 00:03:29,060 --> 00:03:31,000 And so I kind of taught him this conversation. 52 00:03:31,000 --> 00:03:33,720 I'm like, if I was an attacker, this is what I would do. 53 00:03:33,720 --> 00:03:35,660 And we're going to get into some of that today. 54 00:03:35,760 --> 00:03:38,560 And he's like, yeah, but it's a PLC. 55 00:03:38,560 --> 00:03:39,920 It's not vulnerable. 56 00:03:39,960 --> 00:03:42,660 Like, what do you mean? 57 00:03:42,660 --> 00:03:44,660 And I started to doubt myself, right? 58 00:03:44,660 --> 00:03:46,160 Because this is the guy, right? 59 00:03:46,160 --> 00:03:51,040 He runs this, I mean, one of the world's largest OT cybersecurity programs. 60 00:03:51,040 --> 00:03:53,200 I'm like, I'm still pretty new at this. 61 00:03:53,200 --> 00:03:56,640 So I'm like, wow, I must be completely wrong. 62 00:03:56,640 --> 00:04:02,240 And then I'm like, I went and found like a CV in like 30 seconds for that one particular PLC. 63 00:04:02,240 --> 00:04:06,500 And it was like, okay, no, I know what I'm talking about sometimes, at least. 64 00:04:06,500 --> 00:04:15,800 And so it really showed like the lack of awareness and knowledge in OT, right? 65 00:04:15,800 --> 00:04:18,100 And OT and ICS. 66 00:04:18,100 --> 00:04:23,460 And that was about 10 years ago, 10, 11, 12 years ago. 67 00:04:23,460 --> 00:04:32,400 And so when I went to do my master's, I did my master's through SANS, and I was going to write for OT ICS cybersecurity. 68 00:04:32,400 --> 00:04:37,760 And so we went through this conversation, and I wanted to make it realistic. 69 00:04:37,760 --> 00:04:38,920 I wanted to do something. 70 00:04:38,920 --> 00:04:42,160 I had one pitch about PLC insecurities. 71 00:04:42,400 --> 00:04:44,420 And some of you probably know, Dr. 72 00:04:44,420 --> 00:04:46,080 Johannes Ulrich, he was the advisor. 73 00:04:46,080 --> 00:04:47,760 He's like, that's a great idea. 74 00:04:47,760 --> 00:04:49,960 That's a 500 page book. 75 00:04:50,100 --> 00:04:51,980 It's like, okay. 76 00:04:51,980 --> 00:04:53,340 And so I came back. 77 00:04:53,340 --> 00:05:01,140 One area in OT and ICS environments, just like in IT, people struggle with inventory. 78 00:05:01,460 --> 00:05:04,480 And so no one has a complete inventory. 79 00:05:04,480 --> 00:05:10,120 If they do, they might think they do, or they're just outright lying. 80 00:05:10,580 --> 00:05:14,120 And so OT, it's even a million times worse. 81 00:05:14,120 --> 00:05:17,500 In OT, we build what we call asset registers. 82 00:05:17,500 --> 00:05:21,960 And so you might have an asset register that looks like this. 83 00:05:21,980 --> 00:05:29,460 And so my goal of the project for my master's thesis was I was going to create a website. 84 00:05:29,460 --> 00:05:39,060 And that website, I'm going to have a couple scripts on the back end that would go out to those different types of PLCs from different vendors to determine if it's in run mode or not. 85 00:05:39,060 --> 00:05:48,720 And the idea with run mode is you kind of think of it as read-only mode, which means an attacker can't manipulate it remotely. 86 00:05:48,740 --> 00:05:51,300 That sounds super secure. 87 00:05:51,500 --> 00:05:53,680 I'm like, yeah, that's what we want. 88 00:05:53,680 --> 00:06:02,020 So if I'm running a plant and I see a PLC come out of run mode, I think of it as, well, now it's in a vulnerable state. 89 00:06:02,020 --> 00:06:03,820 I want to go fix that. 90 00:06:05,040 --> 00:06:09,000 Now, even if it's in run mode, it's not as secure as you think. 91 00:06:09,000 --> 00:06:11,460 It is more secure than not. 92 00:06:11,460 --> 00:06:14,080 So we do definitely want them to be in run mode. 93 00:06:14,240 --> 00:06:17,860 You can still make changes to the programming in the PLC, though. 94 00:06:17,860 --> 00:06:23,440 So again, it's not as secure, but you normally can't do things like upload firmware. 95 00:06:23,440 --> 00:06:29,500 So if an attacker was trying to upload malicious firmware, they wouldn't be able to do that if the PLC was in run mode. 96 00:06:29,500 --> 00:06:34,080 So we want to see, OK, I have all these PLCs in the factory or in the plant. 97 00:06:34,080 --> 00:06:36,740 I want to make sure they're always in run mode. 98 00:06:36,740 --> 00:06:41,920 And if one of them comes out of run mode, I get a little flag. 99 00:06:41,920 --> 00:06:44,860 I investigate and see what was going on. 100 00:06:44,860 --> 00:06:47,260 And then we investigate. 101 00:06:47,260 --> 00:06:53,520 We find maybe a technician was making changes that they weren't supposed to or was outside of a scheduled window. 102 00:06:53,520 --> 00:06:56,400 No harm, no foul, we hope. 103 00:06:56,400 --> 00:06:59,120 And then we can get back to business. 104 00:06:59,960 --> 00:07:04,060 And so Johannes Ulrich says, that's an awesome idea. 105 00:07:04,060 --> 00:07:05,240 Go for it. 106 00:07:05,280 --> 00:07:08,880 Got off the Zoom call and I was like, oh, crap. 107 00:07:08,880 --> 00:07:13,000 I have to write a web interface to pull data. 108 00:07:13,000 --> 00:07:19,860 I have to figure out how I'm actually going to determine if these PLCs are actually in run mode remotely. 109 00:07:19,920 --> 00:07:23,940 I guess I was like, oh, crap. 110 00:07:23,940 --> 00:07:26,300 And I am not a developer. 111 00:07:26,300 --> 00:07:28,000 I tried to be a developer. 112 00:07:28,320 --> 00:07:30,600 Any developers in the room? 113 00:07:31,300 --> 00:07:32,920 I'm very jealous. 114 00:07:32,920 --> 00:07:35,160 My mind does not think that way. 115 00:07:35,160 --> 00:07:36,940 And I don't have the patience either. 116 00:07:36,940 --> 00:07:38,660 It took me 50 years to admit that. 117 00:07:38,660 --> 00:07:41,280 I do not have the patience to be a developer. 118 00:07:41,280 --> 00:07:53,360 So I remember just reading an article, though, about how basically ransomware groups were using ChachiBT to create fully functional phishing platforms. 119 00:07:53,360 --> 00:08:01,240 And I was like, okay, well, if they're using it to write fully functioning phishing platforms, I could probably use it to do this. 120 00:08:01,240 --> 00:08:03,260 And so it went down this path. 121 00:08:03,400 --> 00:08:14,940 And so this is where if you've never played with ChachiBT or any other Gen AI products or platforms, you can sit there and you can just tell it what you want. 122 00:08:15,560 --> 00:08:19,240 You can sit there and tell it exactly what you want a tool to do. 123 00:08:19,240 --> 00:08:21,600 There's even a name for that now, which is what? 124 00:08:22,820 --> 00:08:24,100 Vibe coding, right? 125 00:08:24,100 --> 00:08:26,440 Yeah, that's come up over the last year or so, right? 126 00:08:26,440 --> 00:08:29,520 So it's like, oh, yeah, like, that's what we were doing. 127 00:08:29,720 --> 00:08:36,720 And in this case, right, I just wanted to start and say, hey, create a Python script to say, of course, we don't want to do Hello, World, right? 128 00:08:36,720 --> 00:08:40,860 Because that's like every class in development you take. 129 00:08:40,860 --> 00:08:43,160 But we did Hello, Friend, which is from what? 130 00:08:45,120 --> 00:08:50,640 The pilot episode of our favorite TV hacker show, Mr. 131 00:08:50,640 --> 00:08:51,460 Robot, right? 132 00:08:51,460 --> 00:08:53,580 Yeah, it's all the first thing he says, right? 133 00:08:53,580 --> 00:08:58,300 Hello, friend, you don't know, it's talking to you, the voices in his head, right? 134 00:08:58,420 --> 00:08:59,220 Himself. 135 00:08:59,620 --> 00:09:08,620 And then, right, ChachiBT, and I'll get all the other ones you can, you know, kind of work the same says, hey, here's your script, it even explains to you what to do. 136 00:09:08,620 --> 00:09:12,300 And it even explains to you how to run it if you don't know how to run it. 137 00:09:12,300 --> 00:09:13,140 I'm like, wow. 138 00:09:13,160 --> 00:09:13,700 Right? 139 00:09:13,700 --> 00:09:15,220 That's pretty awesome. 140 00:09:15,720 --> 00:09:24,900 And so it's like, I can just copy that, right code, throw in a little script, run it and Hello, Friend, like, okay, awesome. 141 00:09:25,160 --> 00:09:26,860 So then we can go from there. 142 00:09:26,860 --> 00:09:30,040 And then, okay, we'll step up our game kind of like a normal development course. 143 00:09:30,040 --> 00:09:31,920 This is where I always get lost. 144 00:09:31,920 --> 00:09:34,740 I'm like, well, you went from zero to 100 super fast. 145 00:09:35,100 --> 00:09:41,120 But here in this case, just as a test, it was kind of like, okay, like, I'm a big nmap fan, right? 146 00:09:41,120 --> 00:09:48,960 I remember seeing Theodore at DEF CON, like 20 years ago, writing his book on the little notebook, which was really cool. 147 00:09:49,280 --> 00:09:55,300 And but so it's like, let's just create a basic port scanner, a mini nmap. 148 00:09:55,320 --> 00:09:59,880 And we're just say, create a port scanner, I'm just going to check for five different ports. 149 00:09:59,880 --> 00:10:04,140 So port 8443, we use for, for what? 150 00:10:04,300 --> 00:10:05,760 Yeah, web traffic, right? 151 00:10:05,760 --> 00:10:07,060 So for websites. 152 00:10:07,060 --> 00:10:10,280 And then, as we have a lot of websites in OT too. 153 00:10:11,120 --> 00:10:16,500 So port 502, 502, 44818, those are OT protocols, right? 154 00:10:16,500 --> 00:10:19,960 And so we wanted just to test a couple of those ports. 155 00:10:20,360 --> 00:10:24,380 And so, yeah, 30 seconds or less, like, here's your little port scanner. 156 00:10:24,380 --> 00:10:28,340 And this is where I run it against my little Wi Fi access point at home. 157 00:10:28,340 --> 00:10:32,800 And it says, Oh, yeah, you got a, you're probably an admin page running on 443, right? 158 00:10:32,880 --> 00:10:40,160 And then if I run it on my OT network, like here's against a PLC, so port 502 is open, 502 is used for? 159 00:10:40,760 --> 00:10:41,800 Anybody? 160 00:10:43,780 --> 00:10:44,900 Modbus, yeah. 161 00:10:44,900 --> 00:10:50,180 So Modbus is the most commonly used protocol in OT, partly because it's open source. 162 00:10:50,180 --> 00:10:53,080 There's a lot of proprietary protocols in OT. 163 00:10:53,080 --> 00:10:54,300 Modbus is open source. 164 00:10:54,300 --> 00:10:57,160 So that's where we see it a lot of places. 165 00:10:57,160 --> 00:11:01,940 So then we start thinking, well, Python was great, right? 166 00:11:01,940 --> 00:11:03,420 But what if I'm an attacker? 167 00:11:03,420 --> 00:11:10,660 Or what if I'm in an environment as a defender and operator, where I can't install Python on a machine? 168 00:11:10,660 --> 00:11:16,440 Now, one thing you might not realize in OT is that we have machines everywhere running Windows. 169 00:11:16,960 --> 00:11:17,840 Everywhere. 170 00:11:17,840 --> 00:11:21,520 There's as many Windows machines in OT as you have in IT. 171 00:11:21,520 --> 00:11:23,340 I think people don't realize. 172 00:11:23,340 --> 00:11:30,300 And so we have all those, you know, common advantages and vulnerabilities and disadvantages. 173 00:11:31,400 --> 00:11:35,880 So when we talk about, well, living off the land, I don't want to install Python, right? 174 00:11:35,880 --> 00:11:40,280 Because that violates the whole credo of living off land and using what you find. 175 00:11:40,420 --> 00:11:46,120 So what scripting language do we have in Windows, though, that allows us to do anything and everything with Windows? 176 00:11:47,140 --> 00:11:48,220 PowerShell, yeah. 177 00:11:48,220 --> 00:11:54,940 So it's like, I just go back to chat GPT and say, hey, take that script and convert it to PowerShell. 178 00:11:55,240 --> 00:11:58,540 And 30 seconds or less, boom, I have a script. 179 00:11:58,540 --> 00:12:03,920 But when I run it, and for me, right, this is where I lose my patience. 180 00:12:03,920 --> 00:12:04,900 Like, I'm done. 181 00:12:04,900 --> 00:12:05,580 I'm out. 182 00:12:05,580 --> 00:12:07,480 Like, I'm done with the project. 183 00:12:07,480 --> 00:12:10,880 And I literally close the screen. 184 00:12:10,880 --> 00:12:12,880 I remember walking away. 185 00:12:12,960 --> 00:12:14,220 And then I was in the kitchen. 186 00:12:14,220 --> 00:12:22,860 And I was like, I wonder if I actually feed the error message back to chat GPT, if it'll actually fix it or not. 187 00:12:22,920 --> 00:12:28,160 And 30 seconds or less, it's like, oh, you know what, I made a mistake. 188 00:12:28,160 --> 00:12:29,600 I found the problem. 189 00:12:29,600 --> 00:12:30,640 I fixed it. 190 00:12:30,640 --> 00:12:32,320 Here's the fixed script. 191 00:12:32,320 --> 00:12:35,260 Like, how cool is that? 192 00:12:35,600 --> 00:12:41,840 And I use, if you get anything from this talk, use chat GPT, your favorite Gen AI platform for error messages. 193 00:12:41,900 --> 00:12:45,540 Especially like, I hate Linux error messages, right? 194 00:12:46,160 --> 00:12:49,440 And it's like, put it in chat GPT, here's your problem. 195 00:12:49,440 --> 00:12:50,480 And it explains it. 196 00:12:50,480 --> 00:12:52,360 So you actually also learn. 197 00:12:52,360 --> 00:12:56,600 So I don't want you just to fix it, but it's nice to, but fix it. 198 00:12:57,160 --> 00:13:04,720 And so in this case, here's the Power Script version or the PowerShell version of that little scanner. 199 00:13:04,720 --> 00:13:06,760 So the format looks a little different, right? 200 00:13:06,760 --> 00:13:08,340 But it does the job. 201 00:13:09,200 --> 00:13:13,360 And so there we're living off the land. 202 00:13:14,160 --> 00:13:29,940 And so this is where, like, I just, I'm sure there's a lot of people out here like myself that, I don't know, I always get that idea where it's like, I wish I had this little tool to do like this one thing to make my life easier or make my life better. 203 00:13:30,480 --> 00:13:33,900 And it's like, yeah, you can do that now with chat GPT. 204 00:13:34,200 --> 00:13:36,120 And you don't have to be a developer. 205 00:13:36,120 --> 00:13:40,080 Again, I'm very jealous of all of you that have that development mindset. 206 00:13:40,080 --> 00:13:41,980 It's just not in me. 207 00:13:43,360 --> 00:13:47,760 In the OT world, I just have some examples of some projects that you can do. 208 00:13:47,760 --> 00:13:50,700 And I have the walkthroughs on GitHub on my GitHub page. 209 00:13:50,700 --> 00:13:53,560 And I have some links at the end that you can check out. 210 00:13:54,040 --> 00:13:56,440 But we mentioned asset registers, right? 211 00:13:56,440 --> 00:13:58,740 That's a big miss in OT. 212 00:13:58,940 --> 00:14:02,340 People aren't, they're not aware of what they actually have in the environment. 213 00:14:02,340 --> 00:14:04,580 They're actually worse than in IT. 214 00:14:04,580 --> 00:14:11,540 If you walk into a power plant, you would think they would realize the equipment that they have and how it's connected and IP addresses. 215 00:14:11,540 --> 00:14:13,620 And no, they don't. 216 00:14:13,620 --> 00:14:16,700 Even in nuclear facilities, it's really crazy. 217 00:14:17,380 --> 00:14:20,880 So we don't like to do active scanning, right? 218 00:14:20,880 --> 00:14:23,500 We don't want to see NMAP in an OT environment. 219 00:14:23,500 --> 00:14:24,200 Why? 220 00:14:27,620 --> 00:14:37,700 Yeah, if we hit a control system, and it's sensitive for multiple reasons that it could emotionally and physically, that it could actually crash or reboot, right? 221 00:14:37,700 --> 00:14:40,760 Or it could break, you literally would have to replace it. 222 00:14:40,760 --> 00:14:43,660 And then it gets in that they don't even know where a replacement is. 223 00:14:43,660 --> 00:14:46,120 They didn't even know where that one was to begin with. 224 00:14:46,480 --> 00:14:46,700 Right? 225 00:14:46,700 --> 00:14:59,360 So we usually look at passive means to find out what's in the environment, watching network traffic, a lot of OT environment, you find PCAPs that they're just everywhere that somebody created once upon a time. 226 00:14:59,560 --> 00:15:02,660 And so this case, I just created a use chat GPT, right? 227 00:15:02,660 --> 00:15:11,600 Create a script, strip out all the IP addresses, and the MAC addresses, because what can we use the first half of the MAC address to do? 228 00:15:12,960 --> 00:15:15,380 We can look up the manufacturer, right? 229 00:15:15,380 --> 00:15:16,460 So they're registered. 230 00:15:16,460 --> 00:15:21,400 So you can run this script, it says, hey, you have to install a couple Python modules, right? 231 00:15:21,400 --> 00:15:24,380 It gives you instructions on how to do that through PIP. 232 00:15:24,380 --> 00:15:28,700 We run the little tool, and then I get this and it says, enter the path to your PCAP file. 233 00:15:28,700 --> 00:15:36,680 And I was like, that's not happening, because I'm going to be like C colon backslash, where the hell did I put the file? 234 00:15:36,680 --> 00:15:38,460 Like, no. 235 00:15:38,460 --> 00:15:47,000 So I was like, I'll go back to chat GPT, just to see what happens and says, hey, give me a GUI to be able to specify the location of the file. 236 00:15:47,300 --> 00:15:55,380 And then when you run it again, boom, there you are, like, you can, oh, double click, find the file and load it. 237 00:15:55,500 --> 00:16:07,080 And then it goes through the process where it strips out all the IP addresses, the MAC addresses, does the reverse lookup on the MAC address for the vendor, and then saves it in an Excel spreadsheet. 238 00:16:08,460 --> 00:16:10,320 Those are IT asset registers. 239 00:16:11,560 --> 00:16:13,080 Really cool, right? 240 00:16:13,080 --> 00:16:17,900 And there's some companies, right, that they charge a lot of money for something as simple as that. 241 00:16:20,040 --> 00:16:24,080 So I've also had a lot of fun finding things on the internet. 242 00:16:24,300 --> 00:16:26,700 So most of you probably, how many are familiar with Shodan? 243 00:16:27,000 --> 00:16:29,540 Probably most, right, at DEF CON, right? 244 00:16:29,540 --> 00:16:37,640 DEF CON, or not DEF CON, Shodan actually started as a tool to find control systems that were exposed to the internet. 245 00:16:37,660 --> 00:16:38,760 That was the whole thing. 246 00:16:38,760 --> 00:16:41,200 Like, here's a power plant that you can control. 247 00:16:41,200 --> 00:16:43,320 Here's a traffic light, right? 248 00:16:43,320 --> 00:16:45,240 Here's a water treatment facility. 249 00:16:46,220 --> 00:16:50,160 So the NSA actually released Elite Wolf. 250 00:16:50,160 --> 00:16:55,580 Now, I remember when the NSA released the Geiger project at DEF CON, like 10 years ago, right? 251 00:16:55,580 --> 00:16:57,100 That was really awesome. 252 00:16:57,100 --> 00:17:01,000 Software package, reverse engineer, right, be able to create buffer overflows. 253 00:17:01,020 --> 00:17:01,740 Awesome. 254 00:17:01,740 --> 00:17:05,620 So when they're like, hey, we're releasing this project, it's like, really cool. 255 00:17:05,620 --> 00:17:07,320 I'm like, I was so excited. 256 00:17:07,320 --> 00:17:10,720 And then you jump into the GitHub repository. 257 00:17:10,800 --> 00:17:12,700 And there were just three text files. 258 00:17:12,700 --> 00:17:14,620 I'm like, what, what is this? 259 00:17:14,860 --> 00:17:16,800 And then you open them up. 260 00:17:16,960 --> 00:17:18,740 And then you start looking at them. 261 00:17:18,740 --> 00:17:21,940 And it's like, these are snort signatures. 262 00:17:21,940 --> 00:17:28,220 I was like, okay, like, I get it if you're trying to help me find an attacker in the environment. 263 00:17:28,220 --> 00:17:33,340 But it's kind of like, I don't know, is this really a big deal? 264 00:17:33,340 --> 00:17:36,380 And it's another one of those, like, I close the screen. 265 00:17:36,540 --> 00:17:48,800 And then I realized after I stepped away, it's like, oh, shoot, like, the file for Alan Bradley Rockwell, which major OT control system vendor. 266 00:17:50,160 --> 00:17:51,780 Those are URLs. 267 00:17:52,880 --> 00:17:58,540 And so it's like, well, I can't put a URL in showdown, but I can put a URL in what search engine? 268 00:18:01,240 --> 00:18:03,020 I can put it in Google. 269 00:18:03,700 --> 00:18:06,980 So like, oh, just take that URL, put it in Google. 270 00:18:07,060 --> 00:18:13,320 And yeah, two seconds is here's a bunch of those PLCs that are actually exposed on the internet. 271 00:18:13,320 --> 00:18:18,160 So you actually can't find these actually easily, believe it or not in showdown that way. 272 00:18:18,160 --> 00:18:19,860 But you can just actually go to Google. 273 00:18:19,860 --> 00:18:20,960 And there's like 50. 274 00:18:20,960 --> 00:18:25,080 I think the actual numbers increasing, which is not a good sign. 275 00:18:25,080 --> 00:18:28,520 But there's about 60 of these active just this one particular month. 276 00:18:29,420 --> 00:18:35,040 So, right, here's a PLC, here's a PLC, here's a PLC that are all connected. 277 00:18:35,040 --> 00:18:37,240 I mean, these are controllers, right? 278 00:18:37,240 --> 00:18:39,540 These are just little computers. 279 00:18:39,540 --> 00:18:43,820 Some engineers hate it when I say that they're physically wired into physical system. 280 00:18:43,820 --> 00:18:47,680 Like if I had a power plant, there's a turbine in that power plant, right? 281 00:18:47,680 --> 00:18:51,240 Turning that turns a generator to create electricity. 282 00:18:52,480 --> 00:19:01,120 That turbine has connected essentially to one of those control systems that does things like monitor, right, how fast the turbine is spinning. 283 00:19:01,180 --> 00:19:02,340 Is it too fast? 284 00:19:02,340 --> 00:19:03,160 Is it too slow? 285 00:19:03,160 --> 00:19:06,580 Or is it right just at 3600 RPMs? 286 00:19:06,680 --> 00:19:08,420 Right, the whole Goldilocks thing, right? 287 00:19:08,420 --> 00:19:11,120 What if the turbine starting to overheat? 288 00:19:11,160 --> 00:19:18,940 So I need to be able to watch over the environment and be able to interact, right, to make changes, if something bad is going to happen, right? 289 00:19:18,940 --> 00:19:21,060 That's the whole idea of control system. 290 00:19:21,060 --> 00:19:24,440 I need to be able to monitor what's going on and allow me to make changes. 291 00:19:25,040 --> 00:19:28,580 And so now we have these systems that are exposed to the internet. 292 00:19:28,580 --> 00:19:31,480 We don't know what they control out in the real world. 293 00:19:31,480 --> 00:19:33,480 We just know that they're exposed. 294 00:19:34,140 --> 00:19:41,400 And then we can actually look up the model for once we find more information about that, and here's what that PLC looks like. 295 00:19:41,400 --> 00:19:44,260 This is actually one that they use in the SANS training. 296 00:19:44,260 --> 00:19:46,820 And if you ever do any of the SANS. 297 00:19:46,980 --> 00:19:59,280 Now, what I really had a lot of fun with was actually looking at, they actually have a page essentially like running TCP connections on your local machine. 298 00:19:59,280 --> 00:20:09,000 So if you do netstat, and so you could see like, oh, who's connected to the machine, you could see its internal IP address, never a good sign, right? 299 00:20:09,000 --> 00:20:12,080 It shows a lack of security in their program, right? 300 00:20:12,080 --> 00:20:15,920 We can see they're connected to, oh, port 80, the web interface, right? 301 00:20:15,920 --> 00:20:20,480 You can see all of the public IP addresses out on the internet that are connected. 302 00:20:20,480 --> 00:20:23,520 And then you see, oh, this is port 44, 818. 303 00:20:23,520 --> 00:20:24,880 This is Ethernet IP. 304 00:20:24,880 --> 00:20:31,060 So it's an OT protocol that lots of people are connecting to from over the internet. 305 00:20:31,060 --> 00:20:33,660 It's like, well, what are they doing? 306 00:20:33,680 --> 00:20:34,240 Right? 307 00:20:34,240 --> 00:20:42,100 They're trying to actually map out the controller to see what it is, and then potentially have an impact to what it controls out in the real world. 308 00:20:42,340 --> 00:20:46,540 Which honestly, is not that hard to do. 309 00:20:47,280 --> 00:20:52,760 I actually just started releasing my OT pen testing class on YouTube, if anybody's interested. 310 00:20:53,060 --> 00:21:04,640 So I did create a real quick scripts to go through and just say, hey, pull those IP addresses, and then map them out. 311 00:21:05,800 --> 00:21:10,840 Put them on a map, just so I can visualize to see where these people are coming from. 312 00:21:10,840 --> 00:21:14,920 Again, it's just another one of those things like, you know, it pops into my head. 313 00:21:14,920 --> 00:21:17,420 I wish, hey, it'd be kind of fun to have something like that. 314 00:21:17,420 --> 00:21:20,380 And ChatGPT does it in 30 seconds or less, right? 315 00:21:20,380 --> 00:21:21,080 Boom. 316 00:21:21,440 --> 00:21:22,220 Awesome. 317 00:21:24,480 --> 00:21:29,860 Now, I have a ton of examples, but we're winding down. 318 00:21:29,940 --> 00:21:40,200 One thing to think about if you want to start playing with this, if there's something that you're not doing already, is that ChatGPT, you can try to say, hey, do these 10 things. 319 00:21:40,480 --> 00:21:45,560 And sometimes it can actually do all 10 things at once. 320 00:21:46,180 --> 00:21:51,160 Usually what happens, though, is it'll fail at some of them, at least. 321 00:21:51,160 --> 00:21:55,820 So what you want to do is tell it to learn to do, like, do one thing, right? 322 00:21:56,160 --> 00:21:59,680 And then test it to make sure it works, right? 323 00:21:59,680 --> 00:22:03,280 And then add something else, test it, make sure it works. 324 00:22:03,280 --> 00:22:11,000 I do that iterative process, and then you'll be much more successful, and you'll save yourself some time, for sure. 325 00:22:11,000 --> 00:22:13,140 So don't try it. 326 00:22:13,140 --> 00:22:16,180 You can, but you're more than likely wasting your time. 327 00:22:16,180 --> 00:22:18,280 So just do it one thing at a time. 328 00:22:18,280 --> 00:22:19,560 Again, I think you'll be better off. 329 00:22:19,560 --> 00:22:21,280 It still doesn't take that long. 330 00:22:21,280 --> 00:22:24,540 So one last example before we wrap up. 331 00:22:24,540 --> 00:22:29,860 So I am a huge, like, old school incident detection, incident response person. 332 00:22:29,860 --> 00:22:32,520 I'm a huge fan of network security monitoring. 333 00:22:32,520 --> 00:22:35,520 I'm a huge fan of honeypots. 334 00:22:35,600 --> 00:22:38,420 I am not a fan of honeypot vendors. 335 00:22:38,420 --> 00:22:40,520 If there are any in the room, I'm sorry. 336 00:22:40,520 --> 00:22:46,840 You know, you get folks that call up and they want you to spend $50,000, $60,000, $100,000 on a honeypot. 337 00:22:47,160 --> 00:22:52,940 You don't need to spend that much money on a honeypot, not in IT, and definitely not in OT. 338 00:22:53,580 --> 00:23:01,380 You can actually create, 30 seconds or less, a fully functional honeypot for OT. 339 00:23:02,020 --> 00:23:02,620 Right? 340 00:23:02,620 --> 00:23:07,160 So we're going to say, hey, create a listener on TCP 502 that we're looking at, right? 341 00:23:07,160 --> 00:23:12,180 The port for Modbus, the most commonly used OT protocol that's out there. 342 00:23:12,320 --> 00:23:16,240 And in this case, I could say, hey, if this machine gets pinged, let me know. 343 00:23:16,240 --> 00:23:26,280 And if this thing, if I get a SYN packet, and I send a SYN ACK back, but I don't get the final acknowledgement, what would that indicate is happening? 344 00:23:26,280 --> 00:23:27,120 Anybody? 345 00:23:27,820 --> 00:23:29,160 Yeah, I just got scanned. 346 00:23:29,160 --> 00:23:30,780 Yeah, I just got port scanned. 347 00:23:31,420 --> 00:23:35,140 Port scans, they normally don't happen in OT environments, right? 348 00:23:35,140 --> 00:23:38,180 So that should be something we want to be aware of. 349 00:23:38,180 --> 00:23:39,580 So yeah, tell me. 350 00:23:41,100 --> 00:23:43,480 And so this is what it looks like on the back end, right? 351 00:23:43,480 --> 00:23:46,740 I get pinged, four pings, that's from a Windows machine, right? 352 00:23:46,740 --> 00:23:50,420 And then it's like, oh, you might have got port scans, probably what's in there. 353 00:23:52,140 --> 00:23:54,360 And that's just a start, right? 354 00:23:54,460 --> 00:23:56,900 So then, like, okay, great. 355 00:23:57,960 --> 00:24:00,440 Let's go ahead and we have 502. 356 00:24:00,440 --> 00:24:03,900 So let's actually make it look like an actual PLC. 357 00:24:03,940 --> 00:24:08,820 And now PLCs actually store information in what they call coils and registers. 358 00:24:08,820 --> 00:24:12,280 So coils store zeros and ones, so binary, right? 359 00:24:12,280 --> 00:24:17,660 And then registers store values of 0 through 65,535. 360 00:24:17,660 --> 00:24:31,880 And so that's where if you have, let's say, a power plant, and just to simplify, right, I have that turbine spinning, I literally have a coil that's turned to a one to indicate that the turbine is on, right? 361 00:24:31,880 --> 00:24:34,160 It's, it's as simple as that, believe it or not. 362 00:24:34,160 --> 00:24:38,040 And a lot of environments, you can connect to the machine and turn that one to a zero. 363 00:24:38,040 --> 00:24:38,940 And guess what? 364 00:24:39,320 --> 00:24:40,820 You actually turn it off. 365 00:24:40,840 --> 00:24:43,600 It is literally that easy a lot of times. 366 00:24:44,520 --> 00:24:49,220 So in this case, we actually then go and create this honeypot. 367 00:24:49,760 --> 00:24:59,800 And so, and not only is it listening for pings and port scans, but now it allows somebody to connect to it as a real PLC. 368 00:24:59,800 --> 00:25:04,680 And then it's actually looking for those different commands. 369 00:25:04,680 --> 00:25:09,820 So here you can read it, and it sends you all those values to see all the zeros and ones. 370 00:25:09,840 --> 00:25:14,060 And then it also sends all the register values. 371 00:25:14,840 --> 00:25:17,900 And then it even allows you to write them. 372 00:25:18,080 --> 00:25:23,660 So if somebody is trying to write to your PLC, yeah, you have an attacker in the environment, right? 373 00:25:23,660 --> 00:25:24,920 100% fidelity. 374 00:25:24,920 --> 00:25:26,740 That's why we love honeypots. 375 00:25:27,000 --> 00:25:28,140 No case about it. 376 00:25:28,140 --> 00:25:32,620 So you don't have to spend $50,000 for an ICS honeypot. 377 00:25:32,620 --> 00:25:36,660 You can write one with chat GPT in 30 seconds or less. 378 00:25:37,380 --> 00:25:39,380 So there's a lot of possibilities. 379 00:25:39,380 --> 00:25:42,620 And that's really why I wanted to put the presentation together. 380 00:25:42,620 --> 00:25:46,660 And really just want to say thank you for everybody for coming. 381 00:25:46,660 --> 00:25:48,640 So I have a couple links at the end. 382 00:25:48,640 --> 00:25:50,960 You can see this is a much longer talk. 383 00:25:52,680 --> 00:25:54,440 We'll eventually get there. 384 00:25:56,800 --> 00:25:58,160 And there's the links. 385 00:25:58,160 --> 00:25:59,020 So thank you again. 386 00:25:59,020 --> 00:25:59,500 I appreciate it. 387 00:25:59,500 --> 00:26:01,220 I'll be around if there's any questions. 388 00:26:01,220 --> 00:26:03,460 And then come see us at the ICS Village.