WEBVTT

00:00.000 --> 00:03.820
Thanks for coming out for a nice and cool DEF CON, right?

00:03.820 --> 00:05.260
It's so nice outside.

00:05.460 --> 00:07.180
But to kick things off right away, who am I?

00:07.180 --> 00:08.060
So I'm Joe Slowik.

00:08.060 --> 00:08.840
What do I do?

00:08.840 --> 00:15.460
Currently, I work threat intelligence for Dragos, industrial control system focused cybersecurity company, in case you haven't heard of it.

00:15.900 --> 00:22.140
Prior to that, though, I was running incident response at Los Alamos National Laboratory, was in the Navy, did some things there.

00:22.560 --> 00:24.120
Some were interesting, some were not.

00:24.120 --> 00:33.620
And I was actually a philosophy graduate student dropout at the University of Chicago before I got involved in anything relating to computers, like the most I did before, maybe the Navy was game.

00:33.680 --> 00:38.640
So yeah, I've kind of took an interesting, well, we've all taken interesting paths to this field, but enough about me.

00:38.920 --> 00:43.380
Main thing we want to talk about today are, you know, what are some major ICS attacks?

00:43.380 --> 00:44.440
What could we learn from those?

00:44.440 --> 00:58.780
But also look at those in the context of a surge and sort of minor IT based events and look for the overlap and behaviors between these two and how do we can start designing defense in light of what we've observed from the sort of smaller things that are bubbling up.

00:59.400 --> 01:04.940
So looking at ICS events, there's really not all that many that are publicly disclosed or identified.

01:04.940 --> 01:08.540
So we've certainly have seen some rather headline grabbing events in the last few years.

01:08.540 --> 01:19.560
But, you know, in terms of ICS focused malware, you have Stuxnet, Drink, Havocs, Black Energy 2 and 3, although Black Energy 3 really isn't ICS based, it was just used for an ICS attack.

01:19.560 --> 01:21.680
We can talk about that after this if you'd like.

01:21.760 --> 01:27.180
Uh, the crash override framework, which I was, had the pleasure of being here last year to talk about that with the guys from ESET.

01:27.240 --> 01:33.340
Uh, and then Trisys, which was, uh, fairly recent, September, um, August of last year, 2017.

01:33.580 --> 01:40.280
But then looking at this, and we have a few other disruptive attacks, you know, the malware maps to certain things, like we know what happened, what has happened in Ukraine.

01:40.440 --> 01:44.320
Uh, there was the still mysterious German steel mill event of 2014.

01:44.320 --> 01:46.760
If anyone has more info on that, please talk to me.

01:46.860 --> 01:52.040
And, uh, you know, then moving into, again, the events I just talked about with Trisys and crash override.

01:52.100 --> 01:54.920
And only a couple of things that have genuinely been disruptive.

01:54.920 --> 01:57.400
Stuxnet, crash override, and Trisys.

01:57.400 --> 01:59.880
So we're not talking about a very large sample size.

01:59.880 --> 02:11.780
And again, emphasizing known, um, you know, if you happen to be a three letter agency person with little, lots of, you know, words and letters or whatever after your name, maybe you can speak to some others, just not here.

02:11.880 --> 02:17.180
Uh, but there's just not that many events to start designing detections around and take lessons from.

02:17.640 --> 02:24.520
So, you know, if we're looking to design defense in ICS environments, what's our corpus of data?

02:24.520 --> 02:30.020
What is our, uh, ability in order to start reading into this so that we can start building out a defensive framework?

02:30.020 --> 02:39.220
Well, we just don't have enough, you know, items within the ICS space to really use those as, at least our exclusive set of building blocks for how to arrange defense.

02:39.320 --> 02:47.560
Furthermore, if you're taking a very traditional IOC approach to defense, you're just gonna find yourself in a bad spot quite quickly because we don't have a very large set of IOCs.

02:47.560 --> 02:59.240
We have, you know, maybe a couple dozen hashes, uh, you know, IP addresses and stuff like that might be somewhat relevant depending on the environment, but we're talking about, you know, presumably a controlled network that's not hooked up to the internet,

02:59.240 --> 03:00.000
I hope .

03:00.180 --> 03:09.860
Um, so instead of focusing on these IOCs, why don't we look at methodologies instead to look at how adversaries fundamentally have to behave and start building out defense in that respect .

03:10.000 --> 03:18.140
You know, furthermore, looking at the attacks in question , you know, especially when we're talking about the disruptive things, they're very specific to what they were designed to disrupt.

03:18.140 --> 03:25.860
You know, Stuxnet, if you weren't running a enrichment facility in Central Asia-ish or whatever, you really didn't have to worry about it.

03:25.860 --> 03:31.400
It might have spread to your system, but the way it was designed, it was really only looking for a very specific environment to trigger its payload.

03:31.640 --> 03:38.980
Uh, crash override was kind of modular, but at the same time, you really needed to build up the capabilities in question in order to deliver the effect on target.

03:38.980 --> 03:48.980
And then Trisys was very specific, like if you're not running the exact piece of equipment with the exact processor set and the exact firmware set that it was built to, you really don't need to worry about it.

03:48.980 --> 03:51.340
Very much designed for the target in question.

03:51.460 --> 04:03.400
So again, if you're trying to build defense off of these, using the IOCs from Trisys is useless, because unless you're running that very specific piece of equipment, which some people may, uh, it's not germane to your, your interests.

04:03.400 --> 04:05.500
It's not relevant to defending your network.

