1 00:00:00,000 --> 00:00:05,980 We're coming out for a nice and cool DEF CON, right? It's so nice outside. But to kick things 2 00:00:05,980 --> 00:00:10,580 off right away, who am I? So I'm Joe Slowik. What do I do? Currently, I work for intelligence for 3 00:00:10,580 --> 00:00:14,720 Dragos, industrial control system focused cybersecurity company, in case you haven't 4 00:00:14,720 --> 00:00:18,880 heard of it. Prior to that, though, I was running incident response at Los Alamos National 5 00:00:18,880 --> 00:00:23,720 Laboratory, was in the Navy, did some things there. Some are interesting, some are not. 6 00:00:23,880 --> 00:00:28,440 And I was actually a philosophy graduate student dropout at the University of Chicago before I 7 00:00:28,440 --> 00:00:32,900 got involved in anything relating to computers, like the most I did before maybe the Navy was 8 00:00:32,900 --> 00:00:37,280 game. So, yeah, kind of took an interesting, well, we've all taken interesting paths to this 9 00:00:37,280 --> 00:00:41,980 field. But enough about me. Main thing we want to talk about today are, you know, what are some 10 00:00:41,980 --> 00:00:46,760 major ICS attacks? What can we learn from those? But also look at those in the context of a surge 11 00:00:46,760 --> 00:00:52,220 in sort of minor IT-based events and look for the overlap in behaviors between these two and 12 00:00:52,220 --> 00:00:57,280 how we can start designing defense in light of what we've observed from the sort of smaller 13 00:00:57,280 --> 00:00:58,420 things that are bubbling up. 14 00:00:58,440 --> 00:01:04,080 So looking at ICS events, there's really not all that many that are publicly disclosed or 15 00:01:04,080 --> 00:01:08,280 identified. So we certainly have seen some rather headline grabbing events in the last few years. 16 00:01:08,440 --> 00:01:14,440 But, you know, in terms of ICS focused malware, you have Stuxnet, Drink, Havex, Black Energy 2 and 17 00:01:14,440 --> 00:01:19,720 3, although Black Energy 3 really isn't ICS based. It was just used for an ICS attack. We can 18 00:01:19,720 --> 00:01:24,100 talk about that after this if you'd like. The Crash Override Framework, which I had the pleasure 19 00:01:24,100 --> 00:01:28,280 of being here last year to talk about that with the guys from ESET. And then Trisis, which 20 00:01:28,280 --> 00:01:35,120 was fairly recent, August of last year, 2017. But then looking at this, we have a few other 21 00:01:35,120 --> 00:01:38,420 disruptive attacks. You know, the malware maps to certain things, like we know what 22 00:01:38,420 --> 00:01:44,580 has happened in Ukraine. There was the still-mysterious German steel mill event of 2014. If anyone 23 00:01:44,580 --> 00:01:49,640 has more info on that, please talk to me. And then moving into, again, the events I 24 00:01:49,640 --> 00:01:53,720 just talked about with Trisis and Crash Override. And only a couple of things that have genuinely 25 00:01:53,720 --> 00:01:58,260 been disruptive. Stuxnet, Crash Override, and Trisis. So we're not talking about, again, 26 00:01:58,280 --> 00:02:04,100 a very large sample size. And again, emphasizing known. You know, if you happen to be a three-letter 27 00:02:04,100 --> 00:02:09,860 agency person with lots of words and letters or whatever after your name, maybe you can 28 00:02:09,860 --> 00:02:14,680 speak to some others. Just not here. But there's just not that many events to start designing 29 00:02:14,680 --> 00:02:21,340 detections around and to take lessons from. So, you know, if we're looking to design defense 30 00:02:21,340 --> 00:02:26,640 in ICS environments, what's our corpus of data? What is our ability in order to start 31 00:02:26,640 --> 00:02:28,120 reading into this so that we can start... 32 00:02:28,280 --> 00:02:32,700 Building out a defensive framework. Well, we just don't have enough, you know, items 33 00:02:32,700 --> 00:02:37,600 within the ICS space to really use those as at least our exclusive set of building blocks 34 00:02:37,600 --> 00:02:41,820 for how to arrange defense. Furthermore, if you're taking a very traditional IOC approach 35 00:02:41,820 --> 00:02:46,220 to defense, you're just going to find yourself in a bad spot quite quickly because we don't 36 00:02:46,220 --> 00:02:50,700 have a very large set of IOCs. We have, you know, maybe a couple dozen hashes, you know, 37 00:02:50,700 --> 00:02:54,800 IP addresses and stuff like that. Might be somewhat relevant depending on the environment. 38 00:02:54,900 --> 00:02:58,260 But we're talking about, you know, presumably a controlled network that's not totally 39 00:02:58,260 --> 00:03:03,000 hooked up to the Internet, I hope. So instead of focusing on these IOCs, why don't we look 40 00:03:03,000 --> 00:03:07,720 at methodologies instead to look at how adversaries fundamentally have to behave and start building 41 00:03:07,720 --> 00:03:12,960 out defense in that respect. You know, furthermore, looking at the attacks in question, you know, 42 00:03:12,960 --> 00:03:16,940 especially when we're talking about the disruptive things, they're very specific to what they 43 00:03:16,940 --> 00:03:21,500 were designed to disrupt. You know, Stuxnet, if you weren't running an enrichment facility 44 00:03:21,500 --> 00:03:26,040 in Central Asia-ish or whatever, you really didn't have to worry about it. It might have 45 00:03:26,040 --> 00:03:28,140 spread to your system. But the way it was designed, it was really 46 00:03:28,260 --> 00:03:32,600 only looking for a very specific environment to trigger its payload. Crash override was 47 00:03:32,600 --> 00:03:36,160 kind of modular, but at the same time you really needed to build up the capabilities 48 00:03:36,160 --> 00:03:40,800 in question in order to deliver the effect on target. And then Trisys was very specific. 49 00:03:40,980 --> 00:03:44,800 Like if you're not running the exact piece of equipment with the exact processor set 50 00:03:44,800 --> 00:03:48,680 and the exact firmware set that it was built to, you really don't need to worry about it. 51 00:03:48,800 --> 00:03:53,020 Very much designed for the target in question. So, again, if you're trying to build defense 52 00:03:53,020 --> 00:03:58,240 off of these, using the IOCs from Trisys is useless. Because unless you're on a 53 00:03:58,260 --> 00:04:01,540 computer running that very specific piece of equipment, which some people may, it's 54 00:04:01,540 --> 00:04:05,000 not germane to your interests. It's not relevant to defending your network. 55 00:04:05,460 --> 00:04:09,640 So what we've really seen when it comes to, you know, not to cast dispersion on other 56 00:04:09,640 --> 00:04:13,980 researchers and whatnot, but when it comes to talks like this or going to Black Hat and 57 00:04:13,980 --> 00:04:19,340 other big events, and we look at things across the ICS cyber kill chain, I'm sorry, you know, 58 00:04:19,400 --> 00:04:24,280 we really see things focusing on just that final stage, that, you know, execute attack. 59 00:04:24,540 --> 00:04:28,240 What's that disruptive, destructive event? But we leave out all of these others. You 60 00:04:28,260 --> 00:04:33,300 know, things. So what we really want to do is because past events aren't all that sufficient 61 00:04:33,300 --> 00:04:37,540 to start designing a more robust defensive framework, because we want to, you know, 62 00:04:38,040 --> 00:04:42,060 look for other ways of going about this to see what it is that we're missing and how 63 00:04:42,060 --> 00:04:45,960 we can move forward to build something more robust, especially for a control system environment. 64 00:04:49,280 --> 00:04:54,440 So while we've talked about, you know, the scope and scale of ICS events, where do we 65 00:04:54,440 --> 00:04:57,320 get this larger corpus of data then to start building stuff up? 66 00:04:58,260 --> 00:05:01,360 Well, obviously, we can just look at general IT infections because, you know, buzz word 67 00:05:01,360 --> 00:05:06,920 here, IT-OT convergence means that a lot of your classic IT vulnerabilities and threat 68 00:05:06,920 --> 00:05:11,220 surface has been migrated into the operational environment. You know, aside from marketing 69 00:05:11,220 --> 00:05:14,440 buzz talk around that, you know, from a security perspective, that's pretty damn important 70 00:05:14,440 --> 00:05:17,260 because it means that a lot of the lessons and a lot of the things that we're seeing 71 00:05:17,260 --> 00:05:21,500 in IT environments get moved into the ICS environment and are just as effective there 72 00:05:21,500 --> 00:05:25,160 and perhaps even more so because we're dealing with environments that don't have or are not 73 00:05:25,160 --> 00:05:28,240 amenable to the fancy EDR solutions or, you know, you know, you know, you know, you know, 74 00:05:28,240 --> 00:05:30,660 complete visibility and host-based logging and whatnot. 75 00:05:31,320 --> 00:05:35,220 So what are the trends that we're seeing in terms of IT-based attacks? Well, we're seeing 76 00:05:35,220 --> 00:05:39,420 the rise again of the worms. You know, for those who are maybe a little, this looks 77 00:05:39,420 --> 00:05:42,840 like a good audience, everyone knows what Conpicker is, et cetera. But, you know, really 78 00:05:42,840 --> 00:05:48,400 a return to that wormable sort of malware over the last year or so. Really seeing a 79 00:05:48,400 --> 00:05:53,220 re-emphasis on credential capture and reuse, use of living off the LAN techniques and running 80 00:05:53,220 --> 00:05:58,220 scripts in memory, leveraging native Windows and operating system technologies and the 81 00:05:58,240 --> 00:06:01,760 Internet in order to execute attacks. And then the unfortunate continued use of wiper 82 00:06:01,760 --> 00:06:06,700 malware either as the end destructive event in question or as a means of cleaning up one's 83 00:06:06,700 --> 00:06:08,160 tracks at the end of an infection event. 84 00:06:09,360 --> 00:06:14,000 So in terms of worms, you know, WannaCry. I don't, Marcus isn't in here because we're 85 00:06:14,000 --> 00:06:18,800 not that important, but so WannaCry about a year ago, you know, everyone was familiar 86 00:06:18,800 --> 00:06:22,860 with that. It was exploit-fueled, which meant that, you know, if you were running SMBv1, 87 00:06:23,020 --> 00:06:27,260 it wasn't patched, you had a bad day, if anything that you had was touching the Internet back 88 00:06:27,260 --> 00:06:28,000 in June. 89 00:06:29,640 --> 00:06:34,640 But what was interesting is that while that is still a problem, you can ask TSMC, the 90 00:06:34,640 --> 00:06:38,380 Taiwanese chip manufacturer who had an issue that they are attributing to WannaCry just 91 00:06:38,380 --> 00:06:42,280 this past weekend. It's still an issue, but we've seen an evolution in how these worms 92 00:06:42,960 --> 00:06:47,960 work when we went to NotPetya, BadRabbit, Olympic Destroyer and migrating away from 93 00:06:47,960 --> 00:06:53,080 just exploits and instead building in things like Mimikatz to harvest credentials on the 94 00:06:53,080 --> 00:06:57,960 fly and then use those to propagate. So it's relatively low skill in a way. I mean, you 95 00:06:57,960 --> 00:07:00,700 have to design the software, but once you've done that and deployed it, it's pretty much 96 00:07:00,700 --> 00:07:03,020 fire and forget and let things take their course. 97 00:07:03,340 --> 00:07:06,920 So looking at the evolution of worms, I didn't mention this originally because it's, you 98 00:07:06,920 --> 00:07:11,100 know, Mirai, it's important, it's a worm, used hard-coded set of credentials to spread. 99 00:07:11,360 --> 00:07:15,580 Really more Internet of shit focused than anything else, so not that big of a deal 100 00:07:15,580 --> 00:07:16,860 when it comes to ICS environments. 101 00:07:17,460 --> 00:07:21,620 Then we moved to WannaCry, we had, you know, the SMB exploit. That was pretty nasty and 102 00:07:21,620 --> 00:07:24,880 it's still going to be nasty in industrial environments for probably the next 10 years 103 00:07:25,400 --> 00:07:27,700 as equipment ages off and gets replaced and whatnot. 104 00:07:27,960 --> 00:07:32,120 But then when we started getting into NotPetchy and BadRabbit, we saw exploits paired with 105 00:07:32,120 --> 00:07:36,260 credential capture in order to spread until finally we got to Olympic Destroyer, which 106 00:07:36,260 --> 00:07:40,740 started out with an initial seed of credentials that were harvested through some preliminary 107 00:07:40,740 --> 00:07:45,760 operations and then used on the fly capture and reuse to spread quite effectively through 108 00:07:45,760 --> 00:07:46,360 the target network. 109 00:07:46,640 --> 00:07:51,440 Now none of these are industrial focused, which is good, but almost all of them have 110 00:07:51,440 --> 00:07:55,280 had impacts in industrial environments because their very nature has allowed them to take 111 00:07:55,280 --> 00:07:57,940 advantage of certain network connections and levels of security. 112 00:07:57,960 --> 00:08:09,720 So, you know, we're seeing a movement towards that exploit-less migration by harvesting 113 00:08:09,720 --> 00:08:13,460 credentials as malware moves throughout the network, dumping things from LSAS and whatnot 114 00:08:13,460 --> 00:08:16,760 and taking advantage of the fact that people still stupidly run as a local administrator 115 00:08:16,760 --> 00:08:22,180 all the time, and avoiding the use of exploits and such and thus facilitating living off 116 00:08:22,180 --> 00:08:26,560 the land either in an automated fashion by continuing to build up the capacity and capability 117 00:08:26,560 --> 00:08:27,400 of these worms. 118 00:08:27,960 --> 00:08:31,980 Or pending that access over that's gained through a wormable exploit to a human operator 119 00:08:31,980 --> 00:08:36,540 so that they can take advantage of what this has been able to, you know, worm its way into 120 00:08:36,540 --> 00:08:37,320 the network and spread. 121 00:08:38,140 --> 00:08:40,540 That leads us to our next topic, living off the land. 122 00:08:40,780 --> 00:08:41,760 So that's a buzzword. 123 00:08:41,820 --> 00:08:44,800 I hate it, but, you know, I think I say that and everyone kind of knows what I'm talking 124 00:08:44,800 --> 00:08:45,040 about. 125 00:08:45,160 --> 00:08:49,060 But if you don't, you know, it's really we're talking about the use of native Windows system 126 00:08:49,060 --> 00:08:55,840 commands, some legitimate system administration tools like PSExec, as well as administrator-centric 127 00:08:55,840 --> 00:08:57,660 scripting languages, PowerShell, WMI. 128 00:08:57,960 --> 00:09:00,780 No news to this audience, you know, we know that these things are going on. 129 00:09:00,980 --> 00:09:04,780 But that's been a really big shift across, you know, especially our more advanced threat 130 00:09:04,780 --> 00:09:09,340 actors of really eschewing malware and going more and more towards trying to blend in with 131 00:09:09,340 --> 00:09:10,160 native system activity. 132 00:09:11,600 --> 00:09:12,720 Finally, wiper malware. 133 00:09:13,000 --> 00:09:14,820 This is like asshole stuff right here. 134 00:09:14,980 --> 00:09:19,680 Now we're talking about destructive stuff that's designed to wipe or otherwise, you 135 00:09:19,680 --> 00:09:24,560 know, render systems unusable, you know, examples being the Shamoon attacks, the Sony 136 00:09:24,560 --> 00:09:25,120 Pictures event. 137 00:09:25,380 --> 00:09:26,300 What else did I list there? 138 00:09:26,420 --> 00:09:26,900 Yeah. 139 00:09:27,960 --> 00:09:29,460 The Olympic destroyer was also a wiper as well. 140 00:09:29,680 --> 00:09:32,560 So I'm having a screen resolution issue, so no worries there. 141 00:09:33,640 --> 00:09:38,580 But what we've gotten from looking at this is that, okay, these might not these are certainly 142 00:09:38,580 --> 00:09:42,800 not ICS-focused sort of attack methodologies, but if we take a step back and instead of 143 00:09:42,800 --> 00:09:48,660 focusing on that very last stage of how these ICS-centric attacks are executed, what I've 144 00:09:48,660 --> 00:09:52,940 just talked about facilitates everything that goes on prior, whether that's your initial 145 00:09:52,940 --> 00:09:57,860 intrusion into the IT network to get into the ICS environment, as well as the ability 146 00:09:57,860 --> 00:10:02,720 to start moving within ICS to identify your final targets and then deliver that bespoke 147 00:10:04,360 --> 00:10:05,720 whatever destructive payload. 148 00:10:06,300 --> 00:10:10,100 So what we really want to do, you know, the specifics of some of these commodity things 149 00:10:10,100 --> 00:10:10,900 aren't relevant. 150 00:10:11,140 --> 00:10:12,900 I mean, I'm not a very big IOC fan. 151 00:10:13,100 --> 00:10:15,900 I blog about that and then people yell at me on Twitter or whatever. 152 00:10:16,020 --> 00:10:19,300 But you know, I'm very much more focused on, you know, how are these things fundamentally 153 00:10:19,300 --> 00:10:19,920 operating? 154 00:10:20,420 --> 00:10:25,380 And so looking at those sort of general underlying trends gives us an idea of how the attack 155 00:10:25,380 --> 00:10:26,440 landscape is shifting. 156 00:10:26,440 --> 00:10:30,280 And how adversaries that are operating within the industrial environments that this audience 157 00:10:30,280 --> 00:10:35,080 cares about will execute attacks and what defenders need to do to evolve to meet them. 158 00:10:35,420 --> 00:10:39,280 So expanding the kill chain not only lets us get a view of, you know, things that we 159 00:10:39,280 --> 00:10:43,880 can get a better grasp on, it also gives defenders the opportunity to step in and catch 160 00:10:43,880 --> 00:10:45,260 these attacks at an earlier stage. 161 00:10:45,540 --> 00:10:50,760 So yes, even if you were able to have a good signature to catch Trisis or Crash Override 162 00:10:50,760 --> 00:10:56,340 or Stuxnet, yeah, I mean, but you're catching perhaps the very last stage of a complex attack 163 00:10:56,440 --> 00:11:00,080 so you might just have averted Boom or you might have been notified and gotten an email 164 00:11:00,080 --> 00:11:04,080 alert about Boom 30 minutes before it actually happens and no one's responded to it yet. 165 00:11:04,240 --> 00:11:05,460 That's not terribly useful. 166 00:11:05,780 --> 00:11:10,320 Really what we want to do is try and, you know, move left of Boom, sorry, former military, 167 00:11:10,560 --> 00:11:15,220 so I can actually say that, I guess, too, but, you know, move further left of Boom as 168 00:11:15,220 --> 00:11:19,080 much as you can so that you can capture and identify these attacks earlier in that kill 169 00:11:19,080 --> 00:11:24,000 chain process, which makes and facilitates cleaning these things up and mitigating any 170 00:11:24,000 --> 00:11:24,380 damage. 171 00:11:26,440 --> 00:11:27,980 You know, Venn diagrams are awesome, aren't they? 172 00:11:28,080 --> 00:11:33,280 But overlapping IT attack trends on what the ICS, you know, threat environment looks like 173 00:11:33,280 --> 00:11:37,400 and really try and focus on that juicy center right there for the threat surface. 174 00:11:37,500 --> 00:11:41,060 Like, that's really where an adversary is going to be operating, where there's an opportunity 175 00:11:41,650 --> 00:11:47,380 to go forth and stop those things, especially, again, at an earlier potential stage, but 176 00:11:47,380 --> 00:11:51,800 also catch entire categories of attack instead of worrying about very specific intrusion 177 00:11:51,800 --> 00:11:52,060 events. 178 00:11:52,260 --> 00:11:55,660 Again, going back to the fact that many of these events in question, when we look at 179 00:11:55,660 --> 00:11:56,420 concrete examples, you know, we're not going to be able to capture all of these attacks, 180 00:11:56,420 --> 00:12:00,580 because they're just going to be the target environment in question. 181 00:12:01,300 --> 00:12:04,980 So, in ICS, you know, worms, I think, are a big freaking deal. 182 00:12:05,440 --> 00:12:09,620 I don't think enough attention has been paid to this despite the fact that Renault, FedEx, 183 00:12:09,740 --> 00:12:14,960 Maersk, TSMC, et cetera, like, lots of companies have had a bad day just from an IT-focused 184 00:12:14,960 --> 00:12:15,320 worm. 185 00:12:15,940 --> 00:12:19,840 Imagine if you take the same capabilities that were leveraged in, you know, not even 186 00:12:19,840 --> 00:12:23,920 leveraged, but unintentionally used in ICS environments, pair that with something that's 187 00:12:23,920 --> 00:12:26,220 ICS-specific in terms of propagation and spread. 188 00:12:26,220 --> 00:12:30,800 and do something Stuxnet-like in terms of awareness for the environment 189 00:12:30,800 --> 00:12:34,040 that the malware is running into at a payload, that's a scary day. 190 00:12:34,280 --> 00:12:35,800 I'm glad no one's done that yet. 191 00:12:35,840 --> 00:12:38,080 Please don't take this idea and run with it and execute that 192 00:12:38,080 --> 00:12:39,060 because that would not be cool. 193 00:12:39,940 --> 00:12:44,080 But really it could be quite effective means of getting into a network, 194 00:12:44,120 --> 00:12:47,920 burying in quite quickly before defenders might even know that something's going on 195 00:12:47,920 --> 00:12:50,180 and then detonating something further on. 196 00:12:50,840 --> 00:12:54,420 Credential capture is very important as well because one of the biggest reasons, 197 00:12:54,540 --> 00:12:55,260 you don't have to use malware. 198 00:12:55,260 --> 00:12:59,220 If I can log in as admin, admin, engineer, engineer, et cetera, 199 00:12:59,380 --> 00:13:04,040 I don't need to exploit anything in that, one, lowers my signature threshold. 200 00:13:04,400 --> 00:13:06,100 So even if you're running antivirus in the environment, 201 00:13:06,260 --> 00:13:08,980 if I don't have to bring a piece of malware in to do something 202 00:13:08,980 --> 00:13:11,280 but can just pivot around through RDP and VPN tunnels, 203 00:13:11,420 --> 00:13:13,680 like, okay, that's one less thing to look for. 204 00:13:14,200 --> 00:13:16,740 But also allows you to start modeling legitimate activity. 205 00:13:16,980 --> 00:13:18,680 You don't have to bring tools into the environment, 206 00:13:18,780 --> 00:13:20,120 which is another touchpoint for defenders. 207 00:13:20,480 --> 00:13:22,160 It really makes detection very hard. 208 00:13:22,340 --> 00:13:24,440 So, again, it's something we need to deal with, 209 00:13:24,520 --> 00:13:25,160 but it's very much. 210 00:13:25,260 --> 00:13:28,060 The reality of the now as far as how these attacks are shaping up, 211 00:13:28,140 --> 00:13:29,520 at least in their preliminary stages. 212 00:13:30,600 --> 00:13:32,880 Living off the land, again, continues this theme. 213 00:13:33,040 --> 00:13:34,380 Don't need to bring tools into the environment. 214 00:13:34,640 --> 00:13:36,260 I've got all my toolkit right there with me. 215 00:13:36,400 --> 00:13:40,100 Maybe I bring PSExec into the environment so I can do some remote process execution. 216 00:13:40,420 --> 00:13:42,020 But otherwise, I've got PowerShell. 217 00:13:42,140 --> 00:13:42,740 What else do I need? 218 00:13:42,820 --> 00:13:46,580 I can run crap in memory and just copy, paste a base64 script and good to go. 219 00:13:47,600 --> 00:13:51,260 It really allows adversaries to just get in, stay in, 220 00:13:51,440 --> 00:13:53,740 and not really have to do a lot of moving back and forth 221 00:13:53,740 --> 00:13:55,020 from adversary-controlled infrastructure. 222 00:13:55,260 --> 00:13:57,660 To the target network. 223 00:13:58,800 --> 00:14:02,220 So what I'm trying to get at here is we're really looking to build out 224 00:14:02,220 --> 00:14:03,640 what I call behavior-based defense. 225 00:14:04,260 --> 00:14:06,360 Targeting the underlying adversary behaviors, 226 00:14:07,420 --> 00:14:10,040 targeting what are necessary adversary touchpoints. 227 00:14:10,340 --> 00:14:15,000 You might say that, yes, there are potentially infinite different ways of compiling 228 00:14:15,000 --> 00:14:17,760 and creating malware or whatnot to evade signatures. 229 00:14:18,080 --> 00:14:21,620 But at the end of the day, an operator needs to get control over implants 230 00:14:21,620 --> 00:14:23,860 or they need to design implants with some sort of logic. 231 00:14:23,860 --> 00:14:27,340 They typically want to have some means of staying within a network, 232 00:14:27,460 --> 00:14:28,320 some means of persistence. 233 00:14:28,620 --> 00:14:32,660 But looking at those requirements then as means of targeting what behaviors are necessary 234 00:14:32,660 --> 00:14:37,420 to achieve these things, start avoiding the specific one-off implementations reflected 235 00:14:37,420 --> 00:14:41,200 in an indicator and build a more robust detection and monitoring framework. 236 00:14:41,920 --> 00:14:46,380 So when we're looking about these things, we want to articulate tactics, techniques, 237 00:14:46,540 --> 00:14:52,660 and procedures, PTPs, again, I'm a former military, I can say that, and start identifying 238 00:14:52,660 --> 00:14:53,800 those underlying attacks. 239 00:14:53,860 --> 00:14:59,960 Map those to the necessary adversary behaviors to execute successfully an attack and then 240 00:14:59,960 --> 00:15:05,940 start building out defensive responses, detection frameworks, and playbooks for response based 241 00:15:05,940 --> 00:15:10,500 upon what an adversary just simply has to do in order to be successful moving away 242 00:15:10,500 --> 00:15:13,180 from the final stages of that ICS attack kill chain. 243 00:15:15,480 --> 00:15:18,920 So things that we could look for, you know, pursue those adversary goals. 244 00:15:19,280 --> 00:15:23,840 What is it that the attacker needs to do to achieve things, target those, and move on? 245 00:15:23,860 --> 00:15:28,060 You know, looking for attackers trying to abuse legitimate commands, et cetera. 246 00:15:28,240 --> 00:15:32,540 These are not easy problems to answer and I'm not up here to sell a blinky box that's 247 00:15:32,540 --> 00:15:36,000 going to sit in the rack that tells us, and people who do typically are selling a little 248 00:15:36,000 --> 00:15:39,940 bit of snake oil, you know, these are difficult things to sort of answer and requires both 249 00:15:39,940 --> 00:15:44,720 a commitment on the part of defenders to start building up a profile of what attackers are 250 00:15:44,720 --> 00:15:47,940 doing and then building up the visibility to actually be able to track these sorts 251 00:15:47,940 --> 00:15:48,300 of things. 252 00:15:48,960 --> 00:15:53,240 So what we want to do is, you know, you identify a fundamental behavior, you know, adversaries 253 00:15:53,240 --> 00:15:53,840 need commanding. 254 00:15:54,280 --> 00:15:57,620 C2 is required, unless you're a vulnerable piece of malware, but even then you might 255 00:15:57,620 --> 00:16:01,460 need some C2 of some sort for a little bit of control over how that worm might interact. 256 00:16:01,800 --> 00:16:07,840 So like that fundamental idea of C2 is necessary, well, how are different ways of implementing 257 00:16:07,840 --> 00:16:08,600 that possible? 258 00:16:09,000 --> 00:16:10,460 You know, what does DNS tunneling look like? 259 00:16:10,600 --> 00:16:16,680 What does a, you know, anomalous, I hate that word, HDP connection coming out of the 260 00:16:16,680 --> 00:16:17,400 network look like? 261 00:16:17,520 --> 00:16:21,140 Look at those ways, those broad-based ways of implementing it and then what sort of detections 262 00:16:21,140 --> 00:16:22,020 can I build around there? 263 00:16:22,180 --> 00:16:23,840 And as far as possible, try to avoid that. 264 00:16:23,840 --> 00:16:28,100 Try to avoid that last stage because you can have near infinite instantiations of each 265 00:16:28,100 --> 00:16:30,720 of these more general items in terms of concrete observables. 266 00:16:30,900 --> 00:16:34,840 Those will change quite trivially, not as trivially in some cases as possible because 267 00:16:35,260 --> 00:16:39,040 people are lazy humans, but, you know, it's really trying to stay at this middle ground 268 00:16:39,040 --> 00:16:44,340 here to capture both the fundamental requirements in terms of an attack execution while avoiding 269 00:16:44,340 --> 00:16:48,700 the sort of limitations afforded by, you know, focusing at that observable stage. 270 00:16:49,400 --> 00:16:53,720 So in implementing a behavior-based approach to ICS defense, we really want to identify 271 00:16:53,840 --> 00:16:58,440 those behaviors of interest, try and get an idea of the different means of achieving 272 00:16:58,440 --> 00:17:03,880 those behavioral objectives, you know, determine, is that a notification? 273 00:17:04,140 --> 00:17:04,500 I'm sorry. 274 00:17:04,780 --> 00:17:09,360 And then build out means of detecting these things as they move along the line. 275 00:17:09,620 --> 00:17:13,340 So for an example, with credential theft, credential theft and reuse happens. 276 00:17:13,560 --> 00:17:14,280 Well, how does it happen? 277 00:17:14,440 --> 00:17:19,200 So there's both the, you know, mini-cats dumping LSATs memory in order to achieve it. 278 00:17:19,240 --> 00:17:19,960 What does that look like? 279 00:17:20,200 --> 00:17:20,680 Well. 280 00:17:21,300 --> 00:17:21,780 Yeah. 281 00:17:23,120 --> 00:17:23,600 Yeah. 282 00:17:24,680 --> 00:17:27,840 Host and network visibility are important items in terms of answering this. 283 00:17:27,900 --> 00:17:32,360 Like in order to see when these events happen, what sort of visibility, what information 284 00:17:32,360 --> 00:17:36,020 telemetry do I need to track it, and how do I then build out an appropriate security 285 00:17:36,020 --> 00:17:38,120 response in order to defeat it. 286 00:17:39,280 --> 00:17:41,640 So the thing is, is that, do not alert on mini-cats. 287 00:17:41,800 --> 00:17:42,280 I mean, maybe. 288 00:17:42,400 --> 00:17:45,380 Like, you know, if someone wants to compile the source code off of GitHub and they're 289 00:17:45,380 --> 00:17:49,000 stupid enough to do that, all right, we can alert on that hash to catch the lazy bottom-feeding 290 00:17:49,000 --> 00:17:52,280 adversaries, although interesting enough some advanced ones have done this in environments 291 00:17:52,280 --> 00:17:53,080 that I'm familiar with. 292 00:17:53,840 --> 00:17:57,760 But really the main idea is to focus on, well, what does Mimikatz allow you to do? 293 00:17:58,020 --> 00:18:02,100 How do I start looking at that idea, not just of seeing the initial credential dump, 294 00:18:02,240 --> 00:18:06,760 but then how that's actually implemented by looking for logon activity that may be of interest, 295 00:18:07,940 --> 00:18:09,880 anomalous, suspicious, or definitely malicious, 296 00:18:10,160 --> 00:18:12,400 and start designing my defensive framework around that. 297 00:18:13,340 --> 00:18:16,420 So to talk about a concrete example of this, let's talk about crash override. 298 00:18:16,660 --> 00:18:17,700 Why talk about crash override? 299 00:18:17,880 --> 00:18:21,840 Well, because I worked on that a lot, and so I can talk about it to a certain level of detail. 300 00:18:21,840 --> 00:18:24,340 It's also a pretty important attack in the ICS space. 301 00:18:25,120 --> 00:18:28,520 In this case, the attack took place, you know, they had to penetrate the ICS network, 302 00:18:28,800 --> 00:18:32,940 establish some sort of foothold, survey the environment, get a feel of what's going on there, 303 00:18:33,040 --> 00:18:33,920 and then deliver the attack. 304 00:18:34,300 --> 00:18:35,160 What's that sound like? 305 00:18:35,240 --> 00:18:37,280 It sounds like that kill chain thing that we were talking about before, 306 00:18:37,420 --> 00:18:43,820 meaning that getting from here to there requires a lot of time, effort, and other work in order to really execute it. 307 00:18:43,880 --> 00:18:47,080 So if you're only focusing on this final stage right here, 308 00:18:47,240 --> 00:18:50,480 you've just seeded your pen testing friends 309 00:18:50,480 --> 00:18:51,820 or your network, 310 00:18:51,840 --> 00:18:52,780 nasty black hat actors, 311 00:18:52,940 --> 00:18:57,900 all sorts of ground in terms of where they're able to operate, fat and happy, without you being able to see it. 312 00:18:58,180 --> 00:19:01,640 So building up stuff around here lets you start catching this sort of activity. 313 00:19:03,120 --> 00:19:06,460 The crash override event required a lot of prepositioning to execute, 314 00:19:06,720 --> 00:19:08,720 and in looking at how that prepositioning took place, 315 00:19:08,960 --> 00:19:13,780 um, you know, at least from what we've observed so far, and reported mostly privately to this point, 316 00:19:13,980 --> 00:19:16,920 uh, what we observed was a lot of credential capture and reuse. 317 00:19:17,160 --> 00:19:18,940 We observed beamy cats in the environment. 318 00:19:19,120 --> 00:19:21,660 Not just beamy cats, but, like, bait beamy cats, 319 00:19:21,660 --> 00:19:22,660 dumped off the GitHub repo, 320 00:19:22,960 --> 00:19:24,640 packed with UPX and then deployed. 321 00:19:24,940 --> 00:19:26,740 That's a pretty easy damn signature, actually. 322 00:19:27,000 --> 00:19:32,460 Uh, and then a lot of use of native system commands and tools in order to then facilitate movement of malware throughout the network. 323 00:19:32,640 --> 00:19:37,440 So really mapping on right to those same trends that we identified in terms of more general ICS attacks. 324 00:19:38,680 --> 00:19:41,900 So yeah, we saw a packed copy of beamy cats, 325 00:19:42,120 --> 00:19:46,760 uh, PSExec 2.11 in terms of what was used in the environment for remote process execution, 326 00:19:47,060 --> 00:19:51,500 and then a bunch of scripts that could have been pulled from a TechNet help page, 327 00:19:51,500 --> 00:19:55,220 or from, you know, Stack Overflow in order to facilitate things like, 328 00:19:55,240 --> 00:19:58,700 uh, system survey, monitoring, verifying that files were moved, 329 00:19:58,840 --> 00:20:00,700 and then doing some also remote execution stuff. 330 00:20:00,900 --> 00:20:03,180 So we're not talking about anything that's really advanced here, 331 00:20:03,260 --> 00:20:05,280 and really mapping right on to what we've talked about so far. 332 00:20:05,740 --> 00:20:10,840 So for an example, here's an ugly-ass script that was used by the adversary Electrum within this environment. 333 00:20:11,320 --> 00:20:15,760 On its face, it looks very much like something you'd expect using WMI and WScript 334 00:20:15,760 --> 00:20:19,960 in order to just do some system profiling if you're trying to get a feel for what's in your environment. 335 00:20:20,220 --> 00:20:21,100 Uh, you know, 336 00:20:21,100 --> 00:20:21,900 what's the so what there? 337 00:20:22,040 --> 00:20:25,400 Among other things, you know, there's no obfuscation whatsoever going on in here. 338 00:20:25,600 --> 00:20:27,160 So from a visibility standpoint, 339 00:20:27,480 --> 00:20:31,240 are you actually monitoring for these things as they pop up within your network to the extent possible? 340 00:20:31,620 --> 00:20:34,960 Uh, the example I like to give, and I've given a talk on this previously a few times, 341 00:20:35,020 --> 00:20:39,160 is pairing Bro for file carving with things like Yara in order to do a deep dive into them. 342 00:20:39,300 --> 00:20:42,400 Well, you can search for script files and then look for these sort of administrator commands 343 00:20:42,400 --> 00:20:46,300 identifying system profiling to at least identify when these things are moving around, 344 00:20:46,480 --> 00:20:50,240 which could be a good touchpoint that something a little shady might be going on in the environment. 345 00:20:51,100 --> 00:20:54,040 So we've seen an overlap with some of these same general TTPs we talked about. 346 00:20:54,200 --> 00:20:57,460 And believe it or not, I didn't just, like, sort of shoehorn this in. 347 00:20:57,560 --> 00:21:02,380 Like, you know, this kind of, like, came to me in a dream fueled most likely by alcohol or something similar 348 00:21:02,380 --> 00:21:05,340 that, you know, hey, like, you know, what we're seeing with these general attacks 349 00:21:05,340 --> 00:21:08,740 actually kind of maps right onto what we observed in the crash override event from soup to nuts. 350 00:21:09,100 --> 00:21:13,000 So really looking for, you know, how do we start tracking and identifying these sorts of things 351 00:21:13,000 --> 00:21:17,080 to build out some robust defense because at the end of the day, these adversaries are following 352 00:21:17,080 --> 00:21:21,080 the same sort of script and playbook that we're seeing the more lower level attacks use. 353 00:21:22,140 --> 00:21:26,220 So defense against this, you know, really need to build defenses around what we talked about earlier 354 00:21:26,220 --> 00:21:29,840 in terms of IT attack trends, you know, credential replay and reuse. 355 00:21:30,100 --> 00:21:31,780 How do you identify when that's taking place? 356 00:21:32,000 --> 00:21:34,840 How do you identify that living off the land's taking place? 357 00:21:35,200 --> 00:21:38,080 But once you do that, and I'm sorry we have a short time frame here, 358 00:21:38,140 --> 00:21:40,080 so we're not going to get too much into the weeds on that, 359 00:21:40,200 --> 00:21:44,120 but the result of doing that sort of defensive playbook is that 360 00:21:44,120 --> 00:21:47,580 you've now not just built up a defense against how the Electrum adversary 361 00:21:47,960 --> 00:21:49,460 responsible for crash override operates. 362 00:21:51,100 --> 00:21:53,500 There's a ton of other attack pathways as well for other adversaries 363 00:21:53,500 --> 00:21:55,980 that are going to try and do roughly the same damn thing. 364 00:21:57,540 --> 00:22:00,560 So we've actually seen this within the ICS environment, 365 00:22:00,800 --> 00:22:04,980 looking at some of the events that have taken place over the last year-ish, give or take. 366 00:22:05,740 --> 00:22:09,420 Alanite, which is in the news yet again when DHS decided to re-release, 367 00:22:09,520 --> 00:22:13,880 after they re-released news about the Russians and the U.S. electric grid. 368 00:22:14,060 --> 00:22:16,700 A lot of their operations, credential capture and reuse, 369 00:22:16,900 --> 00:22:18,700 and using a lot of scripts and system commands. 370 00:22:18,700 --> 00:22:22,600 Same thing looking at the Xenotype adversary responsible for Trisis or Triton. 371 00:22:22,740 --> 00:22:25,820 I don't know who sat in on the Black Hat talk on that, 372 00:22:25,920 --> 00:22:27,340 if you had access to that talk, 373 00:22:27,480 --> 00:22:31,180 but unfortunately they didn't go into the actual preliminary for the attack, 374 00:22:31,320 --> 00:22:33,560 but if you look at how the attack was executed in the environment, 375 00:22:33,760 --> 00:22:35,400 again seeing a lot of the same things. 376 00:22:35,660 --> 00:22:37,540 Mimikatz, using native system tools, 377 00:22:37,780 --> 00:22:39,900 maybe a few custom scripts and custom binaries, 378 00:22:39,940 --> 00:22:45,520 but overall really mapping on to how we're observing these attacks play out in the IT landscape. 379 00:22:46,340 --> 00:22:48,680 So the impact is that once you start covering up, 380 00:22:48,700 --> 00:22:49,940 covering something like credential theft, 381 00:22:50,180 --> 00:22:53,780 not only are you defending against a specific adversary, 382 00:22:53,960 --> 00:22:55,880 but you're defending against entire classes of behavior. 383 00:22:56,180 --> 00:22:59,740 Which means that you get a better opportunity in order to try and identify and defeat 384 00:22:59,740 --> 00:23:02,860 multiple different things as a result of that sort of commonality 385 00:23:02,860 --> 00:23:05,360 and very fundamental overlap in TTP. 386 00:23:06,700 --> 00:23:07,700 Worms are another example. 387 00:23:08,100 --> 00:23:11,320 Wormable infections, as I mentioned earlier, are really scary and worry me 388 00:23:11,320 --> 00:23:13,620 because I think they can kick our ass in the ICS environment 389 00:23:13,620 --> 00:23:16,060 if someone sufficiently weaponizes it, and we've seen it before. 390 00:23:16,260 --> 00:23:17,320 Again, Stuxnet, drink. 391 00:23:18,760 --> 00:23:23,440 But that ability to move and burrow within a network with no oversight is truly scary 392 00:23:23,440 --> 00:23:27,260 because it allows for that unsupervised migration into the network 393 00:23:27,260 --> 00:23:30,600 and potential to deploy capability with very little human intervention. 394 00:23:30,960 --> 00:23:35,300 And as we've seen with certain ICS impacting but IT-focused malware sets, 395 00:23:35,540 --> 00:23:38,680 they were quite effective even though they didn't intend to be so. 396 00:23:39,900 --> 00:23:42,820 So far, again, the only ICS targeting worm is Stuxnet, 397 00:23:42,840 --> 00:23:44,100 but others have had ICS impacts, 398 00:23:44,240 --> 00:23:46,700 and so focusing on how those impacts came about 399 00:23:46,700 --> 00:23:48,680 and how those might be changed and weaponized, 400 00:23:48,700 --> 00:23:52,640 in the future gives us a good warning for what we need to start doing now, 401 00:23:52,860 --> 00:23:54,260 I would say like six months ago, 402 00:23:54,440 --> 00:23:55,940 and we're going to shore up against these things. 403 00:23:56,200 --> 00:23:58,460 And as any ICS professional can tell you, just saying, 404 00:23:58,560 --> 00:24:00,680 well, apply the patch for MS1710. 405 00:24:00,820 --> 00:24:02,960 Like, well, I can't necessarily do that everywhere 406 00:24:02,960 --> 00:24:04,220 unless I want to void my warranty 407 00:24:04,220 --> 00:24:06,860 or maybe the vendor doesn't support it yet 408 00:24:06,860 --> 00:24:10,360 or I need SMBv1 because my historian product acquires it 409 00:24:10,360 --> 00:24:12,460 in order to move data around the network, etc. 410 00:24:12,640 --> 00:24:14,300 So there's a lot of dependencies here in just saying, 411 00:24:14,400 --> 00:24:16,100 apply the patch is not a good answer. 412 00:24:16,840 --> 00:24:18,680 And yes, and the result of not a good answer 413 00:24:18,700 --> 00:24:21,100 is that you get this happening in this environment, 414 00:24:21,660 --> 00:24:22,960 which is not a good day. 415 00:24:23,060 --> 00:24:25,900 I imagine that the poor process engineer in that facility had, 416 00:24:26,960 --> 00:24:29,520 I hope he got a beer after that, if nothing else, 417 00:24:29,540 --> 00:24:30,920 because it's a pain to deal with. 418 00:24:31,680 --> 00:24:34,600 So we've avoided, as far as trends within worms, 419 00:24:34,720 --> 00:24:35,940 is that we've seen, first off, 420 00:24:36,020 --> 00:24:38,020 the avoidance of exploits as time has moved on. 421 00:24:38,200 --> 00:24:41,000 So we started out like Stuxnet is still the crown jewel or whatever. 422 00:24:41,260 --> 00:24:43,400 A couple of Windows 0 days and some other fancy shit, 423 00:24:43,500 --> 00:24:44,340 not everyone can do that. 424 00:24:44,820 --> 00:24:48,060 Mirai, okay, a bunch of hard-coded passwords for Internet of Shit things. 425 00:24:48,700 --> 00:24:50,860 But then seeing the weaponization of MS-1710, 426 00:24:51,040 --> 00:24:53,220 very effective, still going to be effective for the future, 427 00:24:53,400 --> 00:24:55,280 for that adversary to start getting a little savvier 428 00:24:55,280 --> 00:24:58,520 and start doing that integrated credential capture and replay 429 00:24:58,520 --> 00:24:59,580 to facilitate propagation. 430 00:25:00,160 --> 00:25:02,960 So using native means within the system, 431 00:25:03,100 --> 00:25:06,140 like net use commands and mapping shares 432 00:25:06,140 --> 00:25:07,540 to try and copy itself over, 433 00:25:07,680 --> 00:25:10,760 and avoiding the use of what looks like obvious malicious code. 434 00:25:11,080 --> 00:25:12,980 And finally, a shift to wipers at the end. 435 00:25:13,140 --> 00:25:14,040 This is the asshole move. 436 00:25:14,280 --> 00:25:15,520 So we saw it with NotPetya, 437 00:25:15,620 --> 00:25:17,180 we saw it again with Olympic Destroyer. 438 00:25:17,180 --> 00:25:18,280 What's the worm doing? 439 00:25:18,480 --> 00:25:21,860 Get on target, start mucking with the system 440 00:25:21,860 --> 00:25:22,900 and make it unbootable, 441 00:25:23,000 --> 00:25:26,380 or wipe data because you deployed ransomware 442 00:25:26,380 --> 00:25:27,360 that has no decryption key. 443 00:25:27,680 --> 00:25:29,820 In an ICS environment, that's a very bad day. 444 00:25:29,900 --> 00:25:33,100 Unless you are backing up all your project files offline, etc., 445 00:25:33,100 --> 00:25:34,700 that's going to ruin you very fast 446 00:25:34,700 --> 00:25:36,460 and make your network quite untenable to operate. 447 00:25:37,260 --> 00:25:40,600 So the risk to ICS is that you get some self-propagating malware 448 00:25:40,600 --> 00:25:41,660 introduced to the environment. 449 00:25:41,840 --> 00:25:44,080 It finds and traverses an IT-ICS link. 450 00:25:44,280 --> 00:25:46,220 That might not sound reasonable, 451 00:25:46,220 --> 00:25:47,740 but then again, look at WannaCry. 452 00:25:47,940 --> 00:25:49,920 Take advantage of some SMB links from historians 453 00:25:49,920 --> 00:25:51,900 to business process systems in the IT network, 454 00:25:52,040 --> 00:25:54,360 and boom, you've got WannaCry in the OT environment. 455 00:25:54,880 --> 00:25:56,400 And then if you can just weaponize that 456 00:25:56,400 --> 00:25:58,780 by tacking on some sort of ICS-specific payload, 457 00:25:58,900 --> 00:26:00,920 the step that has not been taken yet, thank goodness, 458 00:26:01,140 --> 00:26:03,080 you get a really big problem that crops up. 459 00:26:04,880 --> 00:26:07,180 So really what you can do is like stuck stuff for dummies. 460 00:26:09,600 --> 00:26:11,940 To think that we've kind of moved back 461 00:26:11,940 --> 00:26:13,580 to what was the most advanced attack, 462 00:26:13,740 --> 00:26:15,800 yet no one really seemed to build off of that 463 00:26:16,220 --> 00:26:17,160 is kind of surprising. 464 00:26:17,760 --> 00:26:19,220 Yet that's kind of where we are. 465 00:26:19,360 --> 00:26:22,240 If you can start taking these sorts of attack pathways 466 00:26:22,240 --> 00:26:23,940 and weaponize them in such a fashion 467 00:26:23,940 --> 00:26:25,580 that you're not relying on the exploits 468 00:26:25,580 --> 00:26:26,680 and add that ICS component, 469 00:26:26,980 --> 00:26:29,580 you get a very robust attack that can result in disruption 470 00:26:29,580 --> 00:26:30,940 or even potentially destruction 471 00:26:31,420 --> 00:26:33,860 if you have a good enough ICS attack developer. 472 00:26:34,360 --> 00:26:37,100 So in building defense, how do we want to do this? 473 00:26:37,360 --> 00:26:39,920 Well, what's one of the fundamentals behind how this attack executes? 474 00:26:40,060 --> 00:26:40,800 Well, it has to spread. 475 00:26:41,240 --> 00:26:43,800 So looking at how things can spread within your network, 476 00:26:43,920 --> 00:26:45,020 do you have network choke points? 477 00:26:46,220 --> 00:26:47,260 They look like the top of this podium 478 00:26:47,260 --> 00:26:48,700 in terms of how flat it is. 479 00:26:49,080 --> 00:26:51,000 If it does, then you have a problem 480 00:26:51,000 --> 00:26:52,260 because if you get a warmable infection 481 00:26:52,260 --> 00:26:54,460 on just that one central node or one of them, 482 00:26:54,560 --> 00:26:56,260 it's going to propagate everywhere quite quickly. 483 00:26:56,520 --> 00:26:58,080 But if you establish choke points 484 00:26:58,080 --> 00:26:59,820 and use those as a means of hardening defense 485 00:26:59,820 --> 00:27:01,980 by building them up as bastion hosts 486 00:27:01,980 --> 00:27:03,180 or something along those lines, 487 00:27:03,400 --> 00:27:05,240 then you get the ability to stop these sorts of things 488 00:27:05,240 --> 00:27:07,640 in their tracks or at least sort of limit the damage 489 00:27:07,640 --> 00:27:10,500 by allowing it to filter to a certain specific endpoint 490 00:27:10,500 --> 00:27:11,940 and being able to take action there. 491 00:27:11,940 --> 00:27:13,860 And then reducing that attack surface 492 00:27:13,860 --> 00:27:16,720 so identifying what those IT, ICS traversing links are, 493 00:27:16,860 --> 00:27:18,660 locking those down as much as possible 494 00:27:18,660 --> 00:27:20,320 and maybe making sure that they host 495 00:27:20,320 --> 00:27:21,260 on the other end of those, 496 00:27:21,700 --> 00:27:25,640 whether that's putting in something like a VPN gateway 497 00:27:25,640 --> 00:27:27,600 or some other sort of bastion host 498 00:27:27,600 --> 00:27:28,860 and making sure that guy's patched, 499 00:27:28,860 --> 00:27:29,940 probably a good idea. 500 00:27:30,360 --> 00:27:32,520 Finally, you want to increase visibility within the network 501 00:27:32,520 --> 00:27:33,560 with worms and whatnot. 502 00:27:33,680 --> 00:27:35,680 It won't help too much because it's just going to tell you 503 00:27:35,680 --> 00:27:37,960 what happened after the fact, which is actually not trivial 504 00:27:37,960 --> 00:27:40,920 because just being able to say that, hey, we know why this happened 505 00:27:41,940 --> 00:27:42,680 is a very important question to answer, 506 00:27:43,480 --> 00:27:46,600 but can inform detection, mitigation, 507 00:27:46,900 --> 00:27:47,780 and also recovery 508 00:27:47,780 --> 00:27:49,680 by being able to track how an attack 509 00:27:49,680 --> 00:27:51,360 was actually executed within the environment. 510 00:27:51,920 --> 00:27:53,480 So the impact is that, well, hopefully 511 00:27:53,480 --> 00:27:54,300 you get better architecture. 512 00:27:54,540 --> 00:27:56,240 You actually have a segmented network, 513 00:27:56,360 --> 00:27:57,980 some sane permissions in place, et cetera, 514 00:27:58,080 --> 00:27:59,260 and you've reduced your attack surface 515 00:27:59,260 --> 00:28:01,600 to mitigate other attacks and you've narrowed 516 00:28:01,600 --> 00:28:03,340 the possibilities for interactive intrusion 517 00:28:03,340 --> 00:28:05,200 while you're taking care of that wormable threat. 518 00:28:05,480 --> 00:28:07,880 So by focusing in how these things self-propagate, 519 00:28:07,960 --> 00:28:10,400 you've now taken care of or at least started to address problems 520 00:28:11,940 --> 00:28:13,440 like IP use by using captured credentials 521 00:28:13,440 --> 00:28:14,580 by a human in the loop, 522 00:28:14,720 --> 00:28:17,460 taking advantage of single points of failure in the network 523 00:28:17,460 --> 00:28:19,220 in order to start spreading malware willy-nilly 524 00:28:19,220 --> 00:28:20,460 within the control system network. 525 00:28:20,780 --> 00:28:23,860 So really, again, taking advantage of what ideas 526 00:28:23,860 --> 00:28:26,020 are afforded by these general IT attack trends 527 00:28:26,020 --> 00:28:28,560 to improve ICS-based defense. 528 00:28:29,380 --> 00:28:30,540 So in developing defense, 529 00:28:30,820 --> 00:28:31,940 really we want to identify 530 00:28:32,600 --> 00:28:34,700 those sort of common commodity sorts of attacks 531 00:28:34,700 --> 00:28:36,320 and start building up an idea 532 00:28:36,320 --> 00:28:38,000 of how these things look within the environment 533 00:28:38,000 --> 00:28:39,980 and then close at the sort of pinnacle 534 00:28:39,980 --> 00:28:41,460 with how we're going to start building 535 00:28:41,960 --> 00:28:43,420 detections and response around them. 536 00:28:43,640 --> 00:28:45,220 And again, the idea being is that 537 00:28:45,220 --> 00:28:46,900 once you start getting up here 538 00:28:46,900 --> 00:28:49,500 and developing ways of responding and identifying these 539 00:28:49,500 --> 00:28:51,300 that you're covering a very broad base 540 00:28:51,300 --> 00:28:52,800 of potential attacks based upon 541 00:28:52,800 --> 00:28:55,200 the identification of fundamental behaviors 542 00:28:55,200 --> 00:28:56,280 that adversaries are taking. 543 00:28:57,460 --> 00:28:59,720 So ultimately, and I just got the five minute warning 544 00:28:59,720 --> 00:29:00,940 so we're going to have time for questions, 545 00:29:01,220 --> 00:29:05,180 is if you look at how attacks play out, 546 00:29:05,260 --> 00:29:07,060 and I know this is sort of an offensive conference, 547 00:29:07,220 --> 00:29:09,680 I'm sorry, I'm a blue teamer all the way, 548 00:29:09,680 --> 00:29:11,840 that defense really has the advantage 549 00:29:11,840 --> 00:29:12,940 when it comes to ICS defense 550 00:29:12,940 --> 00:29:14,480 if you're doing this sort of work. 551 00:29:14,660 --> 00:29:17,140 Because when you look at how an adversary has to operate, 552 00:29:17,360 --> 00:29:19,500 they've got a lot of steps that they have to succeed 553 00:29:19,500 --> 00:29:20,860 in order to actually execute 554 00:29:20,860 --> 00:29:27,480 an ICS-based attack. 555 00:29:27,620 --> 00:29:28,780 They've got to get into the IT network, 556 00:29:28,980 --> 00:29:31,020 they have to figure out how to move from the IT network 557 00:29:31,020 --> 00:29:32,460 to get into the control system network, 558 00:29:32,700 --> 00:29:34,100 figure out where the hell they are 559 00:29:34,100 --> 00:29:35,700 and what's in that control system network 560 00:29:35,700 --> 00:29:37,480 if they haven't harvested that from a spreadsheet 561 00:29:39,680 --> 00:29:39,760 or something like that. 562 00:29:40,080 --> 00:29:41,880 But even if that step's been accomplished 563 00:29:41,880 --> 00:29:43,160 and they already know what they're getting into, 564 00:29:43,360 --> 00:29:44,980 you still have to get onto those devices, 565 00:29:45,240 --> 00:29:47,440 tunnel into where you can actually start delivering 566 00:29:47,440 --> 00:29:49,620 a destructive or destructive payload and deploy it. 567 00:29:49,780 --> 00:29:51,980 That's a lot of touch points that as defenders 568 00:29:51,980 --> 00:29:54,500 you can use in order to trigger off of what's going on 569 00:29:54,500 --> 00:29:57,420 and thus build out a more robust, multistage defense 570 00:29:57,420 --> 00:29:59,860 and if you're lucky, you get them here. 571 00:30:00,240 --> 00:30:01,840 If nothing else, you just want to make sure 572 00:30:01,840 --> 00:30:03,320 that your response isn't when you see smoke 573 00:30:03,320 --> 00:30:05,000 coming up from one of the machines on the plant floor. 574 00:30:06,360 --> 00:30:07,840 But really by following these steps, 575 00:30:07,960 --> 00:30:09,300 I would say that defense legitimately 576 00:30:09,680 --> 00:30:10,820 has the advantage in having done 577 00:30:10,820 --> 00:30:13,700 maybe things that are more on the attacker side. 578 00:30:14,520 --> 00:30:15,560 It's harder than it looks 579 00:30:15,560 --> 00:30:16,920 and it's harder than we often make it seem 580 00:30:16,920 --> 00:30:18,400 and adopting that approach, again, 581 00:30:18,480 --> 00:30:21,240 really drives home the point that 582 00:30:21,240 --> 00:30:22,700 defense is doable within these environments. 583 00:30:23,400 --> 00:30:24,100 So that's all I've got. 584 00:30:24,660 --> 00:30:26,100 And Mal, we've got a fast question. 585 00:30:31,160 --> 00:30:32,660 Great talk, Joe. Thank you. 586 00:30:33,280 --> 00:30:35,000 What do we know about how the attackers 587 00:30:35,000 --> 00:30:36,980 initially got into the trike environment? 588 00:30:37,380 --> 00:30:39,460 How did they get into the ICS side 589 00:30:39,680 --> 00:30:40,040 and how do we know? 590 00:30:40,140 --> 00:30:41,600 I don't know. 591 00:30:41,900 --> 00:30:42,960 I wish I did. 592 00:30:45,240 --> 00:30:47,240 There's still a lot of details around that attack 593 00:30:47,240 --> 00:30:48,400 that either are not public 594 00:30:48,400 --> 00:30:50,760 or are simply unknown for various reasons. 595 00:30:50,940 --> 00:30:52,660 So we're still poking at that one 596 00:30:52,660 --> 00:30:53,960 and hoping to answer that question someday, 597 00:30:54,020 --> 00:30:55,600 but unfortunately I don't have an answer for you right now. 598 00:30:56,120 --> 00:30:58,020 So when you were describing the Mimikatz 599 00:30:58,020 --> 00:31:00,740 that was all on the ICS already 600 00:31:00,740 --> 00:31:01,960 once they got there? 601 00:31:02,160 --> 00:31:02,400 Yes. 602 00:31:06,400 --> 00:31:07,620 What do you think 603 00:31:07,620 --> 00:31:08,400 of the prospects 604 00:31:09,680 --> 00:31:11,660 for the future of a not-Petya 605 00:31:11,660 --> 00:31:12,760 kind of attack 606 00:31:12,760 --> 00:31:14,720 that includes an ICS component 607 00:31:14,720 --> 00:31:17,900 that gets out of control like it did? 608 00:31:18,400 --> 00:31:18,800 Yes. 609 00:31:19,240 --> 00:31:20,140 That's a good question. 610 00:31:20,280 --> 00:31:21,740 And that again goes to my scary scenario. 611 00:31:22,620 --> 00:31:23,960 I've seen some other talks or whatever 612 00:31:23,960 --> 00:31:25,700 about like, oh, building an ICS attack 613 00:31:25,700 --> 00:31:26,580 is easy or whatever. 614 00:31:26,680 --> 00:31:27,860 You just buy some stuff off eBay 615 00:31:27,860 --> 00:31:29,400 and rip some firmware or whatever 616 00:31:29,400 --> 00:31:30,920 and boom, you build an exploit. 617 00:31:31,260 --> 00:31:32,520 It's not that easy, thank goodness, 618 00:31:32,520 --> 00:31:34,680 because again, a lot of the benefit to that 619 00:31:34,680 --> 00:31:36,560 is depending on how you're building out an attack 620 00:31:36,560 --> 00:31:37,720 and what equipment you're targeting. 621 00:31:37,920 --> 00:31:40,660 The unfortunate diversity in vendors, 622 00:31:40,840 --> 00:31:42,020 standards, and protocols 623 00:31:42,020 --> 00:31:43,700 builds in an 624 00:31:44,940 --> 00:31:46,020 unintentional layer of security 625 00:31:46,020 --> 00:31:48,180 in that something that's going to, say, 626 00:31:48,300 --> 00:31:49,900 attack the DMP3 protocol 627 00:31:49,900 --> 00:31:51,920 for North American electric operations 628 00:31:51,920 --> 00:31:54,020 is going to be inapplicable for targeting, say, 629 00:31:54,180 --> 00:31:55,680 IEC 61850, 630 00:31:55,880 --> 00:31:57,460 which, well, no, that's a bad example. 631 00:31:57,540 --> 00:31:59,440 IEC 104, crash override example, 632 00:31:59,600 --> 00:32:01,380 more prevalent in Europe and the Middle East. 633 00:32:02,520 --> 00:32:04,160 It depends on what sort of targets you're looking at, 634 00:32:04,240 --> 00:32:05,120 what you're actually identifying, 635 00:32:05,360 --> 00:32:06,700 and then weaponizing it in that fashion. 636 00:32:06,920 --> 00:32:08,840 So it is possible, though, we may, 637 00:32:09,040 --> 00:32:10,100 well, we didn't really see it, 638 00:32:10,120 --> 00:32:11,480 and this will be a talk tomorrow, 639 00:32:11,780 --> 00:32:14,420 the Modbus capture capability for VPN filter. 640 00:32:14,720 --> 00:32:16,100 People have kind of implemented something 641 00:32:16,100 --> 00:32:17,060 along these lines already, 642 00:32:17,280 --> 00:32:18,540 but that's only one example, 643 00:32:18,740 --> 00:32:19,580 and that is allegedly, 644 00:32:20,040 --> 00:32:21,580 we'll talk to Mr. DeSantis tomorrow, 645 00:32:22,160 --> 00:32:24,120 a state-sponsored sort of activity, 646 00:32:24,280 --> 00:32:26,720 so not talking about just any Johnny off the street 647 00:32:26,720 --> 00:32:27,860 executing that attack. 648 00:32:32,520 --> 00:32:33,360 The idea, of course, is to build that out, 649 00:32:33,420 --> 00:32:34,340 but it's not impossible. 650 00:32:34,780 --> 00:32:36,960 And we've already seen someone getting 651 00:32:36,960 --> 00:32:38,720 part of the way there with Olympic Destroyer, 652 00:32:38,740 --> 00:32:40,980 because even just the capability that it offered, 653 00:32:41,040 --> 00:32:43,160 which was very Windows system focused in terms of, 654 00:32:43,180 --> 00:32:45,200 well, what's funny, Olympic Destroyer, 655 00:32:45,220 --> 00:32:47,560 the wiper function operated very similar 656 00:32:47,560 --> 00:32:49,280 to the wiper function in crash override, 657 00:32:49,500 --> 00:32:51,380 in that on top of wiping some files, 658 00:32:51,520 --> 00:32:53,000 it also remapped systems in a way 659 00:32:53,000 --> 00:32:54,460 to render the system unbootable. 660 00:32:54,560 --> 00:32:55,860 So really using the same sort of behavior, 661 00:32:56,100 --> 00:32:57,000 again, behavior-based defense. 662 00:32:57,720 --> 00:32:59,740 But if you ran that in an ICS network, 663 00:33:02,520 --> 00:33:04,160 you know, deploy an implant that sniffs 664 00:33:04,160 --> 00:33:06,000 for Modbus traffic on the wire. 665 00:33:06,160 --> 00:33:08,080 If it's in a situation where it detects Modbus, 666 00:33:08,180 --> 00:33:09,220 I might be in the ICS network. 667 00:33:09,520 --> 00:33:11,620 Let me fire the wiper there because I'm gonna do more damage. 668 00:33:11,740 --> 00:33:12,880 Please don't take that idea. 669 00:33:15,040 --> 00:33:15,660 But anyway, 670 00:33:15,880 --> 00:33:17,880 and at that point you're wiping HMIs 671 00:33:17,880 --> 00:33:19,260 in engineering workstations, 672 00:33:19,360 --> 00:33:21,640 which, yeah, maybe you haven't caused physical destruction, 673 00:33:21,840 --> 00:33:23,320 but you've disabled your plant environment 674 00:33:23,320 --> 00:33:24,560 and your engineers can't do their job. 675 00:33:24,800 --> 00:33:26,120 So yeah, it's eminently possible, 676 00:33:26,280 --> 00:33:28,220 it's just not necessarily the easiest thing to do. 677 00:33:28,540 --> 00:33:28,980 Thank you. 678 00:33:32,520 --> 00:33:33,360 Are you taking this seriously in terms of 679 00:33:34,120 --> 00:33:35,900 making their next version of their products 680 00:33:35,900 --> 00:33:39,020 more hardened, more easily defendable, et cetera? 681 00:33:39,280 --> 00:33:39,860 I do. 682 00:33:40,240 --> 00:33:41,320 You know, that's one thing, like, 683 00:33:41,360 --> 00:33:43,060 everyone wants to bemoan the state of ICS security, 684 00:33:43,200 --> 00:33:44,440 like, oh, the vendors are shit, 685 00:33:44,520 --> 00:33:46,260 the engineers don't want to patch their crop or whatever. 686 00:33:46,380 --> 00:33:47,680 No, I think everyone's taking this serious. 687 00:33:48,060 --> 00:33:50,020 The problem is that you're not, 688 00:33:50,100 --> 00:33:51,820 like, for the same reason why WannaCry 689 00:33:51,820 --> 00:33:53,540 is gonna be a problem for the next five, ten years, 690 00:33:53,620 --> 00:33:54,960 probably, is that you just don't, like, 691 00:33:55,000 --> 00:33:56,420 oh, well, replace that piece of equipment. 692 00:33:56,500 --> 00:33:57,720 Like, that could cost a million dollars. 693 00:34:02,520 --> 00:34:03,480 That's a long tail, you know, 694 00:34:03,480 --> 00:34:05,560 that we're dragging behind us of legacy equipment 695 00:34:05,560 --> 00:34:06,740 with its own sort of problems, 696 00:34:06,880 --> 00:34:09,280 which is why, again, building that, you know, 697 00:34:09,280 --> 00:34:10,820 layered defensive model is important, 698 00:34:11,000 --> 00:34:13,120 because, like, yeah, I might have some PLCs or whatever 699 00:34:13,120 --> 00:34:14,960 that those are gonna be vulnerable to, you know, 700 00:34:15,480 --> 00:34:17,240 MS867 or whatever for the next 20 years, 701 00:34:17,360 --> 00:34:18,800 and I'm not ripping them out anytime soon. 702 00:34:18,980 --> 00:34:21,400 But I've got these HMIs and EWs 703 00:34:21,400 --> 00:34:22,560 that are sitting a little further upstream. 704 00:34:22,920 --> 00:34:24,760 I can harden those, though, to make sure that, 705 00:34:24,780 --> 00:34:26,400 you know, that lessens the likelihood 706 00:34:26,400 --> 00:34:27,800 that someone will be able to take advantage 707 00:34:27,800 --> 00:34:29,960 of the weaker equipment at a lower layer 708 00:34:34,980 --> 00:34:36,000 or at a lower level. 709 00:34:36,780 --> 00:34:37,140 No. 710 00:34:37,540 --> 00:34:39,560 Unless you're nuclear power, there is no air gap. 711 00:34:39,680 --> 00:34:41,200 Sorry, that ship sailed a long time ago. 712 00:34:42,540 --> 00:34:44,140 Yeah, I mean, just, that's a fact of life. 713 00:34:44,340 --> 00:34:45,360 Look at vendor documentation. 714 00:34:45,720 --> 00:34:46,220 You want updates? 715 00:34:46,440 --> 00:34:47,440 Well, you have to have network connectivity. 716 00:34:47,640 --> 00:34:47,920 Sorry. 717 00:34:48,640 --> 00:34:49,420 And you know what? 718 00:34:49,460 --> 00:34:51,560 We get a lot of efficiencies out of having no air gap 719 00:34:51,560 --> 00:34:53,320 in terms of, you know, even something is fundamental, 720 00:34:53,600 --> 00:34:55,780 which, out loud for WannaCry, you know, 721 00:34:55,780 --> 00:34:57,920 the way it was implemented was wrong, 722 00:35:02,520 --> 00:35:02,720 and we had to have a lot of 723 00:35:02,720 --> 00:35:05,060 process servers or systems within the IT network. 724 00:35:05,300 --> 00:35:07,020 I like having accurate electric bills 725 00:35:07,020 --> 00:35:09,580 or being able to actually measure my process and whatnot. 726 00:35:09,820 --> 00:35:11,500 So, yeah, these things are here and here to stay. 727 00:35:11,720 --> 00:35:13,300 So the best thing is, instead of bemoaning, 728 00:35:13,360 --> 00:35:15,340 like, oh, my God, if only we could air gap these things, 729 00:35:15,420 --> 00:35:16,780 like, eh, pump your brakes, you can't do that. 730 00:35:17,220 --> 00:35:19,540 You know, identify that that is no longer the case 731 00:35:19,540 --> 00:35:21,120 and how do we actually go about defending it then. 732 00:35:23,880 --> 00:35:25,400 All right. It's hot in here. 733 00:35:25,680 --> 00:35:27,280 So, yeah. 734 00:35:27,620 --> 00:35:28,740 Thanks, everyone, for showing up. 735 00:35:32,520 --> 00:35:34,860 Thank you.