WEBVTT

00:00.000 --> 00:00.900
Hey everybody.

00:01.340 --> 00:03.060
I appreciate everybody for coming.

00:03.540 --> 00:07.260
I appreciate, I feel bad for Tony getting sick.

00:07.260 --> 00:09.220
I was actually just going to talk on Sunday.

00:09.220 --> 00:12.560
Tony Turner was going to be here and talk about OT.

00:12.560 --> 00:17.920
I think he was doing network segmentation and using it to protect OT or ICS environments and got sick.

00:17.920 --> 00:19.040
So I was filling in.

00:19.040 --> 00:20.580
So I appreciate everybody for coming.

00:20.580 --> 00:23.560
This is actually a talk that I did at bSize ICS this year.

00:23.560 --> 00:26.200
So most of you are probably familiar with bSize ICS, right?

00:26.200 --> 00:27.220
Show of hands.

00:27.340 --> 00:27.980
Right?

00:29.160 --> 00:37.100
And so we actually started this year, the ICS or OT specific version of bSize and had a great turnout.

00:37.180 --> 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.

00:45.980 --> 00:49.780
We'll be back in Miami next year with bSize ICS.

00:49.840 --> 00:55.260
So just real quick, everything we're going to talk about here is educational purposes only.

00:55.260 --> 00:56.980
So this is just me, myself and I.

00:56.980 --> 00:59.760
It's not associated with my day job or any other organizations.

00:59.760 --> 01:04.340
I'm affiliated with for my day job.

01:04.480 --> 01:06.760
I actually work with Floor.

01:06.800 --> 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.

01:15.220 --> 01:21.480
So I had actually already started to get into OT in 2010 when Stuxnet occurred.

01:21.480 --> 01:22.900
Anybody hear of Stuxnet?

01:22.900 --> 01:24.200
Only a few folks, right?

01:24.200 --> 01:29.280
And so when Stuxnet happened, I just was, this is an amazing piece of malware.

01:29.280 --> 01:32.880
It wasn't that it used four zero days for Windows.

01:32.880 --> 01:35.320
Like, it's not necessarily a big deal.

01:35.320 --> 01:40.620
And it's like, okay, you took control over these nuclear centrifuges that spun gas, right?

01:40.620 --> 01:43.480
Uranium gas to enrich it to make nuclear weapons.

01:43.480 --> 01:46.280
And it would physically break down those machines.

01:46.280 --> 01:47.680
That was fascinating.

01:47.680 --> 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.

02:05.860 --> 02:10.720
And they were physically breaking down over time, even though they thought everything was okay.

02:10.720 --> 02:14.120
And that was the beauty, I thought, of Stuxnet.

02:14.120 --> 02:19.680
And that kind of gets into the conversation around OT and ICS.

02:19.900 --> 02:22.620
So I do a lot in OT-ICS.

02:22.620 --> 02:24.300
Some of you might know me from LinkedIn.

02:24.360 --> 02:28.100
So I do post on LinkedIn on OT-ICS cybersecurity.

02:28.100 --> 02:30.040
So if we're not connected, feel free to reach out.

02:30.040 --> 02:32.760
You can always ping me there and ask questions.

02:33.800 --> 02:35.400
We'll skip over that.

02:35.400 --> 02:42.920
I also have a full 25-hour intro to OT-ICS cybersecurity course on YouTube.

02:42.920 --> 02:45.160
So just look for Mike Holcomb.

02:45.160 --> 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.

03:02.760 --> 03:07.160
And I hadn't been in OT very long, about two years.

03:07.440 --> 03:10.360
And he was talking about a PLC.

03:10.360 --> 03:15.460
And if you're not familiar with a PLC, it's the most common type of control system we use.

03:15.460 --> 03:17.840
It's essentially a little computer.

03:17.840 --> 03:24.440
And it's physically wired into different parts and components and systems out in the real world.

03:25.060 --> 03:29.060
And he was mentioned as like, oh, it's PC, PLC.

03:29.060 --> 03:31.000
And so I kind of taught him this conversation.

03:31.000 --> 03:33.720
I'm like, if I was an attacker, this is what I would do.