04:05.760 --> 04:18.140
So what we've really seen when it comes to, and you know, not to cast dispersion on other researchers and, and whatnot, but when it comes to talks like this or going to Black Hat and other big events, and we look at things across the ICS cyber kill chain,

04:18.140 --> 04:29.100
I'm sorry, you know, we really see things focusing on just that final stage that, you know, execute attack, what's that disruptive, destructive event, but we leave out all of these other things.

04:29.440 --> 04:44.540
So what we really want to do is because past events aren't all that sufficient to start designing a more robust defensive framework, because we want to, you know, look for other ways of going about this to see what it is that we're missing and how we can move forward to build something more robust,

04:44.540 --> 04:46.740
especially for a control system environment.

04:48.780 --> 04:57.540
So while we've talked about, you know, the scope and scale of ICS events, where do we get this larger corpus of data then to start building stuff up?

04:57.540 --> 05:10.000
Well, really we can just look at general IT infections because, you know, buzzword here, IT OT convergence means that a lot of your classic IT vulnerabilities and threat surface has been migrated into the operational environment.

05:10.220 --> 05:27.940
You know, aside from marketing buzz talk around that, you know, from a security perspective, that's pretty damn important because it means that a lot of the lessons and a lot of the things that we're seeing in IT environments get moved into the ICS environment and are just as effective there and perhaps even more so because we're dealing with environments that don't have or are not amenable to the fancy EDR solutions or,

05:27.940 --> 05:31.100
you know, complete visibility and host-based logging and whatnot.

05:31.540 --> 05:34.860
So let's, what are the trends that we're seeing in terms of IT-based attacks?

05:34.860 --> 05:42.180
Well, we're seeing the rise again of the worms, you know, for those who are maybe a little, this looks like a good audience, everyone knows what conficker is, et cetera.

05:42.180 --> 05:47.080
But, you know, really a return to that wormable sort of malware over the last year or so .

05:47.120 --> 05:50.600
Uh, really seeing a re-emphasis on credential capture and reuse.

05:50.600 --> 05:59.760
Uh, use of living off the land techniques and running scripts in memory, leveraging native windows and operating system, uh, technologies in order to execute attacks .

05:59.760 --> 06:08.700
And then the unfortunate continued use of wiper malware either as the end destructive event in question or as a means of cleaning up one's tracks at the end of an infection event.

06:09.420 --> 06:19.340
So in terms of worms, you know, WannaCry, uh, I don't, Marcus isn't in here because we're not that important but, uh, so WannaCry about a year ago, um, you know, everyone was familiar with that.

06:19.340 --> 06:30.060
It was exploit-fueled, which meant that, you know, if you're running SMBV1, it wasn't patched, you had a bad day if anything that you had was touching the internet back in June-ish of last year.

06:30.160 --> 06:39.640
But what was interesting is that while that is still a problem, you can ask, uh, TSMC, the Taiwanese chip manufacturer who had an issue that they are attributing to WannaCry just this past weekend.

06:39.660 --> 06:54.980
Uh, it's still an issue, but we've seen an evolution in how these worms work when we went to NotPetya, BadRabbit, Olympic Destroyer, and migrating away from just exploits and instead building in things like Mimikatz to harvest credentials on the fly and then use those to propagate.

06:54.980 --> 06:57.780
So it's relatively low skill in a way.

06:57.780 --> 07:03.480
I mean, you have to design the software, but once you've done that and deployed it, it's pretty much fire and forget and let things take their course.

07:03.480 --> 07:11.580
So looking at the evolution of worms, I didn't mention this originally because it's, you know, Mirai, it's important, it's a worm, used a hard-coded set of credentials to spread.

07:11.580 --> 07:17.460
Really more Internet-of-shit focused than anything else, so not that big of a deal when it comes to ICS environments.

07:17.460 --> 07:20.680
Then we moved to WannaCry, we had, you know, the SMB exploit.

07:20.680 --> 07:28.200
That was pretty nasty and it's still gonna be nasty in industrial environments for probably the next 10 years as equipment ages off and gets replaced and whatnot.

07:28.300 --> 07:46.840
But then when we started getting into NotPetya and BadRabbit, we saw exploits paired with credential capture in order to spread until finally we got to OlympicDestroyer, which started out with an initial seed of credentials that were harvested through some preliminary operations and then used on-the-fly capture and reuse to spread quite effectively through the target network.

07:46.840 --> 08:01.540
Now, none of these are industrial-focused, which is good, but almost all of them have had impacts in industrial environments because their very nature has allowed them to take advantage of certain network connections and levels of connectivity to spread into areas where we really don't want these things to be.

08:02.020 --> 08:18.040
So, you know, we're seeing a movement towards that exploit-less migration by harvesting credentials as malware moves throughout the network, dumping things from LSAS and whatnot, and taking advantage of the fact that people still stupidly run as a local administrator all the time,

08:18.040 --> 08:35.420
and avoiding the use of exploits and such, and thus facilitating living off the land either in an automated fashion by continuing to build up the capacity and capability of these worms, or pending that access over that's gained through a wormable exploit to a human operator so that they can take advantage of what this has been able to,

08:35.420 --> 08:37.880
you know, worm its way into the network and spread.

08:38.220 --> 08:40.900
That leads us to our next topic, living off the land.

08:40.900 --> 08:53.400
So, that's a buzzword, I hate it, but, you know, I think I say that and everyone kind of knows what I'm talking about, but if you don't, you know, it's really we're talking about the use of native Windows system commands, some legitimate system administration tools like PS exec,

