[00:00.020 --> 00:01.180] All right. [00:01.400 --> 00:02.160] Welcome, everyone. [00:02.540 --> 00:03.640] I'm Chris Corbin. [00:03.740 --> 00:09.010] This is my colleague, Cody Thomas, and today we'll be talking to you guys about how to attack with threat intelligence. [00:10.700 --> 00:12.700] First things first, a little bit about us. [00:13.100 --> 00:14.580] I'm a cybersecurity engineer. [00:14.620 --> 00:18.040] I do research and development for an organization called MITRE. [00:18.260 --> 00:29.780] For those of you not familiar, MITRE is a federally funded research and development center where we try to tackle subjects or problems that are industry-wide in an effort to bring, you know, the level of safety for everyone. [00:31.560 --> 00:38.060] I've been working with ATT&CK in some shape, way, or form for the past five or so years, pretty much my entire time at MITRE. [00:38.900 --> 00:43.520] And most recently, I've been creating, using ATT&CK to create adversary emulation plans. [00:43.580 --> 00:51.040] And that's what we'll be talking about today, how to use, how to create these adversary emulation plans, how to use them, and how to effectively become a better red teamer or blue teamer for that matter. [00:52.820 --> 00:57.320] Hi, I'm Cody Thomas, also working at MITRE with Chris, only for about two years, though. [00:58.620 --> 01:04.480] Before we've had ATT&CK focus largely on Windows, so I went ahead and pushed for it to come out into more of Mac and Linux domain. [01:05.820 --> 01:09.810] And then, so most of my background is more in red teaming and tool development. [01:10.010 --> 01:20.450] And so you'll see that kind of pop up throughout the presentation as we get kind of hands-on technical details of using this to be more of a red team and active on network. [01:23.340 --> 01:23.740] Awesome. [01:23.740 --> 01:33.360] So first things first, I wanted to start with what we think the root cause or the problem or root problem really is for a lot of the issues that we're trying to solve. [01:34.170 --> 01:39.680] And as you can see above, what we think that is, is this traditional offensive testing workflow. [01:39.930 --> 01:54.160] So any sort of, you know, cyber game or maybe a pen test or a red team, blue team, we tend to see way more often than we would hope this sort of traditional workflow where you have red doing their own thing, blue doing their own thing, not a lot of interaction. [01:54.820 --> 02:07.880] A lot of times they're butting heads, there's some politics involved, and there's a lot of problems here that we really need to aim to solve in order to, you know, take these games to the next level, to have red and blue events become more valuable. [02:08.710 --> 02:21.940] So yeah, red will typically come in and, you know, after determining scope with the network owner and, you know, the objectives, they'll start going through their kill chain, they'll start doing their discovery, maybe their initial access, trying to get onto the machine, [02:22.120 --> 02:34.120] a single machine, and then moving laterally from there, maybe escalating privileges if needed, laying persistence down, and then finally, maybe exfiltration or, you know, attempt to get to domain admin or something along those lines. [02:34.780 --> 02:43.430] At the end, they basically just take all everything they did and everything they tried, what worked and what didn't, they'll throw that all into a report and just toss it over the fence. [02:43.920 --> 02:57.360] The blue team, on the other hand, if they even know a red team is going on, usually they may or may not, they're doing their just regular day job, they're, you know, collecting, protecting, collecting it off their network, they're trying to protect their network as well, [02:57.920 --> 03:03.240] detecting anything, any malicious behavior and triaging any alerts that pop up and whatnot. [03:05.360 --> 03:09.240] So, when this happens, we end up with some of these traditional outcomes. [03:09.980 --> 03:25.040] If we're measuring RED's success on how far they were able to penetrate into a network, or basically how far they were able, or how many things they were able to steal, what this does is cause a certain problem in that they're not necessarily testing the blue team, [03:25.180 --> 03:37.060] they're testing the network and the blue team's maybe defenses as a whole, instead of maybe providing them slightly better and more focused results, or things for them to look out for. [03:37.840 --> 03:45.100] They basically, in that report, they write at the end, they'll just put, again, they'll put all the techniques, and they'll put any IOCs, indicators of compromise for all the stuff they did. [03:45.300 --> 03:50.240] So, these are your file hashes, your file names, what IPs and domain names they came from, and their C2 and whatnot. [03:51.180 --> 03:57.300] So, if, depending on who's responsible for cleanup, blue team can make sure that none of that's still in their environment. [03:58.890 --> 04:10.480] And like I said, if RED's measured on how many documents they're able to steal, or anything like that, next year they're going to make sure that they, or not next year, but the next time they come in, they really want to make sure that they're able to win again next time. [04:10.860 --> 04:16.320] And this is the mentality that I think is really the whole win-lose mentality is something that we're trying to target here. [04:17.360 --> 04:24.080] Blue, on the other hand, once they receive that report, they just, you know, they're just doing their daily job and dealing with their daily incident response. [04:24.140 --> 04:29.500] They get this huge, massive report from RED that, Hey, this is all the ways that you guys failed at your job. [04:30.600 --> 04:33.080] Obviously, you know, that pretty much sucks to hear. [04:33.500 --> 04:39.000] And, you know, as a Blue Teamer, you're not really going to enjoy working with the Red Teamer and, you know, this is going to start creating a divide. [04:40.880 --> 04:44.060] So what would the Blue Teamer at this case do with the report that was generated? [04:44.280 --> 04:48.720] Well, they would go through, see what work that the Red Team tried, and try to remediate that stuff. [04:50.200 --> 04:54.500] You know, no one has as much time as they want these days, especially in this area. [04:55.200 --> 05:06.720] So what did they end up doing is just basically creating static detections for the Red Team's tools and whatnot, things that are very fragile, and things that may stop this Red Team if they were to do the exact same thing again. [05:06.940 --> 05:13.480] But the next time Red Team comes, that may not stop anything, or let alone a real adversary. [05:14.500 --> 05:31.860] If they didn't want to go the next step up and sort of take a look at the actual behavior that the Red Team was implementing or doing on their environment, or in their environment, they don't have the amount of a really good sample size. [05:32.000 --> 05:38.840] They really only have that one, you know, if they didn't know the Red Team was going on, they just have, you know, what they've collected historically, and they need to go through that and comb through it. [05:38.940 --> 05:52.440] So if they do create a defense in this case, they can't really test it for the false positives or tweak it, because you can't bring them in, bring the Red Team in as often as you'd like, with this setup, and have them test your defenses. [05:56.090 --> 05:58.930] So how does the Red Team in this case and the Blue Team progress? [05:59.530 --> 06:05.050] So as we said, there's fragile detections that are being created, static ones as well. [06:05.290 --> 06:10.370] So Blue sees that Red's been using this one tool with a specific hash on all the other machines they compromised. [06:10.770 --> 06:11.650] That's an easy one. [06:11.750 --> 06:16.990] They'll just find the hash and label it as bad and have whatever mechanism they have to remove that and go ahead and remove that. [06:17.950 --> 06:19.950] Red, however, next time they come, they try it. [06:20.010 --> 06:22.190] They see that as soon as their file hits disk, it disappears. [06:22.590 --> 06:33.190] Well, they just recycle that and they just recompile that with a very minor modification or any sort of obfuscation, and they're past that one file hash check. [06:35.510 --> 06:40.290] Next time Blue takes a look at the report and sees what they did, they're like, okay, well, maybe we can't focus on hashes. [06:40.430 --> 06:44.230] Let's see about maybe strings, maybe a rule of some sort or something along those lines. [06:44.330 --> 06:45.810] They see Mimi cats in the tool. [06:46.190 --> 06:46.590] Okay. [06:47.570 --> 06:50.550] Red team does see the same thing as well when they're running their tool. [06:50.670 --> 06:51.070] They see that. [06:51.250 --> 06:57.290] So they remove maybe debug strings or just change up the strings or again, some sort of obfuscation. [06:58.130 --> 07:00.930] And they just keep alternating back and forth this way. [07:01.110 --> 07:06.350] And as I said, you know, when they're in the traditional red and blue, these aren't happening very quick after. [07:06.570 --> 07:07.350] These aren't iterative. [07:07.490 --> 07:14.890] These are, you know, there's significant amount of time happening between the red or after the red events, after the blue, and you know, with the blue dealing with red. [07:15.090 --> 07:16.830] And then the cycle continues that way. [07:16.990 --> 07:22.670] So in reality, there's a lot of time that this is taking for us not to really progress as both red or blue. [07:23.010 --> 07:25.350] We're not focusing on what we need to be focusing here. [07:25.490 --> 07:28.810] The defense of the network isn't really increasing that well. [07:31.230 --> 07:38.570] Finally, you know, maybe blue takes a little bit of time, they step back and they realize, okay, so they saw that the red team was using PSExec for a lot of movement. [07:39.210 --> 07:45.910] Maybe they already have some sensors in place on their network, they can tell that PSExec really isn't used in our environment legitimately. [07:45.990 --> 07:47.510] So let's go ahead and shut that down. [07:48.010 --> 07:55.450] So now we're starting to think with some like sort of TTP or behavior that we're now killing for the red team as an actual TTP they can use. [07:55.950 --> 07:57.350] The red team will realize this. [07:57.550 --> 08:00.890] And if one that stops working, they'll have to find some other way to laterally move. [08:01.130 --> 08:11.210] It was, if that's the only way they knew how to, they're in a pretty much in a situation where they find themselves needing to find a different way and pretty much do it live. [08:12.830 --> 08:27.850] So what can we do at this point to really help red and blue to skip, maybe have a shortcut to thinking to TTPs instead of maybe just some of the, like a hashes or the strings? [08:28.290 --> 08:31.350] Well, with that, we have this diagram here. [08:32.130 --> 08:35.690] For those of you who are not familiar with this, this is David Bianco's Permit of Pain. [08:36.210 --> 08:40.150] It's usually presented as a way to prioritize blue defenses. [08:40.730 --> 08:48.650] Basically, all it's trying to try to illustrate is starting at the bottom, those are the easiest things for an adversary to change. [08:48.870 --> 08:50.810] It won't cost them much time or resources. [08:51.090 --> 08:54.310] Those are things like your hash values, your IP addresses, domain names. [08:54.610 --> 09:00.030] There's always, you know, you can always register new domains or compromise easy domains that already exist. [09:00.830 --> 09:09.290] But as we traverse this pyramid to the top, we started seeing things like network and host artifacts starting to get a little annoying to change and also tools. [09:09.510 --> 09:14.430] And the hardest thing, the toughest thing for an adversary to change are their TTPs. [09:14.910 --> 09:16.410] Well, there are several reasons for this. [09:16.570 --> 09:22.830] But I mean, simply put, there's a finite amount of ways that Windows will allow you to do remote execution of code, for example. [09:24.870 --> 09:30.870] Now, even so, as I said, this is usually presented with a blue sort of shade. [09:31.090 --> 09:33.750] But as a red teamer, how can you also use this? [09:35.330 --> 09:41.250] Everything in the bottom of half of this, the bottom half, maybe all the way up to network and host artifacts. [09:41.810 --> 09:46.270] This is the stuff you want to be varying, you know, as a second nature by now. [09:46.390 --> 09:52.030] So every time you roll a new C2, make sure you change all your defaults and you, you know, maybe set up some backup protocols and whatnot. [09:52.810 --> 09:57.910] And let alone hash values that you should be randomizing pretty much every time you create a new payload of some sort. [09:58.710 --> 10:01.310] But more importantly, we need to focus at the top, right? [10:01.450 --> 10:03.050] That's where the most important thing. [10:03.170 --> 10:10.430] So that's if you get caught, where your TTPs get caught, you basically have the potential to get hamstrung and stuck in a sticky situation. [10:11.110 --> 10:18.150] So again, if you only have like one TTP for lateral movement, maybe you need to, you know, expand on that and look into what else is out there. [10:19.590 --> 10:38.070] So one of the things we realized as a good way to have red and blue, both of them together, focus on the top of this pyramid in what, how they prioritize their work and also help them work together is to provide them with a common language that is based on TTPs. [10:40.510 --> 10:47.170] It's based on TTPs and also provides them several things that enables them to do their job easier together. [10:47.810 --> 10:51.910] So what are these things that we need from this language to provide that for us? [10:52.050 --> 10:59.850] Well, first and foremost, we need to be able to communicate and articulate exactly what happened in a, in an actual event and what was responded to. [11:00.530 --> 11:12.230] So as the red team, you have these amounts of TTPs that you've tried and you, you know, you go ahead and you say, okay, well, this kind of lateral movement worked, this kind of privilege escalation worked, this kind of persistence worked, and all these others didn't. [11:13.070 --> 11:15.690] At the same time, the blue team can then focus their work. [11:15.770 --> 11:20.730] Okay, we see that this TTP for lateral movement has been used and it's actually a fairly common one. [11:20.870 --> 11:23.810] So maybe we should be prioritizing some defenses there. [11:25.690 --> 11:41.730] And that sort of helps them move away from the hashes and all that sort of, you know, the easily, I guess, pretty fragile detections that one would automatically go to if they were, you know, in a, you know, jam and didn't have enough time to properly step back and take a look at what the problem was. [11:43.310 --> 11:51.110] The second thing we need from this common language is we need to be able to have it articulate at a specific enough level that it's repeatable. [11:51.430 --> 11:55.090] So what was, what happened has to be repeatable from one event to the next. [11:55.450 --> 12:01.330] And in doing so, we're sort of moving away from like the art of this to this more science and repeatable fashion. [12:01.550 --> 12:13.190] So now we can start creating metrics for ourselves, how we, how we performed last year versus this year, what new things we introduced into our environment, if it worked or didn't, and basically see how well we're doing. [12:14.730 --> 12:20.030] So how, what, what do we use personally for this common language? [12:20.270 --> 12:27.310] Well, we use MITRE's adversarial tactics techniques in common language or more commonly referred to as ATT&CK. [12:27.450 --> 12:30.810] So just a quick show of hands, even though I can't really see too many people. [12:31.690 --> 12:34.970] Who here is at least familiar with ATT&CK or use Ditter. [12:35.270 --> 12:35.650] Okay. [12:36.190 --> 12:36.850] Awesome. [12:37.090 --> 12:37.230] Thanks. [12:37.770 --> 12:39.650] Uh, so what is ATT&CK? [12:40.150 --> 12:47.330] Um, ATT&CK is a globally accessible knowledge base of adversary tactics techniques and common knowledge. [12:47.550 --> 12:54.310] Um, but it's based on things we've seen in the wild that adversaries have actually done. [12:54.450 --> 13:06.270] So things we've seen in threat intel reports, I think, uh, you know, if specific APT has been known to do something, or maybe someone's reverse engineered a, uh, a piece of malware and it was known to perform like function A, B, and C. [13:06.770 --> 13:08.310] That is what ends up in ATT&CK. [13:08.450 --> 13:19.490] We take a look at that and with the help of the community, we've created this, uh, this framework where you can find across 11 tactics, and I'll explain that in a quick second, um, how it's organized. [13:19.730 --> 13:23.490] Uh, but, but yeah, basically our real-world observations of adversaries. [13:23.790 --> 13:31.390] Um, and increasingly, more and more so, the communities has been starting to use this as a common language, and we've already started to see some really good results. [13:33.690 --> 13:38.110] Oh, and it is also available at, uh, ATT&CK.mitr.org, publicly released and everything. [13:42.210 --> 13:46.190] So, once you actually go there, you're presented with this ATT&CK matrix over here. [13:47.390 --> 13:51.850] Uh, across the top, in the blue row, the first row, that is what a tactic is. [13:52.010 --> 13:55.730] That's basically the adversary's technical goal, or the why. [13:55.910 --> 13:57.930] So, why is it they're doing what they're doing? [13:58.490 --> 14:04.370] Now, under each tactic, you have a series of, um, so along the columns, you have the series of techniques. [14:04.690 --> 14:09.110] This is basically what the adversary is actually doing to achieve that goal. [14:09.270 --> 14:10.150] So, that's the what. [14:11.270 --> 14:18.990] Uh, we have 11 different tactics across the top, and we have, uh, I believe, over 217 techniques at this point. [14:19.310 --> 14:22.410] Um, and it's just, uh, growing by the day. [14:22.570 --> 14:27.890] Uh, but up until, uh, recently, our most recent, uh, added tactic was the initial access tactic. [14:28.030 --> 14:31.610] But before that, it was all, and I'll read some of these across the top. [14:31.710 --> 14:40.590] This, you have execution, persistence, privilege escalation, defense evasion, credential access, discovery, lateral movement, collection, exfiltration, and finally command and control. [14:42.170 --> 14:50.710] Uh, you could start to see a pattern emerging from that, in that this is all mostly post-exploit, uh, with, you know, basically taking an assume breach mentality. [14:50.950 --> 14:52.630] So, the adversary is already in your network. [14:52.830 --> 14:59.470] This is how you can move about as an adversary within the network, or, you know, persist, or, you know, perform your actions and objectives. [14:59.950 --> 15:04.110] Um, and the initial access starts to blur that sort of post-exploit, uh, line. [15:04.470 --> 15:15.090] But, you know, if we were to click on one of the techniques, uh, specifically, uh, the new service under persistence, um, this is what you start to see. [15:15.190 --> 15:16.510] This is just a brief amount of data. [15:16.590 --> 15:18.130] There's much more in the actual website. [15:18.370 --> 15:27.250] But the first thing we start off is describing how this actual technique, so a new service within Windows, how that is actually used, uh, legitimately. [15:27.670 --> 15:34.930] Why it's actually brought out in Windows, why it's there, and, like, how someone, like, maybe an IT admin or the Windows system itself, uh, uses this legitimately. [15:35.270 --> 15:39.130] We then move into how adversaries actually abuse this for their own gain. [15:40.290 --> 15:46.230] Uh, we have some data about there, about, like, what platforms you find this, what the required permissions and effective permissions. [15:46.450 --> 15:51.730] And then we move into the detection and mitigation, how you detect or mitigate this specific TTP. [15:52.410 --> 16:03.370] As a red teamer, this is a really good place for you to be paying attention to, because this is, you can start to see what the, you know, what the blue team's playbook would be against the specific TTP of yours. [16:03.490 --> 16:16.090] This is basically building into your OPSEC and providing you the means to sort of maybe measure up against, uh, one TTP over another, and, you know, how easy it is you think it would be to detect, depending on how mature that network is, of course. [16:17.250 --> 16:29.630] Uh, furthermore, if you look at a specific tactic, let's say lateral movement, and you realize that you only know how to do and you only have the tooling and tested the tooling for one of them, you can see what else is available there and see whether or not that works in the environment that you're going up against. [16:29.870 --> 16:36.470] So it provides you that sort of wet and, breadth and width of, um, um, techniques in this case. [16:37.530 --> 16:42.650] Uh, and finally, and also really interestingly and importantly to me at least, uh, are the examples. [16:42.970 --> 16:46.630] As I said, all this is based on real adversaries, what we've seen them really do. [16:46.990 --> 17:03.090] So in this case, we point, uh, we have, you know, all the way we cite backwards to all the different, um, reports that we've seen different groups and different adversaries actually use this technique, whether they did it on the command line or a piece of their software actually has it as a built-in as a function. [17:03.570 --> 17:08.470] But either way, we have this, uh, we have them all linked, uh, the example sort of section. [17:08.890 --> 17:14.830] And if you go where to go there and follow that thread, you'll start to see exactly how they implemented this technique. [17:14.830 --> 17:18.770] And that'll give you guys information on how you would be able to implement that technique as well. [17:18.990 --> 17:20.670] There's a lot of ways to implement the technique. [17:20.830 --> 17:21.690] It's not just one. [17:22.130 --> 17:26.210] And this is one of the places where you can start building out that arsenal of yours. [17:29.900 --> 17:39.340] So, so far, uh, what we've seen so far has mostly been just for enterprise windows, um, basically like a, um, Active Directory domain, um, focused. [17:39.540 --> 17:42.680] But we also, thanks to Cody, have now Linux and Mac attack. [17:43.200 --> 17:47.080] Uh, also, uh, we've, uh, released the, uh, the Android and iOS. [17:47.460 --> 17:54.880] And also, uh, even more so, we went a little bit left of exploit, uh, and focused on some of those behaviors in TTPs with pre-attack. [17:55.500 --> 17:59.940] So those are some of the extra ones that, uh, or the extra domains that attack focuses on. [18:02.760 --> 18:06.220] There's many different use cases for attack, but I'm not really going to go into many of them. [18:06.300 --> 18:10.780] And I'm going to just sort of jump to that fourth one right there, which is adversary emulation. [18:11.440 --> 18:17.360] How can we use attack to actually emulate adversaries and emulate specific adversaries? [18:17.400 --> 18:20.540] And that's going to be the, what the rest of our presentation is actually about. [18:23.860 --> 18:26.380] 07'0", 141.37.2.14 So, what is adversary emulation? [18:26.940 --> 18:28.730] Um,there's a lot of different.. [18:28.730 --> 18:35.080] There's a lot of different, you know, words or names for, uh, you know, some of the newest flavor of offensive testing. [18:35.360 --> 18:36.600] Be it, you know, penetration testing. [18:37.320 --> 18:41.920] Or, you know, red teaming, or purple teaming, or adversary simulation, emulation, et cetera. [18:42.180 --> 18:47.860] What we really mean by adversary emulation is just, sort of honest to goodness, threat based red teaming. [18:47.960 --> 18:51.300] So when we If we perform our red actions, we're coming in with a threat flavor. [18:52.160 --> 18:56.860] This provides us quite a bit of benefits in doing so. [18:57.420 --> 19:02.620] The first one is, as I said, there was about 200 over 200 techniques in ATT&CK. [19:02.840 --> 19:10.060] This provides both red and blue a way to start prioritizing what defenses to start building out against which techniques. [19:10.940 --> 19:25.400] If you realize, if you were to, for example, be really interested in a specific APT, you could follow their MO and try to understand how they're actually transitioning from the initial access all the way through their action on an objective all the way at the end, [19:25.510 --> 19:27.100] and what their objective actually is. [19:27.340 --> 19:31.320] Because, I mean, not everyone's final objective is to get domain admin. [19:31.460 --> 19:36.400] They could be there just to steal data, for example, or just persist and wait until something happens at a later time. [19:40.180 --> 19:54.940] But... and basically, when you enter... when you're approached with the task of adversary emulation, you don't want to just show up as just a general, regular, you know, advanced adversary, or like, you know, maybe act like an APT. [19:55.320 --> 19:57.230] We want to be a very specific one. [19:58.990 --> 20:01.400] And... a very specific APT. [20:01.960 --> 20:04.320] Because there's also something to gain from doing that. [20:05.300 --> 20:13.360] And that is, you'd be able to map that, or you'd be able to give the blue team experience, I guess, an adversary they may actually be up against. [20:13.360 --> 20:28.920] So, for example, if they're in a specific industry that's known to be targeted by a specific type of APT, maybe, or an adversary, like maybe a country-specific one, I'd try and identify what that specific adversary does, in terms of TTPs and their MO, [20:29.270 --> 20:38.840] you can be able to give your blue teams, you can be able to exercise them, you know, without actually detonating some real APT binaries on your machines. [20:41.640 --> 20:51.200] So, speaking of which, something we've released to basically help everyone bootstrap into this adversary emulation using ATTACK is our APT3 prototype for adversary emulation. [20:51.470 --> 20:54.180] This is an A to Z plan that you guys can take. [20:54.340 --> 20:59.880] It'll give you all information you need, well, most of it, on how to emulate APT3 within your network. [20:59.880 --> 21:16.600] So, we go through, identify all the tooling that they've used, or most of the tooling that they've used, and we go through all the intel about, you know, the different kinds of reverse engineering and, you know, what's been seen by the incident response teams responding to this APT. [21:16.990 --> 21:25.600] And we also present you guys, or present in the emulation plan, different ways to emulate that with your own tooling, be it on the command line or open source things. [21:26.320 --> 21:37.510] And it's available over here under, on the ATTACK website, under adversary emulation plans, and that is actually what Cody will be going into a little more detail after I start, or after I hand it over to him. [21:38.530 --> 21:44.960] But, alright, so now we've provided you guys with APT3, but what if that's not necessarily, you know, something you're interested in? [21:44.960 --> 21:49.600] Maybe you work for a financial company, or in the financial sector. [21:50.800 --> 21:57.880] Maybe one of the FIN6, the financial groups, FIN6 or FIN7, would be more apt for you to actually emulate. [21:58.520 --> 22:04.600] This gives you a better story to be able to actually sell it as what is, sell your, basically what your job is. [22:04.800 --> 22:13.560] But, you know, again, alluding back to being able to exercise the blue team against a potential real threat, and do things as the APT would specifically do. [22:14.180 --> 22:20.980] So, you do want to identify what adversary would actually be targeting the networks that you're targeting, and attempt to match that up. [22:22.180 --> 22:33.940] So, once you've actually done this, and once you've identified the adversary that you want to emulate, I'm going to hand it over to Cody, and he's going to show you how, through the five steps, go ahead and emulate that adversary. [22:35.080 --> 22:42.140] So, Chris has already kind of talked to you about the background of ATTACK, how we go about approaching this, what is adversary emulation, all that sort of stuff. [22:42.140 --> 22:46.300] But I like to kind of ground everything in examples, and kind of walk you through it. [22:46.480 --> 22:55.820] So, for the next rest of this presentation, I'm going to be going through our APT3 emulation plan, how we came about it, what steps you need to consider, how you might do your tooling, and all that sort of stuff. [22:56.180 --> 22:59.220] So, the first thing, as you go through, say you want to emulate APT3. [22:59.700 --> 23:03.420] So, now you need to kind of go out and get the threat intel on the adversary. [23:03.960 --> 23:09.220] It's a little bit hard, based off of just kind of the threat landscape that's out there right now. [23:09.840 --> 23:12.760] So, there's a couple things that you have to consider as you go about doing this. [23:13.910 --> 23:22.440] So, for example, if you want to look for APT3, you can Google for APT3, or look at your paid threat intel feeds or anything like that, but you can't just stop there. [23:22.700 --> 23:31.360] So, there's kind of a hot topic in the threat intel community right now about aliases for different adversaries, and groups, and operations, and all this sort of stuff. [23:31.660 --> 23:42.200] So, you have to keep that in mind as you go through and do your research into the specific adversaries, because one adversary may be known by 15 different aliases across different companies that are reporting on it. [23:42.960 --> 23:58.300] Additionally, as you go through and see that, okay, you're looking at APT3, but APT3 uses PlugX, and Purpy, and PsExec, and all these different tools, you need to continue doing research into those tools themselves to kind of get the most bang for your buck out of what the adversary is doing. [23:59.520 --> 24:11.020] And then, of course, with the associated campaigns, not only are adversaries tied to specific instances, specific events, but sometimes they're broadened out into these larger campaigns describing how they're operating. [24:11.340 --> 24:13.100] So, I'll go ahead and give an example of this. [24:13.580 --> 24:18.820] But one thing to keep in mind as you start Googling around and looking for information is when these reports are released. [24:19.100 --> 24:22.680] So, people have been putting out reports on adversaries for years and years now. [24:23.000 --> 24:30.040] As you go through and you start pulling this threat intel information to kind of build your profile for the adversary, you need to think about when the report was released. [24:30.360 --> 24:33.040] Just like us, adversaries change their tactics over time. [24:33.200 --> 24:41.620] So, if all of your reports are seven years ago and you're trying to emulate the adversary now, kind of keep that in mind and try and think of how things may have changed over time. [24:42.440 --> 24:48.800] So, if we start actually looking at some threat reports, you'll see here is a simple one from Symantec. [24:49.260 --> 24:51.300] And here, all I did was Google for APT3. [24:51.560 --> 24:58.740] But right away, you can see that they're also known as Buckeye, Gothic Panda, UPS Team, Threat Group 0110. [24:59.220 --> 25:05.380] If you look, if you start Googling even those, you'll see Operation Double Tap, Operation Clandestine Fox, UPS. [25:05.740 --> 25:09.860] Like, all these sorts of things start quickly bubbling up to the front of each other. [25:09.860 --> 25:13.780] So, even as you keep going, you'll see sometimes... [25:13.780 --> 25:20.520] Here's an example where APT3 Gothic Panda we already saw, but they're also referring to this group as Perpy. [25:21.000 --> 25:24.280] Now, Perpy is actually one of APT3 malware samples. [25:24.500 --> 25:29.540] So, there's already some conflating going on between what the group is doing and what the tools can do. [25:29.760 --> 25:35.460] This is just something you have to kind of keep in mind and really research as you go through looking at these reports. [25:36.810 --> 25:43.180] So, once you get all these reports, you start Googling, you follow the name, look at Google this other term, you get all this stuff together. [25:44.060 --> 25:44.720] Now what? [25:44.980 --> 25:46.120] What are you supposed to do from there? [25:46.900 --> 25:52.480] So, in this part, we're actually going to start going through those reports and looking to see what are the adversary's behavior? [25:52.840 --> 25:54.760] What is the behavior of the tools they can do? [25:55.660 --> 26:01.800] If possible, and not always possible from strictly open source intelligence, but trying to figure out what motivates the adversary. [26:01.960 --> 26:02.960] What is it they're looking for? [26:03.180 --> 26:04.080] What's their MO? [26:04.240 --> 26:05.560] How do they operate on a network? [26:05.560 --> 26:12.020] Even once you get on a network, not every adversary is going to look for the same thing, move the same way, have the same kinds of infrastructure. [26:12.920 --> 26:18.880] And as you start going through this, and this is why I like using attack for this, you start to think about the what, the why, and the how. [26:19.180 --> 26:20.220] What it is they're doing. [26:20.320 --> 26:22.720] This is the specific technique and attack that they're doing. [26:23.140 --> 26:24.100] Why they're doing it. [26:24.180 --> 26:25.540] That goes back to that tactic level. [26:25.680 --> 26:26.900] What are they trying to achieve? [26:26.900 --> 26:30.420] And then the, like, nitty gritty detail part, the how. [26:30.740 --> 26:32.820] What's the specific implementation of what they're doing? [26:33.080 --> 26:40.060] And this is where you can get a lot of nice variation to help you as the offensive team, and to help the defenders build up their analytics. [26:41.640 --> 26:49.160] So, there are three main kinds of reporting that I usually see as we go through and trying to pull out techniques for us to do adversary emulation. [26:49.660 --> 26:56.160] We get this kind that's, and I'll step into this a little bit more, but we get this kind that's more of a prose writing. [26:56.720 --> 26:59.620] Paragraph after paragraph of somebody describing what's happening. [27:01.330 --> 27:06.040] Sometimes, in the next example, I'll show that we get a little bit more in-depth of a specific binary. [27:06.200 --> 27:12.320] So, somebody taking an instance of perpy and doing malware analysis on it, running strings on it, and providing that information back. [27:12.620 --> 27:21.860] And the last kind is somewhere in between, where we get a bit of information on specific pieces of malware that are used, and details about them, but more in a prose style. [27:23.160 --> 27:27.960] So, if you see this sort of blob in your reporting, and you're trying to figure out, okay, I'm the red teamer. [27:28.240 --> 27:29.660] This is just a threat intel report. [27:29.840 --> 27:31.020] What am I supposed to gather from this? [27:31.140 --> 27:31.900] How do I use it? [27:32.640 --> 27:38.040] So, you can start looking through the data and trying to pull out, remember, the what, the why, and the how. [27:38.400 --> 27:43.100] So, you can see here already that we're looking at a CVE for privilege escalation. [27:43.200 --> 27:45.020] They're trying to do an exploit. [27:45.020 --> 27:50.800] The fact that it's CVE-2014-4113 doesn't matter as much as the fact of the behavior. [27:51.020 --> 27:52.500] They're using exploits on the system. [27:52.700 --> 27:57.640] This is compared to maybe doing path interception, overriding files on the system, this sort of stuff. [27:57.740 --> 28:00.320] It gives you an idea of what kinds of stuff they're doing. [28:00.520 --> 28:01.680] Trying to get more towards their behavior. [28:02.700 --> 28:04.460] You can also see other things like here. [28:04.620 --> 28:06.260] We have cmd, waxy, who am I? [28:06.500 --> 28:08.820] This tells you a couple of things already right off the bat. [28:09.200 --> 28:11.100] First, that they're doing things on the command line. [28:11.100 --> 28:16.720] So they're not strictly doing everything with APIs, having their own things installed on the system. [28:16.840 --> 28:19.480] They're using some of the kind of live off the land stuff that we see. [28:20.160 --> 28:25.440] And you can see with them doing who am I, they're trying to do a little bit of discovery to see where they are, what kind of permissions they have. [28:26.180 --> 28:30.380] As we continue on, you can see things like running scheduled tasks to create persistence. [28:31.160 --> 28:36.960] And this is something, you know, what kinds of persistence they're trying to get, whether it's user lane persistence, whether they're getting elevated persistence. [28:37.300 --> 28:41.440] Here you can see that they're specifically running a system, so it's more of an elevated persistence. [28:42.220 --> 28:52.380] And one of the things you'll notice as you go through and start looking at all this threat intel reporting, is it's kind of biased towards what is seen when people come in to do the remediation. [28:52.380 --> 28:56.560] So lots of this stuff comes out as people figure out that they're hacked in some way. [28:56.760 --> 29:00.260] And then somebody comes in, triages it, helps fix the system, kick out the bad guy. [29:00.620 --> 29:08.060] So in that last part where you actually have the company coming in that's going to be doing the reporting, there's a subset of attack that they're more likely to see than others. [29:08.420 --> 29:20.360] And part of this being like see two channels, persistence mechanisms, that sort of stuff, rather than maybe what a user is sitting doing on command line in volatile memory, that depending on when the incident response team comes in may be long gone. [29:21.180 --> 29:27.560] So because of this, you'll start to see things talking about C2 channels way, way more often than others. [29:27.760 --> 29:33.040] And here we can see an example of just raw connections out to specific ports that aren't very common. [29:33.360 --> 29:39.200] And specifically, this one goes more in depth into, okay, you have this connection, what are they sending? [29:39.360 --> 29:40.440] Are they sending strings? [29:40.660 --> 29:43.260] Is it just another protocol over this random port? [29:43.480 --> 29:46.480] Here they're actually defining their own custom command and control protocol. [29:46.660 --> 29:50.760] So it kind of gives you an idea of the kind of stuff that you're going to have to do if you want to emulate this adversary. [29:51.060 --> 29:56.560] You can't just simply run PowerShell with, you know, RESTful APIs and going to look like this adversary. [29:56.680 --> 29:57.980] You have to think a little bit more about it. [29:58.980 --> 30:04.700] So the second example I was talking about is you get a little bit more in depth detail into specific instance of binaries. [30:04.960 --> 30:09.900] Here we see somebody went through and did a presentation specifically on perpy. [30:10.220 --> 30:16.080] And in one of the copies they found, they dumped the strings and found a whole bunch of awesome command lines that people had been running from the binary. [30:16.980 --> 30:23.220] And so we can see here already that, for example, they're doing permission groups discovery by trying to see who's admin where. [30:23.500 --> 30:28.080] And one interesting thing to note about this part is you can already see that there's some redundancy. [30:28.660 --> 30:39.100] Looking at the local group administrator slash domain and the net group domain admin slash domain is going to give you a lot of the same information because both of those are kind of looking for the elevated admins across the domain. [30:39.100 --> 30:49.320] So adversaries themselves building in this kind of redundancy should give you a clue that even us as red teamers trying to do this sort of adversary emulation, having that in the back of your mind is a good idea. [30:50.140 --> 30:58.440] And we can continue on seeing that, you know, they're looking for network connections and remote systems, the sort of stuff that you normally do as part of your normal red teaming. [30:58.580 --> 31:00.980] You're just maybe not thinking about it in this way. [31:01.840 --> 31:13.340] One interesting thing to note with this sort of analysis that you get in threat reporting is that, for example, you see the C colon AOS.exe and this net start and stop for AOS. [31:13.740 --> 31:20.300] Now, if you just look at this blindly, you may just say, okay, they're running command line and they can start and stop services and you move on. [31:21.360 --> 31:24.280] But if you start thinking more into this, what is AOS? [31:24.400 --> 31:26.620] Is this an actual Windows service that could exist? [31:26.860 --> 31:28.000] Is this something they created? [31:29.480 --> 31:32.140] Normally, binaries don't just exist at C colon slash. [31:32.360 --> 31:33.480] They're in subdirectories. [31:33.580 --> 31:36.420] So what's the purpose of putting a binary right there up at the front? [31:36.420 --> 31:42.260] You see this more often in things like path interception where there's an unquoted service path that they're trying to interrupt. [31:42.620 --> 31:50.380] So that could be an example here of having to dig a little bit deeper into this kind of non-prose style, just dump of data about a binary. [31:51.480 --> 32:03.920] And then, of course, you know, you have more of your common discovering processes, file deletions, that sort of stuff that you see more in advanced adversaries trying to clean up from themselves, doing more discovery, trying to get better awareness of the system. [32:05.240 --> 32:10.220] And so the last kind of threat intel report that I was talking about is somewhere in between the two. [32:10.460 --> 32:16.500] So it's not just a straight-up blob of text talking about things, but it's more than just one specific binary. [32:16.820 --> 32:23.160] So here they're breaking out three different tools that they've seen, a keylogger, a remote CMD tool, and a PWDump variant. [32:23.700 --> 32:29.120] And with these, you know, sometimes you get some of your standard, your keylogger records keystrokes, go figure. [32:29.120 --> 32:30.860] So obviously input capture. [32:31.080 --> 32:40.560] Then you get some sort of, you know, additional sneak peeks into things like, oh, okay, not only is it recording keystrokes, they're not saving them into memory, they're dumping them out into encrypted files. [32:40.760 --> 32:44.100] So this kind of gives you an idea of other things that you might think about the system. [32:44.320 --> 32:51.000] If you're going through and doing normal red teaming type things, especially these days, you tend to be more hesitant to touch disk at all. [32:51.140 --> 32:52.940] Anything you can do in memory is fine. [32:52.940 --> 32:56.920] But as you go through, you see adversaries still doing things where they touch disk. [32:57.480 --> 33:01.980] So try and keep that kind of risk profile in your mind as you go through doing this sort of emulation. [33:03.000 --> 33:06.860] And then, of course, another oddity here is a keylogger that gathers network information. [33:07.440 --> 33:13.780] Not something you see very often, but it's an interesting thing to note that these tools aren't just one-off sole purposes. [33:13.920 --> 33:16.420] Sometimes they're a little bit multi-faceted. [33:17.500 --> 33:29.560] Another example here, and this goes into the kind of follow the leads type of thing that you have to do as you go into research for these sorts of things, is this remote CMD tool, as they describe it, they describe it in terms of another tool. [33:29.760 --> 33:31.920] So they say, oh, this is similar to PSExec. [33:32.380 --> 33:34.160] And then they don't go much beyond that. [33:34.320 --> 33:36.800] So now you have to go and think, okay, what is PSExec? [33:36.860 --> 33:37.500] What is that doing? [33:37.620 --> 33:38.240] How does it work? [33:38.900 --> 33:46.060] And so if you dig into that a little bit more, you'll see that it's specifically mounting Windows admin shares, copying files over, starting services to do some lateral movement. [33:46.660 --> 33:49.820] So you have to kind of keep that sort of stuff in mind and dig into these a little bit more. [33:50.700 --> 33:53.640] And then of course, you know, everybody loves dumping credentials. [33:53.900 --> 33:56.900] And here we see this PWDump that's doing get hash. [33:57.240 --> 34:05.940] But one interesting thing to note about this is instead of doing maybe get hashes by looking at the system and SAM files on disk, this one's specifically injecting into LSAS. [34:06.180 --> 34:09.500] So this might be something that you'd see more commonly with things like Mimikatz. [34:10.260 --> 34:15.180] So it's just something to keep in mind as you go through looking at doing emulation, how these things are happening. [34:16.460 --> 34:22.820] So what Cody's been doing here, actually, as you guys can see when he maps these back, he's mapping everything he's found back to attack. [34:23.500 --> 34:28.630] Each one of these IDs here, which is, you know, the T followed by the four numbers, that's a specific attack technique. [34:28.630 --> 34:33.070] And that's the attack ID, specifically T, like 1055 being process injection. [34:33.420 --> 34:38.240] So you'd be able to, by mapping it back to attack, you can see what is, what that specifically is doing. [34:38.480 --> 34:40.360] Go into that technique and gain more information. [34:40.650 --> 34:47.880] Maybe also get different variants and see also how other groups, not just APT3 in this case, but how other groups do that specific technique. [34:48.090 --> 34:48.500] Yeah. [34:48.570 --> 34:51.750] And this is one way that you can do that sort of red blue collaboration. [34:51.760 --> 35:06.110] If everybody's speaking in the same T number, the same technique style, then it's a little bit easier to talk to each other than if red is talking about Mimi cat's command lines and blue is talking about, you know, access codes for process, um, accesses. [35:06.200 --> 35:08.720] So it helps you kind of bridge this gap between talking. [35:09.150 --> 35:20.200] Um, so that's now talking about, uh, we've covered, you know, finding the Intel, looking at it to see what kind of behaviors are there, but there's still one extra piece as part of this step, looking into the adversary MO. [35:20.860 --> 35:26.820] Now this is one of the hardest pieces, uh, depending on how active the adversary is, how much reporting there is on them. [35:27.000 --> 35:29.540] Um, and even the kind of reporting, you may not be able to get this. [35:29.590 --> 35:32.680] So it all just depends on what's out there. [35:32.780 --> 35:42.520] But when you do start looking through these reports, there are sections in there that aren't specifically tied to, you know, what this tool can do, what hex values are in this, this string, that sort of stuff. [35:42.880 --> 35:49.800] And so you have to kind of read between the lines to start picking out more of a why for the group instead of a specific tool. [35:49.800 --> 35:55.460] So here's an example, um, pulled from Symantec talking about Buckeye, which is another alias for apt3. [35:56.300 --> 36:03.090] But the interesting part here is they say, Buckeye seems to target file and print servers, which makes it likely that the group is looking to steal documents. [36:03.380 --> 36:08.090] So that already gives you some idea of, okay, once I get into the network, I'm not looking for domain admin. [36:08.090 --> 36:12.150] I'm not looking, you know, to get this specific user's account to troll them. [36:12.360 --> 36:17.740] I specifically want to find areas in the network that have high concentrations of documents so that I can steal them. [36:17.900 --> 36:22.070] Gives you some more of a rationale of why you're even attacking this network in the first place. [36:22.960 --> 36:32.260] If we keep looking at other things, you'll see here, uh, one from FireEye where it talks about them being extremely proficient at lateral movement and not reusing command and control infrastructure. [36:32.260 --> 36:39.780] So this gives you more of an idea as you go through, okay, not only are they looking for all these kinds of documents in the network, but they're actually moving onto these other boxes. [36:39.780 --> 36:46.820] Maybe to collect them, maybe to have better awareness and spread throughout the network, but they're definitely spreading out quickly and they do it very well. [36:46.920 --> 36:51.500] So it gives you some rationale for once you get in the network, how are you going to propagate? [36:52.480 --> 37:05.320] Additionally, with the comments about the command and control infrastructure, if you go through, you'll see some adversaries that will get onto a network, maybe be super fast and noisy, drop some commodity malware or something that's out there. [37:05.520 --> 37:15.900] And then if they determine that it's a useful target, drop in a second type of malware that's more stealthy, more custom made, and attempt to have that one kind of lay low and slow, uh, longer term. [37:16.540 --> 37:24.700] So the point here about not reusing command and control is interesting to note that if you're going to go through doing that, maybe using different tool sets, don't reuse the command and control infrastructure. [37:24.900 --> 37:26.150] Keep those as separate as possible. [37:27.540 --> 37:33.400] And finally, um, here's another one where it's talking about the actual initial access part that they used. [37:33.680 --> 37:38.380] Um, specifically the self extracting RAR archive was created five to six months before the attack. [37:38.550 --> 37:49.650] So this gives you some idea that as they go through and they're preparing to, you know, spear fish the way into an environment or do watering hole attacks or whatnot, they're creating these payloads months and months in advance. [37:49.800 --> 37:50.980] They're rehearsing this type of thing. [37:51.090 --> 37:52.440] They're looking into how it works. [37:52.440 --> 38:00.360] Once they get it working, keeping that safe and maybe swapping out the payloads inside of it, but not really changing up their tactics that much, right? [38:00.540 --> 38:04.150] They're still doing the same sort of thing, but they have a lot of preparation leading up to this. [38:04.980 --> 38:10.590] So taking these sorts of things together, you can create what we have, um, as an emulation plan. [38:10.860 --> 38:14.960] Now, this is definitely the hardest part of the puzzle because it's way less straightforward. [38:14.960 --> 38:20.200] The data may not even be out there, but, um, you just kind of have to try and think about it. [38:20.280 --> 38:23.720] And that goes back to the, um, MO pieces that we were just talking about. [38:24.000 --> 38:25.150] No plan will be perfect. [38:25.300 --> 38:25.700] It's okay. [38:26.090 --> 38:27.550] You can approximate where needed. [38:27.740 --> 38:35.070] And remember, as you go through and you're doing this sort of adversary emulation, your goal isn't to be an exact replica of a prior incident that happened. [38:35.720 --> 38:40.260] You're trying to provide some sort of variation and behave like the adversary, right? [38:40.260 --> 38:47.050] The adversary isn't going to do the exact same thing twice over and over again, because as it is, defenders are already looking at file hashes. [38:47.260 --> 38:50.280] So right there already doing the same thing over and over again, isn't going to help you. [38:50.980 --> 38:52.840] So it's okay to have this sort of variation. [38:53.150 --> 39:01.900] And if you can, um, see here, we have the three phases for our emulation plan that kind of corresponds to the three, uh, types of reports I just mentioned. [39:02.200 --> 39:16.090] So you have that first phase where you're looking at long-term setting up your infrastructure, getting your payloads ready, thinking about that, setting up multiple kinds of infrastructure, that first phase, then moving into the second phase once you get on the network and quickly moving around, [39:16.300 --> 39:24.880] uh, laterally moving to a bunch of different hosts, calling back to your different infrastructures, finding all the things that you think are useful, all these different file aggregation spots. [39:25.540 --> 39:31.070] And then you move into that final spot of, okay, now that you've found what you're looking for, now what? [39:31.420 --> 39:35.000] So going through, collecting the data, staging it, exfiltrating it out, right? [39:35.050 --> 39:41.050] Remember, this was your goal in emulating this adversary on the network, not just to, oh, look, I'm on 15 boxes. [39:42.220 --> 39:42.820] So what? [39:42.940 --> 39:43.440] What's the impact? [39:43.550 --> 39:44.360] What are you trying to do? [39:44.680 --> 39:46.760] And something you have to try and keep in mind as you go about doing this. [39:47.800 --> 39:56.280] So now that you have some sort of idea of what the adversary is capable of doing, some general approach to how you want to do this, now you need some way of doing it. [39:56.480 --> 39:59.780] You're not going to go through and drop, you know, perpy on the system. [39:59.960 --> 40:01.940] You want to be able to do this in a safer way. [40:02.730 --> 40:07.200] So this part, step three, is going through to look at what kind of tools you need to do this. [40:07.860 --> 40:17.980] And as part of this, you know, you may have your own tool set, purchasing tools that are out there, maybe open source ones that are there that you can use, and thinking about how do they operate? [40:18.150 --> 40:18.980] Can you extend them? [40:19.050 --> 40:20.020] Do you need to modify them? [40:20.110 --> 40:21.020] Do you need to write your own? [40:21.280 --> 40:23.340] And specifically, trying to look at these behaviors. [40:23.840 --> 40:25.780] So we keep talking about behaviors a lot. [40:26.190 --> 40:31.480] So I wanted to give a couple of examples of what we mean whenever we talk about emulating these sorts of TTPs. [40:32.020 --> 40:35.500] Because that's kind of a higher level, broad, abstract term. [40:35.500 --> 40:36.300] I like examples. [40:36.680 --> 40:40.590] So we already talked about a couple of these that we saw in the threat reports already. [40:40.960 --> 40:47.960] For example, if the adversary is using PS exec for lateral movement, well, what are other ways that you can do that manually? [40:48.200 --> 40:58.420] So if you use net use to mount the drive, copy the file over, use SC to create the services remotely, have more of this manual aspect to it, you're still doing the same attack technique. [40:58.630 --> 41:02.180] You're just changing up that how a little bit, giving a little bit more variation. [41:02.360 --> 41:04.020] But the behavior is still the same. [41:04.480 --> 41:10.480] Similarly, if the adversary is running who am I for discovery of once they get on a box, what kind of permissions do they have? [41:10.590 --> 41:11.050] Where are they? [41:11.150 --> 41:11.760] That sort of thing. [41:12.440 --> 41:14.820] What if you go ahead and instead use environment variables? [41:15.090 --> 41:16.240] User domain and username. [41:16.540 --> 41:23.550] There's still a lot of the same information, the same style of doing things, but now you've tweaked things a little bit to trip up the defenders. [41:23.550 --> 41:30.320] Remember, you're still trying to achieve the same sort of goals, do the same style of things, but the variations are what matters here. [41:30.570 --> 41:36.130] And so as you go through doing this, just keep in mind, you know, what it is you're trying to do and why it is you're trying to do it. [41:36.420 --> 41:38.200] The attack tactic and techniques. [41:38.400 --> 41:41.480] The variations really come into play with the how, the procedures. [41:41.860 --> 41:43.800] How it is you're implementing doing this. [41:44.440 --> 41:49.900] And so as you go through and you start looking at these, looking at your tool sets, You are going to define what it is you use. [41:50.650 --> 42:04.760] And so, sometimes people will, especially these days, get so overwhelmed with PowerShell, and it's the latest and greatest awesome thing, but if everything that you have is based off of PowerShell, and you get into an environment, and they have an XP box that doesn't have PowerShell, [42:04.920 --> 42:06.550] what do you do? [42:06.840 --> 42:12.540] I keep seeing people that are all PowerShell, and they get on there, and it's like, oh no, I know this box should have 15,000 ways of being exploited. [42:12.650 --> 42:16.020] I mean, it's XP, but there's no PowerShell, so how do I do things? [42:16.300 --> 42:25.820] Making sure that you have this sort of broad environment, this wide range of tools and implementations for how to do things helps you, as the adversary, go about your business as well. [42:26.540 --> 42:37.630] And so, here's an example of breaking out some of Perpy's functions, the malware, and ways that you can go about implementing them while staying within the balance of that attack tactic and technique. [42:37.960 --> 42:42.820] So, going through and having ways to do, like listing processes with Windows built-in. [42:42.820 --> 42:45.260] What if you did this with CMD or PowerShell? [42:45.260 --> 42:48.540] How would you do it with Cobalt Strike, Metasploit, Empire, Puppy? [42:48.760 --> 42:51.900] All these different things to have ways of going about to do this. [42:52.550 --> 43:02.240] As you go through and you start noting these things down, building out your arsenal, having all these toolkits, as a nice artifact, you kind of get this adversary emulation field manual. [43:02.940 --> 43:17.260] You get this way of illustrating and describing how you're going to go about operating on networks, emulating specific adversaries, and it's a nice way to have exact command line examples, things that you can kind of just copy and paste a broader knowledge that you and your team can use. [43:18.180 --> 43:25.400] So, now that you've kind of established how you're going to do things, you have your tools, the next step is setting up your infrastructure and getting ready. [43:25.700 --> 43:38.500] This, for our APT3 example, is that phase one, getting everything set up, buying your domains, your redirectors, test your techniques, and of course, you're going to be creating your payloads that are inspired by the adversaries' tradecraft. [43:38.500 --> 43:41.960] Remember, you're not going to be dropping Perpi or PlugX onto your target network. [43:42.160 --> 43:47.360] You're going to be using your tools, but try and make them look closer to what the adversary will use. [43:47.720 --> 43:51.080] Now, I see this a lot of people going, obfuscate all the things. [43:51.100 --> 43:51.940] This is awesome. [43:52.720 --> 43:56.580] People like Dan Bohannon are releasing awesome tools to go out there and obfuscate all the things. [43:56.960 --> 44:03.800] But remember, obfuscation itself can be kind of a trip, an indicator of compromise that people are triggering on. [44:03.800 --> 44:05.860] And so, don't obfuscate all the things. [44:06.220 --> 44:07.780] Please obfuscate with purpose. [44:08.060 --> 44:12.980] If you're obfuscating, then you're looking at something in that defense evasion tactic that we have in attack. [44:13.340 --> 44:15.120] There's a reason that you're trying to obfuscate. [44:15.420 --> 44:15.820] Why? [44:16.000 --> 44:23.380] You don't want to just obfuscate for the sake of obfuscation, but you're trying to bypass a specific signature, get rid of a specific string, that sort of stuff. [44:23.820 --> 44:25.940] So, keep that in mind as you go through. [44:26.940 --> 44:37.820] And so, finally, the last step for this is, now that you have everything ready, you have everything set up, tested, now actually go forth and conquer, be the adversary on that network, emulate the adversary. [44:38.080 --> 44:41.620] Keep this flow in mind, why it is you're going about them. [44:41.960 --> 44:47.000] Remember, it's highly unlikely that domain admin is the target for an adversary. [44:47.500 --> 44:47.720] Right? [44:47.800 --> 44:48.860] There's something they're trying to get. [44:49.040 --> 44:54.060] Just having a domain admin password doesn't, like, help the company get any better. [44:54.280 --> 44:56.420] Doesn't help you as the adversary do anything. [44:56.640 --> 44:58.400] There's something you're using that credential for. [44:58.400 --> 44:58.700] Right? [44:59.000 --> 45:03.780] So, in the APT3 example, you may not even need domain admin in the network. [45:04.200 --> 45:13.620] Maybe some users' capability and credential access can already get you onto the most valuable file share in the network, and get all the documents you need. [45:13.880 --> 45:15.860] So, just trying to keep that in mind as you go through. [45:16.320 --> 45:18.380] And keep in mind the speed of the adversary. [45:18.740 --> 45:23.360] Some adversaries are low and slow as they go about on different networks. [45:23.360 --> 45:28.120] You know, maybe sending a command once a day, being super stealthy. [45:28.480 --> 45:31.680] Sometimes they're super smash grab, light up everything, doesn't matter. [45:31.940 --> 45:34.900] They don't think this network is important, or that sort of thing. [45:35.020 --> 45:38.760] So, try and keep, remember, this general MO of the adversary in mind as you go about doing this. [45:39.760 --> 45:42.840] And so, as part of this, we are providing a starting point for red and blue. [45:43.900 --> 45:45.760] APT3 is already up on the website now. [45:45.860 --> 45:47.120] You're free to download it, look at it. [45:47.120 --> 45:59.340] We have command line examples as an adversary emulation field manual of things in Cobalt Strike, Metasploit, and Windows built-in that you can just straight up take down and run to emulate these different techniques that we have. [46:00.120 --> 46:04.520] And we have APT29 coming out soon, but with the same sort of process all the way through. [46:04.740 --> 46:08.540] What threat intelligence is out there, mapping it to attack, interesting OPSEC notes. [46:09.060 --> 46:09.140] Yep. [46:09.380 --> 46:13.560] And so, at the very end, here's some links to contact us or reach out. [46:14.970 --> 46:18.520] And feel free to reach out to MitreAttack at Twitter as well. [46:19.000 --> 46:19.800] And that's it. [46:19.920 --> 46:20.100] Thank you. [46:20.180 --> 46:20.720] I think we're right on time. [46:21.460 --> 46:21.540] All right. [46:28.430 --> 46:32.770] And I don't know if we have time for questions, but we'll be around for the rest of the conference. [46:33.070 --> 46:34.750] We also have stickers for those who want them. [46:34.990 --> 46:35.070] Yes. [46:35.070 --> 46:35.690] So, come find us. [46:35.790 --> 46:37.670] We'll be in the obvious ATT&CK shirts. [46:37.950 --> 46:37.970] Yeah. [46:37.970 --> 46:38.630] Please take our stickers. [46:39.410 --> 46:39.870] All right. [46:40.510 --> 46:40.890] Thank you. [46:40.970 --> 46:41.050] All right. [46:41.210 --> 46:41.390] Thank you.