03:33.720 --> 03:35.660
And we're going to get into some of that today.

03:35.760 --> 03:38.560
And he's like, yeah, but it's a PLC.

03:38.560 --> 03:39.920
It's not vulnerable.

03:39.960 --> 03:42.660
Like, what do you mean?

03:42.660 --> 03:44.660
And I started to doubt myself, right?

03:44.660 --> 03:46.160
Because this is the guy, right?

03:46.160 --> 03:51.040
He runs this, I mean, one of the world's largest OT cybersecurity programs.

03:51.040 --> 03:53.200
I'm like, I'm still pretty new at this.

03:53.200 --> 03:56.640
So I'm like, wow, I must be completely wrong.

03:56.640 --> 04:02.240
And then I'm like, I went and found like a CV in like 30 seconds for that one particular PLC.

04:02.240 --> 04:06.500
And it was like, okay, no, I know what I'm talking about sometimes, at least.

04:06.500 --> 04:15.800
And so it really showed like the lack of awareness and knowledge in OT, right?

04:15.800 --> 04:18.100
And OT and ICS.

04:18.100 --> 04:23.460
And that was about 10 years ago, 10, 11, 12 years ago.

04:23.460 --> 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.

04:32.400 --> 04:37.760
And so we went through this conversation, and I wanted to make it realistic.

04:37.760 --> 04:38.920
I wanted to do something.

04:38.920 --> 04:42.160
I had one pitch about PLC insecurities.

04:42.400 --> 04:44.420
And some of you probably know, Dr.

04:44.420 --> 04:46.080
Johannes Ulrich, he was the advisor.

04:46.080 --> 04:47.760
He's like, that's a great idea.

04:47.760 --> 04:49.960
That's a 500 page book.

04:50.100 --> 04:51.980
It's like, okay.

04:51.980 --> 04:53.340
And so I came back.

04:53.340 --> 05:01.140
One area in OT and ICS environments, just like in IT, people struggle with inventory.

05:01.460 --> 05:04.480
And so no one has a complete inventory.

05:04.480 --> 05:10.120
If they do, they might think they do, or they're just outright lying.

05:10.580 --> 05:14.120
And so OT, it's even a million times worse.

05:14.120 --> 05:17.500
In OT, we build what we call asset registers.

05:17.500 --> 05:21.960
And so you might have an asset register that looks like this.

05:21.980 --> 05:29.460
And so my goal of the project for my master's thesis was I was going to create a website.

05:29.460 --> 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.

05:39.060 --> 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.

05:48.740 --> 05:51.300
That sounds super secure.

05:51.500 --> 05:53.680
I'm like, yeah, that's what we want.

05:53.680 --> 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.

06:02.020 --> 06:03.820
I want to go fix that.

06:05.040 --> 06:09.000
Now, even if it's in run mode, it's not as secure as you think.

06:09.000 --> 06:11.460
It is more secure than not.

06:11.460 --> 06:14.080
So we do definitely want them to be in run mode.

06:14.240 --> 06:17.860
You can still make changes to the programming in the PLC, though.

06:17.860 --> 06:23.440
So again, it's not as secure, but you normally can't do things like upload firmware.

06:23.440 --> 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.

06:29.500 --> 06:34.080
So we want to see, OK, I have all these PLCs in the factory or in the plant.

06:34.080 --> 06:36.740
I want to make sure they're always in run mode.

06:36.740 --> 06:41.920
And if one of them comes out of run mode, I get a little flag.

06:41.920 --> 06:44.860
I investigate and see what was going on.

06:44.860 --> 06:47.260
And then we investigate.

06:47.260 --> 06:53.520
We find maybe a technician was making changes that they weren't supposed to or was outside of a scheduled window.

06:53.520 --> 06:56.400
No harm, no foul, we hope.

06:56.400 --> 06:59.120
And then we can get back to business.

06:59.960 --> 07:04.060
And so Johannes Ulrich says, that's an awesome idea.

07:04.060 --> 07:05.240
Go for it.

07:05.280 --> 07:08.880
Got off the Zoom call and I was like, oh, crap.