08:53.400 --> 08:58.160
as well as administrator-centric scripting languages, PowerShell, WMI.

08:58.220 --> 09:10.880
No news to this audience, you know, we know that these things are going on, but that's been a really big shift across, you know, especially our more advanced threat actors of really eschewing malware and going more and more towards trying to blend in with native system activity.

09:11.680 --> 09:13.080
Finally , wiper malware.

09:13.080 --> 09:15.080
This is like asshole stuff right here.

09:15.080 --> 09:21.960
You know, now we're talking about destructive stuff that's designed to wipe or otherwise, you know, render systems unusable .

09:21.960 --> 09:26.780
You know, examples being the Shamoon attacks, the Sony Pictures event, what else did I list there?

09:26.780 --> 09:27.360
Yeah.

09:27.360 --> 09:29.920
And Olympic Destroyer was also a wiper as well.

09:29.920 --> 09:31.740
So I'm having a screen resolution issue.

09:31.740 --> 09:33.100
So no worries there.

09:33.660 --> 09:41.140
But what we've gotten from looking at this is that, okay, these might not, these are certainly not ICS focused sort of attack methodologies .

09:41.140 --> 09:56.680
But if we take a step back and instead of focusing on that very last stage of how these ICS centric attacks are executed , what I've just talked about facilitates everything that goes on prior, whether that's your initial intrusion into the IT network to get into the ICS environment,

09:56.680 --> 10:06.180
as well as the ability to start moving within ICS to identify your final targets and then deliver that bespoke, whatever, destructive payload.

10:06.660 --> 10:11.140
So what we really want to do, you know, the specifics of some of these commodity things aren't relevant.

10:11.140 --> 10:13.380
I mean, I'm not a very big IOC fan.

10:13.380 --> 10:16.100
I blog about that and then people yell at me on Twitter or whatever.

10:16.100 --> 10:20.500
But, you know, I'm very much more focused on, you know, how are these things fundamentally operating?

10:20.700 --> 10:35.560
And so looking at those sort of general underlying trends gives us an idea of how the attack landscape is shifting and how adversaries that are operating within the industrial environments that this audience cares about will execute attacks and what defenders need to do to evolve to meet them.

10:35.820 --> 10:45.720
So expanding the kill chain not only lets us get a view of, you know, things that we can get a better grasp on, it also gives defenders the opportunity to step in and catch these attacks at an earlier stage.

10:45.720 --> 10:56.620
So yes, even if you were able to have a good signature to catch Trisis or Crash Override or Stuxnet, yeah, I mean, but you're catching perhaps the very last stage of a complex attack.

10:56.620 --> 11:04.220
So you might just have averted boom, or you might have been notified and got an email alert about boom 30 minutes before it actually happens and no one's responded to it yet.

11:04.280 --> 11:05.940
That's not terribly useful.

11:05.960 --> 11:12.780
Really, what we want to do is try and, you know, move left of boom, sorry, former military, so I can actually say that, I guess, too.

11:12.780 --> 11:24.960
But, you know, move further left of boom as much as you can so that you can capture and identify these attacks earlier in that kill chain process, which makes and facilitates cleaning these things up and mitigating any damage.

11:25.040 --> 11:28.340
So really what we're trying to do is, you know, Venn diagrams are awesome, aren't they?

11:28.340 --> 11:37.520
But overlapping IT attack trends on what the ICS, you know, threat environment looks like, and really try and focus on that juicy center right there for the threat surface.

11:37.520 --> 11:52.320
Like, that's really where an adversary is going to be operating, where there's an opportunity to go forth and stop those things, especially, again, at an earlier potential stage, but also catch entire categories of attack instead of worrying about very specific intrusion events.

11:52.320 --> 12:01.100
Again, going back to the fact that many of these events in question, when we look at concrete examples, are bespoke in the sense that they're very much tuned to the target environment in question.

12:01.640 --> 12:05.480
So in ICS, you know, worms, I think, are a big frickin deal.

12:05.540 --> 12:15.760
I don't think enough attention has been paid to this, despite the fact that Renault, FedEx, Maersk, TSMC, etc., like lots of companies have had a bad day just from an IT focused worm.

12:16.020 --> 12:33.280
Imagine if you take the same capabilities that were leveraged in, you know, not even leveraged, but unintentionally used in ICS environments, pair that with something that's ICS specific in terms of propagation and spread, and do something Stuxnet like in terms of awareness for the environment that the malware is running into at a payload.

12:33.280 --> 12:34.560
That's a scary day.

12:34.640 --> 12:35.980
I'm glad no one's done that yet.

12:35.980 --> 12:39.520
Please don't take this idea and run with it and execute that because that would not be cool.

12:40.080 --> 12:50.660
But, you know, really, it could be quite effective means of getting into a network burying in quite quickly before defenders might even know that something's going on, and then detonating something further on.

12:51.040 --> 12:59.360
Credential capture is very important as well, because, well, one of the biggest reasons you don't have to use malware, if I can log in as, you know, admin, admin, engineer, engineer, etc.

12:59.480 --> 13:04.440
I don't need to exploit anything in that one lowers my signature threshold.

13:04.440 --> 13:17.060
So even if you're running antivirus in the environment, if I don't have to bring, you know, a piece of malware in to do something, but you can just pivot around through RDP and VPN tunnels, like, okay, that's one less thing to look for, but also allows you to start modeling legitimate activity,

13:17.060 --> 13:22.420
don't have to bring tools into the environment, which is another touch point for defenders, and really makes detection very hard.

