1 00:00:00,000 --> 00:00:03,820 Thanks for coming out for a nice and cool DEF CON, right? 2 00:00:03,820 --> 00:00:05,260 It's so nice outside. 3 00:00:05,460 --> 00:00:07,180 But to kick things off right away, who am I? 4 00:00:07,180 --> 00:00:08,060 So I'm Joe Slowik. 5 00:00:08,060 --> 00:00:08,840 What do I do? 6 00:00:08,840 --> 00:00:15,460 Currently, I work threat intelligence for Dragos, industrial control system focused cybersecurity company, in case you haven't heard of it. 7 00:00:15,900 --> 00: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. 8 00:00:22,560 --> 00:00:24,120 Some were interesting, some were not. 9 00:00:24,120 --> 00: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. 10 00:00:33,680 --> 00: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. 11 00:00:38,920 --> 00:00:43,380 Main thing we want to talk about today are, you know, what are some major ICS attacks? 12 00:00:43,380 --> 00:00:44,440 What could we learn from those? 13 00:00:44,440 --> 00: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. 14 00:00:59,400 --> 00:01:04,940 So looking at ICS events, there's really not all that many that are publicly disclosed or identified. 15 00:01:04,940 --> 00:01:08,540 So we've certainly have seen some rather headline grabbing events in the last few years. 16 00:01:08,540 --> 00: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. 17 00:01:19,560 --> 00:01:21,680 We can talk about that after this if you'd like. 18 00:01:21,760 --> 00: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. 19 00:01:27,240 --> 00:01:33,340 Uh, and then Trisys, which was, uh, fairly recent, September, um, August of last year, 2017. 20 00:01:33,580 --> 00: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. 21 00:01:40,440 --> 00:01:44,320 Uh, there was the still mysterious German steel mill event of 2014. 22 00:01:44,320 --> 00:01:46,760 If anyone has more info on that, please talk to me. 23 00:01:46,860 --> 00:01:52,040 And, uh, you know, then moving into, again, the events I just talked about with Trisys and crash override. 24 00:01:52,100 --> 00:01:54,920 And only a couple of things that have genuinely been disruptive. 25 00:01:54,920 --> 00:01:57,400 Stuxnet, crash override, and Trisys. 26 00:01:57,400 --> 00:01:59,880 So we're not talking about a very large sample size. 27 00:01:59,880 --> 00: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. 28 00:02:11,880 --> 00:02:17,180 Uh, but there's just not that many events to start designing detections around and take lessons from. 29 00:02:17,640 --> 00:02:24,520 So, you know, if we're looking to design defense in ICS environments, what's our corpus of data? 30 00:02:24,520 --> 00: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? 31 00:02:30,020 --> 00: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. 32 00:02:39,320 --> 00: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. 33 00:02:47,560 --> 00: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, 34 00:02:59,240 --> 00:03:00,000 I hope . 35 00:03:00,180 --> 00: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 . 36 00:03:10,000 --> 00: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. 37 00:03:18,140 --> 00: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. 38 00:03:25,860 --> 00: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. 39 00:03:31,640 --> 00: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. 40 00:03:38,980 --> 00: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. 41 00:03:48,980 --> 00:03:51,340 Very much designed for the target in question. 42 00:03:51,460 --> 00: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. 43 00:04:03,400 --> 00:04:05,500 It's not relevant to defending your network. 44 00:04:05,760 --> 00: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, 45 00:04:18,140 --> 00: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. 46 00:04:29,440 --> 00: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, 47 00:04:44,540 --> 00:04:46,740 especially for a control system environment. 48 00:04:48,780 --> 00: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? 49 00:04:57,540 --> 00: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. 50 00:05:10,220 --> 00: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, 51 00:05:27,940 --> 00:05:31,100 you know, complete visibility and host-based logging and whatnot. 52 00:05:31,540 --> 00:05:34,860 So let's, what are the trends that we're seeing in terms of IT-based attacks? 53 00:05:34,860 --> 00: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. 54 00:05:42,180 --> 00:05:47,080 But, you know, really a return to that wormable sort of malware over the last year or so . 55 00:05:47,120 --> 00:05:50,600 Uh, really seeing a re-emphasis on credential capture and reuse. 56 00:05:50,600 --> 00: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 . 57 00:05:59,760 --> 00: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. 58 00:06:09,420 --> 00: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. 59 00:06:19,340 --> 00: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. 60 00:06:30,160 --> 00: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. 61 00:06:39,660 --> 00: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. 62 00:06:54,980 --> 00:06:57,780 So it's relatively low skill in a way. 63 00:06:57,780 --> 00: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. 64 00:07:03,480 --> 00: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. 65 00:07:11,580 --> 00: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. 66 00:07:17,460 --> 00:07:20,680 Then we moved to WannaCry, we had, you know, the SMB exploit. 67 00:07:20,680 --> 00: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. 68 00:07:28,300 --> 00: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. 69 00:07:46,840 --> 00: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. 70 00:08:02,020 --> 00: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, 71 00:08:18,040 --> 00: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, 72 00:08:35,420 --> 00:08:37,880 you know, worm its way into the network and spread. 73 00:08:38,220 --> 00:08:40,900 That leads us to our next topic, living off the land. 74 00:08:40,900 --> 00: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, 75 00:08:53,400 --> 00:08:58,160 as well as administrator-centric scripting languages, PowerShell, WMI. 76 00:08:58,220 --> 00: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. 77 00:09:11,680 --> 00:09:13,080 Finally , wiper malware. 78 00:09:13,080 --> 00:09:15,080 This is like asshole stuff right here. 79 00:09:15,080 --> 00:09:21,960 You know, now we're talking about destructive stuff that's designed to wipe or otherwise, you know, render systems unusable . 80 00:09:21,960 --> 00:09:26,780 You know, examples being the Shamoon attacks, the Sony Pictures event, what else did I list there? 81 00:09:26,780 --> 00:09:27,360 Yeah. 82 00:09:27,360 --> 00:09:29,920 And Olympic Destroyer was also a wiper as well. 83 00:09:29,920 --> 00:09:31,740 So I'm having a screen resolution issue. 84 00:09:31,740 --> 00:09:33,100 So no worries there. 85 00:09:33,660 --> 00: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 . 86 00:09:41,140 --> 00: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, 87 00:09:56,680 --> 00: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. 88 00:10:06,660 --> 00:10:11,140 So what we really want to do, you know, the specifics of some of these commodity things aren't relevant. 89 00:10:11,140 --> 00:10:13,380 I mean, I'm not a very big IOC fan. 90 00:10:13,380 --> 00:10:16,100 I blog about that and then people yell at me on Twitter or whatever. 91 00:10:16,100 --> 00:10:20,500 But, you know, I'm very much more focused on, you know, how are these things fundamentally operating? 92 00:10:20,700 --> 00: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. 93 00:10:35,820 --> 00: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. 94 00:10:45,720 --> 00: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. 95 00:10:56,620 --> 00: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. 96 00:11:04,280 --> 00:11:05,940 That's not terribly useful. 97 00:11:05,960 --> 00: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. 98 00:11:12,780 --> 00: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. 99 00:11:25,040 --> 00:11:28,340 So really what we're trying to do is, you know, Venn diagrams are awesome, aren't they? 100 00:11:28,340 --> 00: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. 101 00:11:37,520 --> 00: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. 102 00:11:52,320 --> 00: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. 103 00:12:01,640 --> 00:12:05,480 So in ICS, you know, worms, I think, are a big frickin deal. 104 00:12:05,540 --> 00: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. 105 00:12:16,020 --> 00: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. 106 00:12:33,280 --> 00:12:34,560 That's a scary day. 107 00:12:34,640 --> 00:12:35,980 I'm glad no one's done that yet. 108 00:12:35,980 --> 00:12:39,520 Please don't take this idea and run with it and execute that because that would not be cool. 109 00:12:40,080 --> 00: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. 110 00:12:51,040 --> 00: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. 111 00:12:59,480 --> 00:13:04,440 I don't need to exploit anything in that one lowers my signature threshold. 112 00:13:04,440 --> 00: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, 113 00:13:17,060 --> 00: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. 114 00:13:22,420 --> 00: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. 115 00:13:30,700 --> 00: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, 116 00:13:42,160 --> 00:13:42,800 what else do I need? 117 00:13:42,800 --> 00:13:47,140 I can run crap in memory and just copy, good to go. 118 00:13:47,660 --> 00: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. 119 00:13:58,900 --> 00: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. 120 00:14:04,300 --> 00: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, 121 00:14:19,500 --> 00:14:24,380 an operator needs to get control over implants or they need to design implants with some sort of logic. 122 00:14:24,520 --> 00: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. 123 00:14:42,220 --> 00: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, 124 00:14:59,700 --> 00: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. 125 00:15:15,640 --> 00:15:19,360 So, things that we could look for, you know, pursue those adversary goals. 126 00:15:19,360 --> 00:15:24,100 What is it that the attacker needs to do to achieve things, target those, and move on? 127 00:15:24,100 --> 00:15:28,260 You know, looking for attackers trying to abuse legitimate commands, etc. 128 00:15:28,260 --> 00: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, 129 00:15:45,320 --> 00:15:48,840 and then building up the visibility to actually be able to track these sorts of things. 130 00:15:49,180 --> 00:15:54,460 So , what we want to do is, you know, you identify a fundamental behavior, you know, adversaries need command and control . 131 00:15:54,460 --> 00: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. 132 00:16:01,980 --> 00:16:04,820 So, like , that fundamental idea of C2 is necessary. 133 00:16:04,820 --> 00:16:09,100 Well, how are different ways of implementing that possible? 134 00:16:09,100 --> 00:16:10,800 You know, what does DNS tunneling look like? 135 00:16:10,800 --> 00:16:17,600 What does a, you know, anomalous, hate that word, uh, HTTP connection coming out of the network look like? 136 00:16:17,600 --> 00: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? 137 00:16:22,400 --> 00: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. 138 00:16:30,920 --> 00: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, 139 00:16:47,140 --> 00:16:49,380 you know, focusing at that observable stage. 140 00:16:49,700 --> 00: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? 141 00:17:04,220 --> 00:17:05,000 I'm sorry. 142 00:17:05,040 --> 00:17:09,840 Uh, and then build out means of detecting these things as they move along the line. 143 00:17:09,880 --> 00:17:13,600 So for an example, with credential theft, uh, credential theft and reuse happens. 144 00:17:13,600 --> 00:17:14,480 Well, how does it happen? 145 00:17:14,480 --> 00:17:19,220 So there's both the, you know, minicats dumping LSAS memory in order to achieve it. 146 00:17:19,220 --> 00:17:20,500 What does that look like? 147 00:17:20,560 --> 00:17:23,900 Well, yeah. 148 00:17:24,840 --> 00:17:28,020 Posted network visibility are important items in terms of answering this. 149 00:17:28,020 --> 00: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? 150 00:17:33,940 --> 00:17:38,560 And then how do I then build out an appropriate security response in order to defeat it? 151 00:17:39,300 --> 00:17:41,740 So the thing is, is that do not alert on minicats. 152 00:17:41,740 --> 00: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. 153 00:17:49,760 --> 00:17:53,500 Although interesting enough, some advanced ones have done this in environments that I'm familiar with. 154 00:17:53,660 --> 00:17:58,100 Uh, but really the main idea is to focus on, well, what does minicats allow you to do? 155 00:17:58,100 --> 00: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. 156 00:18:13,340 --> 00:18:16,680 So to talk about a concrete example of this, let's talk about crash override. 157 00:18:16,680 --> 00:18:17,880 Why talk about crash override? 158 00:18:17,880 --> 00:18:22,180 Well, because I worked on that a lot and so I can talk about it to a certain level of detail. 159 00:18:22,180 --> 00:18:24,880 It's also a pretty important attack in the ICS space. 160 00:18:25,200 --> 00: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. 161 00:18:34,460 --> 00:18:35,240 What's that sound like? 162 00:18:35,240 --> 00: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. 163 00:18:43,960 --> 00: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. 164 00:18:58,340 --> 00:19:02,220 So building up stuff around here lets you start catching this sort of activity. 165 00:19:03,200 --> 00: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. 166 00:19:17,280 --> 00: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. 167 00:19:25,120 --> 00:19:27,300 That's a pretty easy damn signature, actually. 168 00:19:27,320 --> 00: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. 169 00:19:32,680 --> 00:19:38,200 So really mapping on right to those same trends that we identified in terms of more general ICS attacks. 170 00:19:38,660 --> 00: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. 171 00:19:47,340 --> 00: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. 172 00:20:01,100 --> 00: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. 173 00:20:05,760 --> 00:20:11,440 So for an example, here's an ugly ass script that was used by the adversary Electrum within this environment. 174 00:20:11,620 --> 00: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. 175 00:20:20,580 --> 00:20:22,120 You know, what's the so what there? 176 00:20:22,120 --> 00:20:25,620 Among other things, you know, there's no obfuscation whatsoever going on in here. 177 00:20:25,620 --> 00: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? 178 00:20:31,840 --> 00: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. 179 00:20:39,500 --> 00: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. 180 00:20:51,000 --> 00:20:54,440 So we've seen an overlap with some of these same general TTPs we talked about. 181 00:20:54,440 --> 00: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. 182 00:21:09,080 --> 00: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. 183 00:21:22,200 --> 00: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. 184 00:21:30,160 --> 00:21:32,120 How do you identify when that's taking place? 185 00:21:32,120 --> 00:21:35,340 How do you identify that living off the lands tech taking place? 186 00:21:35,340 --> 00:21:38,140 But once you do that, and I'm sorry, we have a short timeframe here. 187 00:21:38,140 --> 00:21:40,420 So we're not going to get too much into the weeds on that. 188 00:21:40,420 --> 00: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. 189 00:21:57,440 --> 00: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, 190 00:22:14,300 --> 00:22:19,260 a lot of their operations, credential capture and reuse and using a lot of scripts and system commands. 191 00:22:19,260 --> 00:22:23,060 Same thing looking at the Zenotime adversary responsible for Trisys or Triton. 192 00:22:23,080 --> 00: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. 193 00:22:31,340 --> 00: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, 194 00:22:44,120 --> 00:22:46,020 you know, the IT landscape. 195 00:22:46,660 --> 00: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, 196 00:23:03,540 --> 00:23:05,860 you know, very fundamental overlap in TTP. 197 00:23:06,700 --> 00:23:08,120 Worms are another example. 198 00:23:08,120 --> 00: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. 199 00:23:16,320 --> 00:23:17,820 Again, Stuxnet, Drink. 200 00:23:18,600 --> 00: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. 201 00:23:31,240 --> 00: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. 202 00:23:40,100 --> 00:23:44,320 So, so far again, the only ICS targeting worm is Stuxnet, but others have had ICS impacts. 203 00:23:44,320 --> 00: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. 204 00:23:56,180 --> 00:24:00,840 And as any ICS professional can tell you, just saying, well, apply the patch for MS1710. 205 00:24:00,840 --> 00: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. 206 00:24:12,600 --> 00:24:16,520 So there's a lot of dependencies here and just saying, apply the patch is not a good answer. 207 00:24:17,140 --> 00: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. 208 00:24:23,080 --> 00: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. 209 00:24:31,880 --> 00: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. 210 00:24:38,180 --> 00: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. 211 00:24:44,940 --> 00:24:48,460 Mirai, okay, a bunch of hardcoded passwords for internet of shit things. 212 00:24:48,460 --> 00:24:53,560 But then seeing the weaponization of MS1710, very effective, still going to be effective for the future. 213 00:24:53,560 --> 00:25:00,080 But then adversaries start getting a little savvier and start doing that integrated credential capture and replay to facilitate propagation. 214 00:25:00,220 --> 00: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. 215 00:25:11,280 --> 00:25:14,420 And finally, a shift to wipers at the end, this is the asshole move. 216 00:25:14,420 --> 00: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. 217 00:25:27,860 --> 00:25:33,060 In an ICS environment, that's a very bad day, unless you are backing up all your project files offline, etc. 218 00:25:33,160 --> 00:25:36,920 That's going to ruin you very fast and make your network quite untenable to operate. 219 00:25:37,380 --> 00: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. 220 00:25:44,600 --> 00: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. 221 00:25:55,100 --> 00: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. 222 00:26:04,980 --> 00:26:07,640 So really, what you can do is like Stuxnet for dummies. 223 00:26:08,620 --> 00: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. 224 00:26:17,840 --> 00:26:19,360 Yet, that's kind of where we are. 225 00:26:19,360 --> 00: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. 226 00:26:34,640 --> 00:26:37,460 So in building defense, you know, how do we want to do this? 227 00:26:37,460 --> 00:26:40,100 Well, what's one of the fundamentals behind how this attack executes? 228 00:26:40,100 --> 00:26:41,260 Well, it has to spread. 229 00:26:41,580 --> 00:26:45,420 So looking at how things can spread within your network, do you have network choke points? 230 00:26:45,460 --> 00:26:49,140 Does your network look like the top of this podium in terms of how flat it is? 231 00:26:49,140 --> 00: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. 232 00:26:56,760 --> 00: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. 233 00:27:12,500 --> 00:27:14,120 And then reducing that attack surface. 234 00:27:14,120 --> 00: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, 235 00:27:27,700 --> 00:27:30,440 making sure that guy's patched, probably a good idea. 236 00:27:30,440 --> 00: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. 237 00:27:43,740 --> 00: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. 238 00:27:52,000 --> 00: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. 239 00:27:57,960 --> 00: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. 240 00:28:05,520 --> 00: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. 241 00:28:20,940 --> 00:28:29,100 So really, again, taking advantage of what ideas are afforded by these general IT attack trends to improve ICS based defense. 242 00:28:29,380 --> 00: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. 243 00:28:43,880 --> 00: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. 244 00:28:57,440 --> 00: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. 245 00:29:14,780 --> 00: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. 246 00:29:27,620 --> 00: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, 247 00:29:38,840 --> 00:29:40,260 which hopefully they didn't. 248 00:29:40,260 --> 00: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. 249 00:29:49,960 --> 00: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. 250 00:29:57,720 --> 00:30:00,340 And if you're lucky, you get them here. 251 00:30:00,360 --> 00: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. 252 00:30:06,380 --> 00: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, 253 00:30:18,260 --> 00:30:23,220 again, sorry, defender here, really drives home the point that defense is doable within these environments. 254 00:30:23,520 --> 00:30:24,480 So that's all I've got. 255 00:30:24,740 --> 00:30:26,540 And now we've got a fast question. 256 00:30:40,640 --> 00:30:42,100 I don't know. 257 00:30:42,160 --> 00:30:43,400 I wish I did. 258 00:30:45,280 --> 00: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. 259 00:30:50,920 --> 00:30:54,020 So we're still poking at that one and hoping to answer that question someday. 260 00:30:54,020 --> 00:30:56,060 But unfortunately, I don't have an answer for you right now. 261 00:31:18,220 --> 00:31:20,280 Yes, that's a good question. 262 00:31:20,280 --> 00:31:22,200 And that's again goes to my scary scenario. 263 00:31:22,200 --> 00: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. 264 00:31:29,720 --> 00:31:31,260 And boom, you build an exploit. 265 00:31:31,260 --> 00: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. 266 00:31:38,060 --> 00: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, 267 00:31:54,360 --> 00:31:57,580 IEC 61850, which well, no, that's a bad example. 268 00:31:57,580 --> 00:32:01,800 IEC 104, crash override example, more prevalent in Europe and the Middle East. 269 00:32:01,800 --> 00: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. 270 00:32:07,080 --> 00:32:10,220 So it is possible, though, like we may, well, we didn't really see it. 271 00:32:10,220 --> 00:32:14,900 And this will be a talk tomorrow, the Modbus capture capability for VPN filter. 272 00:32:14,900 --> 00:32:17,380 People have kind of implemented something along these lines already. 273 00:32:17,380 --> 00:32:18,940 But that's only one example. 274 00:32:18,940 --> 00:32:21,080 And that is allegedly, we'll talk to Mr. 275 00:32:21,080 --> 00:32:28,440 DeSantis tomorrow, state-sponsored sort of activity, so not talking about just any Johnny off the street executing that attack. 276 00:32:28,460 --> 00: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. 277 00:32:34,980 --> 00: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, 278 00:32:49,780 --> 00:32:54,620 in that on top of wiping some files, it also remapped systems in a way to render the system unbootable. 279 00:32:54,620 --> 00:32:57,480 So really using the same sort of behavior, again, behavior based defense. 280 00:32:57,840 --> 00: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. 281 00:33:06,220 --> 00:33:09,800 If it's in a situation where it detects Modbus, I might be in the ICS network. 282 00:33:09,800 --> 00:33:11,860 Let me fire the wiper there because I'm going to do more damage. 283 00:33:11,860 --> 00:33:13,300 Please don't take that idea. 284 00:33:15,140 --> 00: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. 285 00:33:24,780 --> 00:33:26,300 So, yeah, it's evidently possible. 286 00:33:26,300 --> 00:33:28,620 It's just not necessarily the easiest thing to do. 287 00:33:39,250 --> 00:33:40,210 I do. 288 00:33:40,250 --> 00:33:43,250 You know, and that's one thing, like, everyone wants to bemoan the state of ICS security. 289 00:33:43,250 --> 00:33:44,570 Like, oh, the vendors are shit. 290 00:33:44,570 --> 00:33:46,370 The engineers don't want to patch their crop or whatever. 291 00:33:46,370 --> 00:33:48,110 Like, no, I think everyone's taking this serious. 292 00:33:48,190 --> 00: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. 293 00:33:56,530 --> 00:33:58,350 Like, that cost a million dollars. 294 00:33:59,050 --> 00:34:01,050 Right, exactly, which is the issue. 295 00:34:01,050 --> 00: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, 296 00:34:14,590 --> 00:34:19,030 you know, MS-867 or whatever for the next 20 years, and I'm not ripping them out anytime soon. 297 00:34:19,090 --> 00:34:22,970 But I've got these HMIs and EWs that are sitting a little further upstream. 298 00:34:22,990 --> 00: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. 299 00:34:34,980 --> 00:34:35,700 Yes. 300 00:34:36,820 --> 00:34:39,780 No, unless you're nuclear power, there is no air gap. 301 00:34:39,780 --> 00:34:41,640 Sorry, that ship sailed a long time ago. 302 00:34:42,740 --> 00:34:44,460 Yeah, I mean, just that's a fact of life. 303 00:34:44,460 --> 00:34:45,780 Look at vendor documentation. 304 00:34:45,780 --> 00:34:46,480 You want updates? 305 00:34:46,480 --> 00:34:47,760 Well, you have to have network connectivity. 306 00:34:47,760 --> 00:34:48,360 Sorry. 307 00:34:48,720 --> 00:34:49,460 And you know what? 308 00:34:49,460 --> 00: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. 309 00:35:00,320 --> 00:35:05,480 You know, links from data historians to business process servers or systems within the IT network. 310 00:35:05,600 --> 00:35:09,860 You know, I like having accurate electric bills or, you know, being able to actually measure my processor and whatnot. 311 00:35:09,860 --> 00:35:11,880 So, yeah, these things are here and here to stay. 312 00:35:11,880 --> 00: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. 313 00:35:17,300 --> 00:35:21,480 You know, identify that that is no longer the case, and how do we actually go about defending it then? 314 00:35:23,980 --> 00:35:24,560 All right. 315 00:35:24,720 --> 00:35:25,780 It's hot in here. 316 00:35:25,940 --> 00:35:27,680 So, yeah. 317 00:35:27,760 --> 00:35:29,000 Thanks, everyone, for showing up.