07:08.880 --> 07:13.000
I have to write a web interface to pull data.

07:13.000 --> 07:19.860
I have to figure out how I'm actually going to determine if these PLCs are actually in run mode remotely.

07:19.920 --> 07:23.940
I guess I was like, oh, crap.

07:23.940 --> 07:26.300
And I am not a developer.

07:26.300 --> 07:28.000
I tried to be a developer.

07:28.320 --> 07:30.600
Any developers in the room?

07:31.300 --> 07:32.920
I'm very jealous.

07:32.920 --> 07:35.160
My mind does not think that way.

07:35.160 --> 07:36.940
And I don't have the patience either.

07:36.940 --> 07:38.660
It took me 50 years to admit that.

07:38.660 --> 07:41.280
I do not have the patience to be a developer.

07:41.280 --> 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.

07:53.360 --> 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.

08:01.240 --> 08:03.260
And so it went down this path.

08:03.400 --> 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.

08:15.560 --> 08:19.240
You can sit there and tell it exactly what you want a tool to do.

08:19.240 --> 08:21.600
There's even a name for that now, which is what?

08:22.820 --> 08:24.100
Vibe coding, right?

08:24.100 --> 08:26.440
Yeah, that's come up over the last year or so, right?

08:26.440 --> 08:29.520
So it's like, oh, yeah, like, that's what we were doing.

08:29.720 --> 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?

08:36.720 --> 08:40.860
Because that's like every class in development you take.

08:40.860 --> 08:43.160
But we did Hello, Friend, which is from what?

08:45.120 --> 08:50.640
The pilot episode of our favorite TV hacker show, Mr.

08:50.640 --> 08:51.460
Robot, right?

08:51.460 --> 08:53.580
Yeah, it's all the first thing he says, right?

08:53.580 --> 08:58.300
Hello, friend, you don't know, it's talking to you, the voices in his head, right?

08:58.420 --> 08:59.220
Himself.

08:59.620 --> 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.

09:08.620 --> 09:12.300
And it even explains to you how to run it if you don't know how to run it.

09:12.300 --> 09:13.140
I'm like, wow.

09:13.160 --> 09:13.700
Right?

09:13.700 --> 09:15.220
That's pretty awesome.

09:15.720 --> 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.

09:25.160 --> 09:26.860
So then we can go from there.

09:26.860 --> 09:30.040
And then, okay, we'll step up our game kind of like a normal development course.

09:30.040 --> 09:31.920
This is where I always get lost.

09:31.920 --> 09:34.740
I'm like, well, you went from zero to 100 super fast.

09:35.100 --> 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?

09:41.120 --> 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.

09:49.280 --> 09:55.300
And but so it's like, let's just create a basic port scanner, a mini nmap.

09:55.320 --> 09:59.880
And we're just say, create a port scanner, I'm just going to check for five different ports.

09:59.880 --> 10:04.140
So port 8443, we use for, for what?

10:04.300 --> 10:05.760
Yeah, web traffic, right?

10:05.760 --> 10:07.060
So for websites.

10:07.060 --> 10:10.280
And then, as we have a lot of websites in OT too.

10:11.120 --> 10:16.500
So port 502, 502, 44818, those are OT protocols, right?

10:16.500 --> 10:19.960
And so we wanted just to test a couple of those ports.

10:20.360 --> 10:24.380
And so, yeah, 30 seconds or less, like, here's your little port scanner.

10:24.380 --> 10:28.340
And this is where I run it against my little Wi Fi access point at home.

10:28.340 --> 10:32.800
And it says, Oh, yeah, you got a, you're probably an admin page running on 443, right?

10:32.880 --> 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?

10:40.760 --> 10:41.800
Anybody?

10:43.780 --> 10:44.900
Modbus, yeah.

10:44.900 --> 10:50.180
So Modbus is the most commonly used protocol in OT, partly because it's open source.

10:50.180 --> 10:53.080
There's a lot of proprietary protocols in OT.

10:53.080 --> 10:54.300
Modbus is open source.

10:54.300 --> 10:57.160
So that's where we see it a lot of places.