13:22.420 --> 13:30.040
So, again, it's, you know, it's something we need to deal with, but it's very much the reality of the now as far as how these attacks are shaping up, at least in their preliminary stages.

13:30.700 --> 13:42.160
Living off the land, again, continues this theme, don't need to bring tools into the environment, I've got all my toolkit right there with me, maybe I bring PS exec into the environment so I can do some remote process execution, but otherwise, I've got PowerShell,

13:42.160 --> 13:42.800
what else do I need?

13:42.800 --> 13:47.140
I can run crap in memory and just copy, good to go.

13:47.660 --> 13:58.280
You know, it really allows adversaries to just get in, stay in, and not really have to do a lot of moving back and forth from adversary-controlled infrastructure to the target network.

13:58.900 --> 14:04.300
So what I'm trying to get at here is we're really looking to build out what I call behavior-based defense.

14:04.300 --> 14:19.500
Targeting the underlying adversary behaviors, targeting what are necessary adversary touch points, you know, you might say that, yes, there are potentially infinite different ways of compiling and creating malware or whatnot to evade signatures, but at the end of the day,

14:19.500 --> 14:24.380
an operator needs to get control over implants or they need to design implants with some sort of logic.

14:24.520 --> 14:42.000
They typically want to have some means of staying within a network, some means of persistence, but looking at those requirements then as means of targeting what behaviors are necessary to achieve these things, start avoiding the specific one-off implementations reflected in an indicator and build a more robust detection and monitoring framework.

14:42.220 --> 14:59.700
So when we're looking about these things, we want to articulate tactics, techniques, and procedures, PTPs, again, I'm a former military, I can say that, and start identifying those underlying attack trends, map those to the necessary adversary behaviors to execute successfully an attack,

14:59.700 --> 15:13.740
and then start building out defensive responses, detection frameworks, and playbooks for response based upon what an adversary just simply has to do in order to be successful, moving away from the final stages of that ICS attack kill chain.

15:15.640 --> 15:19.360
So, things that we could look for, you know, pursue those adversary goals.

15:19.360 --> 15:24.100
What is it that the attacker needs to do to achieve things, target those, and move on?

15:24.100 --> 15:28.260
You know, looking for attackers trying to abuse legitimate commands, etc.

15:28.260 --> 15:45.320
These are not easy problems to answer and I'm not up here to sell a blinky box that's gonna sit in the rack that tells us, and people who do typically are selling a little bit of snake oil, uh, you know, these are difficult things to sort of answer and requires both a commitment on the part of defenders to start building up a profile of what attackers are doing,

15:45.320 --> 15:48.840
and then building up the visibility to actually be able to track these sorts of things.

15:49.180 --> 15:54.460
So , what we want to do is, you know, you identify a fundamental behavior, you know, adversaries need command and control .

15:54.460 --> 16:01.980
C2 is required, unless you're a vulnerable piece of malware , but even then you might need some C2 of some sort for a little bit of control over how that worm might interact.

16:01.980 --> 16:04.820
So, like , that fundamental idea of C2 is necessary.

16:04.820 --> 16:09.100
Well, how are different ways of implementing that possible?

16:09.100 --> 16:10.800
You know, what does DNS tunneling look like?

16:10.800 --> 16:17.600
What does a, you know, anomalous, hate that word, uh, HTTP connection coming out of the network look like?

16:17.600 --> 16:22.400
Look at those ways, those broad-based ways of implementing it, and then what sort of detections can I build around there?

16:22.400 --> 16:30.920
And as far as possible, try to avoid that last stage, because you can have near-infinite instantiations of each of these more general items in terms of concrete observables.

16:30.920 --> 16:47.140
Those will change quite trivially, uh, not as trivially in some cases as possible because people are lazy humans, but, you know, it's really trying to stay at this middle ground here to capture both the fundamental requirements in terms of an attack execution while avoiding the sort of limitations afforded by,

16:47.140 --> 16:49.380
you know, focusing at that observable stage.

16:49.700 --> 17:04.220
So in implementing a behavior-based approach to ICS defense, we really want to identify those behaviors of interest, try and get an idea of the different means of achieving those behavioral objectives, um, you know, determine... is that a notification?

17:04.220 --> 17:05.000
I'm sorry.

17:05.040 --> 17:09.840
Uh, and then build out means of detecting these things as they move along the line.

17:09.880 --> 17:13.600
So for an example, with credential theft, uh, credential theft and reuse happens.

17:13.600 --> 17:14.480
Well, how does it happen?

17:14.480 --> 17:19.220
So there's both the, you know, minicats dumping LSAS memory in order to achieve it.

17:19.220 --> 17:20.500
What does that look like?

17:20.560 --> 17:23.900
Well, yeah.

17:24.840 --> 17:28.020
Posted network visibility are important items in terms of answering this.

17:28.020 --> 17:33.940
So, like, in order to see when these events happen, what sort of visibility, what, uh, information telemetry do I need to track it?

17:33.940 --> 17:38.560
And then how do I then build out an appropriate security response in order to defeat it?

17:39.300 --> 17:41.740
So the thing is, is that do not alert on minicats.

17:41.740 --> 17:49.760
I mean, maybe, like, you know, if someone wants to compile the source code off of GitHub and they're stupid enough to do that, all right, we can alert on that hash to catch the lazy bottom feeding address areas.

17:49.760 --> 17:53.500
Although interesting enough, some advanced ones have done this in environments that I'm familiar with.

