1 00:00:00,000 --> 00:00:16,560 So I'm going to be talking about how we can use automated planning for kind of automated red teaming. My name's Andy. I am a researcher at MITRE. Are you guys familiar with MITRE? I see a lot of head nods and I like that. I also work in ATT&CK and Caldera, which is kind of a lot of where this talk came from. 2 00:00:16,560 --> 00:00:44,100 And the way I like to kind of bring this up and talk about this problem is that as a defender, it's really hard to assess what we're missing in our networks. It's easy to fall into this like castle mentality where our networks are castles, adversaries are never going to break in. And well, they are going to break in. They're going to find ways to get around your walls. And as defenders, if we're not really like assessing our own networks, we're not going to know where those holes might be and where we should actually be looking to improve our defenses. 3 00:00:45,400 --> 00:00:57,960 So to try to solve this problem, we can run offensive assessments. And that's a catch-all term. And I'm going to go into it, you know, a little more specifics in a bit. But the idea is to stress test your network by executing a real attack and seeing what actually happens. 4 00:00:58,260 --> 00:01:10,020 You know, did you detect the attack? Can you see how far they got? Did they make it, you know, into the walls? Did they go to the treasure? What do they actually do? And then try to understand how you can improve your detection and your prevention. 5 00:01:11,820 --> 00:01:14,080 And so offensive testing is great. You know, penetration testing is great. 6 00:01:14,760 --> 00:01:27,020 All these things are wonderful. However, they're hard. They cost a lot of money to run. They require a very significant time investment. Results are dependent on the capabilities of the personnel who are executing the attack. 7 00:01:27,280 --> 00:01:33,140 If you run two different, you know, red teams at different times with different personnel, you're going to get very different results. 8 00:01:34,540 --> 00:01:42,720 Exercises can also be hard to repeat. This is a problem because you're going to want to see how your environment has changed over time, how your security has changed, what defenses have changed. 9 00:01:42,860 --> 00:01:44,080 If you can't repeat your exercises. 10 00:01:44,100 --> 00:01:45,060 You're going to have a problem. 11 00:01:45,440 --> 00:01:53,460 And then designing red team exercises is also a kind of like time-consuming and heavily invested process. 12 00:01:53,980 --> 00:01:56,700 And, well, automation can solve a lot of these things. 13 00:01:57,040 --> 00:02:00,600 If you can automate your offensive tests, you will lower the cost to run an exercise. 14 00:02:00,720 --> 00:02:01,800 You just need a tool to run it. 15 00:02:01,960 --> 00:02:03,140 They're less time-intensive. 16 00:02:03,200 --> 00:02:05,040 You just push a button and it goes and it does its thing. 17 00:02:05,220 --> 00:02:10,580 And now you're dependent on an attacker model as opposed to the actual personnel so things are more consistent. 18 00:02:10,820 --> 00:02:12,780 And you can repeat the test at the push of a button. 19 00:02:12,980 --> 00:02:13,940 And best of all, 20 00:02:14,100 --> 00:02:15,300 designs can be saved. 21 00:02:15,420 --> 00:02:17,920 And you just, again, hit a button, run the same test you ran before. 22 00:02:19,100 --> 00:02:22,700 And, indeed, a lot of people in the community have realized that automation is good. 23 00:02:22,860 --> 00:02:37,660 And this is kind of a snapshot of only a small slice of some of the kind of open source projects out there that do automated offensive testing at various degrees. 24 00:02:38,040 --> 00:02:39,380 I come from the MITRE side. 25 00:02:39,540 --> 00:02:40,540 That's Caldera at the top. 26 00:02:40,640 --> 00:02:41,440 Caldera is open source. 27 00:02:41,540 --> 00:02:42,080 You have the link there. 28 00:02:42,220 --> 00:02:43,640 But there's also Atomic Red Team, 29 00:02:43,640 --> 00:02:44,560 which aligns to ATT&CK. 30 00:02:44,760 --> 00:02:45,320 There's Meta. 31 00:02:45,340 --> 00:02:46,000 I think it's by Uber. 32 00:02:46,320 --> 00:02:49,480 Red Team Automation, I think is the name, by Endgame. 33 00:02:50,100 --> 00:02:52,080 Infection Monkey, that's by GuardiCore. 34 00:02:52,380 --> 00:02:59,200 And then on the right, those are a lot of tools that kind of circle around Bloodhound, which does automated ATT&CK path generation, kind of, you know, 35 00:02:59,940 --> 00:03:03,280 pluming active directory to figure out, like, what the trust relationships are. 36 00:03:03,480 --> 00:03:05,980 And then a couple of projects that can kind of build off that automation. 37 00:03:06,180 --> 00:03:08,100 So, anyway, automation is fantastic. 38 00:03:08,400 --> 00:03:09,540 And I keep saying offensive testing. 39 00:03:09,700 --> 00:03:10,940 But what do I actually mean by that? 40 00:03:11,440 --> 00:03:13,300 I'm going to kind of talk about three different categories. 41 00:03:13,300 --> 00:03:14,660 The first is pen testing. 42 00:03:14,820 --> 00:03:16,120 That's kind of what we talk about a lot. 43 00:03:16,320 --> 00:03:19,780 You know, penetration tests, they're helpful to determine the state of our vulnerability. 44 00:03:20,020 --> 00:03:21,360 You test methods of gaining access. 45 00:03:21,440 --> 00:03:22,120 You look for weaknesses. 46 00:03:22,520 --> 00:03:25,500 You know, this is really, this really tends to be, like, exploit heavy. 47 00:03:25,680 --> 00:03:30,420 And from a CASL analogy, this is, you know, really kind of, you know, going at the walls of a network. 48 00:03:31,320 --> 00:03:33,680 Red teaming is a little more expansive. 49 00:03:34,000 --> 00:03:36,340 Now, red teams actually simulate the goals of an adversary. 50 00:03:36,880 --> 00:03:38,580 You know, this is much more end to end. 51 00:03:38,940 --> 00:03:40,120 You're going to gain your network access. 52 00:03:40,320 --> 00:03:41,260 You're going to move about the network. 53 00:03:41,380 --> 00:03:42,360 And you're going to pursue an objective. 54 00:03:42,820 --> 00:03:43,280 And here's the thing. 55 00:03:43,300 --> 00:03:46,280 Here, as opposed to just kind of targeting the walls, now a lot more is in scope. 56 00:03:46,600 --> 00:03:53,680 You have kind of the holes and even the catapults off to the side, which might be, you know, the red team's custom set of techniques that they like to use. 57 00:03:54,220 --> 00:03:56,280 Then over here, this is adversary emulation. 58 00:03:56,540 --> 00:04:01,580 And here, this is like red teaming, but you want to simulate the actions of a specific adversary. 59 00:04:01,960 --> 00:04:04,080 You can call this kind of threat-based red teaming. 60 00:04:04,740 --> 00:04:06,900 And unlike red teaming, this is a lot more constrained. 61 00:04:07,040 --> 00:04:09,820 We're going to talk about one specific path and one specific threat actor. 62 00:04:10,240 --> 00:04:13,160 And so I'm going to talk mainly throughout this talk about adversary. 63 00:04:13,300 --> 00:04:15,080 I think adversary emulation is cool. 64 00:04:16,160 --> 00:04:23,700 I'd say that a lot of the concepts here in adversary emulation and red teaming, those generalize to pen testing or kind of they all generalize around. 65 00:04:23,980 --> 00:04:29,820 I'd argue maybe that some of the ideas for pen testing don't necessarily generalize to adversary emulation, but that's a different argument. 66 00:04:30,180 --> 00:04:36,740 So if we want to kind of do successful automated adversary emulation, we need to kind of have a set of goals. 67 00:04:36,840 --> 00:04:37,860 And the first is to make it real. 68 00:04:37,960 --> 00:04:42,020 You don't want to just kind of run a notional, like hypothetical adversary emulation exercise. 69 00:04:42,140 --> 00:04:43,140 You want to actually use the same. 70 00:04:43,300 --> 00:04:45,920 Techniques, the same tools and the methods and goals of a real attacker. 71 00:04:46,940 --> 00:04:48,380 You also want to do this end to end. 72 00:04:48,560 --> 00:04:49,600 You don't want to look for one offs. 73 00:04:49,760 --> 00:04:52,600 You want to actually compose attacks because that's what real adversaries do. 74 00:04:52,940 --> 00:04:54,540 They do a, they do B, they do C. 75 00:04:54,660 --> 00:04:55,920 They don't just do a, and they stop. 76 00:04:55,980 --> 00:04:57,340 Like they go throughout your network. 77 00:04:58,100 --> 00:04:58,860 Repeatability is important. 78 00:04:59,000 --> 00:05:02,000 I mentioned that at the beginning, and then this last one is extensible. 79 00:05:02,160 --> 00:05:05,160 We don't necessarily just want to come up with a model where everything is hard coded. 80 00:05:05,280 --> 00:05:06,700 It's going to do the same thing over and over again. 81 00:05:06,900 --> 00:05:07,720 You want some variability. 82 00:05:07,920 --> 00:05:10,460 You want to extend the TTPs that are, that are in your tool. 83 00:05:10,540 --> 00:05:12,900 You want to kind of grow as, as needed. 84 00:05:13,500 --> 00:05:17,140 And if we really want to realize these goals, we're going to need some form of advanced 85 00:05:17,140 --> 00:05:20,520 decision-making to kind of chain things together and figure out what we should be doing. 86 00:05:21,380 --> 00:05:25,720 So I'm going to talk about the adversary model that I use throughout this talk. 87 00:05:25,880 --> 00:05:27,240 It's the MITRE ATT&CK framework. 88 00:05:27,540 --> 00:05:29,980 Out of curiosity, how many people here are familiar with ATT&CK? 89 00:05:31,180 --> 00:05:32,440 Yes, this is awesome. 90 00:05:32,680 --> 00:05:34,180 Um, a good amount of people. 91 00:05:34,280 --> 00:05:38,000 So, so ATT&CK is an awesome framework that kind of talks about what adversaries tend 92 00:05:38,000 --> 00:05:39,460 to do after they compromise networks. 93 00:05:39,840 --> 00:05:43,020 It breaks things down into the adversaries tactical goals. 94 00:05:43,300 --> 00:05:46,020 These are the things like, you know, persistence, privilege, escalation, lateral movement, 95 00:05:46,240 --> 00:05:50,300 exfiltration, and then the techniques as to how the adversary achieves those goals. 96 00:05:50,500 --> 00:05:55,140 This is more focused on kind of enumerating adversary behaviors as opposed to a specific 97 00:05:55,140 --> 00:05:57,160 like attack patterns or IOCs. 98 00:05:57,240 --> 00:06:00,520 If you're familiar with the pyramid of pain, this is really targeting that top of the pain, 99 00:06:00,580 --> 00:06:04,400 the TTP style, um, you know, enumeration of what adversaries do. 100 00:06:04,800 --> 00:06:08,120 And in the ATT&CK framework, we not just enumerate them as a nice little picture in 101 00:06:08,120 --> 00:06:08,380 a matrix. 102 00:06:08,520 --> 00:06:13,100 We have a description of what the technique is, as well as a list of examples of adversary 103 00:06:13,100 --> 00:06:15,820 usage of each technique, as well as software that executes that technique. 104 00:06:16,340 --> 00:06:18,460 And I'm going to try not to spend too much time talking about ATT&CK. 105 00:06:18,520 --> 00:06:19,860 Apparently orange is a bad color here. 106 00:06:20,480 --> 00:06:24,160 Um, some of the nice things about ATT&CK are that it's grounded in real data from, 107 00:06:24,200 --> 00:06:25,020 from cyber incidents. 108 00:06:25,240 --> 00:06:28,700 All the TTPs we have in ATT&CK, all the techniques are backed up by real publicly 109 00:06:28,700 --> 00:06:29,880 available threat intelligence. 110 00:06:30,600 --> 00:06:32,360 And my favorite is probably the third one. 111 00:06:32,840 --> 00:06:36,440 ATT&CK decouples the problem of understanding what adversaries really do when they attack 112 00:06:36,440 --> 00:06:38,840 networks from the defensive solution you want to deploy. 113 00:06:39,160 --> 00:06:41,420 So we can use ATT&CK in any way we want to. 114 00:06:41,460 --> 00:06:43,080 This is just an enumeration, you know, from the attack networks. 115 00:06:43,780 --> 00:06:45,760 And this gives us a lot of flexibility. 116 00:06:47,480 --> 00:06:52,120 So to just give an example, this is a slide I stole from a colleague where he just went 117 00:06:52,120 --> 00:06:56,180 through and he analyzed a threat report and he found kind of some of the, the strings 118 00:06:56,180 --> 00:06:58,100 in a, a piece of malware. 119 00:06:58,520 --> 00:07:02,200 And you'll, you'll note here that a lot of these things are, they all map to ATT&CK 120 00:07:02,200 --> 00:07:03,580 and that's the enumeration on the left. 121 00:07:03,720 --> 00:07:07,180 But a lot of these things are, are really just like, you know, normal Windows things. 122 00:07:07,300 --> 00:07:11,040 There's IP config, net local group administrators, net local group administrators domain, 123 00:07:11,500 --> 00:07:12,540 net stat, ping. 124 00:07:13,080 --> 00:07:15,060 Um, MBT stat is in there as well. 125 00:07:15,140 --> 00:07:20,120 DER, all these things that are really kind of these normally benign things that adversaries 126 00:07:20,120 --> 00:07:21,660 use when they actually compromise networks. 127 00:07:21,860 --> 00:07:25,340 So I bring this up to say, you know, mainly when we talk about adversary emulation, we 128 00:07:25,340 --> 00:07:27,960 don't talk about things from a pure exploit driven perspective. 129 00:07:28,100 --> 00:07:31,320 This is more the end to end thing where we're talking about also like living off the land 130 00:07:32,040 --> 00:07:34,260 and that's going to play an important role kind of later in the talk. 131 00:07:35,080 --> 00:07:37,320 I'm going to pivot a little bit and talk about automated planning. 132 00:07:37,480 --> 00:07:38,600 I think I have to, it's in the title. 133 00:07:39,620 --> 00:07:40,980 Automated planning is kind of old school. 134 00:07:40,980 --> 00:07:45,960 Um, it, it's relatively simple to describe basically given the state of the world, an end goal 135 00:07:45,960 --> 00:07:50,440 and a set of actions, how do you compose those actions together to achieve your end goal? 136 00:07:50,760 --> 00:07:54,660 And here's just an example that's totally contrived of waking up and I want to eat breakfast. 137 00:07:54,820 --> 00:07:57,960 So I'm going to get my bowl, get my milk, get my cereal, then eat my breakfast. 138 00:07:58,060 --> 00:08:00,680 I'm not going to go get the leash and then walk the dog if I want to go eat breakfast. 139 00:08:01,360 --> 00:08:02,000 I've tried that. 140 00:08:02,020 --> 00:08:02,420 It doesn't work. 141 00:08:04,380 --> 00:08:07,020 Um, as I said, automated planning is kind of old school. 142 00:08:07,180 --> 00:08:10,420 Um, one of the biggest kind of sol, 143 00:08:10,980 --> 00:08:13,260 solvers, the most well known in the planning field is strips. 144 00:08:13,440 --> 00:08:16,880 The Stanford research Institute problem solver, and that's from 1971. 145 00:08:17,180 --> 00:08:20,960 So again, old school, um, these are relatively straightforward representation. 146 00:08:21,280 --> 00:08:27,160 You have basically a set of Adams and Boolean variables, a set of actions, an initial situation and a goal situation. 147 00:08:27,860 --> 00:08:36,480 And the challenge is to figure out, you know, what sequence of action starting from the, um, the initial condition achieves the goal situation. 148 00:08:36,760 --> 00:08:37,860 This is, this is pretty straightforward. 149 00:08:38,720 --> 00:08:40,560 And the thing about kind of the strips formulation. 150 00:08:40,980 --> 00:08:46,780 Is that for each action, we define the name, the preconditions that must be true for us to execute that technique. 151 00:08:47,500 --> 00:08:52,280 The atoms are the kind of the, the post conditions that will be true after we execute the technique. 152 00:08:52,640 --> 00:09:00,080 And then the atoms are things that will be false when we, after we, um, execute the, or excuse me, not the technique, the action jumping ahead. 153 00:09:00,820 --> 00:09:03,580 Here's a simple example that a lot of people talk about in the planning community. 154 00:09:03,700 --> 00:09:04,540 It's the blocks world. 155 00:09:05,000 --> 00:09:09,160 Um, the colors aren't showing well, but the basic idea is, you know, we have a bunch of blocks on a table. 156 00:09:09,620 --> 00:09:10,800 You know, B is on a. 157 00:09:10,980 --> 00:09:11,980 C is on spot. 158 00:09:12,040 --> 00:09:13,100 Number two is on spot. 159 00:09:13,180 --> 00:09:13,680 Number three. 160 00:09:13,960 --> 00:09:18,480 We want to achieve this end state where a is on one B is on two C is on three, relatively straightforward. 161 00:09:18,740 --> 00:09:20,200 We have an action that moves one to the other. 162 00:09:20,460 --> 00:09:28,280 We have some kind of logic description of, you know, how we can move blocks between different locations and a plan just kind of says, okay, B is going to go on. 163 00:09:28,340 --> 00:09:32,460 C is going to go on one B on a C on three B on two, relatively straightforward. 164 00:09:33,080 --> 00:09:39,400 And, you know, at, at its core, you know, really planning is really just a pathfinding problem over a graph. 165 00:09:39,580 --> 00:09:40,720 And the states are no. 166 00:09:41,520 --> 00:09:50,460 And the actions are the edges in it that this is a very like horrible oversimplification, but this is a big part of what planning is, is really trying to figure out how you navigate that, that graph. 167 00:09:51,520 --> 00:09:54,100 And there's a lot of research on doing this more efficiently. 168 00:09:54,680 --> 00:09:56,580 Uh, some kind of three buckets down here. 169 00:09:56,640 --> 00:10:06,780 One of them is heuristics, trying to analyze a node in this graph and figuring out, okay, should I actually keep exploring this branch landmarks, trying to find those landmark actions that, oh, I know I need to execute this action at some point. 170 00:10:06,820 --> 00:10:10,960 So I'm going to throw it into my plan and then helpful actions, which kind of help you along, along the way. 171 00:10:10,980 --> 00:10:12,720 And there's a ton more stuff here. 172 00:10:12,760 --> 00:10:15,940 I have, I have a reference down there that is probably illegible. 173 00:10:16,100 --> 00:10:21,060 Um, so classical planning is fun, but it doesn't handle uncertainty at all. 174 00:10:21,180 --> 00:10:22,800 So the planning field has really exploded. 175 00:10:23,020 --> 00:10:25,480 There's like lots and lots of research on planning. 176 00:10:25,680 --> 00:10:29,260 This is just only a snapshot of that at, at one level you had conformant planning. 177 00:10:29,460 --> 00:10:32,200 This is a little bit more in depth than classical planning here. 178 00:10:32,280 --> 00:10:33,260 Your initial state is unknown. 179 00:10:33,460 --> 00:10:35,940 Instead, you're giving kind of a set of possible initial states. 180 00:10:36,680 --> 00:10:39,940 Contingent planning is another kind of more advanced form of dealing with uncertainty. 181 00:10:40,260 --> 00:10:40,900 Now you have. 182 00:10:40,920 --> 00:10:40,960 Okay. 183 00:10:40,960 --> 00:10:42,660 Actions that can have non-deterministic outcomes. 184 00:10:42,860 --> 00:10:44,200 This is like probabilistic planning. 185 00:10:44,840 --> 00:10:47,920 Even more confusing is partially observable Markov decision processes. 186 00:10:48,700 --> 00:10:52,680 PMDPs here, actions yield observations, which inform our belief about the resultant state. 187 00:10:53,040 --> 00:10:56,940 And then we always kind of maintain a belief distribution of, of what state we think we're in. 188 00:10:57,520 --> 00:11:04,060 And then the last one I'll put down there is offline versus replanning and continuous planning in part of the planning field. 189 00:11:04,160 --> 00:11:08,760 You kind of come up with an operative plan, you figure it out, and then you just go execute a, B, C, D, and E. 190 00:11:08,860 --> 00:11:10,700 And you kind of keep going and many applications. 191 00:11:10,700 --> 00:11:14,120 You find that you're not going to come up with an operative plan, you know, from the get-go. 192 00:11:14,240 --> 00:11:20,140 You're actually going to execute a few, a few actions, reevaluate, execute some more actions, and then reevaluate some more, and then lose your slides. 193 00:11:24,700 --> 00:11:25,460 Green's a good color. 194 00:11:27,200 --> 00:11:28,400 So, yeah, that's illegible. 195 00:11:28,540 --> 00:11:33,440 But, so planning and security has kind of a, or, you know, again, an old school approach. 196 00:11:34,440 --> 00:11:36,200 Really traces it back to kind of attack graphs. 197 00:11:36,400 --> 00:11:40,680 You can't see the graph, but the basic idea is we can use planning to figure out, like, 198 00:11:40,680 --> 00:11:43,540 how to chain vulnerabilities together and move about your network. 199 00:11:43,780 --> 00:11:44,800 It's relatively straightforward. 200 00:11:45,060 --> 00:11:45,360 It's older. 201 00:11:45,520 --> 00:11:51,040 There's a lot of logical models, a lot of research in, you know, kind of the late 90s and early mid-2000s, 202 00:11:51,040 --> 00:11:54,180 which talk about how you can construct attack graphs, how you can optimize them. 203 00:11:54,420 --> 00:12:01,720 They tend to be kind of exploit-heavy, and there's a lot of utility, but it's hard to see when you're just looking at that. 204 00:12:04,160 --> 00:12:09,680 More interesting approaches to using planning and security are kind of automated pen testing using POMDPs. 205 00:12:10,680 --> 00:12:16,100 There's a line of papers that took about this approach, which was pretty interesting. 206 00:12:16,360 --> 00:12:20,560 And the reason is that, you know, assuming an attacker has full network knowledge, that's kind of unreasonable. 207 00:12:21,100 --> 00:12:24,200 If I'm an attacker, and even if I'm a red teamer and I'm going at a network, 208 00:12:24,320 --> 00:12:28,060 I'm not always going to know exactly what the network map looks like or what, you know, vulnerabilities exist, 209 00:12:28,300 --> 00:12:30,700 who's admin where, you know, the whole AD structure. 210 00:12:30,880 --> 00:12:31,520 I don't really know that. 211 00:12:32,200 --> 00:12:38,300 So, instead, you know, they take this POMDP approach where, you know, it's relatively, you know, straightforward, 212 00:12:38,520 --> 00:12:40,600 where they have sensing actions and then acting actions. 213 00:12:40,680 --> 00:12:43,460 You know, the sensing action is something like running NMAP and scanning for vulnerabilities. 214 00:12:43,980 --> 00:12:45,680 Acting actions, you know, launching an exploit. 215 00:12:45,780 --> 00:12:49,680 Relatively straightforward, but this has resulted in a much more robust solution 216 00:12:49,680 --> 00:12:54,680 that's actually able to work in the presence of uncertainty, or attack graph approaches weren't able to shine. 217 00:12:55,200 --> 00:12:57,740 And then, probably can't read this either. 218 00:12:58,920 --> 00:13:08,020 It's just a taxonomy from a researcher in the planning community who's been working on using planning for kind of pen testing. 219 00:13:08,460 --> 00:13:10,660 And he kind of bases it based on what the action is. 220 00:13:10,680 --> 00:13:11,320 What the action model is. 221 00:13:11,480 --> 00:13:12,680 So, do you even have actions? 222 00:13:12,720 --> 00:13:14,300 Are you just kind of drawing a network graph? 223 00:13:14,540 --> 00:13:17,580 Do you have monotonic actions where each action increases your knowledge base? 224 00:13:17,780 --> 00:13:18,680 You know, delete free. 225 00:13:18,940 --> 00:13:21,320 Or you have general actions, which is a normal planning thing. 226 00:13:21,540 --> 00:13:25,400 And then you can balance that versus uncertainty where you have, you know, no uncertainty. 227 00:13:25,740 --> 00:13:27,540 You have uncertainty in your action outcomes. 228 00:13:27,660 --> 00:13:29,280 You have uncertainty in whether or not something might succeed. 229 00:13:29,600 --> 00:13:33,320 And then you have uncertainty regarding your state distribution and what state you're even in. 230 00:13:33,480 --> 00:13:38,080 And depending on the specific model you're going for, there's a few things in the literature where you might use, you know, 231 00:13:38,140 --> 00:13:40,600 just a graph or classical planning. 232 00:13:40,680 --> 00:13:42,580 Or an MDP or a PUMDP. 233 00:13:42,980 --> 00:13:44,120 And so, this is a great paper. 234 00:13:44,220 --> 00:13:46,140 I'd highly recommend it if you're interested in this area. 235 00:13:46,380 --> 00:13:50,980 It's called, if you can't read it, Simulated Penetration Testing from Dijkstra Editorium Test. 236 00:13:51,540 --> 00:13:52,840 Jorg Hoffman is the author. 237 00:13:52,960 --> 00:13:53,440 It's a great paper. 238 00:13:56,560 --> 00:13:57,280 All right. 239 00:13:57,340 --> 00:13:58,260 So, I'm going to pivot back. 240 00:13:58,440 --> 00:14:02,640 It's kind of talking less about kind of, you know, planning and more about adversary emulation. 241 00:14:02,960 --> 00:14:04,640 And so, here's an example to motivate it. 242 00:14:04,900 --> 00:14:08,160 Let's say you've got this host one and you have a foothold there. 243 00:14:08,300 --> 00:14:09,180 And you've seen this host two. 244 00:14:09,220 --> 00:14:10,660 And you want to copy a file. 245 00:14:10,680 --> 00:14:11,800 And you want to copy a file from host one over to host two. 246 00:14:12,580 --> 00:14:15,220 You might say, okay, what do I need to do to copy a RAT file over? 247 00:14:15,400 --> 00:14:17,500 I need a working RAT on the source host on host one. 248 00:14:17,640 --> 00:14:20,660 I need the mounted file share access from the target onto the source. 249 00:14:20,780 --> 00:14:22,460 And then I need write access to that file share. 250 00:14:23,020 --> 00:14:24,440 Well, these look a lot like preconditions. 251 00:14:25,420 --> 00:14:27,920 And then you can say, oh, what happens after copying a RAT file over? 252 00:14:28,080 --> 00:14:30,240 Well, there will be a new file on the target host. 253 00:14:30,380 --> 00:14:31,580 That file will contain the RAT. 254 00:14:31,980 --> 00:14:33,700 And those are the consequences or post conditions. 255 00:14:34,320 --> 00:14:38,340 And what you can do is you can say, okay, if I want to make a plan to copy a file, 256 00:14:38,340 --> 00:14:40,960 I need to get that file on the target. 257 00:14:41,320 --> 00:14:43,800 Well, to run that copy file action, I need a mounted share. 258 00:14:44,140 --> 00:14:44,420 Okay. 259 00:14:44,900 --> 00:14:46,100 I'm going to run the mount share command. 260 00:14:46,420 --> 00:14:47,920 I'm going to get the mounted share, but I need credentials. 261 00:14:48,360 --> 00:14:48,640 Okay. 262 00:14:48,700 --> 00:14:49,440 I'm going to dump credentials. 263 00:14:49,860 --> 00:14:50,620 Get those credentials. 264 00:14:50,760 --> 00:14:53,140 And as long as I start with an elevated RAT, I can go about and do this. 265 00:14:53,920 --> 00:14:55,740 And this looks a lot like planning. 266 00:14:56,440 --> 00:14:59,320 So this, oh, I get a fun graphic, too. 267 00:15:01,440 --> 00:15:01,820 So, yeah. 268 00:15:01,920 --> 00:15:02,920 This looks a lot like planning. 269 00:15:03,860 --> 00:15:05,400 And just to give you a few examples. 270 00:15:05,820 --> 00:15:08,320 You know, suppose you want to go from host one to host two and exfiltrate this. 271 00:15:08,340 --> 00:15:09,160 I'm going to take data from host two. 272 00:15:09,360 --> 00:15:11,320 One potential plan is I'm going to dump credentials. 273 00:15:11,420 --> 00:15:15,480 I'm going to mount the share, copy a file, remotely execute that file, and then exfiltrate the data. 274 00:15:15,940 --> 00:15:19,220 Another plan might be exploiting a vulnerability and then exfiltrating the data. 275 00:15:19,680 --> 00:15:23,740 Then another plan might be dumping credentials using RDP and then exfiltrating the data. 276 00:15:23,860 --> 00:15:27,740 So relatively simple examples, but, again, you can see how we chain these actions together. 277 00:15:28,260 --> 00:15:31,920 One of the questions we might want to ask is, you know, suppose we're doing this chaining 278 00:15:31,920 --> 00:15:33,460 and we're coming up with these plans. 279 00:15:33,640 --> 00:15:34,940 Well, how do I select the right plan? 280 00:15:35,200 --> 00:15:38,080 And if you have an explicit goal you've enumerated beforehand, 281 00:15:38,340 --> 00:15:38,700 that's straightforward. 282 00:15:38,920 --> 00:15:41,200 You kind of enumerate all the plans and go towards a goal. 283 00:15:41,460 --> 00:15:42,920 But if you're trying to do address or emulation, 284 00:15:43,060 --> 00:15:44,540 you're trying to kind of show these repeat behaviors, 285 00:15:44,740 --> 00:15:46,160 you know, what's the right plan to execute? 286 00:15:46,340 --> 00:15:48,220 Or even if you have a goal and you have multiple plans, 287 00:15:48,440 --> 00:15:49,700 how do you choose the right one? 288 00:15:51,680 --> 00:15:56,720 And something that we've done or the line of research that we've taken about 289 00:15:56,720 --> 00:16:00,860 is to basically just kind of assign each action or assign each plan a score 290 00:16:00,860 --> 00:16:02,920 based on kind of a heuristic function we have. 291 00:16:03,180 --> 00:16:06,180 Basically just a decreased weighted sum over each action. 292 00:16:06,260 --> 00:16:07,480 It's very straightforward. 293 00:16:08,340 --> 00:16:11,340 But the idea is, you know, if we assign each action a reward function 294 00:16:11,920 --> 00:16:15,880 or an individual reward and then sum up the rewards kind of decreasing 295 00:16:15,880 --> 00:16:18,380 as it, you know, executes further in the plan, 296 00:16:18,620 --> 00:16:20,460 then we're going to execute that plan. 297 00:16:20,620 --> 00:16:21,120 And it's straightforward. 298 00:16:21,420 --> 00:16:23,300 And here I'm not going through the example in detail. 299 00:16:23,440 --> 00:16:26,660 But, you know, if you follow what's on the lower right-hand corner, 300 00:16:26,780 --> 00:16:28,520 then plan number three is the best plan. 301 00:16:29,900 --> 00:16:32,580 So that seems really easy, and it's not that easy. 302 00:16:34,020 --> 00:16:37,160 There's a lot of uncertainty that comes about when you're doing adversary emulation. 303 00:16:37,160 --> 00:16:39,380 And so let's consider kind of, you know, to kind of walk through that, 304 00:16:39,460 --> 00:16:40,300 let's consider two plans. 305 00:16:40,780 --> 00:16:42,980 The first is, you know, that dumping credentials plan. 306 00:16:43,140 --> 00:16:44,400 And the second is exploiting a vulnerability. 307 00:16:45,240 --> 00:16:47,580 When we consider the uncertainty for exploiting a vulnerability, 308 00:16:47,760 --> 00:16:48,820 it's relatively straightforward. 309 00:16:49,540 --> 00:16:51,700 First, is the target susceptible to the exploit? 310 00:16:51,840 --> 00:16:53,180 That's a binary. That's yes or no. 311 00:16:53,280 --> 00:16:54,420 And that's something you can scan beforehand. 312 00:16:55,260 --> 00:16:58,460 And then the second one is, well, was the exploit technique executed successfully? 313 00:16:58,880 --> 00:17:00,400 That's also a binary, yes or no. 314 00:17:00,480 --> 00:17:01,840 And you can scan for that after the fact. 315 00:17:01,900 --> 00:17:03,540 And it's relatively straightforward how you do that. 316 00:17:04,240 --> 00:17:07,000 And this is straightforward, but it still leads to very interesting, 317 00:17:07,160 --> 00:17:08,280 interesting scenarios for planners, 318 00:17:08,420 --> 00:17:10,400 but it's kind of straightforward from our perspective. 319 00:17:11,640 --> 00:17:13,280 Now, consider dumping credentials. 320 00:17:13,660 --> 00:17:15,080 This is really easy to describe. 321 00:17:15,800 --> 00:17:16,880 When I dump credentials, 322 00:17:17,020 --> 00:17:18,340 I need a rat with elevated access. 323 00:17:18,520 --> 00:17:19,000 That's straightforward. 324 00:17:19,480 --> 00:17:22,220 After dumping credentials, I'm going to get credentials for all accounts 325 00:17:22,220 --> 00:17:25,020 that have active sessions on the host I just dumped credentials on. 326 00:17:25,260 --> 00:17:26,460 Again, that's also straightforward. 327 00:17:27,240 --> 00:17:29,800 However, in practice, while the description is easy, 328 00:17:29,900 --> 00:17:30,980 what we're going to get back, 329 00:17:30,980 --> 00:17:33,260 our consequences here, the post conditions for this action, 330 00:17:33,300 --> 00:17:34,280 are kind of complex. 331 00:17:35,060 --> 00:17:36,980 Realistically, running credentials might fail 332 00:17:37,160 --> 00:17:38,540 entirely. That's one way it can work. 333 00:17:38,780 --> 00:17:40,320 I might not get any credentials. 334 00:17:41,060 --> 00:17:42,060 That's certainly possible. 335 00:17:42,580 --> 00:17:45,140 I might get credentials for accounts that I've never even heard of. 336 00:17:45,180 --> 00:17:46,400 So I can't do any reasoning over them. 337 00:17:46,440 --> 00:17:47,400 I've never heard of them. 338 00:17:47,640 --> 00:17:50,180 I might get credentials for accounts that I've heard of, 339 00:17:50,220 --> 00:17:50,980 but I just can't use. 340 00:17:51,280 --> 00:17:53,660 And then if I'm lucky, I'm going to get credentials that I can use. 341 00:17:54,120 --> 00:17:56,080 And the problem here is that while these 342 00:17:56,680 --> 00:17:59,060 scenarios are somewhat innumerable to an extent, 343 00:17:59,380 --> 00:18:00,980 they lead to non-deterministic 344 00:18:00,980 --> 00:18:02,580 outcomes that explode in difficulty 345 00:18:02,580 --> 00:18:05,020 as we try to kind of chain forward and plan for the future. 346 00:18:05,960 --> 00:18:06,360 And 347 00:18:07,160 --> 00:18:08,480 this is totally illegible. 348 00:18:10,140 --> 00:18:11,220 So a lot of the stuff 349 00:18:11,220 --> 00:18:13,160 in the literature, the planning 350 00:18:13,160 --> 00:18:15,080 problems that we see, they tend 351 00:18:15,080 --> 00:18:16,440 to have bounded uncertainty 352 00:18:17,110 --> 00:18:18,860 where at kind of the 353 00:18:18,860 --> 00:18:20,560 biggest oversimplification 354 00:18:20,560 --> 00:18:22,340 possible, they 355 00:18:22,340 --> 00:18:24,520 explore heuristically 356 00:18:24,520 --> 00:18:27,220 and they optimize it, but they explore all possible 357 00:18:27,220 --> 00:18:29,120 states for each unknown. And this is a 358 00:18:29,120 --> 00:18:31,240 snapshot of a paper where they use partially observable 359 00:18:31,240 --> 00:18:33,180 contingent planning as an alternative 360 00:18:33,180 --> 00:18:35,240 to solving a fully 361 00:18:35,240 --> 00:18:36,100 described POMDP. 362 00:18:37,160 --> 00:18:39,100 And what they do is that in their problem 363 00:18:39,100 --> 00:18:40,920 description, they actually enumerate 364 00:18:40,920 --> 00:18:42,780 and say, hey, you know, host zero, 365 00:18:42,880 --> 00:18:44,860 that can either be WinNT, you know, the 366 00:18:44,860 --> 00:18:46,680 server edition or WinNT, the 367 00:18:46,680 --> 00:18:48,920 enterprise edition. And if I'm enumerating 368 00:18:48,920 --> 00:18:50,880 that beforehand, then I can use all these techniques, 369 00:18:51,040 --> 00:18:52,960 but if I don't have that enumeration beforehand, it makes it 370 00:18:52,960 --> 00:18:53,660 a lot more difficult. 371 00:18:54,740 --> 00:18:57,100 So, you know, in our case, a lot of the actions 372 00:18:57,100 --> 00:18:58,960 we deal with, kind of, you know, using attack 373 00:18:58,960 --> 00:19:01,080 as this threat model, trying to do full adversary 374 00:19:01,080 --> 00:19:02,660 emulation, these actions have 375 00:19:03,420 --> 00:19:05,080 unbounded uncertainty. And it's really 376 00:19:05,080 --> 00:19:07,040 not possible to plan over all of this 377 00:19:07,160 --> 00:19:08,800 in the world states. We just can't enumerate that. 378 00:19:09,220 --> 00:19:11,020 And instead, you know, we've kind of driven 379 00:19:11,020 --> 00:19:12,700 us to this conclusion that, you know, continuous 380 00:19:12,700 --> 00:19:14,900 automated offensive testing, you know, adversary emulation, 381 00:19:15,040 --> 00:19:16,920 it's not just planning. There's also a big 382 00:19:16,920 --> 00:19:18,720 acting component. So, 383 00:19:18,820 --> 00:19:20,980 one of the things we did is came up with kind of 384 00:19:20,980 --> 00:19:23,100 a planning algorithm. It's relatively 385 00:19:23,100 --> 00:19:24,860 straightforward. We want to update the world 386 00:19:24,860 --> 00:19:27,020 state, and then after we do that, we figure 387 00:19:27,020 --> 00:19:29,000 out what valid actions there are that I can execute 388 00:19:29,000 --> 00:19:31,000 right now. And that's just looking at my preconditions. 389 00:19:31,020 --> 00:19:33,000 It's straightforward. I'm going to construct all 390 00:19:33,000 --> 00:19:34,200 plans that lead off with those 391 00:19:34,900 --> 00:19:36,920 actions, chain the actions together by leveraging 392 00:19:37,160 --> 00:19:39,060 the model, run the heuristic over those 393 00:19:39,060 --> 00:19:41,200 plans. Once I have that set, I can just use the heuristic, 394 00:19:41,680 --> 00:19:43,180 execute the first action in the best 395 00:19:43,180 --> 00:19:45,180 plan, and then repeat. Relatively straightforward, 396 00:19:45,520 --> 00:19:46,980 but the problem here is really, 397 00:19:47,100 --> 00:19:48,880 well, how do I construct plans 398 00:19:48,880 --> 00:19:50,960 if I can't enumerate all the outcomes 399 00:19:50,960 --> 00:19:52,380 of the actions that I have in my model? 400 00:19:53,340 --> 00:19:54,760 And so we've taken a few approaches. 401 00:19:55,840 --> 00:19:57,260 One of them that we did kind of 402 00:19:57,260 --> 00:19:59,040 on a more research perspective, we just kind of ran this 403 00:19:59,040 --> 00:20:00,200 in a little simulation environment. 404 00:20:01,080 --> 00:20:02,920 We basically kind of just guessed what the world 405 00:20:02,920 --> 00:20:04,920 looked like, and we used deterministic techniques 406 00:20:04,920 --> 00:20:07,020 to identify plans. Very straightforward. 407 00:20:07,160 --> 00:20:08,060 It worked well in the simulation 408 00:20:09,300 --> 00:20:11,180 space, but even there, it was 409 00:20:11,180 --> 00:20:13,000 computationally sluggish and very heuristic 410 00:20:13,000 --> 00:20:15,020 heavy. We have a paper there too, 411 00:20:15,160 --> 00:20:17,100 intelligent automated red team emulation that 412 00:20:17,100 --> 00:20:18,340 walks through some of the stuff we did there. 413 00:20:19,340 --> 00:20:21,140 We extended that by using kind of a 414 00:20:21,140 --> 00:20:22,900 small world extension idea. This is, 415 00:20:23,000 --> 00:20:25,000 I call it the light planner. We basically 416 00:20:25,000 --> 00:20:27,280 would guess small extensions 417 00:20:27,280 --> 00:20:29,220 about the unknowns we have in our environment. 418 00:20:29,480 --> 00:20:31,200 So if I see a host, and I've never 419 00:20:31,200 --> 00:20:32,980 probed the admins on that host, I might guess, 420 00:20:33,060 --> 00:20:35,240 okay, this account's an admin and this account isn't an admin. 421 00:20:35,400 --> 00:20:37,080 Then we can use a rule-based approach to 422 00:20:37,160 --> 00:20:39,080 kind of tune what the probabilities are 423 00:20:39,080 --> 00:20:40,740 that we're going to guess like. I'm going to guess 424 00:20:40,740 --> 00:20:42,960 there's an admin there that I have creds for, 425 00:20:43,260 --> 00:20:45,120 or an admin there that I don't have creds for. 426 00:20:45,940 --> 00:20:47,280 This works well in simulation, 427 00:20:47,600 --> 00:20:49,260 but again, it's hard to implement in practice, 428 00:20:49,520 --> 00:20:51,200 and it's hard to come up with a good rule set 429 00:20:51,200 --> 00:20:53,120 that you actually want to leverage in a 430 00:20:53,120 --> 00:20:53,620 real environment. 431 00:20:54,780 --> 00:20:57,140 What we ended up doing is, I'm calling optimistic 432 00:20:57,140 --> 00:20:59,000 best guess. This is basically just 433 00:20:59,000 --> 00:21:01,120 guessing. This is 434 00:21:01,120 --> 00:21:03,280 a simple approach where for each action 435 00:21:03,280 --> 00:21:05,140 we have in our model, we're going to 436 00:21:05,140 --> 00:21:07,140 encode specific hints that talk about 437 00:21:07,160 --> 00:21:09,000 what the kind of best 438 00:21:09,000 --> 00:21:11,060 case scenario is. So if I'm dumping 439 00:21:11,060 --> 00:21:12,800 credentials, my hint is going to be, I'm going to get 440 00:21:12,800 --> 00:21:14,620 credentials for an account that's an admin somewhere. 441 00:21:15,160 --> 00:21:17,240 And so this works reasonably well 442 00:21:17,240 --> 00:21:18,980 in practice. There's a lot of room for improvement 443 00:21:18,980 --> 00:21:21,060 here. It's something we're working on and I want to 444 00:21:21,060 --> 00:21:22,880 invite everybody to work on. Caldera's open source. 445 00:21:25,040 --> 00:21:27,020 But it works well enough in practice. 446 00:21:29,920 --> 00:21:31,160 So I'm going to talk a little bit 447 00:21:31,160 --> 00:21:31,860 about Caldera. 448 00:21:33,340 --> 00:21:35,080 It's written in Python 3. The rat is 449 00:21:35,080 --> 00:21:37,060 in C sharp. We use MongoDB, have all 450 00:21:37,160 --> 00:21:39,200 sorts of fun stuff. But there's three main 451 00:21:39,200 --> 00:21:41,020 components. We have an admin web 452 00:21:41,020 --> 00:21:43,340 UI that you can use to kind of control 453 00:21:43,340 --> 00:21:45,020 operations, control what it's doing. 454 00:21:45,280 --> 00:21:47,440 We have the server that kind of 455 00:21:47,440 --> 00:21:48,960 controls everything. You know, the human 456 00:21:48,960 --> 00:21:50,700 interfaces with the HTTP server. 457 00:21:50,980 --> 00:21:53,120 And then the server has a database of all the things that are 458 00:21:53,120 --> 00:21:55,160 true. An execution engine that talks about 459 00:21:55,160 --> 00:21:57,060 how you actually do things. And then 460 00:21:57,060 --> 00:21:59,000 the planner, which leverages the attacker model 461 00:21:59,000 --> 00:22:01,120 and the world state to forward train and kind of 462 00:22:01,120 --> 00:22:02,960 use the algorithms I've been talking about. 463 00:22:03,200 --> 00:22:05,040 For each host that you're testing 464 00:22:05,040 --> 00:22:06,800 in the environment, you need to have a 465 00:22:07,160 --> 00:22:08,940 kind of shim agent. This just 466 00:22:08,940 --> 00:22:10,840 facilitates communications between the 467 00:22:10,840 --> 00:22:12,440 HTTP server and the agent. 468 00:22:12,940 --> 00:22:14,680 This kind of just facilitates that communication. 469 00:22:15,140 --> 00:22:16,940 There's also a rat component that 470 00:22:16,940 --> 00:22:18,520 actually does kind of move around the network. 471 00:22:18,640 --> 00:22:20,880 So there is a real rat. It isn't really executing stuff. 472 00:22:21,260 --> 00:22:22,820 The agent is there to just kind of 473 00:22:22,820 --> 00:22:24,800 delineate which hosts are in scope or out of scope. 474 00:22:26,620 --> 00:22:28,740 Conducting an assessment is very straightforward and easy. 475 00:22:28,840 --> 00:22:30,180 This is one of the nice things about using planning. 476 00:22:30,520 --> 00:22:32,800 You load the Caldera shim onto the network hosts. 477 00:22:32,980 --> 00:22:34,920 You create an adversary. You identify 478 00:22:34,920 --> 00:22:37,100 which hosts are actually in scope for your 479 00:22:37,160 --> 00:22:38,640 assessment. And then you just launch the operation. 480 00:22:39,040 --> 00:22:41,200 It's really nice because it's very kind of 481 00:22:41,200 --> 00:22:43,080 low overhead for an operator or someone wanting 482 00:22:43,080 --> 00:22:45,160 to run an exercise. During the operation, 483 00:22:45,320 --> 00:22:47,080 Caldera will report its activities, any 484 00:22:47,080 --> 00:22:48,140 artifacts it creates, 485 00:22:49,560 --> 00:22:51,100 anything it does. And then 486 00:22:51,100 --> 00:22:53,260 it will automatically stop if it can't do anything further. 487 00:22:53,920 --> 00:22:54,840 After the operation, 488 00:22:55,060 --> 00:22:56,700 we get a report of everything that it did. 489 00:22:56,820 --> 00:22:59,120 You can kind of go in detail and kind of scope it out. 490 00:22:59,600 --> 00:23:00,200 And then 491 00:23:00,740 --> 00:23:03,120 it will automatically reset the infected host 492 00:23:03,120 --> 00:23:05,120 from moving any artifacts it created. And you can kind of 493 00:23:05,120 --> 00:23:07,140 control that. And so this will stop it from 494 00:23:07,160 --> 00:23:08,980 dropping racks all over your network and modifying 495 00:23:08,980 --> 00:23:10,760 registry keys and doing all sorts of other stuff. 496 00:23:11,800 --> 00:23:12,940 And I am 497 00:23:12,940 --> 00:23:15,200 not going to try 498 00:23:15,200 --> 00:23:16,340 to run the demo because 499 00:23:17,560 --> 00:23:18,980 this is not working well. 500 00:23:20,780 --> 00:23:22,660 So I'm just going to jump ahead to some closing thoughts. 501 00:23:25,600 --> 00:23:26,940 Using an automated adversary 502 00:23:26,940 --> 00:23:28,080 emulation is 503 00:23:29,120 --> 00:23:31,300 fun. There's a lot of cool things you can do with it. 504 00:23:31,640 --> 00:23:32,900 Testing analytics and sensors, 505 00:23:33,080 --> 00:23:35,180 that can help you see, okay, do my defenses 506 00:23:35,180 --> 00:23:37,120 actually work? I'm going to go, you know, I 507 00:23:37,160 --> 00:23:39,000 think I'm going to detect credential dumping. I'm going to go 508 00:23:39,000 --> 00:23:40,980 throw an analytic into my Splunk instance 509 00:23:40,980 --> 00:23:42,940 and run Caldera. And I can see, okay, 510 00:23:43,020 --> 00:23:44,760 did that analytic fire correctly or not? 511 00:23:45,360 --> 00:23:46,660 Data generation is also 512 00:23:46,660 --> 00:23:48,940 good. I don't know if we can 513 00:23:48,940 --> 00:23:50,920 produce at this point enough varied data 514 00:23:50,920 --> 00:23:53,100 to train models off of. But that's one of the use cases 515 00:23:53,100 --> 00:23:54,780 we want to do is to be able to kind of generate 516 00:23:55,220 --> 00:23:57,100 data to kind of train 517 00:23:57,100 --> 00:23:58,120 people and train anything. 518 00:23:59,320 --> 00:24:01,020 Number three, red and blue team training. 519 00:24:01,500 --> 00:24:02,980 You know, you can tell your red teamers, hey, 520 00:24:03,020 --> 00:24:04,960 here's Caldera. Go learn its TTPs. Go 521 00:24:04,960 --> 00:24:07,000 follow what it's doing. It can be like a first 522 00:24:07,160 --> 00:24:08,740 step. It's a nice introduction to some potential 523 00:24:08,740 --> 00:24:11,320 attack paths. It can also teach your blue team, 524 00:24:11,480 --> 00:24:13,500 you know, hey, here's what an adversary 525 00:24:13,500 --> 00:24:15,620 did. Continuous testing, 526 00:24:15,780 --> 00:24:17,860 straightforward. And then easy structure 527 00:24:17,860 --> 00:24:19,960 and replication is another big use case. 528 00:24:21,240 --> 00:24:22,520 Some notes for the future. 529 00:24:24,000 --> 00:24:25,240 Automation is a hard problem. 530 00:24:26,620 --> 00:24:27,880 We've encoded some straightforward 531 00:24:27,880 --> 00:24:29,540 techniques, but we're getting to the point 532 00:24:29,540 --> 00:24:31,700 where I think we have, like, 30 or 40 533 00:24:31,700 --> 00:24:33,940 different attack techniques encoded in Caldera. 534 00:24:34,040 --> 00:24:35,940 And managing the complexity, if you want to 535 00:24:35,940 --> 00:24:37,140 use each one of those techniques, 536 00:24:38,260 --> 00:24:40,600 that gets kind of hard because you have all these 537 00:24:40,600 --> 00:24:42,480 different atomic things that you can do and chaining 538 00:24:42,480 --> 00:24:43,800 them together is more and more difficult. 539 00:24:44,080 --> 00:24:46,960 And some techniques are hard to execute. 540 00:24:47,540 --> 00:24:50,180 RDP is a common one for red teamers, but finding, 541 00:24:50,200 --> 00:24:52,100 like, a way to automate RDP sessions is not 542 00:24:52,100 --> 00:24:53,660 particularly straightforward because we don't have 543 00:24:53,660 --> 00:24:56,320 good APIs for that. Key logging is another one 544 00:24:56,320 --> 00:24:57,780 where now we have to do, like, asynchronous 545 00:24:57,780 --> 00:24:59,720 operations because we're just waiting for someone 546 00:24:59,720 --> 00:25:01,740 to enter in a password. Right now, a lot of the 547 00:25:01,740 --> 00:25:03,560 stuff we do is just we can do it and just go execute 548 00:25:03,560 --> 00:25:05,920 it and go forth. But we want to kind of get to 549 00:25:05,920 --> 00:25:07,140 the point where we can do that kind of thing. 550 00:25:07,160 --> 00:25:10,100 So that's kind of, you know, interactive operation. 551 00:25:11,000 --> 00:25:13,620 A big question is how we can do this more intelligently. 552 00:25:13,840 --> 00:25:15,780 We're kind of working on that stuff on our own. 553 00:25:15,920 --> 00:25:18,120 But there's a big machine learning story here. 554 00:25:18,280 --> 00:25:19,360 Again, Caldera is open source. 555 00:25:20,500 --> 00:25:23,240 You know, optimistic best guess is fun to say, 556 00:25:23,420 --> 00:25:24,880 but that's just kind of guessing. 557 00:25:25,940 --> 00:25:27,180 There's a lot of cool things that you could 558 00:25:27,180 --> 00:25:27,760 potentially do. 559 00:25:27,840 --> 00:25:28,780 A lot of things we've looked into. 560 00:25:28,920 --> 00:25:29,960 A lot of things we've heard. 561 00:25:30,040 --> 00:25:33,100 You know, there's a huge and awesome story here. 562 00:25:33,320 --> 00:25:35,060 And then the last point I want to make is that we 563 00:25:35,060 --> 00:25:36,480 aren't automating offense in a vacuum. 564 00:25:36,780 --> 00:25:37,140 There's a lot of things we've looked into. 565 00:25:38,460 --> 00:25:41,620 You know, there's Caldera. 566 00:25:41,720 --> 00:25:43,980 We have a rat and semantic now picks it up. 567 00:25:45,300 --> 00:25:46,800 We're not automating offense in a vacuum. 568 00:25:47,920 --> 00:25:49,660 If you want to be involved with Caldera or anything 569 00:25:49,660 --> 00:25:52,320 we're doing, there's a few things. 570 00:25:52,480 --> 00:25:53,040 You know, we have the GitHub. 571 00:25:53,240 --> 00:25:53,940 We accept pull requests. 572 00:25:54,220 --> 00:25:54,920 Anything you want to do. 573 00:25:55,040 --> 00:25:57,800 My favorite, and I pulled some of these slides out 574 00:25:57,800 --> 00:26:00,120 because I was going to do the demo, is that you can 575 00:26:00,120 --> 00:26:01,900 actually create your own techniques and put them 576 00:26:01,900 --> 00:26:03,740 into Caldera. 577 00:26:03,980 --> 00:26:07,140 And there was actually some guys who, they were 578 00:26:07,160 --> 00:26:08,800 on a blog post of how they wrote their own techniques. 579 00:26:09,000 --> 00:26:09,980 And they put in the logic. 580 00:26:10,160 --> 00:26:11,160 They put in the execution. 581 00:26:11,460 --> 00:26:13,380 And they threw it into Caldera. 582 00:26:13,460 --> 00:26:15,220 And it was able to string it together as part of a 583 00:26:15,220 --> 00:26:15,940 larger attack path. 584 00:26:16,220 --> 00:26:17,260 So that was really cool. 585 00:26:17,440 --> 00:26:19,080 But anyway, you can get involved there. 586 00:26:19,420 --> 00:26:20,540 We have a Slack channel. 587 00:26:20,740 --> 00:26:22,280 Please reach out to us if you're interested. 588 00:26:22,520 --> 00:26:23,580 You know, we've got MITRE people everywhere. 589 00:26:24,220 --> 00:26:25,420 And we have e-mails everywhere too. 590 00:26:25,640 --> 00:26:28,380 And then on the AI side, if anyone's interested in 591 00:26:28,380 --> 00:26:31,840 automated planning, we just released a, or we were 592 00:26:31,840 --> 00:26:34,460 involved in the international planning competition. 593 00:26:37,160 --> 00:26:39,300 And that, you know, kind of got rid of some of the 594 00:26:39,300 --> 00:26:42,760 uncertainty in a way for the deterministic track. 595 00:26:43,120 --> 00:26:45,240 But it standardizes some of the actions in kind of 596 00:26:45,240 --> 00:26:47,360 the PDDL format, which is what a lot of automated 597 00:26:47,360 --> 00:26:48,000 planners do. 598 00:26:49,500 --> 00:26:51,720 Lots of links, lots of context if anyone's interested. 599 00:26:52,020 --> 00:26:52,520 I'm Andy. 600 00:26:53,360 --> 00:26:54,480 I mentioned ATT&CK. 601 00:26:54,780 --> 00:26:57,140 One thing I'll mention is we're running ATT&CKon. 602 00:26:57,220 --> 00:26:59,100 We're running a conference dedicated specifically to 603 00:26:59,100 --> 00:26:59,520 ATT&CK. 604 00:26:59,580 --> 00:27:00,900 The CFP is open right now. 605 00:27:00,960 --> 00:27:02,700 It closes on August 15th. 606 00:27:02,880 --> 00:27:03,480 Submit stuff. 607 00:27:07,160 --> 00:27:09,120 Anything involving ATT&CK, please let us know. 608 00:27:09,740 --> 00:27:11,420 We have something called a cyberanalytic repository 609 00:27:11,420 --> 00:27:12,420 that has some analytics. 610 00:27:13,160 --> 00:27:15,280 Adversary emulation plans is a new one that we've 611 00:27:15,280 --> 00:27:15,920 recently released. 612 00:27:16,120 --> 00:27:18,740 This is kind of an in-depth look at kind of how you can 613 00:27:18,740 --> 00:27:20,060 go about emulating an adversary. 614 00:27:21,940 --> 00:27:23,460 And it's basically done anyways. 615 00:27:26,680 --> 00:27:28,140 Yeah, I'll leave the links up here.