10:57.160 --> 11:01.940
So then we start thinking, well, Python was great, right?

11:01.940 --> 11:03.420
But what if I'm an attacker?

11:03.420 --> 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?

11:10.660 --> 11:16.440
Now, one thing you might not realize in OT is that we have machines everywhere running Windows.

11:16.960 --> 11:17.840
Everywhere.

11:17.840 --> 11:21.520
There's as many Windows machines in OT as you have in IT.

11:21.520 --> 11:23.340
I think people don't realize.

11:23.340 --> 11:30.300
And so we have all those, you know, common advantages and vulnerabilities and disadvantages.

11:31.400 --> 11:35.880
So when we talk about, well, living off the land, I don't want to install Python, right?

11:35.880 --> 11:40.280
Because that violates the whole credo of living off land and using what you find.

11:40.420 --> 11:46.120
So what scripting language do we have in Windows, though, that allows us to do anything and everything with Windows?

11:47.140 --> 11:48.220
PowerShell, yeah.

11:48.220 --> 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.

11:55.240 --> 11:58.540
And 30 seconds or less, boom, I have a script.

11:58.540 --> 12:03.920
But when I run it, and for me, right, this is where I lose my patience.

12:03.920 --> 12:04.900
Like, I'm done.

12:04.900 --> 12:05.580
I'm out.

12:05.580 --> 12:07.480
Like, I'm done with the project.

12:07.480 --> 12:10.880
And I literally close the screen.

12:10.880 --> 12:12.880
I remember walking away.

12:12.960 --> 12:14.220
And then I was in the kitchen.

12:14.220 --> 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.

12:22.920 --> 12:28.160
And 30 seconds or less, it's like, oh, you know what, I made a mistake.

12:28.160 --> 12:29.600
I found the problem.

12:29.600 --> 12:30.640
I fixed it.

12:30.640 --> 12:32.320
Here's the fixed script.

12:32.320 --> 12:35.260
Like, how cool is that?

12:35.600 --> 12:41.840
And I use, if you get anything from this talk, use chat GPT, your favorite Gen AI platform for error messages.

12:41.900 --> 12:45.540
Especially like, I hate Linux error messages, right?

12:46.160 --> 12:49.440
And it's like, put it in chat GPT, here's your problem.

12:49.440 --> 12:50.480
And it explains it.

12:50.480 --> 12:52.360
So you actually also learn.

12:52.360 --> 12:56.600
So I don't want you just to fix it, but it's nice to, but fix it.

12:57.160 --> 13:04.720
And so in this case, here's the Power Script version or the PowerShell version of that little scanner.

13:04.720 --> 13:06.760
So the format looks a little different, right?

13:06.760 --> 13:08.340
But it does the job.

13:09.200 --> 13:13.360
And so there we're living off the land.

13:14.160 --> 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.

13:30.480 --> 13:33.900
And it's like, yeah, you can do that now with chat GPT.

13:34.200 --> 13:36.120
And you don't have to be a developer.

13:36.120 --> 13:40.080
Again, I'm very jealous of all of you that have that development mindset.

13:40.080 --> 13:41.980
It's just not in me.

13:43.360 --> 13:47.760
In the OT world, I just have some examples of some projects that you can do.

13:47.760 --> 13:50.700
And I have the walkthroughs on GitHub on my GitHub page.

13:50.700 --> 13:53.560
And I have some links at the end that you can check out.

13:54.040 --> 13:56.440
But we mentioned asset registers, right?

13:56.440 --> 13:58.740
That's a big miss in OT.

13:58.940 --> 14:02.340
People aren't, they're not aware of what they actually have in the environment.

14:02.340 --> 14:04.580
They're actually worse than in IT.

14:04.580 --> 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.

14:11.540 --> 14:13.620
And no, they don't.

14:13.620 --> 14:16.700
Even in nuclear facilities, it's really crazy.

14:17.380 --> 14:20.880
So we don't like to do active scanning, right?

14:20.880 --> 14:23.500
We don't want to see NMAP in an OT environment.

14:23.500 --> 14:24.200
Why?