17:53.660 --> 17:58.100
Uh, but really the main idea is to focus on, well, what does minicats allow you to do?

17:58.100 --> 18:12.960
How do I start looking at that idea, not just of seeing the initial credential dump, but then how that's actually implemented by looking for logon activity that may be of interest, uh, you know, anomalous, suspicious, or definitely malicious, and start designing my defensive framework around that.

18:13.340 --> 18:16.680
So to talk about a concrete example of this, let's talk about crash override.

18:16.680 --> 18:17.880
Why talk about crash override?

18:17.880 --> 18:22.180
Well, because I worked on that a lot and so I can talk about it to a certain level of detail.

18:22.180 --> 18:24.880
It's also a pretty important attack in the ICS space.

18:25.200 --> 18:34.460
In this case, the attack took place, you know, they had to penetrate the ICS network, establish some sense of some sort of foothold, survey the environment, get a feel what's going on there and then deliver the attack.

18:34.460 --> 18:35.240
What's that sound like?

18:35.240 --> 18:43.960
It sounds like that kill chain thing that we were talking about before, meaning that getting from here to there requires a lot of time, effort and other work in order to really execute it.

18:43.960 --> 18:58.340
So if you're only focusing on this final stage right here, you've just seeded your pen testing friends or your nasty black hat actors all sorts of ground in terms of where they're able to operate fat and happy without you being able to see it.

18:58.340 --> 19:02.220
So building up stuff around here lets you start catching this sort of activity.

19:03.200 --> 19:17.280
The crash override event required a lot of prepositioning to execute and looking at how that prepositioning took place, you know, at least from what we've observed so far and reported mostly privately to this point, what we observed was a lot of credential capture and reuse.

19:17.280 --> 19:25.120
We observed beamy cats in the environment, not just beamy cats, but like beamy cats dumped off the GitHub repo, packed with UPX and then deployed.

19:25.120 --> 19:27.300
That's a pretty easy damn signature, actually.

19:27.320 --> 19:32.680
And then a lot of use of native system commands and tools in order to then facilitate movement of malware throughout the network.

19:32.680 --> 19:38.200
So really mapping on right to those same trends that we identified in terms of more general ICS attacks.

19:38.660 --> 19:47.340
So yeah, we saw a pack copy of beamy cats, PS exec 2.11 in terms of what was used in the environment for remote process execution.

19:47.340 --> 20:01.100
And then a bunch of scripts that could have been pulled from a tech net help page or from, you know, stack overflow in order to facilitate things like system survey, monitoring, verifying that file is removed, and then doing some also remote execution stuff.

20:01.100 --> 20:05.600
So we're not talking about anything that's really advanced here and really mapping right on to what we've talked about so far.

20:05.760 --> 20:11.440
So for an example, here's an ugly ass script that was used by the adversary Electrum within this environment.

20:11.620 --> 20:20.420
On its face, it looks very much like something you'd expect using WMI and W script in order to just do some system profiling if you're trying to get a feel for what's in your environment.

20:20.580 --> 20:22.120
You know, what's the so what there?

20:22.120 --> 20:25.620
Among other things, you know, there's no obfuscation whatsoever going on in here.

20:25.620 --> 20:31.680
So from a visibility standpoint, are you actually monitoring for these things as they pop up within your network to the extent possible?

20:31.840 --> 20:39.500
The example I like to give it, I've given a talk on this previously a few times, is pairing bro for file carving with things like Yara in order to do a deep dive into them.

20:39.500 --> 20:50.620
Well, you can search for script files and then look for these sort of administrator commands identifying system profiling to at least identify when these things are moving around, which could be a good touch point that something a little shady might be going on in the environment.

20:51.000 --> 20:54.440
So we've seen an overlap with some of these same general TTPs we talked about.

20:54.440 --> 21:08.880
And believe it or not, I didn't just like sort of shoehorn this in like, you know, it's kind of like came to me in a dream fueled mostly likely by alcohol or something similar that, you know, hey, like, you know, what we're seeing with these general attacks actually kind of maps right on to what we observed in the crash override event from soup to nuts.

21:09.080 --> 21:21.920
So really looking for, you know, how do we start tracking and identifying these sorts of things to build out some robust defense, because at the end of the day, these adversaries are following the same sort of script and playbook that we're seeing the more lower level attacks use.

21:22.200 --> 21:30.160
So defense against this, you know, really need to build defenses around what we talked about earlier in terms of IT attack trends, you know, credential replay and reuse.

21:30.160 --> 21:32.120
How do you identify when that's taking place?

21:32.120 --> 21:35.340
How do you identify that living off the lands tech taking place?

21:35.340 --> 21:38.140
But once you do that, and I'm sorry, we have a short timeframe here.

21:38.140 --> 21:40.420
So we're not going to get too much into the weeds on that.

21:40.420 --> 21:56.480
But the result of doing that sort of defensive playbook is that you've now not just built up a defense against how the Electrum adversary responsible for crash override operates, you've also covered a lot of other attack pathways as well for other adversaries that are going to try and do roughly the same damn thing.

21:57.440 --> 22:14.200
So we've actually seen this within the ICS environment, looking at some of the events that have taken place over the last year ish, give or take Alanite, which is in the news yet again, when DHS decided to re-release after they re-released news about the Russians in the US electric grid,

22:14.300 --> 22:19.260
a lot of their operations, credential capture and reuse and using a lot of scripts and system commands.

22:19.260 --> 22:23.060
Same thing looking at the Zenotime adversary responsible for Trisys or Triton.

