1 00:00:00,919 --> 00:00:03,199 thank you very much all right so if 2 00:00:03,199 --> 00:00:04,680 you're in the back and you want to scan 3 00:00:04,680 --> 00:00:06,759 a big QR code to get the slides I will 4 00:00:06,759 --> 00:00:08,320 also show it at the end so if you just 5 00:00:08,320 --> 00:00:10,360 want to slides for later um I will show 6 00:00:10,360 --> 00:00:11,480 that slide 7 00:00:11,480 --> 00:00:15,600 again going to count to five and 8 00:00:15,600 --> 00:00:18,920 then all right all good um 9 00:00:18,920 --> 00:00:21,160 so if you interested by what I'm going 10 00:00:21,160 --> 00:00:22,840 to show today we also have a workshop 11 00:00:22,840 --> 00:00:26,119 this afternoon at the cloud adversary uh 12 00:00:26,119 --> 00:00:28,560 from 3 to five where basically what we 13 00:00:28,560 --> 00:00:30,800 are talking about now but hands up 14 00:00:30,800 --> 00:00:34,079 so my name is CH I work at as it was 15 00:00:34,079 --> 00:00:36,079 said and in this talk I'm going to try 16 00:00:36,079 --> 00:00:37,640 and give my perspective on detection 17 00:00:37,640 --> 00:00:40,360 Engineering in the cloud specifically um 18 00:00:40,360 --> 00:00:42,399 at first I was working in a sock in Lo 19 00:00:42,399 --> 00:00:44,680 sock um manage detection and response 20 00:00:44,680 --> 00:00:46,399 vendor so I was more like writing roles 21 00:00:46,399 --> 00:00:48,360 for customers then I moved to a role 22 00:00:48,360 --> 00:00:50,280 that was more Cloud security engineering 23 00:00:50,280 --> 00:00:52,120 so the same but you know internally and 24 00:00:52,120 --> 00:00:54,320 now that I work at dat it's more like 25 00:00:54,320 --> 00:00:56,480 rules that are packaged in the product 26 00:00:56,480 --> 00:00:57,879 so how these three different 27 00:00:57,879 --> 00:01:00,600 perspectives will be useful 28 00:01:00,600 --> 00:01:02,680 as a first step I want to spend a few 29 00:01:02,680 --> 00:01:04,199 minutes looking at you know some some 30 00:01:04,199 --> 00:01:05,799 basics of detection engineering that I 31 00:01:05,799 --> 00:01:08,799 think are interesting so 32 00:01:08,799 --> 00:01:12,479 um missing a slide here starts way um so 33 00:01:12,479 --> 00:01:14,080 what I want to say here is basically 34 00:01:14,080 --> 00:01:16,600 that maybe 20 10 years ago we were 35 00:01:16,600 --> 00:01:18,720 focusing on indicators of compromise 36 00:01:18,720 --> 00:01:20,799 things like IP addresses hashes domain 37 00:01:20,799 --> 00:01:22,439 names things like that to detect bad 38 00:01:22,439 --> 00:01:24,880 things right um and in the cloud we have 39 00:01:24,880 --> 00:01:27,880 some Cloud specific ioc's uh if you 40 00:01:27,880 --> 00:01:30,040 think about attackers trying to spin up 41 00:01:30,040 --> 00:01:32,680 malicious doer images or attacking from 42 00:01:32,680 --> 00:01:35,759 a specific AWS account running specific 43 00:01:35,759 --> 00:01:37,960 malicious Amis well you know these are 44 00:01:37,960 --> 00:01:40,799 also relevant to the cloud but mostly I 45 00:01:40,799 --> 00:01:42,240 think the industry has been focusing on 46 00:01:42,240 --> 00:01:44,759 moving to um to things that are a bit 47 00:01:44,759 --> 00:01:47,159 harder to detect but also more value and 48 00:01:47,159 --> 00:01:49,280 that attackers are have more trouble to 49 00:01:49,280 --> 00:01:51,520 change um you know you've probably seen 50 00:01:51,520 --> 00:01:53,600 this this pyramid of pain and basically 51 00:01:53,600 --> 00:01:55,560 as you go up it gets much harder to 52 00:01:55,560 --> 00:01:57,159 detect but also much harder to change 53 00:01:57,159 --> 00:01:59,000 for an attacker so that's a bit where 54 00:01:59,000 --> 00:02:02,640 we're going and there are many uh many 55 00:02:02,640 --> 00:02:04,799 ways to try and find what attackers do 56 00:02:04,799 --> 00:02:06,600 but if you have some uh some product 57 00:02:06,600 --> 00:02:08,639 managers in the room here this is the 58 00:02:08,639 --> 00:02:11,360 the user story um what do attackers want 59 00:02:11,360 --> 00:02:12,879 to do in the cloud and what are they 60 00:02:12,879 --> 00:02:14,840 trying to do so that's what I'm going to 61 00:02:14,840 --> 00:02:16,879 spend two minutes talking 62 00:02:16,879 --> 00:02:18,879 about and I think it's mostly about 63 00:02:18,879 --> 00:02:20,800 three things um so looking at Behavior 64 00:02:20,800 --> 00:02:23,200 models how attackers behave in the cloud 65 00:02:23,200 --> 00:02:25,560 things like mro attack looking at public 66 00:02:25,560 --> 00:02:27,480 Cloud incidents that are disclosed which 67 00:02:27,480 --> 00:02:29,560 are sometimes quite hard to find and 68 00:02:29,560 --> 00:02:31,760 also looking at vendor uh incident 69 00:02:31,760 --> 00:02:33,800 response company reports and try to put 70 00:02:33,800 --> 00:02:35,680 these three things together to say I'm 71 00:02:35,680 --> 00:02:37,680 going to base my defense based on things 72 00:02:37,680 --> 00:02:40,280 I know attackers are doing so the first 73 00:02:40,280 --> 00:02:42,920 one is obviously Myro attack they have a 74 00:02:42,920 --> 00:02:45,480 cloud Matrix that is um you know Cloud 75 00:02:45,480 --> 00:02:47,000 specific but they don't want to be 76 00:02:47,000 --> 00:02:49,400 provider specific so it's useful but 77 00:02:49,400 --> 00:02:51,480 it's quite hard to contribute back to it 78 00:02:51,480 --> 00:02:53,920 and um you know it's not perfect there 79 00:02:53,920 --> 00:02:55,879 is the kubernetes threat Matrix from 80 00:02:55,879 --> 00:02:58,319 Microsoft which is much more kubernetes 81 00:02:58,319 --> 00:03:01,159 focused the aure thre Matrix as well 82 00:03:01,159 --> 00:03:03,640 which is very low level to aure so these 83 00:03:03,640 --> 00:03:05,360 things are great but there's one thing 84 00:03:05,360 --> 00:03:07,599 that they're missing um you know they 85 00:03:07,599 --> 00:03:10,239 don't really tell you um necessarily 86 00:03:10,239 --> 00:03:11,840 everything or how to reproduce theack 87 00:03:11,840 --> 00:03:15,000 things like that we also have um things 88 00:03:15,000 --> 00:03:16,560 that are based on things that we have 89 00:03:16,560 --> 00:03:19,920 seen in different environments so that's 90 00:03:19,920 --> 00:03:23,200 one two whiz has one as well so you know 91 00:03:23,200 --> 00:03:25,000 many things so that's the first thing 92 00:03:25,000 --> 00:03:26,840 trying to see who has some kind of 93 00:03:26,840 --> 00:03:29,040 inventories of the attack techniques in 94 00:03:29,040 --> 00:03:30,920 in the cloud I think is the first step 95 00:03:30,920 --> 00:03:32,439 second one that's very interesting is 96 00:03:32,439 --> 00:03:34,599 public Cloud incidents so a few years 97 00:03:34,599 --> 00:03:36,599 ago it was very hard to find now there 98 00:03:36,599 --> 00:03:39,120 are a few things so Ramy mcari has a 99 00:03:39,120 --> 00:03:41,519 great repo AWS customer security 100 00:03:41,519 --> 00:03:43,319 incident but he maintains and he does a 101 00:03:43,319 --> 00:03:45,480 great job where he maintains and he 102 00:03:45,480 --> 00:03:47,959 updates every time there is a cloud 103 00:03:47,959 --> 00:03:51,560 security incident that gets reported on 104 00:03:51,560 --> 00:03:54,760 I also did this work but for 2021 2022 105 00:03:54,760 --> 00:03:56,519 trying to find all I could find in terms 106 00:03:56,519 --> 00:03:58,400 of you know public a buckets or thing 107 00:03:58,400 --> 00:04:00,519 like that that that led to 108 00:04:00,519 --> 00:04:03,319 one leak Chris haris is also doing a 109 00:04:03,319 --> 00:04:05,840 great job with brides. Cloud but 110 00:04:05,840 --> 00:04:07,519 basically the same but much with much 111 00:04:07,519 --> 00:04:09,319 more detail um so if you go there you 112 00:04:09,319 --> 00:04:11,519 will see some like root cuse analysis 113 00:04:11,519 --> 00:04:14,720 and what's up how they could have been 114 00:04:14,720 --> 00:04:16,798 prevented and things like that so that's 115 00:04:16,798 --> 00:04:20,358 a great source and starting from 2023 I 116 00:04:20,358 --> 00:04:23,520 think at rainforce 2023 iws shared for 117 00:04:23,520 --> 00:04:25,680 the first time um you know some public 118 00:04:25,680 --> 00:04:26,919 things about things they see in 119 00:04:26,919 --> 00:04:29,080 customers enironment namely on somewhere 120 00:04:29,080 --> 00:04:30,800 in that case there are some things from 121 00:04:30,800 --> 00:04:33,919 vendors as from Microsoft as well um so 122 00:04:33,919 --> 00:04:35,560 that's I think it's more rare but it's 123 00:04:35,560 --> 00:04:37,280 very valuable too because when they talk 124 00:04:37,280 --> 00:04:39,039 about it you know it's 125 00:04:39,039 --> 00:04:42,160 real and finally uh blog post and 126 00:04:42,160 --> 00:04:43,960 sightings from vendors and incident 127 00:04:43,960 --> 00:04:45,680 response companies so I think we just 128 00:04:45,680 --> 00:04:47,240 need to know that you know they are 129 00:04:47,240 --> 00:04:49,199 vendors so sometimes they are not very 130 00:04:49,199 --> 00:04:50,960 neutral they try to sell you something 131 00:04:50,960 --> 00:04:53,080 but it's still very valuable so a few 132 00:04:53,080 --> 00:04:57,199 IDs uh MTR from ment cross strike with 133 00:04:57,199 --> 00:04:59,080 frightening report different things like 134 00:04:59,080 --> 00:05:02,000 that um and individual blog post as well 135 00:05:02,000 --> 00:05:03,919 so we try to do that we have a few blog 136 00:05:03,919 --> 00:05:05,800 posts on things that we have found in 137 00:05:05,800 --> 00:05:08,479 actual environments and you know what uh 138 00:05:08,479 --> 00:05:10,479 what attackers do in there and I also 139 00:05:10,479 --> 00:05:12,479 want to call out two companies Invictus 140 00:05:12,479 --> 00:05:15,120 I a and pero pz Labs which do a great 141 00:05:15,120 --> 00:05:16,600 job at doing that as 142 00:05:16,600 --> 00:05:19,240 well so as you know the bit the the 143 00:05:19,240 --> 00:05:21,319 three foundations um trying to find the 144 00:05:21,319 --> 00:05:23,840 behavior models of attackers the pr 145 00:05:23,840 --> 00:05:25,720 Cloud incidents and the attack your 146 00:05:25,720 --> 00:05:27,800 sightings like the more granular ones 147 00:05:27,800 --> 00:05:29,120 and these three things obviously they 148 00:05:29,120 --> 00:05:32,120 interact together right they are not in 149 00:05:32,120 --> 00:05:33,880 in isolation so when you see something 150 00:05:33,880 --> 00:05:35,360 in the wild maybe someone is going to 151 00:05:35,360 --> 00:05:38,520 contribute back to one of the models Etc 152 00:05:38,520 --> 00:05:39,880 I think that's a very good basis to try 153 00:05:39,880 --> 00:05:42,280 to figure out what attackers 154 00:05:42,280 --> 00:05:44,479 do so now we 155 00:05:44,479 --> 00:05:47,720 know um so what do we do now we know 156 00:05:47,720 --> 00:05:52,080 what we need to detect what do we do um 157 00:05:52,080 --> 00:05:54,280 and usually the question is okay I'm 158 00:05:54,280 --> 00:05:56,120 defending a cloud environment maybe my 159 00:05:56,120 --> 00:05:58,800 company just started to use AWS or rure 160 00:05:58,800 --> 00:06:00,680 like what do I do in of thre detection 161 00:06:00,680 --> 00:06:02,360 because there are so many ways to start 162 00:06:02,360 --> 00:06:05,720 and so many ways to get this WR so I'm 163 00:06:05,720 --> 00:06:07,199 going to to split that into three 164 00:06:07,199 --> 00:06:08,680 different things and we're going to dive 165 00:06:08,680 --> 00:06:11,080 into each of the ones the first one is 166 00:06:11,080 --> 00:06:13,160 going to be very basic and it's have a 167 00:06:13,160 --> 00:06:15,000 catalog and classify your Cloud 168 00:06:15,000 --> 00:06:16,759 environments right if you don't even 169 00:06:16,759 --> 00:06:18,639 know what iws accounts you have it's 170 00:06:18,639 --> 00:06:20,639 very hard to defend them it might seem 171 00:06:20,639 --> 00:06:23,160 very easy uh but sometimes it gets 172 00:06:23,160 --> 00:06:26,199 tricky second one is to centralize 173 00:06:26,199 --> 00:06:28,120 understand and enrich the logs again it 174 00:06:28,120 --> 00:06:30,800 might seem basic but generally it's um 175 00:06:30,800 --> 00:06:34,199 it's hard to do it right and finally um 176 00:06:34,199 --> 00:06:36,440 be very skeptical against the rules that 177 00:06:36,440 --> 00:06:38,400 you are going to implement and we're 178 00:06:38,400 --> 00:06:41,080 going to to get back to that so first 179 00:06:41,080 --> 00:06:44,280 one having a catalog of cloud accounts 180 00:06:44,280 --> 00:06:46,240 uh it can be very easy it can be very 181 00:06:46,240 --> 00:06:48,440 hard uh typically having something very 182 00:06:48,440 --> 00:06:50,120 basic even in a spreadsheet can be a 183 00:06:50,120 --> 00:06:52,520 first step a first step uh what's the 184 00:06:52,520 --> 00:06:54,360 account what's the Sate is is Dev prod 185 00:06:54,360 --> 00:06:57,800 do you know what data is in there um and 186 00:06:57,800 --> 00:06:59,080 sometimes you can also get some help 187 00:06:59,080 --> 00:07:01,560 from your cloud provider Tam so if you 188 00:07:01,560 --> 00:07:03,400 ask your technical account manager at 189 00:07:03,400 --> 00:07:06,680 AWS they are typically able to get um 190 00:07:06,680 --> 00:07:08,800 any AWS account that was registered with 191 00:07:08,800 --> 00:07:10,960 a corporate domain that can be very 192 00:07:10,960 --> 00:07:13,199 helpful and then if you can automate it 193 00:07:13,199 --> 00:07:15,879 for sure it's helpful centralizing the 194 00:07:15,879 --> 00:07:17,680 logs so it's going to depend a bit on 195 00:07:17,680 --> 00:07:20,199 the provider but for iws the typical 196 00:07:20,199 --> 00:07:22,039 architecture is having a cloud trade 197 00:07:22,039 --> 00:07:24,960 Trail in the management account um and 198 00:07:24,960 --> 00:07:26,840 then sending these logs to unet 199 00:07:26,840 --> 00:07:28,599 somewhere else so that you don't have 200 00:07:28,599 --> 00:07:30,680 this thing in a very privilege account 201 00:07:30,680 --> 00:07:33,240 and sending that to a Sim so I'm saying 202 00:07:33,240 --> 00:07:34,840 Sim but what I mean is anywhere where 203 00:07:34,840 --> 00:07:36,879 you can have logs basically um so 204 00:07:36,879 --> 00:07:38,919 whatever if it's an open source stack L 205 00:07:38,919 --> 00:07:41,240 management platform a seam that uh that 206 00:07:41,240 --> 00:07:42,759 works the point is to have everything in 207 00:07:42,759 --> 00:07:45,199 the same place and what do we mean by 208 00:07:45,199 --> 00:07:47,319 everything um well there are a lot of 209 00:07:47,319 --> 00:07:49,599 logs right so it's kind of important to 210 00:07:49,599 --> 00:07:51,520 figure out what logs you have like what 211 00:07:51,520 --> 00:07:54,120 you can get and what you should get so 212 00:07:54,120 --> 00:07:56,840 in AWS it would be called uh AWS Cloud 213 00:07:56,840 --> 00:07:58,919 train uh they have different names in 214 00:07:58,919 --> 00:08:00,879 overcloud but basically it's the control 215 00:08:00,879 --> 00:08:02,759 plane audit logs so whenever you do a 216 00:08:02,759 --> 00:08:05,360 cloud API call it gets registered that's 217 00:08:05,360 --> 00:08:07,240 typically what you want to start with 218 00:08:07,240 --> 00:08:09,199 but you have many other things uh data 219 00:08:09,199 --> 00:08:11,879 plane logs VPC flow logs DNS query logs 220 00:08:11,879 --> 00:08:14,759 Etc that can be very useful U but can be 221 00:08:14,759 --> 00:08:17,440 very costly and have a lot of volume I 222 00:08:17,440 --> 00:08:20,080 will yeah also the the links for all the 223 00:08:20,080 --> 00:08:22,000 providers that's for the cloud but you 224 00:08:22,000 --> 00:08:23,360 have also you know what runs on top of 225 00:08:23,360 --> 00:08:25,680 it so application Level logs maybe you 226 00:08:25,680 --> 00:08:28,319 want to to collect that as well probably 227 00:08:28,319 --> 00:08:30,120 kubernetes audit log 228 00:08:30,120 --> 00:08:32,719 and your IDP logs from OCTA a ID Etc 229 00:08:32,719 --> 00:08:34,519 that are very useful when you want to to 230 00:08:34,519 --> 00:08:36,159 combine these different log sources into 231 00:08:36,159 --> 00:08:38,559 something that makes 232 00:08:38,559 --> 00:08:42,760 sense enrichment um you could talk about 233 00:08:42,760 --> 00:08:44,480 it for hours but three things that I 234 00:08:44,480 --> 00:08:46,640 found to be very helpful are resolving 235 00:08:46,640 --> 00:08:49,240 the cloud account IDs enriching IP 236 00:08:49,240 --> 00:08:52,000 addresses and email addresses and really 237 00:08:52,000 --> 00:08:53,480 what you want is to turn something like 238 00:08:53,480 --> 00:08:55,720 this that gives you minimum information 239 00:08:55,720 --> 00:08:58,839 so that's the numeric AWS account ID uh 240 00:08:58,839 --> 00:09:01,240 an email and a source IP into something 241 00:09:01,240 --> 00:09:03,120 that you have much more context on so 242 00:09:03,120 --> 00:09:05,959 for instance you add the account name 243 00:09:05,959 --> 00:09:07,600 you name you add the account stage so 244 00:09:07,600 --> 00:09:09,560 that at first you know okay this is a 245 00:09:09,560 --> 00:09:12,000 production account um maybe it belongs 246 00:09:12,000 --> 00:09:13,480 to this team Maybe the owner is this 247 00:09:13,480 --> 00:09:15,519 person for the user you want to have 248 00:09:15,519 --> 00:09:17,800 things like HR stuff like where are they 249 00:09:17,800 --> 00:09:19,880 based off are they in this specific team 250 00:09:19,880 --> 00:09:21,279 who is their manager in case you need to 251 00:09:21,279 --> 00:09:23,480 escalate something that can be very 252 00:09:23,480 --> 00:09:26,480 helpful for IPs two things I personally 253 00:09:26,480 --> 00:09:29,160 like is having some kind of FR Intel uh 254 00:09:29,160 --> 00:09:30,839 there some commercial products some open 255 00:09:30,839 --> 00:09:33,360 source projects to do that um which tell 256 00:09:33,360 --> 00:09:35,120 you you know at First Sight well this is 257 00:09:35,120 --> 00:09:37,959 an IP from the US that looks like it's a 258 00:09:37,959 --> 00:09:40,480 tour exit node um maybe for someone who 259 00:09:40,480 --> 00:09:42,360 works in Paris you know it's it's 260 00:09:42,360 --> 00:09:43,680 something is going wrong which you 261 00:09:43,680 --> 00:09:45,240 couldn't have seen from something basic 262 00:09:45,240 --> 00:09:46,600 like 263 00:09:46,600 --> 00:09:51,040 bu and lastly um I tend to be skeptical 264 00:09:51,040 --> 00:09:52,800 and I tend to do it also with detection 265 00:09:52,800 --> 00:09:55,480 rules basically if you buy a seam or 266 00:09:55,480 --> 00:09:57,079 like a security product they tend to 267 00:09:57,079 --> 00:09:59,680 come with thousands of holes hundreds um 268 00:09:59,680 --> 00:10:01,600 it's kind of if I have more rules then 269 00:10:01,600 --> 00:10:03,880 I'm better than the competitor and these 270 00:10:03,880 --> 00:10:05,640 rules they create a lot of work of toil 271 00:10:05,640 --> 00:10:07,640 so my personal strategy is to try and 272 00:10:07,640 --> 00:10:09,880 disable everything and then enable rules 273 00:10:09,880 --> 00:10:12,600 one by one uh and be sure that they 274 00:10:12,600 --> 00:10:13,880 don't create too much noise that they 275 00:10:13,880 --> 00:10:15,720 actually create value so you should be 276 00:10:15,720 --> 00:10:18,160 able to create some some dashboards some 277 00:10:18,160 --> 00:10:19,880 Metric some way of figuring out if your 278 00:10:19,880 --> 00:10:22,079 alerts are you know too noisy if they 279 00:10:22,079 --> 00:10:24,439 don't bring 280 00:10:24,519 --> 00:10:27,040 value and finally uh in terms of 281 00:10:27,040 --> 00:10:29,800 feedback loops two things um so I'm a 282 00:10:29,800 --> 00:10:32,200 strong believer that whoever has to look 283 00:10:32,200 --> 00:10:34,120 at the alerts should also be the one 284 00:10:34,120 --> 00:10:35,880 writing the alerts it's like when you 285 00:10:35,880 --> 00:10:38,079 page someone um if you are paging 286 00:10:38,079 --> 00:10:39,240 yourself you're going to be much more 287 00:10:39,240 --> 00:10:41,360 careful about what you're going to send 288 00:10:41,360 --> 00:10:43,839 um so typically this you know this can 289 00:10:43,839 --> 00:10:45,760 be with a workflow where when a r 290 00:10:45,760 --> 00:10:47,440 trigger and it shouldn't have you have 291 00:10:47,440 --> 00:10:48,959 something in place to make it better 292 00:10:48,959 --> 00:10:52,160 very very um very quickly and the next 293 00:10:52,160 --> 00:10:53,800 thing it's going to be the last for this 294 00:10:53,800 --> 00:10:56,120 section is continuously challenge the 295 00:10:56,120 --> 00:10:58,079 rules not only in terms of is it 296 00:10:58,079 --> 00:11:00,519 valuable but also is it working because 297 00:11:00,519 --> 00:11:01,839 most of the time you'll have a rule that 298 00:11:01,839 --> 00:11:04,600 says you know um I'm detecting that and 299 00:11:04,600 --> 00:11:06,920 maybe it worked maybe not so we'll see a 300 00:11:06,920 --> 00:11:09,720 bit later how how we can do 301 00:11:09,720 --> 00:11:13,320 that that was for basic rules things 302 00:11:13,320 --> 00:11:14,519 that are you know packaged within 303 00:11:14,519 --> 00:11:16,519 security products um at some point 304 00:11:16,519 --> 00:11:19,440 you're going to want to add custom rules 305 00:11:19,440 --> 00:11:21,600 so a few tips on that uh learn the hard 306 00:11:21,600 --> 00:11:24,760 way so the first thing is to figure out 307 00:11:24,760 --> 00:11:27,160 what is this Ru trying to do and from my 308 00:11:27,160 --> 00:11:28,800 side there are three use cases that I 309 00:11:28,800 --> 00:11:31,440 think are often there the first one is 310 00:11:31,440 --> 00:11:34,279 detecting Malu activity that's the most 311 00:11:34,279 --> 00:11:35,600 common one that we think about when we 312 00:11:35,600 --> 00:11:37,360 say detections but you have also things 313 00:11:37,360 --> 00:11:39,880 that try to detect non-compliant so if 314 00:11:39,880 --> 00:11:41,800 someone disables an S3 bucket public 315 00:11:41,800 --> 00:11:43,680 access block it's probably not an 316 00:11:43,680 --> 00:11:45,360 attacker right it's probably someone 317 00:11:45,360 --> 00:11:47,480 who's trying to do something and I want 318 00:11:47,480 --> 00:11:49,519 to know it because it um it creates a 319 00:11:49,519 --> 00:11:51,560 non-compliance in my environment but 320 00:11:51,560 --> 00:11:54,200 it's not the same and finally all the 321 00:11:54,200 --> 00:11:56,920 basic rules like VPC was created in 322 00:11:56,920 --> 00:11:59,560 production but most of the time it's 323 00:11:59,560 --> 00:12:01,079 it's interesting it's relevant but you 324 00:12:01,079 --> 00:12:03,040 don't want to alert on that so really 325 00:12:03,040 --> 00:12:04,560 you want to split these two categories 326 00:12:04,560 --> 00:12:06,920 these three categories maybe more uh 327 00:12:06,920 --> 00:12:08,200 because what you're going to do for 328 00:12:08,200 --> 00:12:10,240 these ones are going to be different so 329 00:12:10,240 --> 00:12:11,560 typically when you have malicious 330 00:12:11,560 --> 00:12:13,440 activity you're going to want to triange 331 00:12:13,440 --> 00:12:15,760 and respond to it when you have 332 00:12:15,760 --> 00:12:17,519 something non-compliant maybe you want 333 00:12:17,519 --> 00:12:19,279 to add a compliance exception in your 334 00:12:19,279 --> 00:12:21,760 GRC tool whatever maybe you want to just 335 00:12:21,760 --> 00:12:24,120 revert it and for the potentially 336 00:12:24,120 --> 00:12:26,320 interesting ones it's more like well if 337 00:12:26,320 --> 00:12:28,320 I have an incident I can get back to 338 00:12:28,320 --> 00:12:30,279 that or maybe I can do some correlation 339 00:12:30,279 --> 00:12:31,839 between different things but you 340 00:12:31,839 --> 00:12:33,720 typically don't want to to page people 341 00:12:33,720 --> 00:12:36,320 or something like 342 00:12:36,720 --> 00:12:40,760 that finally um having some context into 343 00:12:40,760 --> 00:12:43,320 the alert it's you know um it's also 344 00:12:43,320 --> 00:12:44,800 linked to having the person who writes 345 00:12:44,800 --> 00:12:46,680 the alert being the same as the one who 346 00:12:46,680 --> 00:12:48,560 who looks at it or at least being 347 00:12:48,560 --> 00:12:51,199 involved um and they need some context 348 00:12:51,199 --> 00:12:52,959 so when you have one alert that pop up 349 00:12:52,959 --> 00:12:54,800 if they have you know some random name 350 00:12:54,800 --> 00:12:57,720 like suspicious IP in AWS log whatever 351 00:12:57,720 --> 00:12:59,480 they need to know how it was was 352 00:12:59,480 --> 00:13:02,519 detected what was the log Source um what 353 00:13:02,519 --> 00:13:04,279 was the context and what they need to do 354 00:13:04,279 --> 00:13:06,320 about it to investigate otherwise it's 355 00:13:06,320 --> 00:13:09,800 just not actionable and very 356 00:13:10,199 --> 00:13:13,040 frustrating one quick note on severity 357 00:13:13,040 --> 00:13:15,399 um I don't have any silver blet but just 358 00:13:15,399 --> 00:13:17,279 some some high level thoughts so people 359 00:13:17,279 --> 00:13:19,240 tend to see severity as a function of 360 00:13:19,240 --> 00:13:21,120 likelihood and impact which are terrible 361 00:13:21,120 --> 00:13:22,680 names uh 362 00:13:22,680 --> 00:13:25,959 likelihood for detection for me it means 363 00:13:25,959 --> 00:13:28,000 how confident are you that this alert is 364 00:13:28,000 --> 00:13:29,680 actually detecting see what it's 365 00:13:29,680 --> 00:13:32,360 supposed to detect and sometimes you 366 00:13:32,360 --> 00:13:33,800 have you know high confidence rules 367 00:13:33,800 --> 00:13:35,440 sometimes it's like well it's supposed 368 00:13:35,440 --> 00:13:37,199 to detect this thing but we know we have 369 00:13:37,199 --> 00:13:39,000 a lot of false positives so trying to be 370 00:13:39,000 --> 00:13:41,720 aware of that is um important and in 371 00:13:41,720 --> 00:13:43,600 terms of impact looking at some 372 00:13:43,600 --> 00:13:45,800 contextual information like is it a test 373 00:13:45,800 --> 00:13:47,320 or a production account that's going to 374 00:13:47,320 --> 00:13:49,560 help um do you know that you have data 375 00:13:49,560 --> 00:13:51,600 in this account that is that is 376 00:13:51,600 --> 00:13:53,440 important yes no so trying to have this 377 00:13:53,440 --> 00:13:55,199 kind of dynamic severity can be can be 378 00:13:55,199 --> 00:13:59,319 very helpful if you can do that 379 00:14:00,440 --> 00:14:02,560 two slides on you know uh going to the 380 00:14:02,560 --> 00:14:05,000 next next stage of writing custom 381 00:14:05,000 --> 00:14:07,320 detection rules um so that's more like 382 00:14:07,320 --> 00:14:09,560 the more advanced way of doing it but I 383 00:14:09,560 --> 00:14:11,120 think can be helpful when you have a 384 00:14:11,120 --> 00:14:12,839 strong basis and then we're going to 385 00:14:12,839 --> 00:14:17,040 move to demo uh a few things so having 386 00:14:17,040 --> 00:14:19,079 the mitro attack mappings in your whole 387 00:14:19,079 --> 00:14:21,639 metadata is very helpful so if you are 388 00:14:21,639 --> 00:14:23,320 um if you are trying to detect new IM am 389 00:14:23,320 --> 00:14:25,639 users for instance you might add that 390 00:14:25,639 --> 00:14:27,959 it's a persistent technique and then 391 00:14:27,959 --> 00:14:29,560 what you can do is first trying to have 392 00:14:29,560 --> 00:14:31,079 some nice dashboards around how to 393 00:14:31,079 --> 00:14:32,720 display that but you can also do some 394 00:14:32,720 --> 00:14:34,800 correlation rules that say whatever rule 395 00:14:34,800 --> 00:14:36,800 triggers I want to find the users that 396 00:14:36,800 --> 00:14:39,440 have um rules that trigger for different 397 00:14:39,440 --> 00:14:41,600 stages of the attack life cycle which 398 00:14:41,600 --> 00:14:43,639 you know might be very helpful so that's 399 00:14:43,639 --> 00:14:46,639 would be one example with SQL um and you 400 00:14:46,639 --> 00:14:49,120 could find a user that has some alerts 401 00:14:49,120 --> 00:14:50,880 for initial access and for persistence 402 00:14:50,880 --> 00:14:52,759 and for privilege escalation and can 403 00:14:52,759 --> 00:14:54,120 give you a good signal that something is 404 00:14:54,120 --> 00:14:57,720 wrong even if you don't do whole level 405 00:14:57,720 --> 00:15:00,360 correlation and finally detection as 406 00:15:00,360 --> 00:15:02,680 good it's a big topic it could be a talk 407 00:15:02,680 --> 00:15:05,160 on its own what I have personally found 408 00:15:05,160 --> 00:15:08,279 to be useful is to use terraform but not 409 00:15:08,279 --> 00:15:09,800 directly use terraform to create the 410 00:15:09,800 --> 00:15:11,839 rules instead have terraform read some 411 00:15:11,839 --> 00:15:13,720 yaml files because they are much easier 412 00:15:13,720 --> 00:15:16,399 to write and to reason about and have 413 00:15:16,399 --> 00:15:19,120 some schema some schema checks for it so 414 00:15:19,120 --> 00:15:22,160 you can use something like um gon schema 415 00:15:22,160 --> 00:15:24,079 check that your rule has some specific 416 00:15:24,079 --> 00:15:25,680 schema and it means that people who 417 00:15:25,680 --> 00:15:27,000 write the rules they have autoc 418 00:15:27,000 --> 00:15:29,440 completion in their IDE they can know 419 00:15:29,440 --> 00:15:31,160 very fast is something is you know is 420 00:15:31,160 --> 00:15:33,079 like syntax is wrong and you can put 421 00:15:33,079 --> 00:15:34,920 that into CI to make sure that everyone 422 00:15:34,920 --> 00:15:37,680 who sends a pool request um doesn't mess 423 00:15:37,680 --> 00:15:39,440 up the 424 00:15:39,440 --> 00:15:42,079 rule and when we say as code so 425 00:15:42,079 --> 00:15:44,240 obviously that's more of a Northstar but 426 00:15:44,240 --> 00:15:45,639 um I think when we say as code it 427 00:15:45,639 --> 00:15:47,199 shouldn't be just a word so when you 428 00:15:47,199 --> 00:15:49,680 think about code it has cicd it has a 429 00:15:49,680 --> 00:15:51,480 staging environment it has unitless 430 00:15:51,480 --> 00:15:53,360 things like that so trying to to be as 431 00:15:53,360 --> 00:15:54,600 close as possible as what you would 432 00:15:54,600 --> 00:15:56,000 really have with code can be very 433 00:15:56,000 --> 00:15:58,360 helpful um when you want to try out a 434 00:15:58,360 --> 00:16:00,399 new detection you know you probably want 435 00:16:00,399 --> 00:16:02,560 a way to test it so maybe you deploy it 436 00:16:02,560 --> 00:16:04,319 to a different instance of your sim 437 00:16:04,319 --> 00:16:05,959 maybe you tag it in a way that's not 438 00:16:05,959 --> 00:16:08,639 going to to like um page people or 439 00:16:08,639 --> 00:16:10,000 what's going to show up in a different 440 00:16:10,000 --> 00:16:11,959 place but having this workflow is very 441 00:16:11,959 --> 00:16:14,040 very 442 00:16:14,040 --> 00:16:16,399 helpful so now we have some rules great 443 00:16:16,399 --> 00:16:18,480 what do we do um we're at the stage 444 00:16:18,480 --> 00:16:20,800 where we have you know maybe 20 50 rules 445 00:16:20,800 --> 00:16:23,600 and we're like great is it useful like 446 00:16:23,600 --> 00:16:26,319 how do I test if something is is working 447 00:16:26,319 --> 00:16:29,040 um and typically the flow which is is 448 00:16:29,040 --> 00:16:30,759 very simplified is something like this 449 00:16:30,759 --> 00:16:32,800 so you run one of the attacks let's say 450 00:16:32,800 --> 00:16:34,759 that you are trying to detect new admin 451 00:16:34,759 --> 00:16:36,720 I am users in your production account 452 00:16:36,720 --> 00:16:39,319 right so you can do that then you're 453 00:16:39,319 --> 00:16:41,560 going to look at what happens do you get 454 00:16:41,560 --> 00:16:44,600 some interesting logs alerts metrics um 455 00:16:44,600 --> 00:16:47,000 are you getting page I know and based on 456 00:16:47,000 --> 00:16:49,000 that you're going to develop or improve 457 00:16:49,000 --> 00:16:50,519 your existing detection so that's kind 458 00:16:50,519 --> 00:16:54,279 of the sdlc for detections very 459 00:16:54,279 --> 00:16:56,480 simplified I'm going to focus on on 460 00:16:56,480 --> 00:16:59,399 these two things and um first one is 461 00:16:59,399 --> 00:17:02,040 going to be Stratus thre team has anyone 462 00:17:02,040 --> 00:17:04,240 heard of Stratus thre team before or 463 00:17:04,240 --> 00:17:08,439 used it okay people great um and there's 464 00:17:08,439 --> 00:17:10,119 also going to be an open source tool 465 00:17:10,119 --> 00:17:12,079 that I released two hours ago 466 00:17:12,079 --> 00:17:14,160 specifically for today so hopefully you 467 00:17:14,160 --> 00:17:16,400 will find it 468 00:17:16,400 --> 00:17:19,359 useful so when we try to reproduce Cloud 469 00:17:19,359 --> 00:17:20,839 attack techniques again we're in the 470 00:17:20,839 --> 00:17:23,359 context I want to test that this rule is 471 00:17:23,359 --> 00:17:24,679 working so I'm going to reproduce the 472 00:17:24,679 --> 00:17:26,559 attack and see what happens it's 473 00:17:26,559 --> 00:17:28,960 actually very annoying to do because 474 00:17:28,960 --> 00:17:30,120 know when you create Some Cloud 475 00:17:30,120 --> 00:17:32,039 resources it takes some time uh it's 476 00:17:32,039 --> 00:17:34,400 very hard to clean up and sometimes uh 477 00:17:34,400 --> 00:17:37,400 it's very tricky so let's see an example 478 00:17:37,400 --> 00:17:39,000 let's say you have a rule that detects 479 00:17:39,000 --> 00:17:41,320 when someone stops cloud trail logging 480 00:17:41,320 --> 00:17:44,720 in AWS very basic one so what you're 481 00:17:44,720 --> 00:17:46,480 going to do is first to be able to test 482 00:17:46,480 --> 00:17:47,960 that you need a trailer right you need 483 00:17:47,960 --> 00:17:49,960 loging setup so you're going to create 484 00:17:49,960 --> 00:17:52,520 it uh you need an S bucket you need the 485 00:17:52,520 --> 00:17:54,880 right S3 bucket policy but I always get 486 00:17:54,880 --> 00:17:57,360 wrong um and then at this point you have 487 00:17:57,360 --> 00:17:59,440 a trail you're like okay I I can test if 488 00:17:59,440 --> 00:18:01,280 my rule is actually working so you click 489 00:18:01,280 --> 00:18:04,320 on stop maybe your rule is working or 490 00:18:04,320 --> 00:18:06,240 not so then you want to clean it up 491 00:18:06,240 --> 00:18:08,080 right because you have a CL trail that 492 00:18:08,080 --> 00:18:10,600 is not free you have an S bucket so you 493 00:18:10,600 --> 00:18:11,880 don't want that to stay in your account 494 00:18:11,880 --> 00:18:15,799 forever so you click on delete great it 495 00:18:15,799 --> 00:18:18,120 works but then you still have the S3 496 00:18:18,120 --> 00:18:19,799 bucket because deleting the trail 497 00:18:19,799 --> 00:18:22,080 doesn't delete the bucket so you go to 498 00:18:22,080 --> 00:18:24,679 the console uh you click on 499 00:18:24,679 --> 00:18:27,400 delete oh well the the since the bucket 500 00:18:27,400 --> 00:18:29,559 is not empty you first need to empty it 501 00:18:29,559 --> 00:18:31,480 so you go back you refresh you click on 502 00:18:31,480 --> 00:18:33,799 empty then you have to type permanently 503 00:18:33,799 --> 00:18:36,280 delete in the confirmation window great 504 00:18:36,280 --> 00:18:38,840 it's empty when you go back go refresh 505 00:18:38,840 --> 00:18:41,080 you click on delete you enter the bucket 506 00:18:41,080 --> 00:18:43,640 name and you're good so you know it was 507 00:18:43,640 --> 00:18:45,960 a very very simple technique very simple 508 00:18:45,960 --> 00:18:48,280 attack and yet most of the time you're 509 00:18:48,280 --> 00:18:50,400 going to forget to remove something um 510 00:18:50,400 --> 00:18:53,200 and it's annoying to set it up so that's 511 00:18:53,200 --> 00:18:55,200 why we buil this Tool uh it's open 512 00:18:55,200 --> 00:18:56,880 source we released it 2 years ago and 513 00:18:56,880 --> 00:18:58,880 we've been maintaining it since then the 514 00:18:58,880 --> 00:19:00,600 idea is really Atomic red team for the 515 00:19:00,600 --> 00:19:03,480 cloud um so trying to be able to 516 00:19:03,480 --> 00:19:05,600 reproduce Cloud attack techniques very 517 00:19:05,600 --> 00:19:07,799 simply everything being packaged in a 518 00:19:07,799 --> 00:19:11,039 single binary and uh being written in go 519 00:19:11,039 --> 00:19:12,559 so we'll have a quick demo afterwards 520 00:19:12,559 --> 00:19:14,640 but at a high level it's really two 521 00:19:14,640 --> 00:19:16,960 things a catalog of cloud attack 522 00:19:16,960 --> 00:19:19,320 techniques that we believe are worth 523 00:19:19,320 --> 00:19:22,240 detecting based on you know uh public 524 00:19:22,240 --> 00:19:24,919 things private things that are being 525 00:19:24,919 --> 00:19:28,480 exploited so that's a Wiki and a c tool 526 00:19:28,480 --> 00:19:30,000 to reproduce them against to live 527 00:19:30,000 --> 00:19:32,360 environment um so at first it supported 528 00:19:32,360 --> 00:19:36,159 AWS now it's AWS Azure Google Cloud um 529 00:19:36,159 --> 00:19:38,640 kubernetes and even eeks specific attack 530 00:19:38,640 --> 00:19:40,240 techniques since 531 00:19:40,240 --> 00:19:44,320 yesterday so if you go to stratus r- te. 532 00:19:44,320 --> 00:19:46,400 cloud you will see there is this website 533 00:19:46,400 --> 00:19:47,640 that has a list of all the attack 534 00:19:47,640 --> 00:19:49,799 techniques and when you click on one you 535 00:19:49,799 --> 00:19:51,440 will get a few things you will get the 536 00:19:51,440 --> 00:19:53,480 mapping to mro attack you will get the 537 00:19:53,480 --> 00:19:55,200 description of the technique so what 538 00:19:55,200 --> 00:19:57,720 what is it doing and this is split in 539 00:19:57,720 --> 00:19:59,919 two things um warm up so what do you 540 00:19:59,919 --> 00:20:01,960 need to be able to reproduce this attack 541 00:20:01,960 --> 00:20:05,000 in our example we need a close Trail an 542 00:20:05,000 --> 00:20:07,880 bucket and then the detonation once this 543 00:20:07,880 --> 00:20:10,799 is ready what what happens in that case 544 00:20:10,799 --> 00:20:14,120 we stop the the trail from logging and 545 00:20:14,120 --> 00:20:15,760 then there are a few things on detection 546 00:20:15,760 --> 00:20:17,600 so what are the CL logs that you should 547 00:20:17,600 --> 00:20:20,000 get are there any gra finding things 548 00:20:20,000 --> 00:20:22,880 like that so the goal is really um to do 549 00:20:22,880 --> 00:20:25,799 that and this has two things in each of 550 00:20:25,799 --> 00:20:27,159 the attacks there are two things that 551 00:20:27,159 --> 00:20:29,120 are again packaged so you don't see that 552 00:20:29,120 --> 00:20:30,880 but under the hood it uses terraform to 553 00:20:30,880 --> 00:20:33,880 spin up the prerequisite um 554 00:20:33,880 --> 00:20:36,320 infrastructure and for the actual attack 555 00:20:36,320 --> 00:20:38,600 it uses a piece of of go code because 556 00:20:38,600 --> 00:20:41,120 it's imperative um and so that's why 557 00:20:41,120 --> 00:20:42,520 it's actually quite easy for us to clean 558 00:20:42,520 --> 00:20:44,480 up because you just do terraform destroy 559 00:20:44,480 --> 00:20:46,400 under the hood but again that's totally 560 00:20:46,400 --> 00:20:49,200 hidden so as someone who uses it is just 561 00:20:49,200 --> 00:20:52,720 a binary as I'm going to show so quick 562 00:20:52,720 --> 00:20:54,360 demo it's going to be a bit challenging 563 00:20:54,360 --> 00:20:57,240 to speak Trail whatever or your seam uh 564 00:20:57,240 --> 00:20:58,640 search for all the events that you get 565 00:20:58,640 --> 00:21:00,520 get and try to figure out what I did 566 00:21:00,520 --> 00:21:02,000 something but what did it actually 567 00:21:02,000 --> 00:21:04,080 trigger I have a bunch of logs but was 568 00:21:04,080 --> 00:21:05,679 this done by my command or was it 569 00:21:05,679 --> 00:21:08,880 something else but someone else did um 570 00:21:08,880 --> 00:21:12,240 so yeah that's the contest so that's why 571 00:21:12,240 --> 00:21:15,600 I I worked on a tool called grimoire 572 00:21:15,600 --> 00:21:16,880 it's a French word I think it's an 573 00:21:16,880 --> 00:21:18,799 English word as well and the idea is to 574 00:21:18,799 --> 00:21:20,880 be able to generate data sets of cloud 575 00:21:20,880 --> 00:21:22,880 audit logs for common attacks in a 576 00:21:22,880 --> 00:21:25,080 simple way so the idea is that it makes 577 00:21:25,080 --> 00:21:26,760 um detecting I mean creating new rules 578 00:21:26,760 --> 00:21:29,760 easier and figuring what logs are caused 579 00:21:29,760 --> 00:21:32,360 by specific attacks the idea is quite 580 00:21:32,360 --> 00:21:35,200 simple so it can use different ways of 581 00:21:35,200 --> 00:21:37,600 detonating attacks uh you can use the 582 00:21:37,600 --> 00:21:40,480 AWS CLI manually or you can use Stratus 583 00:21:40,480 --> 00:21:42,960 team to run some attacks it's going to 584 00:21:42,960 --> 00:21:45,400 inject a unique ID in the HTTP user 585 00:21:45,400 --> 00:21:48,039 agent of the request and then it's going 586 00:21:48,039 --> 00:21:50,159 to basically pull cloud trail looking 587 00:21:50,159 --> 00:21:53,120 for this specific uid in the user agent 588 00:21:53,120 --> 00:21:54,600 and the idea is that you can do that 589 00:21:54,600 --> 00:21:56,960 without leaving your terminal so let's 590 00:21:56,960 --> 00:21:59,520 do a quick demo with which uh is going 591 00:21:59,520 --> 00:22:01,679 to be live so it's going to take a bit 592 00:22:01,679 --> 00:22:05,679 of time so I'm going to run gire Stratus 593 00:22:05,679 --> 00:22:06,880 red 594 00:22:06,880 --> 00:22:09,799 team uh giving it a specific attack 595 00:22:09,799 --> 00:22:12,640 technique AWS persistance create create 596 00:22:12,640 --> 00:22:15,039 an a user and stream the Lo that it 597 00:22:15,039 --> 00:22:17,799 finds somewhere else so what's going to 598 00:22:17,799 --> 00:22:20,760 do right now is use S team to run the 599 00:22:20,760 --> 00:22:23,960 attack and then it's going to look for 600 00:22:23,960 --> 00:22:26,080 cultural events so that's going to take 601 00:22:26,080 --> 00:22:28,240 a few seconds um I think for these 602 00:22:28,240 --> 00:22:31,320 events take like two or 3 minutes so we 603 00:22:31,320 --> 00:22:33,200 can just wait and see something else in 604 00:22:33,200 --> 00:22:35,640 the meantime which is the over mode that 605 00:22:35,640 --> 00:22:38,960 Gore has which is gar shell so in many 606 00:22:38,960 --> 00:22:40,320 cases you don't necessarily want to use 607 00:22:40,320 --> 00:22:42,559 a tool you want to run commands by 608 00:22:42,559 --> 00:22:45,000 yourself so what is is going to do is 609 00:22:45,000 --> 00:22:47,600 it's going to create a new shell and 610 00:22:47,600 --> 00:22:50,480 it's going to to use some specific um 611 00:22:50,480 --> 00:22:53,440 awli environment variables to inject the 612 00:22:53,440 --> 00:22:57,960 uid in the request so now if I do AWS 613 00:22:57,960 --> 00:23:01,799 STS get color identity for 614 00:23:02,159 --> 00:23:05,039 instance and then I exit my instrumented 615 00:23:05,039 --> 00:23:07,360 shell it's going to you know go back to 616 00:23:07,360 --> 00:23:09,799 to grimoire um start looking for clock 617 00:23:09,799 --> 00:23:11,679 Trail events and at some point it will 618 00:23:11,679 --> 00:23:13,960 show uh what what logs you 619 00:23:13,960 --> 00:23:16,559 get now if we get back to our first tab 620 00:23:16,559 --> 00:23:18,200 you can see that it has now found you 621 00:23:18,200 --> 00:23:20,799 know these two events um it's going to 622 00:23:20,799 --> 00:23:22,240 find another one if I wait for a few 623 00:23:22,240 --> 00:23:26,039 more seconds but I can just um contrl C 624 00:23:26,039 --> 00:23:28,640 is going to exit cleanly and then in 625 00:23:28,640 --> 00:23:31,320 these TMP logs I have my row CL TR logs 626 00:23:31,320 --> 00:23:33,200 but I can you know watch and see oh okay 627 00:23:33,200 --> 00:23:35,400 so I got these logs so I can use these 628 00:23:35,400 --> 00:23:37,960 rules and uh maybe pipe back into my cm 629 00:23:37,960 --> 00:23:39,520 to see what happens or different things 630 00:23:39,520 --> 00:23:42,480 like that it to be the same for the 631 00:23:42,480 --> 00:23:44,360 interactive shell just going to take you 632 00:23:44,360 --> 00:23:47,679 know 10 or I mean up to 10 minutes so 633 00:23:47,679 --> 00:23:49,360 I'm not going to wait for that is the 634 00:23:49,360 --> 00:23:51,120 same 635 00:23:51,120 --> 00:23:54,039 principle so that's the first Meme and 636 00:23:54,039 --> 00:23:57,640 it's been 30 minutes almost so uh they 637 00:23:57,640 --> 00:23:59,360 they work together in the way that you 638 00:23:59,360 --> 00:24:02,840 have seen so you can use gar 639 00:24:02,840 --> 00:24:05,400 totic but we also wanted to use it the 640 00:24:05,400 --> 00:24:07,720 other way um so now in the status 641 00:24:07,720 --> 00:24:09,600 setting docks if you look at one of the 642 00:24:09,600 --> 00:24:12,159 attack teching docks you also have the 643 00:24:12,159 --> 00:24:14,159 actual detonation logs the 644 00:24:14,159 --> 00:24:17,200 actual logs that running V attack gives 645 00:24:17,200 --> 00:24:20,440 you so you have the event names and you 646 00:24:20,440 --> 00:24:23,400 have the event the actual row events so 647 00:24:23,400 --> 00:24:25,799 if I just go to the um know to the 648 00:24:25,799 --> 00:24:27,480 website for instance for this one you 649 00:24:27,480 --> 00:24:29,200 see here we have this section that is 650 00:24:29,200 --> 00:24:32,840 powered by um by Grio which tells you 651 00:24:32,840 --> 00:24:34,600 well if you were to run this thing in a 652 00:24:34,600 --> 00:24:36,679 actual Live account you would get this 653 00:24:36,679 --> 00:24:38,840 log and this is the actual event that 654 00:24:38,840 --> 00:24:41,799 you get and we animize this using a tool 655 00:24:41,799 --> 00:24:45,480 from permo secate pero P La uh called 656 00:24:45,480 --> 00:24:50,080 log lier so that's that's pretty much it 657 00:24:50,080 --> 00:24:51,279 for 658 00:24:51,279 --> 00:24:54,320 G so again it's open source we released 659 00:24:54,320 --> 00:24:56,159 it today um so if you want to config it 660 00:24:56,159 --> 00:24:57,640 or if you want to test it I'm really 661 00:24:57,640 --> 00:24:59,039 eager to get some feedback and that 662 00:24:59,039 --> 00:25:00,640 would be 663 00:25:00,640 --> 00:25:05,360 amazing a few closing notes um so theier 664 00:25:05,360 --> 00:25:07,799 is like be aware of what attackers do 665 00:25:07,799 --> 00:25:09,480 and uh you know that can be quite hard 666 00:25:09,480 --> 00:25:12,679 but um having a basic awareness of what 667 00:25:12,679 --> 00:25:14,840 to read where to look at can be very 668 00:25:14,840 --> 00:25:17,919 helpful um be aware of what LS we have 669 00:25:17,919 --> 00:25:20,600 you have and what they are used for and 670 00:25:20,600 --> 00:25:23,640 finally like don't trust rules test them 671 00:25:23,640 --> 00:25:25,640 um and challenge them both in terms of 672 00:25:25,640 --> 00:25:27,320 value and in terms of are they actually 673 00:25:27,320 --> 00:25:30,720 working will be the the conclusion again 674 00:25:30,720 --> 00:25:31,799 if you're interested to do something 675 00:25:31,799 --> 00:25:33,520 like that in practice uh I'm running a 676 00:25:33,520 --> 00:25:35,240 workshop free workshop at the adversary 677 00:25:35,240 --> 00:25:37,679 Village later today um so we're going to 678 00:25:37,679 --> 00:25:40,799 spin up an vulnerable lws application 679 00:25:40,799 --> 00:25:43,200 hack it end to end then we're going to 680 00:25:43,200 --> 00:25:45,520 write the detection rules and then use 681 00:25:45,520 --> 00:25:48,919 Strat team to confirm did detections um 682 00:25:48,919 --> 00:25:51,880 detect what we want to detect so that's 683 00:25:51,880 --> 00:25:54,000 it that's the QR code to the slide uh 684 00:25:54,000 --> 00:25:55,440 there is also a feedback form so if you 685 00:25:55,440 --> 00:25:57,640 have things to say or that you wish 686 00:25:57,640 --> 00:26:01,720 please add it thank you