14:27.620 --> 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?

14:37.700 --> 14:40.760
Or it could break, you literally would have to replace it.

14:40.760 --> 14:43.660
And then it gets in that they don't even know where a replacement is.

14:43.660 --> 14:46.120
They didn't even know where that one was to begin with.

14:46.480 --> 14:46.700
Right?

14:46.700 --> 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.

14:59.560 --> 15:02.660
And so this case, I just created a use chat GPT, right?

15:02.660 --> 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?

15:12.960 --> 15:15.380
We can look up the manufacturer, right?

15:15.380 --> 15:16.460
So they're registered.

15:16.460 --> 15:21.400
So you can run this script, it says, hey, you have to install a couple Python modules, right?

15:21.400 --> 15:24.380
It gives you instructions on how to do that through PIP.

15:24.380 --> 15:28.700
We run the little tool, and then I get this and it says, enter the path to your PCAP file.

15:28.700 --> 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?

15:36.680 --> 15:38.460
Like, no.

15:38.460 --> 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.

15:47.300 --> 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.

15:55.500 --> 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.

16:08.460 --> 16:10.320
Those are IT asset registers.

16:11.560 --> 16:13.080
Really cool, right?

16:13.080 --> 16:17.900
And there's some companies, right, that they charge a lot of money for something as simple as that.

16:20.040 --> 16:24.080
So I've also had a lot of fun finding things on the internet.

16:24.300 --> 16:26.700
So most of you probably, how many are familiar with Shodan?

16:27.000 --> 16:29.540
Probably most, right, at DEF CON, right?

16:29.540 --> 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.

16:37.660 --> 16:38.760
That was the whole thing.

16:38.760 --> 16:41.200
Like, here's a power plant that you can control.

16:41.200 --> 16:43.320
Here's a traffic light, right?

16:43.320 --> 16:45.240
Here's a water treatment facility.

16:46.220 --> 16:50.160
So the NSA actually released Elite Wolf.

16:50.160 --> 16:55.580
Now, I remember when the NSA released the Geiger project at DEF CON, like 10 years ago, right?

16:55.580 --> 16:57.100
That was really awesome.

16:57.100 --> 17:01.000
Software package, reverse engineer, right, be able to create buffer overflows.

17:01.020 --> 17:01.740
Awesome.

17:01.740 --> 17:05.620
So when they're like, hey, we're releasing this project, it's like, really cool.

17:05.620 --> 17:07.320
I'm like, I was so excited.

17:07.320 --> 17:10.720
And then you jump into the GitHub repository.

17:10.800 --> 17:12.700
And there were just three text files.

17:12.700 --> 17:14.620
I'm like, what, what is this?

17:14.860 --> 17:16.800
And then you open them up.

17:16.960 --> 17:18.740
And then you start looking at them.

17:18.740 --> 17:21.940
And it's like, these are snort signatures.

17:21.940 --> 17:28.220
I was like, okay, like, I get it if you're trying to help me find an attacker in the environment.

17:28.220 --> 17:33.340
But it's kind of like, I don't know, is this really a big deal?

17:33.340 --> 17:36.380
And it's another one of those, like, I close the screen.

17:36.540 --> 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.

17:50.160 --> 17:51.780
Those are URLs.

17:52.880 --> 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?

18:01.240 --> 18:03.020
I can put it in Google.

18:03.700 --> 18:06.980
So like, oh, just take that URL, put it in Google.

18:07.060 --> 18:13.320
And yeah, two seconds is here's a bunch of those PLCs that are actually exposed on the internet.

18:13.320 --> 18:18.160
So you actually can't find these actually easily, believe it or not in showdown that way.

18:18.160 --> 18:19.860
But you can just actually go to Google.

18:19.860 --> 18:20.960
And there's like 50.

18:20.960 --> 18:25.080
I think the actual numbers increasing, which is not a good sign.

18:25.080 --> 18:28.520
But there's about 60 of these active just this one particular month.

18:29.420 --> 18:35.040
So, right, here's a PLC, here's a PLC, here's a PLC that are all connected.