22:23.080 --> 22:31.340
I don't know who sat in on the Black Hat talk on that if you had access to that talk, but you know, unfortunately, they didn't go into the actual preliminary for the attack.

22:31.340 --> 22:44.120
But if you look at how the attack was executed in the environment, again, seeing a lot of the same things, Amecats, using native system tools, maybe a few custom scripts and custom binaries, but overall, really mapping on to how we're observing these attacks play out in,

22:44.120 --> 22:46.020
you know, the IT landscape.

22:46.660 --> 23:03.540
So the impact is, is that when you once you start covering something like credential theft, not only are you defending against a, you know, specific adversary, but you're defending against entire classes of behavior, which means that you get a better opportunity in order to try and identify and defeat multiple different things as a result of that sort of commonality and,

23:03.540 --> 23:05.860
you know, very fundamental overlap in TTP.

23:06.700 --> 23:08.120
Worms are another example.

23:08.120 --> 23:16.320
So wormable infections, as I mentioned earlier, are really scary and worry me because I think they can kick our ass in the ICS environment if someone sufficiently weaponizes it and we've seen it before.

23:16.320 --> 23:17.820
Again, Stuxnet, Drink.

23:18.600 --> 23:31.180
But, you know, that ability to move and burrow within a network with no oversight is truly scary because it allows for that unsupervised migration into the network and potential to deploy a capability with very little human intervention.

23:31.240 --> 23:39.200
And as we've seen with certain ICS impacting but IT focused malware sets, they were quite effective even though they weren't, didn't intend to be so.

23:40.100 --> 23:44.320
So, so far again, the only ICS targeting worm is Stuxnet, but others have had ICS impacts.

23:44.320 --> 23:56.180
And so focusing on how those impacts came about and how those might be changed and weaponized in the future, gives us a good warning for what we need to start doing now, I would say like six months ago, and we're gonna shore up against these things.

23:56.180 --> 24:00.840
And as any ICS professional can tell you, just saying, well, apply the patch for MS1710.

24:00.840 --> 24:12.600
Like, well, I can't necessarily do that everywhere unless I want to void my warranty, or, you know, maybe the vendor doesn't support it yet, or I need SMBV1 because my historian product requires it in order to move data around the network, etc.

24:12.600 --> 24:16.520
So there's a lot of dependencies here and just saying, apply the patch is not a good answer.

24:17.140 --> 24:23.080
And yes, and the result of not a good answer is that you get this happening in this environment, which is not a good day.

24:23.080 --> 24:31.400
I imagine that the poor process engineer in that facility had, I hope he got a beer after that, if nothing else, because it's a pain to deal with.

24:31.880 --> 24:38.180
So we've avoided , as far as trends within worms, is that we've seen first off , the avoidance of exploits as time has moved on.

24:38.180 --> 24:44.860
So we started out like Stuxnet is still the crown jewel or whatever , a couple of Windows Zero days and some other fancy shit, not everyone can do that.

24:44.940 --> 24:48.460
Mirai, okay, a bunch of hardcoded passwords for internet of shit things.

24:48.460 --> 24:53.560
But then seeing the weaponization of MS1710, very effective, still going to be effective for the future.

24:53.560 --> 25:00.080
But then adversaries start getting a little savvier and start doing that integrated credential capture and replay to facilitate propagation.

25:00.220 --> 25:11.280
So using native means within the system, like net use commands, and you know, doing mapping shares to try and copy itself over and avoiding the use of what looks like, you know, obvious malicious code.

25:11.280 --> 25:14.420
And finally, a shift to wipers at the end, this is the asshole move.

25:14.420 --> 25:27.800
So we saw it with NotPetya, we saw it again with Olympic Destroyer, you know, what's the worm doing, get on target, start doing, you know, mucking with the system and make it unbootable or wipe data because you, you know, deployed ransomware that has no decryption key.

25:27.860 --> 25:33.060
In an ICS environment, that's a very bad day, unless you are backing up all your project files offline, etc.

25:33.160 --> 25:36.920
That's going to ruin you very fast and make your network quite untenable to operate.

25:37.380 --> 25:44.560
So the risk to ICS is that you get some self propagating malware introduced to the environment, it finds and traverses an IT ICS link.

25:44.600 --> 25:55.040
That might not sound reasonable, but then again, look at WannaCry, take advantage of some SMB links from historians to business process systems in the IT network and boom, you got WannaCry in the OT environment.

25:55.100 --> 26:03.600
And then if you can just weaponize that by tacking on some sort of ICS specific payload, the step that has not been taken yet, thank goodness, you get a really big problem that crops up.

26:04.980 --> 26:07.640
So really, what you can do is like Stuxnet for dummies.

26:08.620 --> 26:17.660
You know, to think that we've kind of like moved back to what was the most advanced attack yet no one really seemed to like build off of that a little bit is kind of surprising.

26:17.840 --> 26:19.360
Yet, that's kind of where we are.

26:19.360 --> 26:34.420
If you can start taking these sorts of attack pathways and weaponize them in such a fashion that you're not relying on the exploits and add that ICS component, you get a very robust attack that can result in disruption or even potentially destructive destruction if you have a good enough ICS attack developer.

26:34.640 --> 26:37.460
So in building defense, you know, how do we want to do this?

26:37.460 --> 26:40.100
Well, what's one of the fundamentals behind how this attack executes?

26:40.100 --> 26:41.260
Well, it has to spread.

26:41.580 --> 26:45.420
So looking at how things can spread within your network, do you have network choke points?

