1 00:00:00,000 --> 00:00:03,940 This next talk is presented by the Packet Hacking Village. 2 00:00:04,200 --> 00:00:07,940 And it is absolutely my pleasure to introduce to you... 3 00:00:07,940 --> 00:00:09,960 well, I'm not going to... don't clap yet... 4 00:00:09,960 --> 00:00:10,440 Mr. 5 00:00:10,440 --> 00:00:11,620 Pete Hay. 6 00:00:11,700 --> 00:00:16,820 Pete Hay is Principal Security Strategist... 7 00:00:16,820 --> 00:00:20,640 oh, I'm sorry, Strategist at SimSpace. 8 00:00:21,300 --> 00:00:25,800 Yeah, he's also the founder of the CyberReport. 9 00:00:25,800 --> 00:00:26,620 Got it? 10 00:00:26,620 --> 00:00:27,760 Okay. 11 00:00:27,760 --> 00:00:31,900 And Pete's presentation is on the importance of arts and craft. 12 00:00:32,740 --> 00:00:34,760 By the way, I will have to say... 13 00:00:35,420 --> 00:00:37,320 arts and craft is becoming a lost art. 14 00:00:37,320 --> 00:00:39,400 I would imagine you're going to be mentioning that. 15 00:00:39,560 --> 00:00:40,240 Sadly. 16 00:00:40,240 --> 00:00:41,580 Absolutely the truth, yes. 17 00:00:41,580 --> 00:00:42,680 In ThreatOps. 18 00:00:42,680 --> 00:00:45,540 And it is now my absolute pleasure to introduce to you... 19 00:00:45,540 --> 00:00:46,500 Pete Hay! 20 00:00:48,300 --> 00:00:49,580 Thank you very much. 21 00:00:49,580 --> 00:00:55,660 I will be your guide on this next exploration of arts and crafts in ThreatOps. 22 00:00:55,660 --> 00:01:00,060 The topic comes from my personal experience, my background. 23 00:01:00,060 --> 00:01:01,540 I have to do the about me. 24 00:01:01,540 --> 00:01:06,500 I don't think I get paid all of that nothing that I get paid for doing this if I don't show you this. 25 00:01:06,940 --> 00:01:11,840 My background is I am a recovering Navy sailor. 26 00:01:12,460 --> 00:01:13,700 That's going perfectly. 27 00:01:13,700 --> 00:01:14,480 Excellent. 28 00:01:14,480 --> 00:01:16,240 The live demo gods are angry. 29 00:01:18,720 --> 00:01:21,340 And then I spent a bunch of time teaching after that. 30 00:01:21,340 --> 00:01:23,820 I taught JCAC, a couple of other places like that. 31 00:01:23,820 --> 00:01:31,080 And one of the things that struck me and this concept of arts and crafts started resonating as I was teaching. 32 00:01:31,080 --> 00:01:37,020 Because one of the things that's so important for learning something is having a visual medium for delivering your concepts. 33 00:01:37,140 --> 00:01:42,040 And to be completely honest, I am terrible at drawing. 34 00:01:42,200 --> 00:01:45,860 And my students, I'd draw something up there and be like, yeah, that's a laptop over there. 35 00:01:45,860 --> 00:01:47,480 And they'd say, it is? 36 00:01:47,760 --> 00:01:48,900 And I'd say, yes, I promise. 37 00:01:48,900 --> 00:01:51,420 But look, they didn't hire me for my arts and crafts skills. 38 00:01:51,420 --> 00:01:53,220 And I said that for years kind of as a joke. 39 00:01:53,220 --> 00:01:57,560 And what I realized is getting better at arts and crafts is something I desperately needed. 40 00:01:57,560 --> 00:02:00,280 Because it's such an information-dense medium. 41 00:02:00,440 --> 00:02:03,260 So on top of that, I'm, like I said, a teacher. 42 00:02:03,260 --> 00:02:04,380 I'm neurodivergent. 43 00:02:04,380 --> 00:02:09,940 And you're probably going to see a little bit of that come into play as I'm mentally up here saying, slow down. 44 00:02:09,980 --> 00:02:11,180 Slow down. 45 00:02:11,420 --> 00:02:15,660 And also, I really like the visual medium for that reason. 46 00:02:15,660 --> 00:02:18,680 Because not everybody learns the same way. 47 00:02:18,680 --> 00:02:28,600 When you're neurodivergent, you're increasingly aware that other people might also diverge from the... 48 00:02:28,600 --> 00:02:32,140 I don't want to think too hard about that. 49 00:02:32,140 --> 00:02:35,600 But other people may not interact with the world the same way that you do. 50 00:02:36,000 --> 00:02:40,040 And so for that reason, I want to teach audibly as I'm speaking. 51 00:02:40,040 --> 00:02:41,620 I want to demonstrate visually. 52 00:02:41,620 --> 00:02:44,280 I want to give people repetition, hands-on. 53 00:02:44,280 --> 00:02:52,580 And the combination of those mediums means that there's going to be a greater throughput or a greater baud rate of data transfer and more success along the way. 54 00:02:52,580 --> 00:02:55,060 So that's where this concept of arts and crafts. 55 00:02:55,120 --> 00:02:58,120 And then because you're all captive, I'm going to show you pictures of my cute family. 56 00:02:58,240 --> 00:02:59,340 And tough. 57 00:02:59,340 --> 00:02:59,960 You've got to deal with it. 58 00:02:59,960 --> 00:03:00,940 So there we go. 59 00:03:01,740 --> 00:03:02,120 All right. 60 00:03:02,120 --> 00:03:05,560 So Arthur Brisbane said, a picture is worth a thousand words. 61 00:03:05,560 --> 00:03:12,600 And I think that's the core concept that we're talking about today is the density of information that you can put in a visual medium. 62 00:03:12,600 --> 00:03:17,960 And so my follow-on is, well, how many words then is a good diagram actually worth? 63 00:03:18,060 --> 00:03:27,340 The reality is what I'm going to try to show you today is we can convey a great deal of information in a good diagram. 64 00:03:27,480 --> 00:03:38,360 And I'm going to be using the medium of threat intelligence and incident response and incident reports as a way of conveying that we can condense that information down and make it more accessible to people. 65 00:03:38,360 --> 00:03:44,920 And what I really like about it, and again, this kind of goes back to both the teaching and the neurodivergence, is not everyone is an expert in everything. 66 00:03:45,120 --> 00:03:48,280 And you'll be shocked to hear that I am also not an expert in everything. 67 00:03:48,460 --> 00:03:56,740 And so when you get a great picture, a great diagram, a great analogy, that helps lower the barrier of entry. 68 00:03:56,800 --> 00:04:01,500 And it's one of the things that I've really enjoyed watching change over the time that I've been in cyber. 69 00:04:01,500 --> 00:04:08,220 There was a time where there was a lot of elitism and kind of not invented here, we're red teamers or whatever, whatever, whatever. 70 00:04:08,480 --> 00:04:10,840 And I feel like that's changing for the better. 71 00:04:10,840 --> 00:04:13,880 And so I'm really excited to share this with you. 72 00:04:14,380 --> 00:04:18,260 So my concept is, first of all, diagrams. 73 00:04:18,320 --> 00:04:22,000 Diagrams are an essential part of cybersecurity knowledge management. 74 00:04:22,200 --> 00:04:25,140 Most diagrams focus on a single domain though. 75 00:04:25,140 --> 00:04:30,780 So I have some examples up here that I've taken out of Cisco reports and one of them is from a Mandiant report. 76 00:04:30,780 --> 00:04:34,520 And what you have is Cisco has this great timeline. 77 00:04:34,520 --> 00:04:38,840 Like what's the history of the APT that we might be looking at there? 78 00:04:38,920 --> 00:04:52,460 The one that I really like from Mandiant, it is actually useful, but what I love about it is, the second one there, is that is the history of the different tooling that APT 43 has used historically. 79 00:04:52,560 --> 00:04:58,100 And if I didn't explain that to you, there would be essentially no way to glean that from the image. 80 00:04:58,100 --> 00:05:02,500 And it's there, it's useful, it needs words surrounding it. 81 00:05:02,900 --> 00:05:08,080 And if that's what you're looking for, it can be very useful and very informative. 82 00:05:08,460 --> 00:05:15,580 But one of the things that bothers me about this a lot, and I know Mandiant is down there, so don't rat me out. 83 00:05:15,580 --> 00:05:20,740 But the X and Y axis don't mean anything in that diagram. 84 00:05:20,740 --> 00:05:27,620 And that bothers me to a great deal because there's nothing to contextualize the visual medium to help me understand what I'm looking at. 85 00:05:27,620 --> 00:05:34,620 And then finally, we have an example of what I think is a very good diagram from a Talos report on... 86 00:05:34,620 --> 00:05:42,400 and I'm actually a new unknown actor that's attacking Ukrainian and Polish government entities. 87 00:05:42,400 --> 00:05:47,660 And what they're showing is the timeline of the behavior of a piece of malware. 88 00:05:47,660 --> 00:05:54,340 That initially, at the first stage, it is some kind of lure, whether it be PowerPoint or Excel. 89 00:05:54,340 --> 00:05:57,180 And then from there, you get different outputs. 90 00:05:57,180 --> 00:06:00,900 And the idea is they're showing you a flow, a logical flow of what takes place. 91 00:06:00,960 --> 00:06:02,580 I like some of these things. 92 00:06:02,580 --> 00:06:04,280 I dislike some of these things. 93 00:06:04,280 --> 00:06:10,720 And so what I've tried to do is put it together in a way where we can use the X and Y axes effectively. 94 00:06:11,080 --> 00:06:12,620 And here's the thing. 95 00:06:12,620 --> 00:06:13,920 There's a risk with that. 96 00:06:13,920 --> 00:06:18,760 And as we know, there's a rule that there must be an XKCD that covers this concept. 97 00:06:18,780 --> 00:06:20,020 There is. 98 00:06:20,020 --> 00:06:22,660 There are 14 competing standards. 99 00:06:22,660 --> 00:06:24,220 I think I've shown you three of them. 100 00:06:25,660 --> 00:06:32,280 So obviously, I'm the guy to create the new one, the one standard to rule them all. 101 00:06:32,680 --> 00:06:34,780 And what's the outcome of that? 102 00:06:36,500 --> 00:06:38,000 15 competing standards. 103 00:06:38,000 --> 00:06:42,560 So my goal is not actually... I've had this in mind from the beginning. 104 00:06:42,560 --> 00:06:45,020 So my goal is not to create the one perfect standard. 105 00:06:45,020 --> 00:06:52,380 What I want to do is, like so many things, I want to give you a tool that you can put in your repertoire and break it out at the correct time. 106 00:06:52,580 --> 00:06:57,240 I think you'll find that what I'm showing you is really, really good for things like executive summaries. 107 00:06:57,540 --> 00:07:00,100 Maybe if you're familiar with the term bottom line up front. 108 00:07:00,300 --> 00:07:01,140 That sort of thing. 109 00:07:01,140 --> 00:07:02,800 This visualization is going to do that. 110 00:07:02,800 --> 00:07:09,880 And then the beauty of it is, depending on how you present it, you can actually put a lot more information for people to zoom in closer and get more detail. 111 00:07:09,900 --> 00:07:11,500 So we'll go over that in just a moment. 112 00:07:11,500 --> 00:07:12,480 Everybody ready? 113 00:07:12,560 --> 00:07:13,180 Loose? 114 00:07:13,180 --> 00:07:13,780 Good? 115 00:07:13,860 --> 00:07:14,520 Me too. 116 00:07:14,980 --> 00:07:15,260 All right. 117 00:07:15,260 --> 00:07:16,500 So how do we organize the data? 118 00:07:16,500 --> 00:07:17,860 First of all, great question. 119 00:07:17,860 --> 00:07:18,800 Very glad you asked. 120 00:07:18,800 --> 00:07:19,680 Appreciate it. 121 00:07:19,780 --> 00:07:21,080 You all are really on top of it. 122 00:07:21,200 --> 00:07:22,780 And I appreciate your engagement. 123 00:07:23,860 --> 00:07:26,320 So what I'm doing, I call this a threat matrix. 124 00:07:26,860 --> 00:07:31,560 Mostly because it sounds cool and because I'm going to use a lot of geometry, not geography. 125 00:07:31,560 --> 00:07:32,460 That would be different. 126 00:07:33,140 --> 00:07:37,760 Geometry related terms and it kind of seemed to go together, so deal with it. 127 00:07:38,240 --> 00:07:39,640 I've spent some time in marketing. 128 00:07:39,640 --> 00:07:40,080 I'm sorry. 129 00:07:40,080 --> 00:07:40,840 I apologize. 130 00:07:40,840 --> 00:07:45,120 So the matrix idea is we have two axes. 131 00:07:45,520 --> 00:07:50,600 And on the first one, I'm going to use, excuse me, on the X axis, a timeline. 132 00:07:50,600 --> 00:07:51,720 Why a timeline? 133 00:07:51,780 --> 00:07:54,560 Because shockingly, it's not there on lots of things. 134 00:07:54,560 --> 00:08:01,360 So we kind of have it in threat intelligence in terms of fate, like Mandiant, threat attack life cycle. 135 00:08:01,540 --> 00:08:03,620 We have, I see a lot of people looking like this. 136 00:08:03,620 --> 00:08:04,180 I apologize. 137 00:08:04,180 --> 00:08:06,060 There's a better view coming soon. 138 00:08:06,400 --> 00:08:07,720 Save your necks. 139 00:08:07,720 --> 00:08:12,460 But we have this idea of maybe, we want to say tactics, right? 140 00:08:12,460 --> 00:08:15,380 The columns in the MITRE ATT&CK framework. 141 00:08:15,900 --> 00:08:21,700 And there is kind of a sequencing, kind of a timeline, but it's not guaranteed to be accurate. 142 00:08:21,700 --> 00:08:29,100 And when we want to understand actual behaviors, actual TTPs associated with a threat actor, we need sequencing. 143 00:08:29,100 --> 00:08:34,400 And time is the method that I chose for sequencing the behaviors of a threat actor in this case. 144 00:08:35,880 --> 00:08:40,820 So first of all, the X axis timeline, like I said, and I have a couple of examples. 145 00:08:40,820 --> 00:08:43,660 This is what an attack's timeline looks like in a Talos report. 146 00:08:43,840 --> 00:08:47,800 There's another example of a timeline in terms of looking at a single binary. 147 00:08:47,920 --> 00:08:50,800 And I think I mentioned earlier that they tend to be domain focused. 148 00:08:50,800 --> 00:08:52,740 So in this case, the domain is history. 149 00:08:52,780 --> 00:08:55,640 In this case, the domain is the behavior of a given binary. 150 00:08:55,860 --> 00:09:03,420 And over here, you have a completely illegible layer of the MITRE ATT&CK framework, which is both the strength and the weakness of the framework. 151 00:09:03,500 --> 00:09:05,140 It can cover a lot of things. 152 00:09:05,140 --> 00:09:07,320 On the other hand, it also covers a lot of things. 153 00:09:07,320 --> 00:09:09,180 So it takes up a lot of space, right? 154 00:09:10,000 --> 00:09:12,060 So there are at times... 155 00:09:13,040 --> 00:09:14,580 Apparently, I need to just stop pacing. 156 00:09:14,580 --> 00:09:15,240 I don't know. 157 00:09:16,720 --> 00:09:21,840 I'm going to generate some kind of tick as I try and figure out what I have to do to make that not turn black. 158 00:09:22,020 --> 00:09:27,060 So the idea being that there is a lot of information conveyed there, but there's not a... 159 00:09:27,060 --> 00:09:30,060 You'll notice in the MITRE ATT&CK layers, there is no... 160 00:09:30,700 --> 00:09:33,140 The hip bone is connected to the thigh bone. 161 00:09:33,140 --> 00:09:36,140 Technique A leads directly into technique B. 162 00:09:36,460 --> 00:09:52,480 And so when we're talking about detection engineering or designing TTP-related detections or responses, though the techniques are valuable and important, it is difficult to put them together and have them coalesce into a response action or a detection that one can employ. 163 00:09:53,120 --> 00:10:00,440 And so, again, I'm proposing using time or sequencing, however you prefer to think of it, as a manner of conveying that visually. 164 00:10:01,780 --> 00:10:04,300 And then, of course, yep, timeline. 165 00:10:04,300 --> 00:10:05,180 There we go. 166 00:10:07,020 --> 00:10:11,240 The other thing I have is the y-axis, which I'm calling artifact planes. 167 00:10:11,820 --> 00:10:15,560 The idea being I want to cluster things based on where you find them. 168 00:10:15,980 --> 00:10:21,480 So I started with host, network, in terms of the planes. 169 00:10:21,480 --> 00:10:24,000 You can subdivide them to your heart's content. 170 00:10:24,300 --> 00:10:25,240 I'm not going to stop you. 171 00:10:25,240 --> 00:10:29,180 There's no, you know, artifact plane police, I promise. 172 00:10:29,580 --> 00:10:36,620 But my thought is I've divided them into places where I commonly find things, internal and external network artifacts. 173 00:10:36,840 --> 00:10:41,000 On a host, you might have things that are resident in memory and have other things that are resident on disk. 174 00:10:41,000 --> 00:10:42,800 So I subdivide that way. 175 00:10:42,820 --> 00:10:43,680 You could do cloud. 176 00:10:43,680 --> 00:10:51,660 You could have, like, network, compute, store, all locations that you would have logs or artifacts indicating behaviors. 177 00:10:51,840 --> 00:10:52,480 Because that's the core. 178 00:10:52,480 --> 00:10:56,820 We want to get to the artifacts related to the behaviors and visually represent all of the above. 179 00:10:57,360 --> 00:10:57,860 All right. 180 00:10:57,860 --> 00:11:00,360 So then we break those down into nodes. 181 00:11:00,840 --> 00:11:01,900 What are the nodes? 182 00:11:01,900 --> 00:11:04,460 Well, it's the thing that relates to it. 183 00:11:04,480 --> 00:11:11,220 The really important thing is commonly when you have a log, it relates to a thing. 184 00:11:11,460 --> 00:11:14,080 And you have, so for instance, I'll use Sysmon. 185 00:11:14,080 --> 00:11:19,060 We have lots of different event IDs that indicate the behavior of a process. 186 00:11:19,240 --> 00:11:21,800 But we don't coalesce that down into the process. 187 00:11:21,800 --> 00:11:24,520 The process did this, the process did that, the process did that. 188 00:11:24,520 --> 00:11:26,500 The process related with something in this way. 189 00:11:26,500 --> 00:11:30,580 And that's what I'm proposing we actually graphically represent up there, I promise. 190 00:11:32,180 --> 00:11:32,800 See? 191 00:11:35,080 --> 00:11:37,020 So what sorts of nodes do we have? 192 00:11:37,020 --> 00:11:40,100 Well, you see, there's an email up there, and I used an email picture for this. 193 00:11:40,100 --> 00:11:41,600 You could draw boxes as well. 194 00:11:41,600 --> 00:11:43,640 And if I were drawing, I assure you, I would. 195 00:11:43,640 --> 00:11:45,180 Sometimes I'll do circles. 196 00:11:45,400 --> 00:11:47,720 They kind of even look like circles when I draw them. 197 00:11:48,160 --> 00:11:53,700 So whatever it is you want to represent, there's a medium, there's a manner that you can represent it. 198 00:11:53,700 --> 00:11:59,820 So examples, file servers, host, endpoint, infrastructure, email, attachments, links, web servers, domains. 199 00:11:59,820 --> 00:12:01,620 Those are all things you might find in the network. 200 00:12:01,880 --> 00:12:05,160 In the host, you might find a host, by the way. 201 00:12:05,160 --> 00:12:06,260 Those exist. 202 00:12:06,260 --> 00:12:07,420 We should know stuff about them. 203 00:12:07,420 --> 00:12:10,060 Addressing, domain names, et cetera. 204 00:12:10,060 --> 00:12:12,020 IP addresses, MACs. 205 00:12:12,520 --> 00:12:18,100 Then on that host, there may be processes, user context, registry files, name pipes, et cetera. 206 00:12:18,100 --> 00:12:18,900 Fair enough? 207 00:12:19,020 --> 00:12:20,120 Following along? 208 00:12:20,120 --> 00:12:20,560 Cool, cool, cool. 209 00:12:20,560 --> 00:12:22,240 We'll get to the fun stuff soon, I promise. 210 00:12:23,720 --> 00:12:24,680 All right. 211 00:12:24,960 --> 00:12:26,080 Network plane. 212 00:12:26,600 --> 00:12:33,740 Another couple of things that I've done here is one of the things I realized as I was looking at this in terms of artifacts, there are certain places where you get a lot of artifacts. 213 00:12:33,860 --> 00:12:37,160 And I don't really want to draw a line for every single artifact. 214 00:12:37,280 --> 00:12:38,900 That's where I drew these triangles. 215 00:12:38,900 --> 00:12:41,620 I'm trying to represent the relationship. 216 00:12:41,700 --> 00:12:45,980 So if in one being a C2 session, essentially over time... 217 00:12:46,940 --> 00:12:48,540 Sorry, my hands got big there. 218 00:12:48,540 --> 00:12:52,360 Over time, that process communicated with a single endpoint. 219 00:12:52,360 --> 00:12:54,980 So it's kind of like many connections to one endpoint. 220 00:12:54,980 --> 00:12:57,320 That's what that shape of the triangle is trying to represent. 221 00:12:57,900 --> 00:13:01,560 On the other hand, we're talking about enumeration on the local network. 222 00:13:01,560 --> 00:13:06,520 So again, you'll notice that's all combined in the internal network artifact plane. 223 00:13:06,520 --> 00:13:08,460 It's finding multiple hosts. 224 00:13:08,460 --> 00:13:13,280 And it's one host scanning multiple endpoints, multiple IPs, et cetera. 225 00:13:13,320 --> 00:13:14,880 Different shaped triangle. 226 00:13:14,980 --> 00:13:15,840 Fair enough. 227 00:13:15,980 --> 00:13:19,220 I love how you're all coming along with me because you basically have no choice. 228 00:13:20,500 --> 00:13:21,100 All right. 229 00:13:21,100 --> 00:13:21,840 Host plane. 230 00:13:21,840 --> 00:13:23,240 Same kind of idea. 231 00:13:23,240 --> 00:13:26,760 I subdivided it into memory and file system artifacts. 232 00:13:26,760 --> 00:13:32,020 You notice I put the registry on the line between the two because, you know, sometimes it's in memory, sometimes it's on disk. 233 00:13:32,020 --> 00:13:33,360 That made sense to me. 234 00:13:33,400 --> 00:13:34,260 Do what you want. 235 00:13:34,260 --> 00:13:36,560 You can represent these things however you wish, right? 236 00:13:38,680 --> 00:13:40,540 No artifact police here. 237 00:13:41,160 --> 00:13:48,480 And again, we have processes, files being written to disk, and you can see the writes, reads, loads, et cetera, being the lines connecting them. 238 00:13:50,280 --> 00:13:50,780 All right. 239 00:13:50,860 --> 00:13:52,300 How do I use it? 240 00:13:52,520 --> 00:13:54,580 Again, y'all are really on top of things. 241 00:13:54,580 --> 00:13:55,220 I appreciate it. 242 00:13:55,220 --> 00:13:56,180 Great question. 243 00:13:56,880 --> 00:13:59,000 I really appreciate you being here with me for this. 244 00:14:00,320 --> 00:14:06,640 So I've actually got a couple of use cases, and I'm going to stop pacing now and sit down and walk through them with you. 245 00:14:07,020 --> 00:14:14,460 Just so you know, I'm going to use Miro for a lot of this because, again, you remember the part where I covered I'm bad at drawing, so we're going to let the computer draw for me. 246 00:14:14,880 --> 00:14:22,960 So what I'm going to do is I'm going to sit down, I'm going to swipe over to Miro, and I'm going to walk through Royal Ransomware, and that one we're going to actually dive a little bit into the weeds. 247 00:14:23,320 --> 00:14:25,700 It's going to be literally function level. 248 00:14:25,920 --> 00:14:27,540 There will be assembly on there. 249 00:14:27,540 --> 00:14:39,260 And the beauty of it is I don't have to memorize all of it, so I'm going to show you how to use comments and things like that to make it really, really easy to operationalize that threat intelligence, to show the flow of the program, the binary in that case. 250 00:14:39,540 --> 00:14:46,820 For Talos, the Talos report, it's Euro Trooper, and we're going to examine how it is that Euro Trooper conducts themselves. 251 00:14:46,820 --> 00:15:04,020 We're actually going to visually see their behaviors, and we're actually going to talk about a use case where with Euro Trooper, they have a single dependency, though they have multiple lures and fishing techniques, they have a single central point when it comes to their getting from stage 1 to stage 2. 252 00:15:04,160 --> 00:15:09,580 And if I were designing detections and response actions, this is what I would target. 253 00:15:09,740 --> 00:15:29,500 And I think it becomes very visually obvious, and it's funny because sometimes I think threat intel, operationalizing threat intel and designing behavior-based hunts and response actions is viewed as difficult, and in this case, you're going to see identifying what needs to be hunted on or responded to becomes pretty easy visually. 254 00:15:30,060 --> 00:15:39,220 And then finally, I've got two more things, and we'll kind of see how we're doing on time on that, but there's a new attacker against Ukraine and Poland. 255 00:15:39,220 --> 00:15:50,880 That report came out from Talos last week, and I wanted to do something really, really fresh, mostly because I was doing it anyway, and I thought it would be fun to share with you, and show you how the visualization comes together. 256 00:15:50,880 --> 00:15:54,820 And the thing that's interesting about this one is Talos hasn't really finished their report. 257 00:15:54,820 --> 00:16:07,660 They did kind of an initial report, and we can show you what we know up to that point, and then we see the dropper in the second stage, and then they're kind of like, well, we haven't really done all the analysis beyond this, but we get the ability to defend because, 258 00:16:07,660 --> 00:16:10,160 again, there's that chain of dependency. 259 00:16:10,160 --> 00:16:19,700 And if you can break that chain of dependency, then you have a viable technique kind of irrespective of what follows in stage three and four of this attack. 260 00:16:19,700 --> 00:16:21,940 There's also something that really bothers me. 261 00:16:21,940 --> 00:16:29,620 You hear this phrase commonly that the defender has to be right all the time, and the attacker only has to be right once. 262 00:16:29,700 --> 00:16:32,720 And my good friend Bobby is sitting right over there, and he's a red teamer. 263 00:16:32,720 --> 00:16:38,940 And I've heard him cuss a lot at certain times, and that's because it's not that easy for red team. 264 00:16:38,940 --> 00:16:40,600 They don't have to just be right once. 265 00:16:40,600 --> 00:16:46,960 There are a lot of things that have to go right in order for an exploit operation to be successful. 266 00:16:46,960 --> 00:17:00,680 And so really what we're going to do is we're going to try and identify those connections that are vulnerable to a defense action and kind of kick the chair out from underneath them and make Bobby start cussing again, which is a good thing any time I can make it happen. 267 00:17:01,540 --> 00:17:07,920 And then if we may be able to get into examining using this for incident response, we'll just see how that goes with time. 268 00:17:08,500 --> 00:17:09,840 All right, buckle up. 269 00:17:09,920 --> 00:17:17,700 So with Royal Ransomware, what I've done here is, and again, I want to make sure that nobody is thinking I'm telling you, I'm doing research for myself. 270 00:17:17,700 --> 00:17:18,220 This is not. 271 00:17:18,220 --> 00:17:19,740 This came from a Talos report. 272 00:17:19,900 --> 00:17:22,220 The link is in the attachments on this. 273 00:17:22,700 --> 00:17:27,760 What I am doing is I am standing on the backs of giants in this, and I'm just trying to make it more accessible to others. 274 00:17:28,520 --> 00:17:32,580 So first thing I do is I add a comment that has the link to the content. 275 00:17:32,580 --> 00:17:34,440 This is where you can find the original research. 276 00:17:34,560 --> 00:17:36,220 You're more than welcome to look it up yourself. 277 00:17:36,920 --> 00:17:41,160 And again, that's going to kind of back up everything that I have to say about this going on. 278 00:17:41,160 --> 00:17:47,740 So you'll notice we have three planes here, local network, host memory artifacts, and host file system artifacts. 279 00:17:47,980 --> 00:17:56,400 And it's kind of quiet outside of the host memory artifacts until we get to the point where the ransomware starts encrypting, and then it gets real busy real quick. 280 00:17:56,680 --> 00:17:57,980 So we'll start. 281 00:17:58,240 --> 00:17:59,260 What is the method? 282 00:17:59,260 --> 00:18:00,300 Well, it's phishing. 283 00:18:00,480 --> 00:18:07,460 We don't have a lot of detail on how it happens because there are a lot of different Royal campaigns, and so I'm not going to belabor the point on how that might get there. 284 00:18:07,460 --> 00:18:12,420 We're going to start with an executable, getting written to disk, getting clicked on. 285 00:18:12,420 --> 00:18:15,180 You'll notice the parent process here is explorer.exe. 286 00:18:15,180 --> 00:18:18,780 That means one of you people clicked on it. 287 00:18:20,160 --> 00:18:21,160 Somebody did. 288 00:18:21,580 --> 00:18:24,560 And then we have Royal ransomware running on the system, right? 289 00:18:25,540 --> 00:18:28,080 Because, again, does it really matter how it got there? 290 00:18:28,100 --> 00:18:34,060 In this case, at this point, we are trying to look at the function level, how this ransomware actually behaves. 291 00:18:34,060 --> 00:18:37,180 Not as important to know how it got there when that's what we're examining. 292 00:18:37,540 --> 00:18:40,220 So the first thing we have, we start exploring functions. 293 00:18:40,220 --> 00:18:42,460 And you'll notice there's a lot of detail here. 294 00:18:42,460 --> 00:18:43,880 So I put it in comments. 295 00:18:44,060 --> 00:18:44,560 Why? 296 00:18:44,560 --> 00:18:51,080 Because if I wanted to do an overview, I can zoom out right here and say, all right, it does a couple of things, and then it tries to delete the shadow file. 297 00:18:51,080 --> 00:18:52,540 That's what's happening down here. 298 00:18:52,660 --> 00:18:59,340 One of the really interesting things that happens is this function calls command.exe, tries to delete the shadow file. 299 00:18:59,340 --> 00:19:03,380 The command line is very specific, very signatureable, very defendable. 300 00:19:03,380 --> 00:19:09,140 And by the way, Royal isn't the only malware family that tries to delete the shadow file in the exact same way. 301 00:19:09,380 --> 00:19:24,540 So if you were to use this technique, if you were to build a defense against an executable running command, trying to delete the shadow file with this exact set of switch options, which is probably a little hard for you all to read down there, but that's Windows system 32 vs. 302 00:19:24,540 --> 00:19:33,400 admin.exe delete shadows all quiet, you would not only successfully defend against Royal ransomware, but other ransomware families as well. 303 00:19:33,400 --> 00:19:35,880 This is one of those points of coalescence. 304 00:19:36,040 --> 00:19:36,820 Why? 305 00:19:36,820 --> 00:19:42,680 Because ransomware has to delete shadow files in order to be successful in preventing restoration, right? 306 00:19:43,000 --> 00:19:51,340 So, shockingly, there are a finite number of ways to do that, and this is an excellent place to identify and focus defenses around. 307 00:19:51,820 --> 00:20:06,000 Next, we could get into this and talk about every single aspect of what each function is doing, and I'm not going to do this for this talk, because the talk is not about Royal ransomware as excited as I would get about diving into that, because again, 308 00:20:06,000 --> 00:20:07,160 it's not my research. 309 00:20:07,280 --> 00:20:11,200 What I'm doing here is showing you how you can convey what is taking place. 310 00:20:11,440 --> 00:20:21,480 So first of all, at one point, it splits into an encryption slash network thread, and then it starts scanning the network for other vulnerable machines, other machines that it could potentially encrypt. 311 00:20:21,480 --> 00:20:24,960 I think we can all agree that's pretty bad, and we would like to prevent that. 312 00:20:25,280 --> 00:20:30,380 The other thing that happens is it spins up separate multithreaded note writing. 313 00:20:30,380 --> 00:20:34,000 It has to write its ransom notes, and it multithreads that as well. 314 00:20:35,120 --> 00:20:41,920 And then finally, it actually starts enumerating SMB shares, which again is an identifiable behavior. 315 00:20:41,940 --> 00:20:45,260 You could build time-based detections on SMB enumeration. 316 00:20:45,260 --> 00:20:52,460 You could take a look at how many SMB requests an individual process is doing at a given time. 317 00:20:52,460 --> 00:20:53,480 It almost doesn't matter. 318 00:20:53,480 --> 00:20:55,060 The point is we know it does this. 319 00:20:55,060 --> 00:21:01,200 It's something that it probably shouldn't be doing, especially in that limited user context, and we could build a detection around this pretty simply. 320 00:21:02,440 --> 00:21:17,820 The next thing it does is when it finds those machines that have SMB shares that it can do encryption of, You'll notice it's multithreaded. 321 00:21:17,820 --> 00:21:19,140 None of that is surprising. 322 00:21:19,280 --> 00:21:25,740 And again, I have details broken out on exactly what you can find for every single function that's present and what it's doing. 323 00:21:26,220 --> 00:21:28,800 If you want to go to that depth, you absolutely can. 324 00:21:28,800 --> 00:21:32,180 If you want to talk over it from a broad level, you can do that as well. 325 00:21:32,360 --> 00:21:35,120 And then finally, we get to the tail end, and what do you see? 326 00:21:35,120 --> 00:21:37,620 You'll notice again those triangles. 327 00:21:37,620 --> 00:21:39,860 I put them in red because they're very bad here. 328 00:21:39,860 --> 00:21:43,220 Again, a highly effective communication medium, right? 329 00:21:43,280 --> 00:21:44,320 Red equals bad. 330 00:21:45,620 --> 00:21:49,420 So here what we see is locally lots of read-writes. 331 00:21:49,780 --> 00:21:52,400 Is that something we could do from a detection standpoint? 332 00:21:52,400 --> 00:21:57,840 Like read-writes, using crypto libraries, those sorts of things over and over again? 333 00:21:57,840 --> 00:21:59,080 Yes, absolutely. 334 00:21:59,420 --> 00:22:06,340 And you know, it's funny, I was talking to some guys from Halcyon.ai, and that's one of the many things that they do to prevent ransomware. 335 00:22:06,340 --> 00:22:08,140 That's the bread and butter of their business. 336 00:22:08,640 --> 00:22:16,480 Same thing, those remote read-writes with crypto involved, probably a bad thing as well. 337 00:22:16,740 --> 00:22:26,120 So again, the point being that if I needed to explain in general what royal ransomware does, whether it be at a function level, I can do this function level. 338 00:22:26,120 --> 00:22:37,060 If I wanted to, I could collapse each of these functions down into a descriptor, like hey, this is what's happening, this binary is reaching out and touching the network, it's doing some SMB enumeration, it's doing some local file writing and encryption. 339 00:22:37,060 --> 00:22:40,940 All of those aspects can be communicated effectively with the method. 340 00:22:41,560 --> 00:22:42,940 That's the whole point. 341 00:22:43,960 --> 00:22:47,760 So next, I'm going to take a look at the Eurotrooper. 342 00:22:47,820 --> 00:22:51,440 And I apparently zoomed way, way in on Eurotrooper. 343 00:22:51,440 --> 00:22:55,720 I really like Eurotrooper because we're now talking about a campaign. 344 00:22:56,080 --> 00:22:57,600 What's the campaign look like? 345 00:22:57,600 --> 00:23:01,320 Well, what I've tried to do here is give you that thousand foot view. 346 00:23:01,320 --> 00:23:05,880 Enough details to understand what's going on, not so much detail that people start nodding off. 347 00:23:07,300 --> 00:23:08,680 So far, so good. 348 00:23:09,080 --> 00:23:12,780 All right, so in this, the campaign starts with a phishing email. 349 00:23:13,020 --> 00:23:15,160 And in this case, there is something very specific. 350 00:23:15,160 --> 00:23:19,380 They call it noda.rar, this campaign, use that over and over again. 351 00:23:19,760 --> 00:23:23,040 We'll pause now for a word from our sponsor, Panasonic. 352 00:23:24,680 --> 00:23:25,460 All right. 353 00:23:27,380 --> 00:23:30,080 And now, so what happens? 354 00:23:30,080 --> 00:23:33,120 Noda.rar gets downloaded, I put Outlook here, does it really matter? 355 00:23:33,120 --> 00:23:34,920 No, it could be anybody, don't care. 356 00:23:35,360 --> 00:23:38,940 Email, email client, noda.rar gets written. 357 00:23:38,940 --> 00:23:41,100 You notice I've drawn this very long. 358 00:23:41,100 --> 00:23:44,220 The reason I've drawn it very long is things are happening sequentially. 359 00:23:44,220 --> 00:23:46,380 That file is being accessed. 360 00:23:46,480 --> 00:23:50,180 And what you actually see is a write, you see a read, and then much later on you see a delete. 361 00:23:50,180 --> 00:23:55,700 So I made the file long because, again, I'm just trying to show sequencing and who's doing what and when. 362 00:23:56,800 --> 00:24:00,560 So we have, again, 7-zip with the parent process of Explorer. 363 00:24:00,560 --> 00:24:03,700 That means that, again, Phyllis clicked on it. 364 00:24:04,320 --> 00:24:07,000 And, you know, poor Phyllis, she didn't know any better. 365 00:24:07,000 --> 00:24:08,720 She's just trying to do her job out there. 366 00:24:09,220 --> 00:24:11,320 And now a link file has been downloaded. 367 00:24:11,320 --> 00:24:22,860 And because of the lure, and this one is, again, targeting, if I recall correctly, targeting largely Ukraine and Poland and, you know, no idea who it might be. 368 00:24:22,940 --> 00:24:28,960 But, you know, some people have been targeting them with a number of different rats in recent days, shockingly. 369 00:24:28,960 --> 00:24:35,980 And this has a commonality in all of their campaigns, and it is a link file. 370 00:24:36,120 --> 00:24:39,660 That they use a link file, and that link file is going to launch Mishta. 371 00:24:41,220 --> 00:24:47,580 And Mishta is going to, once again, and you'll notice parent process of Explorer yet again. 372 00:24:47,580 --> 00:24:49,260 So, again, a click on the link file. 373 00:24:49,380 --> 00:24:55,800 Mishta is going to reach out to the Internet and download, and you'll notice I do have the actual domain here. 374 00:24:55,800 --> 00:24:59,500 Because this is from the actual threat intelligence. 375 00:24:59,940 --> 00:25:04,140 That they're going to that particular domain, I see laptops opening, I might not, but your call. 376 00:25:05,160 --> 00:25:12,200 That's the domain they go to, and from there they download an HTA file, which is going to provide instructions for Mishta for what it's going to do next. 377 00:25:12,200 --> 00:25:15,320 Then it's going to follow those, execute those instructions. 378 00:25:15,440 --> 00:25:22,060 And those instructions include downloading, spawning a PowerShell process that's going to download file.pdf. 379 00:25:22,060 --> 00:25:24,980 This particular campaign downloaded from the same place. 380 00:25:24,980 --> 00:25:33,680 The next thing that's going to happen is another separate PowerShell process is going to launch, and it's going to download this lsax.exe. 381 00:25:33,680 --> 00:25:41,700 And then another PowerShell executable will launch, and that will delete the noda.rar. 382 00:25:42,020 --> 00:25:47,200 So, here's my point about points of congruence and about things coalescing. 383 00:25:47,200 --> 00:25:54,060 There is a dependency for everything right of this on essentially that link file and Mishta. 384 00:25:54,060 --> 00:25:56,800 And in particular, Mishta touching the Internet. 385 00:25:57,280 --> 00:26:07,700 So, if I were a defender, I might look at whoever's running my enterprise IT and say, Hey, y'all use Mishta to touch the Internet for any reason? 386 00:26:07,860 --> 00:26:08,600 No? 387 00:26:09,240 --> 00:26:10,040 Good. 388 00:26:10,120 --> 00:26:12,860 And we're going to deploy a response action that's going to disallow it. 389 00:26:12,860 --> 00:26:14,480 Lots of different ways of doing that. 390 00:26:17,920 --> 00:26:20,380 I feel haunted, I'm going to be honest with you. 391 00:26:21,280 --> 00:26:22,880 So, there are lots of different ways of doing that. 392 00:26:22,880 --> 00:26:28,420 The point being that the entire Euro Trooper campaign is dependent upon that one thing. 393 00:26:28,420 --> 00:26:31,820 Kick out that leg of the milk stool and the whole thing comes crashing down. 394 00:26:32,060 --> 00:26:33,420 Plus, it's funny. 395 00:26:34,580 --> 00:26:36,180 All right, so what else happens? 396 00:26:36,640 --> 00:26:37,620 What else happens? 397 00:26:37,620 --> 00:26:42,620 Well, the PowerShell is going to download and execute that lsax. 398 00:26:42,820 --> 00:26:49,240 And lsax is going to reach out and download a servicehost.exe and spawn that as a child process. 399 00:26:50,700 --> 00:26:52,020 SpoolServe.exe. 400 00:26:52,020 --> 00:26:54,120 And SpoolServe is going to launch. 401 00:26:54,300 --> 00:26:56,900 And SpoolServe is going to do some C2. 402 00:26:56,900 --> 00:27:00,300 And that's where you actually get to your final stage of your implant. 403 00:27:00,300 --> 00:27:05,800 And you get actual APT-like behavior with C2, XFIL, etc. 404 00:27:06,000 --> 00:27:11,580 Point being, there's an incredible dependency in this particular campaign on one thing. 405 00:27:11,580 --> 00:27:13,980 And that one thing being link files and Mishta. 406 00:27:13,980 --> 00:27:22,600 And between those two, you can do a combination of network defenses, host defenses saying, hey, Mishta.exe is not allowed to touch the internet. 407 00:27:22,600 --> 00:27:26,040 You could say we're not allowing link files to launch Mishta. 408 00:27:26,040 --> 00:27:30,800 There are all kinds of different ways that one could go about defending against this particular campaign. 409 00:27:31,040 --> 00:27:32,900 And I want to emphasize this. 410 00:27:32,900 --> 00:27:39,920 That doesn't involve copying and pasting the IOCs that I have in this report into various tools. 411 00:27:39,920 --> 00:27:41,100 Fair enough? 412 00:27:41,420 --> 00:27:42,220 Cool. 413 00:27:42,220 --> 00:27:44,940 I see some nodding. 414 00:27:45,080 --> 00:27:46,340 It's always good. 415 00:27:46,380 --> 00:27:48,020 And it wasn't off this time. 416 00:27:48,020 --> 00:27:48,860 It's excellent. 417 00:27:49,640 --> 00:27:50,340 All right. 418 00:27:50,340 --> 00:27:58,600 And then the last thing I want to talk to you about, like I mentioned, is this new report that I saw. 419 00:27:58,600 --> 00:28:02,500 Again, I used comments pretty heavily to show where the original source was. 420 00:28:02,500 --> 00:28:06,800 This is another Cisco Talos blog that was out, I think, the 7th of August. 421 00:28:06,800 --> 00:28:14,920 In this, what I really like about this one is there are a couple of different ways this can go. 422 00:28:15,100 --> 00:28:28,320 And so what I'm going to show you is multiple campaigns with minimal difference in actual overall behavior, despite having different hashes, different files, different lures, et cetera. 423 00:28:28,320 --> 00:28:42,620 So in this case, their lure is this is targeting Ukraine and Poland, and they've got PPTs targeting Ukraine, military orgs specifically, and then there are Excel lures from the Ukraine State Treasury. 424 00:28:42,800 --> 00:28:51,620 So two different lures, different behaviors, kind of, but if you actually look at how it executes, pretty similar. 425 00:28:51,620 --> 00:28:54,600 So we have now a mail client downloading and writing the file. 426 00:28:54,600 --> 00:28:55,920 It doesn't really matter which file it is. 427 00:28:55,920 --> 00:28:56,980 It's written to disk. 428 00:28:56,980 --> 00:28:59,700 And both of them contain VBA script. 429 00:28:59,700 --> 00:29:04,220 So that VBA is going to, it actually contains a lot of information. 430 00:29:04,220 --> 00:29:14,860 So as PowerPoint or Excel, doesn't really matter which one, again, whichever one it is, it's going to start running that VBA, unless, of course, you all have policies in place to prohibit those sorts of things. 431 00:29:15,740 --> 00:29:16,820 Good talk. 432 00:29:17,240 --> 00:29:20,660 So then that runs, and it does two writes. 433 00:29:20,720 --> 00:29:22,740 There's no download in this case. 434 00:29:22,740 --> 00:29:27,920 By the way, here's another use of a link file, again, targeted against Ukraine. 435 00:29:27,920 --> 00:29:31,940 Would we maybe say maybe there's some familiarity there, maybe there's some commonality? 436 00:29:31,940 --> 00:29:32,400 Who knows? 437 00:29:32,400 --> 00:29:35,120 It might just be people not wanting to rob from the poor. 438 00:29:35,120 --> 00:29:44,360 If link files are being successful, and, you know, Will Ferrell is saying, you know, so hot right now, then we jump in on that action and go with what works. 439 00:29:44,980 --> 00:29:46,080 That was my meme reference. 440 00:29:46,080 --> 00:29:47,060 I promised one. 441 00:29:47,940 --> 00:30:02,480 So link file, and then the other thing that is, again, contained within that VBA in a data blob, it's actually broken up so you won't find the binary if they're scanning for the binaries, a couple of different blobs to make up the binary, which is an executable or DLL. 442 00:30:03,180 --> 00:30:14,660 That is, they then use redsurf32.exe or run DLL32.exe to launch that, and whichever one it is downloads an image. 443 00:30:14,660 --> 00:30:16,500 By the way, I'm going to zoom in right here. 444 00:30:16,500 --> 00:30:23,760 This is the actual image that on the end of that image, and it's not steganography, guys. 445 00:30:24,060 --> 00:30:26,980 I know some of us are excited because we're like, finally, it's here. 446 00:30:26,980 --> 00:30:29,080 It's just data on the end of the image. 447 00:30:29,080 --> 00:30:30,680 It's not, you know, encapsulated in the image. 448 00:30:30,680 --> 00:30:32,740 It's just extra data on the end of the JPEG. 449 00:30:33,020 --> 00:30:35,240 But it contains a binary. 450 00:30:35,800 --> 00:30:40,120 That binary is going to download, decrypt, and run. 451 00:30:40,580 --> 00:30:42,400 Sorry, back to our sponsor. 452 00:30:43,020 --> 00:30:45,480 It's going to download, decrypt, and run in memory. 453 00:30:46,420 --> 00:30:48,860 And here's the really interesting part. 454 00:30:49,740 --> 00:30:52,860 Cisco's like, anyway, we're kind of done with our analysis at this point. 455 00:30:52,860 --> 00:30:56,680 And if you read their blog, they're like, that's because our decryptor broke on this. 456 00:30:56,680 --> 00:31:07,120 So we know from some other reporting and some callbacks, we're pretty sure that what follows up is either Cobalt Strike or Agent Tesla. 457 00:31:07,540 --> 00:31:16,980 But we can't prove that, so they actually stopped their early threat bulletin at that point until they could prove more, which I, A, respect. 458 00:31:16,980 --> 00:31:21,380 And, B, I'm very grateful they didn't wait until they had it perfect to spit this out. 459 00:31:21,420 --> 00:31:23,380 Because people have to defend. 460 00:31:23,520 --> 00:31:24,240 And guess what? 461 00:31:24,240 --> 00:31:26,200 We've got enough here to do some defense. 462 00:31:26,440 --> 00:31:29,980 Because what's our point of congruence? 463 00:31:30,620 --> 00:31:33,420 It's the VBA running in PowerShell or Excel. 464 00:31:33,420 --> 00:31:35,560 It doesn't really matter which one it is. 465 00:31:35,560 --> 00:31:41,340 Or you could say it's that it's register 32 or run DLL 32 downloading from the Internet. 466 00:31:41,340 --> 00:31:45,240 Another thing that's highly signatureable and highly preventable. 467 00:31:45,820 --> 00:31:53,100 So this is at the core of my concept, and it looks like I do have enough time, so I'll go actually take a look at this from an incident response standpoint. 468 00:31:53,980 --> 00:31:59,260 That means I was talking faster, and that means that the neurodivergence was in full effect. 469 00:31:59,260 --> 00:32:02,100 So I'm glad that everybody's still here with me. 470 00:32:02,580 --> 00:32:06,600 So let's go ahead and take a look at what this looks like in an incident response. 471 00:32:06,600 --> 00:32:11,160 So first of all, you may be asking, what happens if there are multiple hosts compromised? 472 00:32:11,160 --> 00:32:12,160 Great question. 473 00:32:12,160 --> 00:32:14,120 It can be handled a bunch of different ways. 474 00:32:14,160 --> 00:32:19,020 This is one example where I showed on the timeline multiple hosts being compromised. 475 00:32:19,020 --> 00:32:24,760 There's actually a third host down below, but I couldn't figure out a good way to make it even slightly legible and on a single pane. 476 00:32:26,280 --> 00:32:28,800 And you'll notice that the timeline still continues. 477 00:32:28,800 --> 00:32:32,300 The hosts can continue their behavior, but there are multiple hosts compromised. 478 00:32:32,300 --> 00:32:44,200 The other thing from an incident response, and you may be thinking it's odd that I'm tying incident response and threat intel together, but what I would point out is that threat intel is just somebody else's incident response, right? 479 00:32:44,480 --> 00:32:46,780 That's just not yours, which is ideal. 480 00:32:46,780 --> 00:32:48,360 It's a great place to learn from. 481 00:32:48,520 --> 00:32:51,960 In fact, I think many would argue it's better to learn from others' mistakes than their own. 482 00:32:51,960 --> 00:32:54,680 That's not my method, but many people employ that. 483 00:32:56,280 --> 00:32:59,740 So in this case, we start from the initial alert. 484 00:32:59,740 --> 00:33:04,560 So in this case, an initial alert would be process injection taking place. 485 00:33:04,700 --> 00:33:09,240 In this case, I've got really good example names, so I'm just calling it Trojan.exe. 486 00:33:09,240 --> 00:33:11,040 It's just a placeholder for Trojan. 487 00:33:11,140 --> 00:33:14,860 And we've got services.exe being injected into. 488 00:33:14,880 --> 00:33:19,000 From this point, we now need to figure out what has happened, right? 489 00:33:19,000 --> 00:33:22,700 So bear with me and imagine that not everything is populated here right now. 490 00:33:22,700 --> 00:33:24,980 We're actually conducting an incident response. 491 00:33:25,060 --> 00:33:29,280 So you basically have two directions you can move, left and right, from that alert. 492 00:33:29,280 --> 00:33:31,760 I'm moving back to source and trying to figure out where it is. 493 00:33:31,760 --> 00:33:34,920 I'm moving forward and trying to scope the effects that I experienced. 494 00:33:35,480 --> 00:33:36,840 Either one is fine with me. 495 00:33:36,840 --> 00:33:37,880 They both have their benefits. 496 00:33:37,880 --> 00:33:39,920 If you go backwards, you can kick off threat hunts. 497 00:33:39,920 --> 00:33:46,560 That may be more effective in defending your business continuity operations from the risk and prevent it from spreading. 498 00:33:46,560 --> 00:33:54,240 One of my favorite things is if this is sitting in an inbox and we're part of a campaign, I get that in this case, poor Phyllis. 499 00:33:54,240 --> 00:33:55,600 I hope nobody here is named Phyllis. 500 00:33:55,600 --> 00:33:56,480 That's not them. 501 00:33:56,480 --> 00:33:57,240 It's other Phyllis. 502 00:33:57,240 --> 00:33:58,060 Different Phyllis. 503 00:33:58,060 --> 00:34:03,160 But this poor person has clicked on this link and we now have an incident going on. 504 00:34:03,160 --> 00:34:09,360 But I'd sure like to know if it's sitting in 30 more inboxes and I've got 30 more potential incidents sitting in my email. 505 00:34:09,360 --> 00:34:19,500 So we might prioritize going backwards to origin and finding artifacts that we can remove to protect our business more effectively. 506 00:34:19,760 --> 00:34:25,140 Conversely, you may be concerned about what is the scope of this and we need to triage what's happening right now. 507 00:34:25,160 --> 00:34:27,600 I've seen playbooks that emphasize both. 508 00:34:27,600 --> 00:34:30,380 I've seen playbooks that emphasize one over the other. 509 00:34:30,540 --> 00:34:36,900 I've seen playbooks that say you should have one analyst go one direction and one analyst go the other way and, you know, meet in the middle, right? 510 00:34:37,480 --> 00:34:41,840 All of those, I think they're good arguments in favor of and that's not my talk today. 511 00:34:41,900 --> 00:34:46,620 So what we're going to do is we're just going to walk through what it looks like to go backwards first and then I'll go forward second. 512 00:34:46,840 --> 00:34:49,560 So going backwards, I'm going to say, listen, I've got a process. 513 00:34:49,560 --> 00:34:51,680 I know it's doing something that we find suspicious. 514 00:34:51,680 --> 00:34:57,220 I need to scope it and I want to know where it came from, which means I'm looking for the create process. 515 00:34:57,220 --> 00:35:02,800 Whether that be Sysmon Event ID 1 or CrowdStrike or whatever, it doesn't really matter. 516 00:35:02,800 --> 00:35:03,940 I need to know where it came from. 517 00:35:04,040 --> 00:35:05,320 Who's its parent process? 518 00:35:05,500 --> 00:35:07,260 In this case, we find that it's Explorer. 519 00:35:07,260 --> 00:35:07,940 All right, great. 520 00:35:07,940 --> 00:35:09,980 Now, where did the file come from, the image load? 521 00:35:11,000 --> 00:35:13,380 Well, that's Trojan.exe sitting on disk. 522 00:35:13,380 --> 00:35:14,960 What do you think I'm going to follow up next? 523 00:35:14,960 --> 00:35:16,660 All right, where did it come from on disk? 524 00:35:16,760 --> 00:35:17,800 What is it doing? 525 00:35:18,860 --> 00:35:21,100 And we're going to look at, what are we going to do? 526 00:35:21,100 --> 00:35:25,740 We now have a file name and a path and a location. 527 00:35:25,940 --> 00:35:30,420 And so we have a new query that we can run and say, where's the file write? 528 00:35:30,420 --> 00:35:31,920 What is the parent process on the file write? 529 00:35:31,920 --> 00:35:33,120 What's the command line on that? 530 00:35:33,120 --> 00:35:33,600 Et cetera. 531 00:35:33,600 --> 00:35:37,360 In this case, we're blaming it on Outlook again, and that's where it came from. 532 00:35:37,360 --> 00:35:41,240 Now, I have the ability to, am I going to go into email logs? 533 00:35:41,240 --> 00:35:42,840 Are we going to look at this in network traffic? 534 00:35:42,960 --> 00:35:47,620 Am I going to say, no, I'm a host analyst and I'm going to call a grown-up and have them do that on the email side of things? 535 00:35:47,620 --> 00:35:52,480 All of those are, again, viable based on whatever your organization does and how you implement it. 536 00:35:52,640 --> 00:35:56,580 So, the diagram, but the diagram still gets populated. 537 00:35:56,580 --> 00:36:07,460 And the beauty is, when we have the file, we now have something discreet and huntable to determine if we've got, again, 20 more incipient incidents sitting in our enterprise that we don't know about. 538 00:36:07,740 --> 00:36:13,860 I think one of the big challenges facing, this is a personal opinion, so you can take it, it's worth the paper it's written on. 539 00:36:13,860 --> 00:36:19,160 But I think one of the big challenges we have is much too much of cybersecurity is linear. 540 00:36:19,160 --> 00:36:23,220 We're waiting for a full report before a threat hunt gets kicked off. 541 00:36:23,220 --> 00:36:26,920 We're waiting for IOCs to be generated before detection engineering occurs. 542 00:36:26,920 --> 00:36:41,320 One of the things I really like about if you are capturing your artifacts in a diagram like that, it means that when your SOC supervisor, who has, in my opinion, the hardest job I can think of, because you've got all these people, all these different things going on, 543 00:36:41,320 --> 00:36:46,440 and you're trying to figure out what's in a person's head, knowledge management is extremely difficult in this industry. 544 00:36:47,240 --> 00:36:57,980 You now have a method for looking over their shoulder and getting an understanding of where they are currently looking at this incident, how well scoped it is, maybe even how far along they are. 545 00:36:57,980 --> 00:37:04,000 Can you task another person to help them out and say, hey, you know what, ignore that network stuff, I've got a guy, we'll hook that up. 546 00:37:04,000 --> 00:37:10,760 These are the sorts of ways that it can be beneficial to an enterprise in live, in use. 547 00:37:11,520 --> 00:37:14,180 You'll notice they have run key persistence. 548 00:37:14,540 --> 00:37:22,260 That's one of those things that we might want to look at in general, just we know that Trojan.exe, what all did it do? 549 00:37:22,260 --> 00:37:28,360 Look for event ID3, network connections, where was anything downloaded, a second stage, et cetera. 550 00:37:28,360 --> 00:37:30,220 These are all actions we can take. 551 00:37:30,220 --> 00:37:36,700 And the cool thing is if we find that second stage download, now we've got yet another IOC we can pass over to detection engineering. 552 00:37:36,700 --> 00:37:50,300 And we can go ahead and, again, if there are 30 more of these sitting in 30 more inboxes, if we do nothing more than deny list secondary.infection.com, I hope you already have that blocked. 553 00:37:50,620 --> 00:37:58,580 But we can deny list that, and so even if somebody does click on that in an inbox, now there's no second stage, hopefully. 554 00:37:58,580 --> 00:38:04,000 And you should be able to, again, lower the risk profile of your organization. 555 00:38:04,880 --> 00:38:06,900 So now let's talk about going forward. 556 00:38:06,900 --> 00:38:16,020 As we go forward, I think one of the more challenging parts of an investigation is when you do move forward, because when you go backwards, it's like a Sudoku. 557 00:38:16,020 --> 00:38:21,780 There are only so many artifacts, and everything has to happen, and everything has to mean something. 558 00:38:21,780 --> 00:38:27,840 So you're kind of filling in the blanks in the Sudoku, saying, well, I know this, and so the hip bone's connected to the thigh bone. 559 00:38:27,840 --> 00:38:28,880 So where's the thigh bone? 560 00:38:28,880 --> 00:38:29,420 What does it look like? 561 00:38:29,420 --> 00:38:30,920 I know how to write my query for that. 562 00:38:31,120 --> 00:38:37,360 When you talk about what's coming next, there are kind of an infinite number of things that a binary can do. 563 00:38:37,420 --> 00:38:43,300 But we know certain things are higher risk factors, higher risk thresholds than others. 564 00:38:43,300 --> 00:38:45,320 So we're going to look for network connection. 565 00:38:45,320 --> 00:38:45,920 Why? 566 00:38:45,920 --> 00:38:47,480 Because C2 is likely. 567 00:38:47,480 --> 00:38:49,600 We're going to look for X fill, because it's likely. 568 00:38:49,600 --> 00:38:54,020 We're going to look for file writes. 569 00:38:54,020 --> 00:39:01,540 We're going to look for, like I said, multiple file writes, read writes, close, and encryption. 570 00:39:02,720 --> 00:39:06,640 So this is where I think the analytic art very much comes in. 571 00:39:06,720 --> 00:39:12,580 And the beauty is, as you start populating this, you now have the ability to say, oh, I've looked for this. 572 00:39:12,580 --> 00:39:17,200 Somebody can come look over your shoulder and be like, hey, man, did you look for network connections? 573 00:39:17,240 --> 00:39:18,100 Like, oh, you know what? 574 00:39:18,100 --> 00:39:19,240 No, I'm a host guy. 575 00:39:19,240 --> 00:39:21,060 I didn't think about that network-y stuff. 576 00:39:21,060 --> 00:39:22,280 I could probably look into that. 577 00:39:22,280 --> 00:39:23,480 Let me do that. 578 00:39:23,480 --> 00:39:27,240 It gives you, again, a visual medium to communicate. 579 00:39:27,520 --> 00:39:36,480 I think in cybersecurity, where a lot of the challenge lies is in that coordination, collaboration, delegation, and prioritization. 580 00:39:36,760 --> 00:39:46,160 And this gives you an information-dense medium to convey your status and to seek out help from that SME when you need it, to enable collaboration. 581 00:39:46,160 --> 00:39:48,060 As somebody says, no, no, no, you know what? 582 00:39:48,500 --> 00:39:50,180 I'll take the network stuff. 583 00:39:50,260 --> 00:39:52,140 He's going to take the email stuff. 584 00:39:52,140 --> 00:39:55,560 She's going to do the forward triage. 585 00:39:55,560 --> 00:39:57,340 And you're going to run it back to source. 586 00:39:58,140 --> 00:40:02,300 That's the purpose of how I would use this in an incident response. 587 00:40:02,680 --> 00:40:14,420 And, again, I just want to point out that the beauty of it is, when you find those connections and if you see an exploit being thrown across the wire, let's say, for lateral movement, that's something that takes place. 588 00:40:14,420 --> 00:40:17,560 I have it here in the internal network as an IOC. 589 00:40:17,560 --> 00:40:20,880 The CVE is something that you could track and document. 590 00:40:21,040 --> 00:40:24,620 And then the beauty is you can say, all right, now I do need help. 591 00:40:24,660 --> 00:40:26,620 I'm going to break glass, pull lever, and say, you know what? 592 00:40:26,620 --> 00:40:27,740 We've got lateral movement. 593 00:40:27,960 --> 00:40:33,060 I'm going to keep running this one to ground because we want to stop this from spreading any further. 594 00:40:33,060 --> 00:40:49,160 But I'm going to need Josh to jump in and Jamie to jump in to hunt on these machines to do the incident investigation on those machines while we task other people to do further hunting and work better to collaborate and coordinate as we defend our enterprise. 595 00:40:49,320 --> 00:40:53,040 So that is at the core of how I use it. 596 00:40:53,040 --> 00:40:55,060 I added a couple of acknowledgments. 597 00:40:55,480 --> 00:40:58,480 First of all, like I said, this is not my research. 598 00:40:59,040 --> 00:41:01,040 This comes from threat intel. 599 00:41:01,040 --> 00:41:10,560 One of the things that I want to point out and part of the reason why I like doing it this way is I actually have open on another tab some of these reports. 600 00:41:10,960 --> 00:41:13,440 And they are not short. 601 00:41:14,020 --> 00:41:16,060 Some of them are very, very long. 602 00:41:16,740 --> 00:41:21,900 And especially like this Euro Trooper one, there are very few pretty, pretty pictures, and I like those. 603 00:41:22,600 --> 00:41:27,120 And so I can scroll and scroll and scroll or you can do what most people do. 604 00:41:27,120 --> 00:41:30,620 I believe that when you use threat intel, you do one of three things. 605 00:41:30,620 --> 00:41:37,460 The first thing is you pop it open and you read the executive summary and you say, oh, not what I'm interested in and move on. 606 00:41:37,540 --> 00:41:39,360 Or you got enough out of it and you move on. 607 00:41:39,580 --> 00:41:43,180 The second thing you do is what I do, which is scroll down and look for the picture. 608 00:41:43,840 --> 00:41:47,700 So I'm going to scroll down and this is the one I particularly like. 609 00:41:47,880 --> 00:41:50,180 And I'll jump in and be like, is that interesting enough? 610 00:41:50,440 --> 00:41:50,660 Good. 611 00:41:50,660 --> 00:41:52,320 I didn't have to read that boring executive summary. 612 00:41:52,320 --> 00:41:52,860 I see nodding. 613 00:41:52,860 --> 00:41:53,900 That's always a good sign. 614 00:41:54,260 --> 00:41:56,220 Anyone who agrees with me, I, of course, think is brilliant. 615 00:41:56,220 --> 00:41:58,980 So you can nod and I'll be like, man, sharp crowd. 616 00:41:58,980 --> 00:42:02,900 And then the final thing is perhaps the most common thing. 617 00:42:02,900 --> 00:42:04,060 And what's that going to be? 618 00:42:05,660 --> 00:42:06,620 There it is. 619 00:42:06,620 --> 00:42:08,460 Scroll to the bottom and look for the IOCs, right? 620 00:42:09,140 --> 00:42:10,600 And let's see. 621 00:42:10,600 --> 00:42:12,620 Oh, look, there's a GitHub repository right there. 622 00:42:12,620 --> 00:42:16,620 I'm going to jump in, copy and paste like a gentleman, and move on with my day. 623 00:42:17,680 --> 00:42:28,000 This is really long, but it only took me about 25 minutes to turn this report into the visual that I showed you of Euro Trooper, which is this one right here. 624 00:42:30,840 --> 00:42:34,200 I really like being able to consume Intel this way. 625 00:42:34,200 --> 00:42:42,060 In terms of teaching an executive or briefing an executive committee or senior leadership or a new person saying, you know what? 626 00:42:42,060 --> 00:42:42,700 This is what we saw. 627 00:42:42,700 --> 00:42:43,840 This happened to us. 628 00:42:43,840 --> 00:42:44,760 Rough day. 629 00:42:45,300 --> 00:42:49,780 And now we've got a repository of information for that new person. 630 00:42:49,780 --> 00:43:01,800 And like I said, knowledge management, we have a very strong verbal history in terms of oral tradition in terms of how we pass on knowledge. 631 00:43:01,820 --> 00:43:07,700 And this gives us an opportunity to move it into another medium so that we can convey it. 632 00:43:07,700 --> 00:43:09,780 And as people come in, they can learn. 633 00:43:09,800 --> 00:43:12,860 We can kind of train up the next generation of defenders. 634 00:43:13,180 --> 00:43:17,240 And as we all know, a generation in cyber is like, you know, 45 minutes, right? 635 00:43:17,860 --> 00:43:21,180 Anyway, I'm going to stop here and take questions. 636 00:43:21,180 --> 00:43:24,100 If anybody wants to jump in, there's a microphone right there. 637 00:43:24,100 --> 00:43:24,900 Thank you. 638 00:43:25,840 --> 00:43:29,460 And now comes my favorite part, which is stump the chump. 639 00:43:29,460 --> 00:43:30,120 So I'm in.