18:35.040 --> 18:37.240
I mean, these are controllers, right?

18:37.240 --> 18:39.540
These are just little computers.

18:39.540 --> 18:43.820
Some engineers hate it when I say that they're physically wired into physical system.

18:43.820 --> 18:47.680
Like if I had a power plant, there's a turbine in that power plant, right?

18:47.680 --> 18:51.240
Turning that turns a generator to create electricity.

18:52.480 --> 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.

19:01.180 --> 19:02.340
Is it too fast?

19:02.340 --> 19:03.160
Is it too slow?

19:03.160 --> 19:06.580
Or is it right just at 3600 RPMs?

19:06.680 --> 19:08.420
Right, the whole Goldilocks thing, right?

19:08.420 --> 19:11.120
What if the turbine starting to overheat?

19:11.160 --> 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?

19:18.940 --> 19:21.060
That's the whole idea of control system.

19:21.060 --> 19:24.440
I need to be able to monitor what's going on and allow me to make changes.

19:25.040 --> 19:28.580
And so now we have these systems that are exposed to the internet.

19:28.580 --> 19:31.480
We don't know what they control out in the real world.

19:31.480 --> 19:33.480
We just know that they're exposed.

19:34.140 --> 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.

19:41.400 --> 19:44.260
This is actually one that they use in the SANS training.

19:44.260 --> 19:46.820
And if you ever do any of the SANS.

19:46.980 --> 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.

19:59.280 --> 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?

20:09.000 --> 20:12.080
It shows a lack of security in their program, right?

20:12.080 --> 20:15.920
We can see they're connected to, oh, port 80, the web interface, right?

20:15.920 --> 20:20.480
You can see all of the public IP addresses out on the internet that are connected.

20:20.480 --> 20:23.520
And then you see, oh, this is port 44, 818.

20:23.520 --> 20:24.880
This is Ethernet IP.

20:24.880 --> 20:31.060
So it's an OT protocol that lots of people are connecting to from over the internet.

20:31.060 --> 20:33.660
It's like, well, what are they doing?

20:33.680 --> 20:34.240
Right?

20:34.240 --> 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.

20:42.340 --> 20:46.540
Which honestly, is not that hard to do.

20:47.280 --> 20:52.760
I actually just started releasing my OT pen testing class on YouTube, if anybody's interested.

20:53.060 --> 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.

21:05.800 --> 21:10.840
Put them on a map, just so I can visualize to see where these people are coming from.

21:10.840 --> 21:14.920
Again, it's just another one of those things like, you know, it pops into my head.

21:14.920 --> 21:17.420
I wish, hey, it'd be kind of fun to have something like that.

21:17.420 --> 21:20.380
And ChatGPT does it in 30 seconds or less, right?

21:20.380 --> 21:21.080
Boom.

21:21.440 --> 21:22.220
Awesome.

21:24.480 --> 21:29.860
Now, I have a ton of examples, but we're winding down.

21:29.940 --> 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.

21:40.480 --> 21:45.560
And sometimes it can actually do all 10 things at once.

21:46.180 --> 21:51.160
Usually what happens, though, is it'll fail at some of them, at least.

21:51.160 --> 21:55.820
So what you want to do is tell it to learn to do, like, do one thing, right?

21:56.160 --> 21:59.680
And then test it to make sure it works, right?

21:59.680 --> 22:03.280
And then add something else, test it, make sure it works.

22:03.280 --> 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.

22:11.000 --> 22:13.140
So don't try it.

22:13.140 --> 22:16.180
You can, but you're more than likely wasting your time.

22:16.180 --> 22:18.280
So just do it one thing at a time.

22:18.280 --> 22:19.560
Again, I think you'll be better off.

22:19.560 --> 22:21.280
It still doesn't take that long.

22:21.280 --> 22:24.540
So one last example before we wrap up.

22:24.540 --> 22:29.860
So I am a huge, like, old school incident detection, incident response person.

22:29.860 --> 22:32.520
I'm a huge fan of network security monitoring.

22:32.520 --> 22:35.520
I'm a huge fan of honeypots.

22:35.600 --> 22:38.420
I am not a fan of honeypot vendors.