26:45.460 --> 26:49.140
Does your network look like the top of this podium in terms of how flat it is?

26:49.140 --> 26:56.700
If it does, then you have a problem because if you get a wormable infection on just that one central node or one of them, it's going to propagate everywhere quite quickly.

26:56.760 --> 27:12.500
But if you establish choke points and use those as a means of hardening defense by, you know, building them up as bastion hosts or something along those lines, then you get the ability to stop these sorts of things in their tracks, or at least sort of limit the damage by allowing you to filter to a certain specific endpoint and being able to take action there.

27:12.500 --> 27:14.120
And then reducing that attack surface.

27:14.120 --> 27:27.700
So identifying what those IT ICS traversing links are, locking those down as much as possible, and maybe making sure that they host on the other end of those, you know, whether that's putting in something like a, you know, VPN gateway or some other sort of bastion host,

27:27.700 --> 27:30.440
making sure that guy's patched, probably a good idea.

27:30.440 --> 27:43.120
Finally, you want to increase visibility within the network with worms might not help too much, because it's just going to tell you what happened after the fact, which is actually not trivial, because just being able to say that, hey, we know why this happened is still an important question to answer.

27:43.740 --> 27:51.840
But can inform detection, mitigation, and also recovery by being able to track how an attack was actually executed within the environment.

27:52.000 --> 27:57.960
So the impact is, is that will hopefully get better architecture, you know, you actually have a segmented network, some sane permissions in place, etc.

27:57.960 --> 28:05.520
And you've reduced your attack surface to mitigate other attacks, and you've narrowed the possibilities for interactive intrusion, while you're taking care of that wormable threat.

28:05.520 --> 28:20.940
So by focusing in how these things self propagate, you've now taken care of or at least started to address problems like, you know, RDP use by using captured credentials by a human in the loop, taking advantage of single points of failure in the network in order to start spreading malware willy nilly within the control system network.

28:20.940 --> 28:29.100
So really, again, taking advantage of what ideas are afforded by these general IT attack trends to improve ICS based defense.

28:29.380 --> 28:43.880
So in developing defense, you know, what really we want to, you know, identify those sort of common commodity sorts of attacks and start building up an idea of how these things look within the environment, and then close at the sort of pinnacle with how we're going to start building detections and response around them.

28:43.880 --> 28:56.760
And again, the idea being is that once you start getting up here and developing ways of responding and identifying these, that you're covering a very broad base of potential attacks based upon the identification of fundamental behaviors that adversaries are taking.

28:57.440 --> 29:14.700
So ultimately, and I just got a five minute warning, so we're out of time for questions, is if you look at how attacks play out, and I know this is a sort of an offensive conference, I'm sorry, I'm a, like, blue teamer all the way, that defense really has the advantage when it comes to ICS defense if you're doing this sort of work.

29:14.780 --> 29:27.620
Because when you look at how an adversary has to operate, they've got a lot of steps that they have to succeed in in order to actually execute, what the... there we go, in order to actually execute an IT, an ICS based attack.

29:27.620 --> 29:38.840
They've got to get into the IT network, they've got to figure out how to move from the IT network to get into the control system network, figure out where the hell they are and what's in that control system network if they haven't harvested that from a spreadsheet sitting on the IT network,

29:38.840 --> 29:40.260
which hopefully they didn't.

29:40.260 --> 29:49.960
But even if that step's been accomplished and they already know what they're getting into, you still have to get onto those devices, tunnel into where you can actually start delivering a destructive or destructive payload and deploy it.

29:49.960 --> 29:57.720
That's a lot of touch points that as defenders you can use in order to trigger off of what's going on and thus build out a more robust multi-stage defense.

29:57.720 --> 30:00.340
And if you're lucky, you get them here.

30:00.360 --> 30:05.480
If nothing else, you just want to make sure that your response isn't when you see smoke coming up from one of the machines on the plant floor.

30:06.380 --> 30:18.260
But really by following these steps, I would say that defense legitimately has the advantage and having done maybe things that are more on the attacker side, it's harder than it looks and it's harder than we often make it seem and adopting that approach,

30:18.260 --> 30:23.220
again, sorry, defender here, really drives home the point that defense is doable within these environments.

30:23.520 --> 30:24.480
So that's all I've got.

30:24.740 --> 30:26.540
And now we've got a fast question.

30:40.640 --> 30:42.100
I don't know.

30:42.160 --> 30:43.400
I wish I did.

30:45.280 --> 30:50.920
There's still a lot of details around that attack that either are not public or just simply unknown for various reasons.

30:50.920 --> 30:54.020
So we're still poking at that one and hoping to answer that question someday.

30:54.020 --> 30:56.060
But unfortunately, I don't have an answer for you right now.

31:18.220 --> 31:20.280
Yes, that's a good question.

31:20.280 --> 31:22.200
And that's again goes to my scary scenario.

31:22.200 --> 31:29.720
So I've seen some other talks or whatever, like, oh, building an ICS attack is easy or whatever, you just buy some stuff off eBay and rip some firmware or whatever.

31:29.720 --> 31:31.260
And boom, you build an exploit.

31:31.260 --> 31:38.040
It's not that easy, thank goodness, because again, a lot of the benefit to that is depending on how you're building out an attack and what equipment you're targeting.

31:38.060 --> 31:54.360
The unfortunate diversity in vendors, standards and protocols builds in a unintentional layer of security in that something that's going to say, attack the DMP3 protocol for North American electric operations, could be inapplicable for targeting, say,

31:54.360 --> 31:57.580
IEC 61850, which well, no, that's a bad example.

31:57.580 --> 32:01.800
IEC 104, crash override example, more prevalent in Europe and the Middle East.

32:01.800 --> 32:07.080
So it really depends on what sort of targets you're looking at, what you're actually identifying, and then weaponizing it in that fashion.

32:07.080 --> 32:10.220
So it is possible, though, like we may, well, we didn't really see it.

32:10.220 --> 32:14.900
And this will be a talk tomorrow, the Modbus capture capability for VPN filter.

32:14.900 --> 32:17.380
People have kind of implemented something along these lines already.

32:17.380 --> 32:18.940
But that's only one example.

32:18.940 --> 32:21.080
And that is allegedly, we'll talk to Mr.

32:21.080 --> 32:28.440
DeSantis tomorrow, state-sponsored sort of activity, so not talking about just any Johnny off the street executing that attack.

32:28.460 --> 32:34.820
So in terms of the possibility of developing that, and again, it's going to take time, effort, and resources to build that out, but it's not impossible.

32:34.980 --> 32:49.780
And we've already seen someone getting part of the way there with Olympic Destroyer, because even just the capability that it offered, which was very Windows system focused in terms of, well, what's funny, Olympic Destroyer, the wiper function operated very similar to the wiper function in crash override,

32:49.780 --> 32:54.620
in that on top of wiping some files, it also remapped systems in a way to render the system unbootable.

32:54.620 --> 32:57.480
So really using the same sort of behavior, again, behavior based defense.

32:57.840 --> 33:06.220
But if you ran that in an ICS network and it spreads to Windows machines there, and you can do that by, you know, deploy an implant that sniffs for Modbus traffic on the wire.

33:06.220 --> 33:09.800
If it's in a situation where it detects Modbus, I might be in the ICS network.

33:09.800 --> 33:11.860
Let me fire the wiper there because I'm going to do more damage.

33:11.860 --> 33:13.300
Please don't take that idea.

33:15.140 --> 33:24.780
But anyway, and at that point, you're wiping HMIs and engineering workstations, which, yeah, maybe you haven't caused physical destruction, but you've disabled your plant environment and your engineers can't do their job.

33:24.780 --> 33:26.300
So, yeah, it's evidently possible.

33:26.300 --> 33:28.620
It's just not necessarily the easiest thing to do.

33:39.250 --> 33:40.210
I do.

33:40.250 --> 33:43.250
You know, and that's one thing, like, everyone wants to bemoan the state of ICS security.

33:43.250 --> 33:44.570
Like, oh, the vendors are shit.

33:44.570 --> 33:46.370
The engineers don't want to patch their crop or whatever.

33:46.370 --> 33:48.110
Like, no, I think everyone's taking this serious.

33:48.190 --> 33:56.530
The problem is, is that you're not, like, for the same reason why WannaCry is going to be a problem for the next five, ten years, probably, is that you just don't, like, oh, well, replace that piece of equipment.

33:56.530 --> 33:58.350
Like, that cost a million dollars.

33:59.050 --> 34:01.050
Right, exactly, which is the issue.

34:01.050 --> 34:14.590
So, as a result, we get a really long tail, you know, that we're dragging behind us of legacy equipment with its own sort of problems, which is why, again, building that, you know, layered defensive model is important because, like, yeah, I might have some PLCs or whatever that those are going to be vulnerable to,

34:14.590 --> 34:19.030
you know, MS-867 or whatever for the next 20 years, and I'm not ripping them out anytime soon.

34:19.090 --> 34:22.970
But I've got these HMIs and EWs that are sitting a little further upstream.

34:22.990 --> 34:31.290
I can harden those, though, to make sure that, you know, that lessens the likelihood that someone will be able to take advantage of the weaker equipment at a lower layer of the Purdue model.

34:34.980 --> 34:35.700
Yes.

34:36.820 --> 34:39.780
No, unless you're nuclear power, there is no air gap.

34:39.780 --> 34:41.640
Sorry, that ship sailed a long time ago.

34:42.740 --> 34:44.460
Yeah, I mean, just that's a fact of life.

34:44.460 --> 34:45.780
Look at vendor documentation.

34:45.780 --> 34:46.480
You want updates?

34:46.480 --> 34:47.760
Well, you have to have network connectivity.

34:47.760 --> 34:48.360
Sorry.

34:48.720 --> 34:49.460
And you know what?

34:49.460 --> 35:00.260
We get a lot of efficiencies out of having no air gap in terms of, you know, even something as fundamental, which allowed for WannaCry, you know, the way it was implemented was wrong, but the fact that it's there is sort of good.

35:00.320 --> 35:05.480
You know, links from data historians to business process servers or systems within the IT network.

35:05.600 --> 35:09.860
You know, I like having accurate electric bills or, you know, being able to actually measure my processor and whatnot.

35:09.860 --> 35:11.880
So, yeah, these things are here and here to stay.

35:11.880 --> 35:17.160
So the best thing is, instead of bemoaning, like, oh, my God, if only we could air gap these things, like, eh, pump your brakes, you can't do that.

35:17.300 --> 35:21.480
You know, identify that that is no longer the case, and how do we actually go about defending it then?

35:23.980 --> 35:24.560
All right.

35:24.720 --> 35:25.780
It's hot in here.

35:25.940 --> 35:27.680
So, yeah.

35:27.760 --> 35:29.000
Thanks, everyone, for showing up.