22:38.420 --> 22:40.520
If there are any in the room, I'm sorry.

22:40.520 --> 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.

22:47.160 --> 22:52.940
You don't need to spend that much money on a honeypot, not in IT, and definitely not in OT.

22:53.580 --> 23:01.380
You can actually create, 30 seconds or less, a fully functional honeypot for OT.

23:02.020 --> 23:02.620
Right?

23:02.620 --> 23:07.160
So we're going to say, hey, create a listener on TCP 502 that we're looking at, right?

23:07.160 --> 23:12.180
The port for Modbus, the most commonly used OT protocol that's out there.

23:12.320 --> 23:16.240
And in this case, I could say, hey, if this machine gets pinged, let me know.

23:16.240 --> 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?

23:26.280 --> 23:27.120
Anybody?

23:27.820 --> 23:29.160
Yeah, I just got scanned.

23:29.160 --> 23:30.780
Yeah, I just got port scanned.

23:31.420 --> 23:35.140
Port scans, they normally don't happen in OT environments, right?

23:35.140 --> 23:38.180
So that should be something we want to be aware of.

23:38.180 --> 23:39.580
So yeah, tell me.

23:41.100 --> 23:43.480
And so this is what it looks like on the back end, right?

23:43.480 --> 23:46.740
I get pinged, four pings, that's from a Windows machine, right?

23:46.740 --> 23:50.420
And then it's like, oh, you might have got port scans, probably what's in there.

23:52.140 --> 23:54.360
And that's just a start, right?

23:54.460 --> 23:56.900
So then, like, okay, great.

23:57.960 --> 24:00.440
Let's go ahead and we have 502.

24:00.440 --> 24:03.900
So let's actually make it look like an actual PLC.

24:03.940 --> 24:08.820
And now PLCs actually store information in what they call coils and registers.

24:08.820 --> 24:12.280
So coils store zeros and ones, so binary, right?

24:12.280 --> 24:17.660
And then registers store values of 0 through 65,535.

24:17.660 --> 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?

24:31.880 --> 24:34.160
It's, it's as simple as that, believe it or not.

24:34.160 --> 24:38.040
And a lot of environments, you can connect to the machine and turn that one to a zero.

24:38.040 --> 24:38.940
And guess what?

24:39.320 --> 24:40.820
You actually turn it off.

24:40.840 --> 24:43.600
It is literally that easy a lot of times.

24:44.520 --> 24:49.220
So in this case, we actually then go and create this honeypot.

24:49.760 --> 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.

24:59.800 --> 25:04.680
And then it's actually looking for those different commands.

25:04.680 --> 25:09.820
So here you can read it, and it sends you all those values to see all the zeros and ones.

25:09.840 --> 25:14.060
And then it also sends all the register values.

25:14.840 --> 25:17.900
And then it even allows you to write them.

25:18.080 --> 25:23.660
So if somebody is trying to write to your PLC, yeah, you have an attacker in the environment, right?

25:23.660 --> 25:24.920
100% fidelity.

25:24.920 --> 25:26.740
That's why we love honeypots.

25:27.000 --> 25:28.140
No case about it.

25:28.140 --> 25:32.620
So you don't have to spend $50,000 for an ICS honeypot.

25:32.620 --> 25:36.660
You can write one with chat GPT in 30 seconds or less.

25:37.380 --> 25:39.380
So there's a lot of possibilities.

25:39.380 --> 25:42.620
And that's really why I wanted to put the presentation together.

25:42.620 --> 25:46.660
And really just want to say thank you for everybody for coming.

25:46.660 --> 25:48.640
So I have a couple links at the end.

25:48.640 --> 25:50.960
You can see this is a much longer talk.

25:52.680 --> 25:54.440
We'll eventually get there.

25:56.800 --> 25:58.160
And there's the links.

25:58.160 --> 25:59.020
So thank you again.

25:59.020 --> 25:59.500
I appreciate it.

25:59.500 --> 26:01.220
I'll be around if there's any questions.

26:01.220 --> 26:03.460
And then come see us at the ICS Village.

