1 00:00:00,040 --> 00:00:02,960 next up um well I'll let cat give her 2 00:00:02,960 --> 00:00:05,400 own introductions but let's give a great 3 00:00:05,400 --> 00:00:07,670 Round of Applause to 4 00:00:07,670 --> 00:00:10,160 [Applause] 5 00:00:10,160 --> 00:00:12,480 catfit thank 6 00:00:12,480 --> 00:00:15,120 you um and please give it up for all the 7 00:00:15,120 --> 00:00:16,800 volunteers that you see in the room with 8 00:00:16,800 --> 00:00:18,240 the cloud shirts cuz they've been doing 9 00:00:18,240 --> 00:00:20,720 a great 10 00:00:21,119 --> 00:00:24,000 job all right if you know me well if you 11 00:00:24,000 --> 00:00:27,119 don't you're about to this is me um be I 12 00:00:27,119 --> 00:00:30,400 run bside Chicago I do a lot of bside 13 00:00:30,400 --> 00:00:34,320 I've done besides Pittsburgh and um the 14 00:00:34,320 --> 00:00:36,120 important thing is I'm a natural 15 00:00:36,120 --> 00:00:38,719 creature of winter um and you will 16 00:00:38,719 --> 00:00:41,960 typically find me sipping KAS no Ando 17 00:00:41,960 --> 00:00:45,960 while I'm battling all The Nasty open um 18 00:00:45,960 --> 00:00:48,239 evildoers with open source software and 19 00:00:48,239 --> 00:00:52,400 this is indeed Kasa BL yo so 20 00:00:52,400 --> 00:00:56,589 [Applause] 21 00:00:56,600 --> 00:01:00,879 cheers makes my talks lots more fun um I 22 00:01:00,879 --> 00:01:04,360 do love honeypots um refrigerators iot 23 00:01:04,360 --> 00:01:06,720 appliances I did buy a new Appliance 24 00:01:06,720 --> 00:01:08,280 last year it was a dishwasher and they 25 00:01:08,280 --> 00:01:11,360 said for $50 more you can have the one 26 00:01:11,360 --> 00:01:13,759 that connects to the network and I 27 00:01:13,759 --> 00:01:16,680 thought why do I want a dishwasher that 28 00:01:16,680 --> 00:01:18,920 connects to the network and they 29 00:01:18,920 --> 00:01:21,680 literally just said to me it will tell 30 00:01:21,680 --> 00:01:24,520 you when it's 31 00:01:24,880 --> 00:01:27,560 clean um but then the little light bulb 32 00:01:27,560 --> 00:01:30,159 went off of my head and and I and it 33 00:01:30,159 --> 00:01:34,360 which hurt but I I said um wait a minute 34 00:01:34,360 --> 00:01:38,200 I'm a researcher tax 35 00:01:38,200 --> 00:01:42,520 deduction um but I I also I love to cook 36 00:01:42,520 --> 00:01:46,119 so last weekend before um coming here to 37 00:01:46,119 --> 00:01:48,399 hacker summer camp I did put up a new 38 00:01:48,399 --> 00:01:52,040 spice rack in my kitchen uh come on um 39 00:01:52,040 --> 00:01:54,320 what do you 40 00:01:54,320 --> 00:01:57,680 think all right with all seriousness 41 00:01:57,680 --> 00:01:59,920 let's kind of get started um views 42 00:01:59,920 --> 00:02:01,799 opinions typically are my own they have 43 00:02:01,799 --> 00:02:04,039 nothing to do with who I work for um 44 00:02:04,039 --> 00:02:06,079 because I might work for a cloud company 45 00:02:06,079 --> 00:02:09,080 who knows um any examples anything that 46 00:02:09,080 --> 00:02:11,440 I give you please take them with a grain 47 00:02:11,440 --> 00:02:13,440 of salt do not do some of the things 48 00:02:13,440 --> 00:02:16,560 that I suggest unless it's things that 49 00:02:16,560 --> 00:02:17,519 you 50 00:02:17,519 --> 00:02:21,640 own um and have permission to do um okay 51 00:02:21,640 --> 00:02:24,239 so that's the disclaimer part of it so 52 00:02:24,239 --> 00:02:27,879 why we aren't here um well I'm not going 53 00:02:27,879 --> 00:02:29,959 to solve all your security woses who 54 00:02:29,959 --> 00:02:32,760 would um I'm not going to teach you how 55 00:02:32,760 --> 00:02:35,440 to break into the cloud um I'm going to 56 00:02:35,440 --> 00:02:39,080 give you Concepts my goal here today is 57 00:02:39,080 --> 00:02:42,000 for you to walk away from here thinking 58 00:02:42,000 --> 00:02:45,200 damn I better go look at this and that 59 00:02:45,200 --> 00:02:48,400 and that because holy crap there's a lot 60 00:02:48,400 --> 00:02:50,640 of stuff and God this is why I don't 61 00:02:50,640 --> 00:02:55,239 record my um talks oh well um there's a 62 00:02:55,239 --> 00:02:57,480 lot of stuff out there that can people 63 00:02:57,480 --> 00:02:59,519 can get into and I should probably be 64 00:02:59,519 --> 00:03:01,120 more more aware of 65 00:03:01,120 --> 00:03:07,560 it um come on it'll go watch the battery 66 00:03:07,560 --> 00:03:09,319 this is mine I've been letting everybody 67 00:03:09,319 --> 00:03:11,080 use it for the last two days and it's 68 00:03:11,080 --> 00:03:13,680 probably going to die during my talk um 69 00:03:13,680 --> 00:03:15,799 Common Sense went out the window um 70 00:03:15,799 --> 00:03:17,920 decades ago I always like to say that 71 00:03:17,920 --> 00:03:19,200 clouds are 72 00:03:19,200 --> 00:03:22,560 evolving and if we don't stay on top of 73 00:03:22,560 --> 00:03:25,120 them um because attack vectors are 74 00:03:25,120 --> 00:03:26,879 changing but you're going to see 75 00:03:26,879 --> 00:03:28,760 something interesting about these attack 76 00:03:28,760 --> 00:03:31,159 vectors and that's why I I also 77 00:03:31,159 --> 00:03:35,159 subtitled this talk um threat modeling 78 00:03:35,159 --> 00:03:38,239 humans because it's humans that make the 79 00:03:38,239 --> 00:03:41,000 mistake when it comes to 80 00:03:41,000 --> 00:03:42,560 misconfigurations and that's what we're 81 00:03:42,560 --> 00:03:44,599 going to 82 00:03:44,599 --> 00:03:47,239 see so why we are here first of all 83 00:03:47,239 --> 00:03:49,280 Welcome to Cloud Village had to get this 84 00:03:49,280 --> 00:03:51,560 the logo in there right away um but 85 00:03:51,560 --> 00:03:55,159 we're here for the cloud yay woohoo um 86 00:03:55,159 --> 00:03:56,519 and 87 00:03:56,519 --> 00:04:01,040 security but when you add humans oh crap 88 00:04:01,040 --> 00:04:04,760 now now we're doomed um God only knows 89 00:04:04,760 --> 00:04:06,920 what's going to happen and an 90 00:04:06,920 --> 00:04:09,799 interesting thing uh when I started 91 00:04:09,799 --> 00:04:11,760 researching this years and years and 92 00:04:11,760 --> 00:04:16,238 years ago for this talk in 2018 and 17 93 00:04:16,238 --> 00:04:18,560 they were saying misconfiguration is the 94 00:04:18,560 --> 00:04:20,399 number one way that clouds are being 95 00:04:20,399 --> 00:04:24,680 breached then in 2019 then in 20120 and 96 00:04:24,680 --> 00:04:30,520 21 and 22 and even this year I mean it's 97 00:04:30,520 --> 00:04:33,520 everywhere um and how does the cloud 98 00:04:33,520 --> 00:04:36,720 work I am not going to assume everybody 99 00:04:36,720 --> 00:04:38,720 in here knows how the cloud works so 100 00:04:38,720 --> 00:04:40,759 we're going to do a quick little pizza 101 00:04:40,759 --> 00:04:45,000 box um thing um but really it works by 102 00:04:45,000 --> 00:04:48,280 Magic um but the classic thing is it 103 00:04:48,280 --> 00:04:50,800 really is just more computers that 104 00:04:50,800 --> 00:04:52,600 somebody else put up in a big data 105 00:04:52,600 --> 00:04:55,759 center somewhere and guess what there's 106 00:04:55,759 --> 00:04:59,720 still humans running those things and 107 00:04:59,720 --> 00:05:02,440 and then we get on them and More Humans 108 00:05:02,440 --> 00:05:06,000 so it's humans times two uhoh that's 109 00:05:06,000 --> 00:05:08,720 going to be even a bigger problem why is 110 00:05:08,720 --> 00:05:11,680 it not working today and Common Sense is 111 00:05:11,680 --> 00:05:13,600 required so please disregard the 112 00:05:13,600 --> 00:05:16,039 previous 113 00:05:16,039 --> 00:05:18,680 slide all right pizza is a service I 114 00:05:18,680 --> 00:05:20,680 like to throw this up here because how 115 00:05:20,680 --> 00:05:22,319 many people have been working on the 116 00:05:22,319 --> 00:05:25,960 cloud for less than six 117 00:05:25,960 --> 00:05:28,600 months really okay that's good how many 118 00:05:28,600 --> 00:05:31,000 people are over a 119 00:05:31,000 --> 00:05:34,039 year oh good how many people have not 120 00:05:34,039 --> 00:05:36,720 even started working in the cloud 121 00:05:36,720 --> 00:05:39,800 anybody a couple of you all right this 122 00:05:39,800 --> 00:05:41,560 is why I like to throw this up here 123 00:05:41,560 --> 00:05:44,759 because it it points out four very 124 00:05:44,759 --> 00:05:47,039 important Concepts that we need to talk 125 00:05:47,039 --> 00:05:49,400 about and that is you know what is an 126 00:05:49,400 --> 00:05:52,479 on-prem system okay we all know that but 127 00:05:52,479 --> 00:05:54,880 what is infrastructure as as a service 128 00:05:54,880 --> 00:05:57,360 platform as a service and then software 129 00:05:57,360 --> 00:05:59,720 as a service what are these things and 130 00:05:59,720 --> 00:06:03,960 who's responsible for what I had 131 00:06:03,960 --> 00:06:06,240 um how how many people have worked with 132 00:06:06,240 --> 00:06:08,639 containers in kubernetes and Docker and 133 00:06:08,639 --> 00:06:11,840 all this I I was doing an interview of a 134 00:06:11,840 --> 00:06:15,000 security engineer several months ago and 135 00:06:15,000 --> 00:06:17,520 and I gave a problem where we had an 136 00:06:17,520 --> 00:06:18,919 insecure 137 00:06:18,919 --> 00:06:20,800 application and how are you going to 138 00:06:20,800 --> 00:06:22,639 secure it and I described what the 139 00:06:22,639 --> 00:06:25,160 insecurity was and they said well first 140 00:06:25,160 --> 00:06:27,039 thing I'm going to do is deploy it in a 141 00:06:27,039 --> 00:06:28,400 Docker 142 00:06:28,400 --> 00:06:29,919 container 143 00:06:29,919 --> 00:06:33,759 and I said I'm sorry what why um well 144 00:06:33,759 --> 00:06:37,520 because containers improve 145 00:06:37,560 --> 00:06:42,599 security next please yes um could not 146 00:06:42,599 --> 00:06:45,160 get any explanation but I thought you 147 00:06:45,160 --> 00:06:48,199 know I think of these things too because 148 00:06:48,199 --> 00:06:52,039 how does any of this necessarily improve 149 00:06:52,039 --> 00:06:54,919 security it doesn't it just shifts the 150 00:06:54,919 --> 00:06:57,840 burden and who's responsible so that's 151 00:06:57,840 --> 00:06:59,879 what we have to think about obviously 152 00:06:59,879 --> 00:07:02,440 traditional on Prem you're responsible 153 00:07:02,440 --> 00:07:04,440 for everything and that's why nobody 154 00:07:04,440 --> 00:07:07,720 wants to do it anymore um except me I 155 00:07:07,720 --> 00:07:11,000 don't well technically um I have like 35 156 00:07:11,000 --> 00:07:12,840 servers that I have in collocation 157 00:07:12,840 --> 00:07:15,720 facilities around the country and I host 158 00:07:15,720 --> 00:07:17,840 companies um they're not in the cloud 159 00:07:17,840 --> 00:07:19,599 they're just servers that I virtualize 160 00:07:19,599 --> 00:07:21,759 for these people um but I have to 161 00:07:21,759 --> 00:07:24,360 maintain everything um but then we have 162 00:07:24,360 --> 00:07:26,240 in infrastructure as a service this is 163 00:07:26,240 --> 00:07:28,680 one of the interesting ones because we 164 00:07:28,680 --> 00:07:32,160 we have a take can bake pizza store okay 165 00:07:32,160 --> 00:07:34,240 they put it all together but then we 166 00:07:34,240 --> 00:07:36,919 still have to go and get it take it home 167 00:07:36,919 --> 00:07:38,919 put it in the oven and we have to 168 00:07:38,919 --> 00:07:41,599 provide beer I need to change beer to 169 00:07:41,599 --> 00:07:45,400 Tequila um oh well um but yeah you get 170 00:07:45,400 --> 00:07:47,840 the idea they do a lot of work but 171 00:07:47,840 --> 00:07:51,639 there's still quite a bit for us um the 172 00:07:51,639 --> 00:07:54,159 interesting part of that how many of you 173 00:07:54,159 --> 00:07:55,919 are 174 00:07:55,919 --> 00:07:58,919 developers most okay some of you the 175 00:07:58,919 --> 00:08:00,360 rest of of you would you consider 176 00:08:00,360 --> 00:08:03,199 yourself you're like administering the 177 00:08:03,199 --> 00:08:05,840 cloud in some way security or something 178 00:08:05,840 --> 00:08:10,319 like that okay um one of the problems I 179 00:08:10,319 --> 00:08:13,000 have with developers sorry 180 00:08:13,000 --> 00:08:16,280 developers but you get these questions 181 00:08:16,280 --> 00:08:18,159 like well okay I know I'm not supposed 182 00:08:18,159 --> 00:08:20,199 to put credentials in the 183 00:08:20,199 --> 00:08:22,800 code but can I put credentials in the 184 00:08:22,800 --> 00:08:24,720 configuration files 185 00:08:24,720 --> 00:08:28,400 instead no um and when you get to the 186 00:08:28,400 --> 00:08:30,479 infrastructure is a service this is a 187 00:08:30,479 --> 00:08:33,559 common problem you find credentials in 188 00:08:33,559 --> 00:08:36,080 the ammo files that are being deployed 189 00:08:36,080 --> 00:08:40,120 for the I um I I 190 00:08:40,120 --> 00:08:42,719 IAS um platform as a service we have a 191 00:08:42,719 --> 00:08:44,240 little more that the vendor is going to 192 00:08:44,240 --> 00:08:47,800 do but we still kind of come to the 193 00:08:47,800 --> 00:08:51,120 table and there's still an application 194 00:08:51,120 --> 00:08:52,880 involved and that's the thing that I 195 00:08:52,880 --> 00:08:54,600 want to get across so when you think 196 00:08:54,600 --> 00:08:57,200 about all of this well they're still not 197 00:08:57,200 --> 00:08:58,720 going to take care of they're not going 198 00:08:58,720 --> 00:09:01,160 to take care of the security by putting 199 00:09:01,160 --> 00:09:02,800 in a Docker 200 00:09:02,800 --> 00:09:06,360 container okay software is a service you 201 00:09:06,360 --> 00:09:10,440 think oh the vendor takes care of 202 00:09:10,440 --> 00:09:13,800 everything of course not because what 203 00:09:13,800 --> 00:09:17,399 about access to that service and what is 204 00:09:17,399 --> 00:09:19,839 that service going to do I don't know 205 00:09:19,839 --> 00:09:21,399 but we're going to talk about that in 206 00:09:21,399 --> 00:09:26,680 just a minute okay detection is so often 207 00:09:26,680 --> 00:09:30,279 left off of this I still find people 208 00:09:30,279 --> 00:09:33,240 saying well yeah we deployed everything 209 00:09:33,240 --> 00:09:36,399 to the cloud um do you have a SIM is 210 00:09:36,399 --> 00:09:38,160 anybody monitoring anything are you 211 00:09:38,160 --> 00:09:40,880 looking at logs which was talked about 212 00:09:40,880 --> 00:09:45,000 earlier today and they say well sort of 213 00:09:45,000 --> 00:09:47,640 we look at them once a 214 00:09:47,640 --> 00:09:49,720 month 215 00:09:49,720 --> 00:09:55,320 okay um what is an incident well most 216 00:09:55,320 --> 00:09:57,600 incidents are not zero days look at 217 00:09:57,600 --> 00:09:59,399 everything that's happened in the last 218 00:09:59,399 --> 00:10:02,680 year how many zero days were were the 219 00:10:02,680 --> 00:10:05,000 cause of most of the incidents out there 220 00:10:05,000 --> 00:10:07,800 pretty much none um most incidents are 221 00:10:07,800 --> 00:10:10,560 not fancy um they're not going to come 222 00:10:10,560 --> 00:10:12,360 from somebody running a vulnerability 223 00:10:12,360 --> 00:10:14,120 scanner and figuring out you have 224 00:10:14,120 --> 00:10:16,040 something on your system they're going 225 00:10:16,040 --> 00:10:19,279 to come from configuration issues number 226 00:10:19,279 --> 00:10:22,200 one I guarantee you and I will prove it 227 00:10:22,200 --> 00:10:27,000 to you a close second compromise 228 00:10:27,000 --> 00:10:29,399 credentials um when was the last time 229 00:10:29,399 --> 00:10:32,760 you searched for AWS token in GitHub or 230 00:10:32,760 --> 00:10:35,160 gcp or the word 231 00:10:35,160 --> 00:10:38,200 password um which still occurs 232 00:10:38,200 --> 00:10:40,639 everywhere um and then trailing and 233 00:10:40,639 --> 00:10:43,600 third is overprivileged users this was 234 00:10:43,600 --> 00:10:45,639 actually talked about in a previous talk 235 00:10:45,639 --> 00:10:48,440 a little while ago that you have 236 00:10:48,440 --> 00:10:51,079 developers that come to you and say oh I 237 00:10:51,079 --> 00:10:55,639 need all these access modes on on AWS 238 00:10:55,639 --> 00:10:58,360 and you ask them can you please explain 239 00:10:58,360 --> 00:11:02,200 to me why you need 14 different access 240 00:11:02,200 --> 00:11:04,800 Privileges and they'll go well so we can 241 00:11:04,800 --> 00:11:05,760 do our 242 00:11:05,760 --> 00:11:09,279 job no I need to know exactly why you 243 00:11:09,279 --> 00:11:11,839 need each one and they can't they'll 244 00:11:11,839 --> 00:11:14,560 I've had developers tell me Well we were 245 00:11:14,560 --> 00:11:16,880 told we needed 246 00:11:16,880 --> 00:11:20,360 these no it's just 247 00:11:20,360 --> 00:11:23,320 not um but this just keeps happening 248 00:11:23,320 --> 00:11:25,440 oops I leaked it again pii exposed and 249 00:11:25,440 --> 00:11:28,519 RDS snapshots yeah okay fine hundreds of 250 00:11:28,519 --> 00:11:31,519 Amazon already has snapshots discovered 251 00:11:31,519 --> 00:11:34,320 um what do we have exposed AWS buckets 252 00:11:34,320 --> 00:11:36,440 no I'm not picking on AWS these were 253 00:11:36,440 --> 00:11:38,880 just a bunch of headlines I I grabbed 254 00:11:38,880 --> 00:11:42,040 and they all seem to point to AWS um 255 00:11:42,040 --> 00:11:44,560 yeah hundreds of RDS snapshots 256 00:11:44,560 --> 00:11:46,920 discovered leaking user these each one 257 00:11:46,920 --> 00:11:49,200 of these has a different date by the way 258 00:11:49,200 --> 00:11:53,160 they go back to 22 21 um and so on so 259 00:11:53,160 --> 00:11:55,519 these aren't all from the same incident 260 00:11:55,519 --> 00:11:57,560 it's just proof that oh yeah it just 261 00:11:57,560 --> 00:12:00,519 keeps happening but why does it happen 262 00:12:00,519 --> 00:12:03,880 well even OAS moved it up one it used to 263 00:12:03,880 --> 00:12:06,320 be number number six now it's number 264 00:12:06,320 --> 00:12:09,079 five um security 265 00:12:09,079 --> 00:12:11,839 misconfigurations um all the successful 266 00:12:11,839 --> 00:12:13,959 attacks are coming from misconfiguration 267 00:12:13,959 --> 00:12:14,880 and 268 00:12:14,880 --> 00:12:17,480 mismanagement um if you start to think 269 00:12:17,480 --> 00:12:19,880 of what did pen testing consist of 270 00:12:19,880 --> 00:12:22,120 before the cloud 271 00:12:22,120 --> 00:12:25,440 BTC okay well before the 272 00:12:25,440 --> 00:12:28,440 cloud identify targets you find some IPS 273 00:12:28,440 --> 00:12:30,600 you scan them you scan them from for 274 00:12:30,600 --> 00:12:31,680 some 275 00:12:31,680 --> 00:12:35,519 vulnerabilities and you go after those 276 00:12:35,519 --> 00:12:37,440 you you try to exploit those 277 00:12:37,440 --> 00:12:39,360 vulnerabilities they're typically on 278 00:12:39,360 --> 00:12:42,199 Prem or in a DMZ or something like that 279 00:12:42,199 --> 00:12:44,560 you might have various modes of access 280 00:12:44,560 --> 00:12:47,800 if we think of after the cloud or AC you 281 00:12:47,800 --> 00:12:51,279 know what did you do ah we find look for 282 00:12:51,279 --> 00:12:53,760 misconfigurations now you someone might 283 00:12:53,760 --> 00:12:56,199 say but cat where do we find 284 00:12:56,199 --> 00:12:58,079 misconfigurations somebody might say 285 00:12:58,079 --> 00:12:59,839 that 286 00:12:59,839 --> 00:13:02,160 but cat where do we find them oh my God 287 00:13:02,160 --> 00:13:03,800 what a great 288 00:13:03,800 --> 00:13:08,120 question it's almost as if you were 289 00:13:08,120 --> 00:13:11,199 prompted um people are still storing 290 00:13:11,199 --> 00:13:13,399 them in all of our favorite places such 291 00:13:13,399 --> 00:13:16,360 as GitHub and gitlab and so on you will 292 00:13:16,360 --> 00:13:21,199 find files used to configure Cloud 293 00:13:21,199 --> 00:13:24,560 instances in these public reposts 294 00:13:24,560 --> 00:13:26,399 because what's the first thing 295 00:13:26,399 --> 00:13:28,920 developers like to do they put all their 296 00:13:28,920 --> 00:13:32,320 stuff in a GitHub repo and a GitHub repo 297 00:13:32,320 --> 00:13:37,160 by default is Public Access oops um we 298 00:13:37,160 --> 00:13:39,120 then line up the targets and we then go 299 00:13:39,120 --> 00:13:41,199 after them that's what we do when we 300 00:13:41,199 --> 00:13:44,160 have the cloud but when we start to look 301 00:13:44,160 --> 00:13:47,440 at cloud in incidents misconfigurations 302 00:13:47,440 --> 00:13:49,800 are number one and we're going to see 303 00:13:49,800 --> 00:13:52,160 the types of misconfigurations in just a 304 00:13:52,160 --> 00:13:54,199 second and that's because training is 305 00:13:54,199 --> 00:13:56,199 non-existent how many of you actually 306 00:13:56,199 --> 00:13:58,199 provide cloud training at your company 307 00:13:58,199 --> 00:13:59,399 wherever you work 308 00:13:59,399 --> 00:14:01,639 to your 309 00:14:01,639 --> 00:14:06,480 developers one two three yeah it's crazy 310 00:14:06,480 --> 00:14:11,360 it's crazy um we misplace or forget 311 00:14:11,360 --> 00:14:14,399 where tokens and keys are I had a 312 00:14:14,399 --> 00:14:17,880 developer that he was the lead on a team 313 00:14:17,880 --> 00:14:19,360 and he said well I wanted to help my 314 00:14:19,360 --> 00:14:21,240 team working on this project so I 315 00:14:21,240 --> 00:14:23,360 thought I'm going to create a g Hub repo 316 00:14:23,360 --> 00:14:24,920 and I'm going to load everything up 317 00:14:24,920 --> 00:14:28,079 there and he did of course when he 318 00:14:28,079 --> 00:14:30,480 created it it was public and then he 319 00:14:30,480 --> 00:14:32,959 took a folder and he uploaded the folder 320 00:14:32,959 --> 00:14:35,920 for the team he forgot that there were 321 00:14:35,920 --> 00:14:40,600 dot files in the folder within 5 minutes 322 00:14:40,600 --> 00:14:44,160 the the um particular gcp account had 323 00:14:44,160 --> 00:14:46,839 been compromized because there were gcp 324 00:14:46,839 --> 00:14:51,000 tokens in that um folder and 47 325 00:14:51,000 --> 00:14:54,519 instances of Bitcoin mining we're spun 326 00:14:54,519 --> 00:14:58,000 up but everyone always not everyone I 327 00:14:58,000 --> 00:14:59,920 shouldn't say that a lot of people think 328 00:14:59,920 --> 00:15:03,120 that when you see coin mining um oh big 329 00:15:03,120 --> 00:15:04,839 deal we'll shut it 330 00:15:04,839 --> 00:15:06,880 down was that a 331 00:15:06,880 --> 00:15:09,800 decoy was it trying to get you away from 332 00:15:09,800 --> 00:15:13,000 oh look shiny um we just broke into your 333 00:15:13,000 --> 00:15:15,839 database over here be careful of that 334 00:15:15,839 --> 00:15:17,639 don't assume 335 00:15:17,639 --> 00:15:21,560 it come on oh and yeah that was my once 336 00:15:21,560 --> 00:15:23,440 upon a time I was just telling you about 337 00:15:23,440 --> 00:15:26,440 lack of training in Cloud Secrets is the 338 00:15:26,440 --> 00:15:30,079 other thing okay we don't teach 339 00:15:30,079 --> 00:15:32,720 developers um very simply I worked for 340 00:15:32,720 --> 00:15:35,399 another kind of company um a few years 341 00:15:35,399 --> 00:15:39,079 ago we had 3,000 developers we were 342 00:15:39,079 --> 00:15:41,880 working on some big fancy automobile 343 00:15:41,880 --> 00:15:43,839 thing that tends to drive itself I don't 344 00:15:43,839 --> 00:15:46,480 know what those are called um but 345 00:15:46,480 --> 00:15:49,279 they're all R&D type Engineers so they 346 00:15:49,279 --> 00:15:51,360 they didn't know anything about security 347 00:15:51,360 --> 00:15:54,079 and we kept having incidents every 348 00:15:54,079 --> 00:15:57,720 single week 10 12 incidents things Expos 349 00:15:57,720 --> 00:16:01,639 we were finding in them thank God but it 350 00:16:01,639 --> 00:16:03,399 was keeping our security team was 351 00:16:03,399 --> 00:16:05,360 swamped with finding and scanning and 352 00:16:05,360 --> 00:16:07,959 looking for all these problems and I 353 00:16:07,959 --> 00:16:10,399 went to leadership and I said why are we 354 00:16:10,399 --> 00:16:12,680 not training them oh we tried that it 355 00:16:12,680 --> 00:16:16,440 didn't work what well how did you do it 356 00:16:16,440 --> 00:16:18,120 and they couldn't really explain it cuz 357 00:16:18,120 --> 00:16:20,240 it was a couple years ago I said can we 358 00:16:20,240 --> 00:16:23,880 try it let our team do it it fine go for 359 00:16:23,880 --> 00:16:28,199 it and we did and a month later all the 360 00:16:28,199 --> 00:16:31,199 in started coming down and then by 6 361 00:16:31,199 --> 00:16:33,240 months cuz it took us that long to train 362 00:16:33,240 --> 00:16:34,600 3,000 363 00:16:34,600 --> 00:16:37,639 Engineers it was almost nothing and the 364 00:16:37,639 --> 00:16:39,720 engineers were coming to us going thank 365 00:16:39,720 --> 00:16:43,639 you we now feel like we're part of the 366 00:16:43,639 --> 00:16:47,120 solution we're not just stuck here being 367 00:16:47,120 --> 00:16:50,279 blamed for everything so please take 368 00:16:50,279 --> 00:16:52,319 that seriously because what are we 369 00:16:52,319 --> 00:16:55,480 trying to train them not to do 370 00:16:55,480 --> 00:16:57,360 misconfigurations that's the biggest 371 00:16:57,360 --> 00:16:59,399 thing and when I show you the examples 372 00:16:59,399 --> 00:17:01,199 of the misconfigurations you'll go well 373 00:17:01,199 --> 00:17:04,679 yeah that's so obvious oh come on okay 374 00:17:04,679 --> 00:17:07,199 also encryption at rest but we'll talk 375 00:17:07,199 --> 00:17:10,839 about that coming up and then in transit 376 00:17:10,839 --> 00:17:15,119 um another big big issue okay this is an 377 00:17:15,119 --> 00:17:17,640 interesting slide this was this year 378 00:17:17,640 --> 00:17:20,919 this was in 2023 and thank you to qualis 379 00:17:20,919 --> 00:17:23,359 for putting it together but essentially 380 00:17:23,359 --> 00:17:25,839 it shows you the most misconfigured 381 00:17:25,839 --> 00:17:29,840 controls on average discovered in aws's 382 00:17:29,840 --> 00:17:32,480 your in Google Cloud now why are they 383 00:17:32,480 --> 00:17:34,799 different 384 00:17:35,080 --> 00:17:39,080 sizes because everybody goes and trains 385 00:17:39,080 --> 00:17:41,240 and learns 386 00:17:41,240 --> 00:17:44,200 AWS they don't care about the other ones 387 00:17:44,200 --> 00:17:46,280 until they have to move to the other 388 00:17:46,280 --> 00:17:49,480 ones I will speak from experience where 389 00:17:49,480 --> 00:17:51,679 I was working for a company and we had 390 00:17:51,679 --> 00:17:53,640 just spent the better part of a year 391 00:17:53,640 --> 00:17:56,799 standing up a very secure AWS 392 00:17:56,799 --> 00:17:58,679 environment with everything conf figured 393 00:17:58,679 --> 00:18:00,919 no one could break in and then they came 394 00:18:00,919 --> 00:18:03,520 to us and said well our largest customer 395 00:18:03,520 --> 00:18:05,960 is Walmart and they don't want us to 396 00:18:05,960 --> 00:18:09,240 keep all their data on Amazon stuff so 397 00:18:09,240 --> 00:18:12,159 we have to move everything over to gcp 398 00:18:12,159 --> 00:18:14,840 and we have to do it in 3 399 00:18:14,840 --> 00:18:19,960 months I'm sorry um kill me now 400 00:18:19,960 --> 00:18:24,400 please um we did it uh and yeah it was 401 00:18:24,400 --> 00:18:27,760 crazy but you realize that oh crap you 402 00:18:27,760 --> 00:18:30,440 don't know know all the other ones and 403 00:18:30,440 --> 00:18:32,919 yet the concepts are the 404 00:18:32,919 --> 00:18:35,960 same it's just the commands that are 405 00:18:35,960 --> 00:18:40,480 different go and learn them change this 406 00:18:40,480 --> 00:18:43,880 make it so they're all 407 00:18:45,400 --> 00:18:48,640 34% they'll still be misconfigured but 408 00:18:48,640 --> 00:18:51,159 what the heck at least it'll be 409 00:18:51,159 --> 00:18:54,520 balanced I don't know um but yeah it is 410 00:18:54,520 --> 00:18:55,679 a 411 00:18:55,679 --> 00:18:59,039 problem come on 412 00:18:59,039 --> 00:19:01,080 you're going dead aren't me on on there 413 00:19:01,080 --> 00:19:04,559 we go okay I use Fiddler because I like 414 00:19:04,559 --> 00:19:06,520 to think of traditional this is going to 415 00:19:06,520 --> 00:19:11,280 drive me crazy if it's not going to keep 416 00:19:11,280 --> 00:19:14,600 working okay I like to say tradition in 417 00:19:14,600 --> 00:19:17,640 other words unpatched system is the same 418 00:19:17,640 --> 00:19:19,360 level as 419 00:19:19,360 --> 00:19:21,640 misconfiguration because it's that 420 00:19:21,640 --> 00:19:24,840 serious so keep that in mind unpatched 421 00:19:24,840 --> 00:19:26,880 still exists that doesn't mean don't 422 00:19:26,880 --> 00:19:29,799 patch your your applications and stuff 423 00:19:29,799 --> 00:19:31,360 it just means that think of 424 00:19:31,360 --> 00:19:34,240 misconfiguration as an unpatched system 425 00:19:34,240 --> 00:19:38,000 why because you are just a tenant on 426 00:19:38,000 --> 00:19:40,760 this environment if you have compute 427 00:19:40,760 --> 00:19:43,799 instances and you are not patching those 428 00:19:43,799 --> 00:19:45,200 compute 429 00:19:45,200 --> 00:19:48,520 instances Amazon or Microsoft or Google 430 00:19:48,520 --> 00:19:50,840 they're not going to patch them for you 431 00:19:50,840 --> 00:19:53,799 so you better better work on that this 432 00:19:53,799 --> 00:19:55,960 is the thing that gets a lot of 433 00:19:55,960 --> 00:20:00,520 people in the world of Linux or Windows 434 00:20:00,520 --> 00:20:04,480 we have one rout or one admin account 435 00:20:04,480 --> 00:20:07,760 for the most part um you have to have 436 00:20:07,760 --> 00:20:11,159 special privileges to get to root but 437 00:20:11,159 --> 00:20:12,679 with I am 438 00:20:12,679 --> 00:20:17,080 roles holy crap have you even looked at 439 00:20:17,080 --> 00:20:19,799 all the IM roles in all three of the 440 00:20:19,799 --> 00:20:21,559 major Cloud 441 00:20:21,559 --> 00:20:24,360 providers probably not that's why we're 442 00:20:24,360 --> 00:20:25,919 going to look at a great new tool that I 443 00:20:25,919 --> 00:20:29,039 just learned about this morning ha um 444 00:20:29,039 --> 00:20:30,880 apps still equal apps this is where I 445 00:20:30,880 --> 00:20:33,480 tell tell you the story of the guy that 446 00:20:33,480 --> 00:20:36,320 deployed his app in the container but I 447 00:20:36,320 --> 00:20:38,799 already told you that um but those are 448 00:20:38,799 --> 00:20:42,039 attack vectors and it was funny because 449 00:20:42,039 --> 00:20:43,720 that one just got even worse when I 450 00:20:43,720 --> 00:20:46,400 asked them what if I compromise your 451 00:20:46,400 --> 00:20:49,280 application inside the container oh you 452 00:20:49,280 --> 00:20:51,559 can't do anything don't 453 00:20:51,559 --> 00:20:53,320 worry 454 00:20:53,320 --> 00:20:56,240 okay um all right so here are the 455 00:20:56,240 --> 00:20:59,120 general attack vectors in other words 456 00:20:59,120 --> 00:21:01,000 these are the number one 457 00:21:01,000 --> 00:21:03,320 misconfigurations that happen in the 458 00:21:03,320 --> 00:21:06,240 cloud and this is where it's a 459 00:21:06,240 --> 00:21:10,880 combined um issue of developers with too 460 00:21:10,880 --> 00:21:13,400 much privilege and they're the ones that 461 00:21:13,400 --> 00:21:16,720 caus this because they go well I need 462 00:21:16,720 --> 00:21:20,080 privileges to to make firewall changes 463 00:21:20,080 --> 00:21:24,000 okay um change firewall tappity tappity 464 00:21:24,000 --> 00:21:25,320 tap 465 00:21:25,320 --> 00:21:30,400 00000000 slash um excuse me why did you 466 00:21:30,400 --> 00:21:33,960 just open everything to the internet oh 467 00:21:33,960 --> 00:21:39,039 did I do that okay um Secrets management 468 00:21:39,039 --> 00:21:42,480 that's the other one I still to the it's 469 00:21:42,480 --> 00:21:46,360 2023 why do I have developers asking me 470 00:21:46,360 --> 00:21:50,799 is it okay if I keep um the token on my 471 00:21:50,799 --> 00:21:55,240 laptop I had a a customer of mine that 472 00:21:55,240 --> 00:21:58,240 with my um hosting company that I have 473 00:21:58,240 --> 00:22:00,200 that actually said to me well I have two 474 00:22:00,200 --> 00:22:02,880 Factor authentication for VPN I said 475 00:22:02,880 --> 00:22:04,320 great what is it well the first one is 476 00:22:04,320 --> 00:22:06,679 the password great what's the second one 477 00:22:06,679 --> 00:22:10,720 there's a machine certificate on all the 478 00:22:11,279 --> 00:22:14,400 laptops and they thought that was valid 479 00:22:14,400 --> 00:22:17,480 they thought well it's it's a separate 480 00:22:17,480 --> 00:22:19,960 certificate for every laptop so if I 481 00:22:19,960 --> 00:22:24,080 guess the user's password how is that 482 00:22:24,080 --> 00:22:25,080 and they 483 00:22:25,080 --> 00:22:26,720 went 484 00:22:26,720 --> 00:22:30,960 oh oh okay so yeah it's it's just 485 00:22:30,960 --> 00:22:35,039 training it's don't be afraid to train 486 00:22:35,039 --> 00:22:39,080 the users go to leadership and explain 487 00:22:39,080 --> 00:22:42,240 that if you get developers to be part of 488 00:22:42,240 --> 00:22:43,159 the 489 00:22:43,159 --> 00:22:46,679 solution then you start having as many 490 00:22:46,679 --> 00:22:49,120 problems um you stop having as many 491 00:22:49,120 --> 00:22:52,400 problems missing logging and monitoring 492 00:22:52,400 --> 00:22:54,400 this is huge because especially if 493 00:22:54,400 --> 00:22:55,919 you're not monitoring privilege 494 00:22:55,919 --> 00:22:58,880 escalation and privilege use usage 495 00:22:58,880 --> 00:23:00,919 within the environment here's a great 496 00:23:00,919 --> 00:23:03,840 little tool um you've probably all heard 497 00:23:03,840 --> 00:23:05,120 of os 498 00:23:05,120 --> 00:23:07,720 query you can do SQL queries of 499 00:23:07,720 --> 00:23:10,360 operating system settings and so on well 500 00:23:10,360 --> 00:23:12,600 there's this great tool called Cloud 501 00:23:12,600 --> 00:23:16,039 query do SQL request to look at your 502 00:23:16,039 --> 00:23:18,840 entire Cloud environment it is 503 00:23:18,840 --> 00:23:22,120 essentially OS query on steroids it is 504 00:23:22,120 --> 00:23:25,919 an amazing tool deploy it in your 505 00:23:25,919 --> 00:23:28,679 environments and get it work work if you 506 00:23:28,679 --> 00:23:31,240 don't have it it extracts all your 507 00:23:31,240 --> 00:23:33,799 assets puts it in nice normalized 508 00:23:33,799 --> 00:23:37,320 postris ql database and you're off and 509 00:23:37,320 --> 00:23:39,480 running you can query everything and 510 00:23:39,480 --> 00:23:42,960 figure out what do you have who has 511 00:23:42,960 --> 00:23:46,159 access to it because it will query I am 512 00:23:46,159 --> 00:23:49,520 structures and and all of that as well 513 00:23:49,520 --> 00:23:52,039 so definitely keep an eye on that 514 00:23:52,039 --> 00:23:54,679 insecure backups this is huge we're 515 00:23:54,679 --> 00:23:56,880 going to get to that in just a 516 00:23:56,880 --> 00:23:59,000 minute 517 00:23:59,000 --> 00:24:01,480 um of course buckets storage access 518 00:24:01,480 --> 00:24:04,760 anything that is a storage container and 519 00:24:04,760 --> 00:24:07,200 then lack of 520 00:24:07,200 --> 00:24:11,400 TLS um it's that that's kind of in order 521 00:24:11,400 --> 00:24:14,559 um permissive account access to VMS and 522 00:24:14,559 --> 00:24:17,480 containers that's also there that's uh 523 00:24:17,480 --> 00:24:20,400 little bit less but it's still there but 524 00:24:20,400 --> 00:24:23,200 in order of the ones that are 525 00:24:23,200 --> 00:24:26,640 compromised the most there it is now how 526 00:24:26,640 --> 00:24:29,960 do we fix it well don't give people 527 00:24:29,960 --> 00:24:31,799 access to configuring the 528 00:24:31,799 --> 00:24:34,279 firewalls seems pretty 529 00:24:34,279 --> 00:24:36,919 obvious you know here's here's some 530 00:24:36,919 --> 00:24:39,000 examples if I have in infrastructure as 531 00:24:39,000 --> 00:24:42,039 a service well what's the number one way 532 00:24:42,039 --> 00:24:43,960 to compromise that weak 533 00:24:43,960 --> 00:24:47,399 credentials um Pro in that survey I 534 00:24:47,399 --> 00:24:49,679 didn't put it up there but the survey 535 00:24:49,679 --> 00:24:53,200 that that um qualus did um they found 536 00:24:53,200 --> 00:24:56,159 that I I want to say it was like 45% of 537 00:24:56,159 --> 00:24:58,880 the accounts that they found in WS were 538 00:24:58,880 --> 00:25:01,279 not using 539 00:25:01,279 --> 00:25:04,679 MFA and their control accounts that's 540 00:25:04,679 --> 00:25:07,919 insane um anything belonging to the 541 00:25:07,919 --> 00:25:10,559 tenant is an attack Vector when you have 542 00:25:10,559 --> 00:25:12,880 infrastructure as a service so weak 543 00:25:12,880 --> 00:25:14,600 credentials in that area are going to 544 00:25:14,600 --> 00:25:17,960 kill you application bugs are still 545 00:25:17,960 --> 00:25:20,480 important because the applications are 546 00:25:20,480 --> 00:25:23,200 being deployed there um what if I can 547 00:25:23,200 --> 00:25:26,200 get rce in an application I could read 548 00:25:26,200 --> 00:25:28,919 all your configuration files 549 00:25:28,919 --> 00:25:31,360 probably so be aware of that and then 550 00:25:31,360 --> 00:25:33,720 the misconfigured firewalls so 551 00:25:33,720 --> 00:25:35,480 infrastructure is a service I'm looking 552 00:25:35,480 --> 00:25:37,320 for weak credentials that's going to be 553 00:25:37,320 --> 00:25:39,679 the number one thing and of course if 554 00:25:39,679 --> 00:25:42,559 they leave the files exposed if they put 555 00:25:42,559 --> 00:25:45,960 them in GitHub or anything like that um 556 00:25:45,960 --> 00:25:47,960 metadata API I'll give you a slide on 557 00:25:47,960 --> 00:25:51,720 that in just a second and then AC that's 558 00:25:51,720 --> 00:25:54,559 kind of after credentials if I can get 559 00:25:54,559 --> 00:25:56,840 even one credential I can query the 560 00:25:56,840 --> 00:25:58,720 metadata AP pi and that's going to tell 561 00:25:58,720 --> 00:26:00,279 me the lay of the land I'll show you in 562 00:26:00,279 --> 00:26:04,840 a second um platform as a 563 00:26:04,840 --> 00:26:08,559 service well it's it's a little bit 564 00:26:08,559 --> 00:26:10,559 greater than infrastructure but a little 565 00:26:10,559 --> 00:26:13,720 bit less than um software as a service 566 00:26:13,720 --> 00:26:15,559 um what do I want to look for 567 00:26:15,559 --> 00:26:18,200 application vulnerabilities you know 568 00:26:18,200 --> 00:26:19,000 that 569 00:26:19,000 --> 00:26:22,399 one storage that's where these RDS 570 00:26:22,399 --> 00:26:25,960 backups come into play um because I 571 00:26:25,960 --> 00:26:28,840 might deploy something like a SQL 572 00:26:28,840 --> 00:26:30,919 instance or something that looks like a 573 00:26:30,919 --> 00:26:33,720 SQL instance and it has an RDS backup 574 00:26:33,720 --> 00:26:35,679 and the backup is not 575 00:26:35,679 --> 00:26:38,600 protected data in transit is also a key 576 00:26:38,600 --> 00:26:40,960 thing all right this is thank you to 577 00:26:40,960 --> 00:26:43,840 Cloud Village why because this was two 578 00:26:43,840 --> 00:26:45,760 tools that I found this morning in two 579 00:26:45,760 --> 00:26:49,720 talks um one of them is called I am ape 580 00:26:49,720 --> 00:26:53,760 it is an IM AWS policy evaluator um they 581 00:26:53,760 --> 00:26:57,279 just released it today or recently and 582 00:26:57,279 --> 00:27:00,039 it is is it will help you to evaluate 583 00:27:00,039 --> 00:27:02,880 the configuration of all your IM um 584 00:27:02,880 --> 00:27:04,520 Privileges and everything for all your 585 00:27:04,520 --> 00:27:08,440 accounts this is huge um so yeah I'm 586 00:27:08,440 --> 00:27:10,840 glad I was uh here volunteering with 587 00:27:10,840 --> 00:27:13,039 Cloud Village thank you Cloud Village 588 00:27:13,039 --> 00:27:15,440 the other one was about an hour ago 589 00:27:15,440 --> 00:27:18,440 called Cloud Recon this is another great 590 00:27:18,440 --> 00:27:20,559 tool this was just released a couple of 591 00:27:20,559 --> 00:27:23,840 hours ago and this will actually go out 592 00:27:23,840 --> 00:27:27,080 and look for think of it like showan in 593 00:27:27,080 --> 00:27:30,520 a way but you will download it put it on 594 00:27:30,520 --> 00:27:32,480 your own environment so there's no 595 00:27:32,480 --> 00:27:35,200 relying on apis and connections to some 596 00:27:35,200 --> 00:27:38,000 service that n what if it goes down 597 00:27:38,000 --> 00:27:41,640 tomorrow um this finds all the Assets in 598 00:27:41,640 --> 00:27:43,919 your accounts that you might not have 599 00:27:43,919 --> 00:27:46,919 you might not know about um very 600 00:27:46,919 --> 00:27:49,360 powerful tools definitely take a look at 601 00:27:49,360 --> 00:27:53,000 these all right this is a metadata API 602 00:27:53,000 --> 00:27:56,840 put the U um URLs up here if I can get 603 00:27:56,840 --> 00:27:59,039 any kind kind of 604 00:27:59,039 --> 00:28:01,640 account and I can then access the 605 00:28:01,640 --> 00:28:06,360 metadata apis I can map out your entire 606 00:28:06,360 --> 00:28:09,279 environment and go look at the URLs you 607 00:28:09,279 --> 00:28:12,120 can read about it um there's an AWS blog 608 00:28:12,120 --> 00:28:15,320 gcp blog and is your block um there has 609 00:28:15,320 --> 00:28:17,480 it has to be there you have to have the 610 00:28:17,480 --> 00:28:19,320 ability because all the tools that they 611 00:28:19,320 --> 00:28:22,840 build need apis to map all the 612 00:28:22,840 --> 00:28:25,039 infrastructure okay there's a little bit 613 00:28:25,039 --> 00:28:27,679 about it um it just tells you that any 614 00:28:27,679 --> 00:28:29,640 process that can query it can figure out 615 00:28:29,640 --> 00:28:33,320 everything so keep that in 616 00:28:33,320 --> 00:28:37,640 mind all right more on storage remember 617 00:28:37,640 --> 00:28:40,000 please don't create predictable names of 618 00:28:40,000 --> 00:28:43,000 buckets and storage I had developers ask 619 00:28:43,000 --> 00:28:45,080 me can't we call our storage financial 620 00:28:45,080 --> 00:28:47,200 data 621 00:28:47,200 --> 00:28:50,799 2023 um think of it like NFS because 622 00:28:50,799 --> 00:28:53,840 that's what storage is these days Cloud 623 00:28:53,840 --> 00:28:56,440 snapshots these are constantly being 624 00:28:56,440 --> 00:29:00,320 made and then protected or in 625 00:29:00,320 --> 00:29:02,120 unprotected I was going to say in 626 00:29:02,120 --> 00:29:04,640 protected that's not a word um think of 627 00:29:04,640 --> 00:29:07,200 them as volumes these volumes can be 628 00:29:07,200 --> 00:29:09,760 attached if I can find them and when you 629 00:29:09,760 --> 00:29:11,600 attach them they have no permissions 630 00:29:11,600 --> 00:29:14,840 associated with them Cloud snapshots are 631 00:29:14,840 --> 00:29:17,440 very much infrastructure as a service 632 00:29:17,440 --> 00:29:20,200 attack service why because when they're 633 00:29:20,200 --> 00:29:22,600 created and then you delete a project 634 00:29:22,600 --> 00:29:26,000 they're still there and they have no 635 00:29:26,000 --> 00:29:29,080 protections it's a Dix image copy of the 636 00:29:29,080 --> 00:29:31,080 entire Cloud instance that you were 637 00:29:31,080 --> 00:29:34,159 running so keep that in mind because I 638 00:29:34,159 --> 00:29:37,880 can retrieve it I can mount it and then 639 00:29:37,880 --> 00:29:40,519 there's no permissions on it so if you 640 00:29:40,519 --> 00:29:43,200 had a password file a shadow file 641 00:29:43,200 --> 00:29:44,559 they're 642 00:29:44,559 --> 00:29:48,600 mine okay um all of these things 643 00:29:48,600 --> 00:29:51,600 typically think of the permissions 644 00:29:51,600 --> 00:29:53,840 whether they have public read write 645 00:29:53,840 --> 00:29:56,120 whether they have usernames passwords 646 00:29:56,120 --> 00:30:00,678 that are guessable they're always being 647 00:30:00,919 --> 00:30:06,200 found um there is a tool called gry hat 648 00:30:06,200 --> 00:30:09,000 Warfare it will go out and find 649 00:30:09,000 --> 00:30:11,240 unprotected buckets and storage units 650 00:30:11,240 --> 00:30:12,159 and so 651 00:30:12,159 --> 00:30:14,120 on 652 00:30:14,120 --> 00:30:17,799 okay checking my time few more minutes 653 00:30:17,799 --> 00:30:19,559 and this is a picture of it this is an 654 00:30:19,559 --> 00:30:22,159 old one from a couple years ago but at 655 00:30:22,159 --> 00:30:23,080 the 656 00:30:23,080 --> 00:30:26,480 time um you can see the number of AWS 657 00:30:26,480 --> 00:30:29,360 buckets number of Azure buckets I mean 658 00:30:29,360 --> 00:30:31,399 everything that was out there that that 659 00:30:31,399 --> 00:30:34,880 had access um think of this as it's 660 00:30:34,880 --> 00:30:38,159 showdown for storage and if you go take 661 00:30:38,159 --> 00:30:41,240 a look at it today um yeah it's it's 662 00:30:41,240 --> 00:30:43,960 insane the number that you will find 663 00:30:43,960 --> 00:30:47,240 that are public asset access buckets 664 00:30:47,240 --> 00:30:50,519 some of them might be encrypted but the 665 00:30:50,519 --> 00:30:53,600 problem is they're exposed so you can 666 00:30:53,600 --> 00:30:55,519 still download them and get access to 667 00:30:55,519 --> 00:30:56,880 them you might have to go through some 668 00:30:56,880 --> 00:31:01,120 decry ition but hey so it's it's an 669 00:31:01,120 --> 00:31:06,080 exercise I am not encouraging you to do 670 00:31:06,120 --> 00:31:10,240 that all right um here's some other 671 00:31:10,240 --> 00:31:13,919 examples these were buckets that had no 672 00:31:13,919 --> 00:31:16,279 access logging 673 00:31:16,279 --> 00:31:20,000 whatsoever um which meant anybody's 674 00:31:20,000 --> 00:31:23,120 checking these out I would have no idea 675 00:31:23,120 --> 00:31:26,799 who's doing what um this was another one 676 00:31:26,799 --> 00:31:29,559 these are snapshots CBS volumes that 677 00:31:29,559 --> 00:31:30,519 were 678 00:31:30,519 --> 00:31:33,200 unencrypted and they were not attached 679 00:31:33,200 --> 00:31:36,760 to any volume or to any instance because 680 00:31:36,760 --> 00:31:38,960 they weren't attached I could go in and 681 00:31:38,960 --> 00:31:41,480 attach them to my instance that I stood 682 00:31:41,480 --> 00:31:43,760 up and suddenly I could read them all 683 00:31:43,760 --> 00:31:45,679 because they were unencrypted these are 684 00:31:45,679 --> 00:31:48,639 database snapshots we have some 685 00:31:48,639 --> 00:31:51,919 more um here are some more where running 686 00:31:51,919 --> 00:31:55,159 through it oops Secrets found in I 687 00:31:55,159 --> 00:31:57,000 covered up the snapshots but these were 688 00:31:57,000 --> 00:31:59,240 all snapshots and there were Secrets 689 00:31:59,240 --> 00:32:01,880 found in them this was running a tool at 690 00:32:01,880 --> 00:32:04,639 the time this is Prowler there's pacu 691 00:32:04,639 --> 00:32:06,679 there's Prower there's net Suite there's 692 00:32:06,679 --> 00:32:09,679 Scout Suite I've got a list coming up um 693 00:32:09,679 --> 00:32:11,120 that you can take a picture of but 694 00:32:11,120 --> 00:32:13,880 there's so many out there um I'm trying 695 00:32:13,880 --> 00:32:16,600 to get the concept across of looking for 696 00:32:16,600 --> 00:32:19,159 this stuff not necessarily promoting any 697 00:32:19,159 --> 00:32:21,840 one tool this is another one it just 698 00:32:21,840 --> 00:32:24,360 goes on and on and on where it just 699 00:32:24,360 --> 00:32:27,559 keeps finding user data in it or it 700 00:32:27,559 --> 00:32:30,679 finds secrets in the user data and it's 701 00:32:30,679 --> 00:32:33,559 finding tokens and all sorts of things 702 00:32:33,559 --> 00:32:36,399 um this is the problem with developers 703 00:32:36,399 --> 00:32:38,840 this is another one where we're looking 704 00:32:38,840 --> 00:32:40,919 at all these user accounts and they're 705 00:32:40,919 --> 00:32:43,679 not rotating their keys they don't have 706 00:32:43,679 --> 00:32:45,399 to change their 707 00:32:45,399 --> 00:32:49,559 password just rotate your stupid Keys 708 00:32:49,559 --> 00:32:52,000 teach them it's not 709 00:32:52,000 --> 00:32:55,039 hard um there were some of these it does 710 00:32:55,039 --> 00:32:57,919 it says in over 90 days several of these 711 00:32:57,919 --> 00:33:01,000 had not been rotated in over a year um 712 00:33:01,000 --> 00:33:02,639 there was one that hadn't been rotated 713 00:33:02,639 --> 00:33:04,600 in 5 714 00:33:04,600 --> 00:33:08,840 years um some other issues you know we 715 00:33:08,840 --> 00:33:12,480 we have instances with no instant role 716 00:33:12,480 --> 00:33:15,559 and that's kind of bad um they weren't 717 00:33:15,559 --> 00:33:18,200 associated with it how could that be so 718 00:33:18,200 --> 00:33:20,559 again this is just developers that 719 00:33:20,559 --> 00:33:22,720 weren't trained once they were trained 720 00:33:22,720 --> 00:33:26,639 all this stuff went away it was amazing 721 00:33:26,639 --> 00:33:29,799 and these are some tools that you will 722 00:33:29,799 --> 00:33:32,760 find useful or I'm sorry these are news 723 00:33:32,760 --> 00:33:35,000 um articles about more data being 724 00:33:35,000 --> 00:33:37,679 exposed I throw it out there but here 725 00:33:37,679 --> 00:33:40,760 was an example because this was pii and 726 00:33:40,760 --> 00:33:44,440 exposed RDS snapshots and lo and behold 727 00:33:44,440 --> 00:33:47,799 all of these Rd snapshots were not being 728 00:33:47,799 --> 00:33:51,399 shared so that was a good thing they all 729 00:33:51,399 --> 00:33:54,200 passed they were not exposed I didn't 730 00:33:54,200 --> 00:33:56,480 show you the ones that weren't there 731 00:33:56,480 --> 00:33:59,080 were a lot of them this was another 732 00:33:59,080 --> 00:34:01,360 example of a misconfiguration it is no 733 00:34:01,360 --> 00:34:03,679 more but this was last year last 734 00:34:03,679 --> 00:34:05,799 November um this is a friend of mine 735 00:34:05,799 --> 00:34:08,239 that found this but on the Mastadon 736 00:34:08,239 --> 00:34:12,560 servers um the S3 buckets were exposed 737 00:34:12,560 --> 00:34:15,960 to Anonymous and anonymous had full 738 00:34:15,960 --> 00:34:20,719 access to all the S3 buckets oops Yeah 739 00:34:20,719 --> 00:34:23,079 little problems got fixed right away 740 00:34:23,079 --> 00:34:27,159 literally within about 48 hours but yeah 741 00:34:27,159 --> 00:34:28,839 when Mastadon was kind of getting 742 00:34:28,839 --> 00:34:31,440 launched and everything all over what 743 00:34:31,440 --> 00:34:34,359 what's this thing called now 744 00:34:34,359 --> 00:34:39,040 X whatever all right here are more tools 745 00:34:39,040 --> 00:34:41,359 we know the concepts of what we want to 746 00:34:41,359 --> 00:34:44,079 start looking for there's a tool called 747 00:34:44,079 --> 00:34:47,159 Cloud enum this is a great tool it is a 748 00:34:47,159 --> 00:34:49,839 great way to go out and enumerate the 749 00:34:49,839 --> 00:34:53,639 public resources in all of your clouds 750 00:34:53,639 --> 00:34:58,240 AWS um gcp Etc these are are great tools 751 00:34:58,240 --> 00:35:01,920 paku one that was just spoken earlier in 752 00:35:01,920 --> 00:35:03,760 the last couple of talks that were going 753 00:35:03,760 --> 00:35:06,280 on another one called Cloud mapper 754 00:35:06,280 --> 00:35:09,119 Prowler is one of my favorite but it's 755 00:35:09,119 --> 00:35:12,160 slowly being replaced by Scout Suite all 756 00:35:12,160 --> 00:35:15,040 of these are great tools the and they're 757 00:35:15,040 --> 00:35:17,160 easy enough to use you just need some 758 00:35:17,160 --> 00:35:20,240 general access to your accounts to do it 759 00:35:20,240 --> 00:35:24,440 the point is start thinking about what 760 00:35:24,440 --> 00:35:25,599 what are we 761 00:35:25,599 --> 00:35:28,800 exposing and and is it something as 762 00:35:28,800 --> 00:35:31,760 simple as do we need to have security 763 00:35:31,760 --> 00:35:34,599 sitting on top of this 24 hours a day 7 764 00:35:34,599 --> 00:35:36,680 days a week using all these tools trying 765 00:35:36,680 --> 00:35:40,200 to find everything or just we do we just 766 00:35:40,200 --> 00:35:42,440 do some orientation with our developers 767 00:35:42,440 --> 00:35:46,400 and give them some best practices so we 768 00:35:46,400 --> 00:35:49,319 reduce the number of instances of all 769 00:35:49,319 --> 00:35:50,319 this 770 00:35:50,319 --> 00:35:53,680 occurrences by making them a part of the 771 00:35:53,680 --> 00:35:56,400 solution I'm so tired of hearing people 772 00:35:56,400 --> 00:35:59,839 say uh training developers to do 773 00:35:59,839 --> 00:36:01,760 security just doesn't 774 00:36:01,760 --> 00:36:05,720 work and I prove them wrong every single 775 00:36:05,720 --> 00:36:08,960 time so here's a couple of more these 776 00:36:08,960 --> 00:36:12,079 are just some suggestions please Harden 777 00:36:12,079 --> 00:36:16,160 things one thing we did at that um auto 778 00:36:16,160 --> 00:36:20,240 car thing company is it was the Wild 779 00:36:20,240 --> 00:36:23,040 West in the beginning when they deployed 780 00:36:23,040 --> 00:36:26,040 instances throughout AWS and the other 781 00:36:26,040 --> 00:36:28,160 Cloud vendor it was just developers 782 00:36:28,160 --> 00:36:30,440 having a grand old time and they were 783 00:36:30,440 --> 00:36:32,160 deploying auntu 784 00:36:32,160 --> 00:36:35,680 14 um and God only knows what else we 785 00:36:35,680 --> 00:36:37,760 went through it took us about 6 months 786 00:36:37,760 --> 00:36:40,359 it was a team of three and we built a 787 00:36:40,359 --> 00:36:44,000 little cicd process where the only kind 788 00:36:44,000 --> 00:36:46,960 of instance you could deploy was a CIS 789 00:36:46,960 --> 00:36:50,319 hardened Benchmark $155,000 for our 790 00:36:50,319 --> 00:36:53,800 company to spend to become CIS members 791 00:36:53,800 --> 00:36:56,720 and get access to the automation tools 792 00:36:56,720 --> 00:37:00,119 best 15 grand we ever spent because 793 00:37:00,119 --> 00:37:02,000 everything we deployed from that point 794 00:37:02,000 --> 00:37:04,960 on was hardened and we were like we 795 00:37:04,960 --> 00:37:07,200 could sleep at night it was 796 00:37:07,200 --> 00:37:10,520 amazing um so even if you don't do it 797 00:37:10,520 --> 00:37:13,599 with the automation look into figuring 798 00:37:13,599 --> 00:37:16,760 out how to maybe apply some of the CIS 799 00:37:16,760 --> 00:37:18,680 benchmarks and so 800 00:37:18,680 --> 00:37:22,920 on so let's do better train developers 801 00:37:22,920 --> 00:37:26,800 with security controls in mind it is not 802 00:37:26,800 --> 00:37:29,760 hard thing to do and I guarantee the ROI 803 00:37:29,760 --> 00:37:32,359 on that will eliminate 804 00:37:32,359 --> 00:37:34,880 misconfigurations in in so many ways 805 00:37:34,880 --> 00:37:37,720 you'll get it down to more of a oh I 806 00:37:37,720 --> 00:37:40,040 made a mistake versus wait this is the 807 00:37:40,040 --> 00:37:41,800 way we've been doing it all the time 808 00:37:41,800 --> 00:37:45,040 coming out of the 300 developers over 809 00:37:45,040 --> 00:37:47,400 here and then training with Secrets 810 00:37:47,400 --> 00:37:49,800 management that's the other thing teach 811 00:37:49,800 --> 00:37:52,920 them about Key Management systems and 812 00:37:52,920 --> 00:37:55,200 the fact that putting keys on your 813 00:37:55,200 --> 00:37:58,040 laptop is not not a good thing 814 00:37:58,040 --> 00:38:01,200 especially if you're working 815 00:38:02,079 --> 00:38:04,680 remotely and finally here are your key 816 00:38:04,680 --> 00:38:07,560 takeaways common sense for the win 817 00:38:07,560 --> 00:38:11,200 please stop and think cloud security 818 00:38:11,200 --> 00:38:14,720 everybody wants to make it magic it 819 00:38:14,720 --> 00:38:18,000 doesn't have to be go back to the basics 820 00:38:18,000 --> 00:38:21,119 if we do proper Key Management if we do 821 00:38:21,119 --> 00:38:24,359 proper best practices oh don't put 822 00:38:24,359 --> 00:38:26,640 credentials in configuration files and 823 00:38:26,640 --> 00:38:30,160 source code and leave keys lying around 824 00:38:30,160 --> 00:38:33,560 in unprotected folders and so on so stop 825 00:38:33,560 --> 00:38:36,720 overthinking it you know go back to the 826 00:38:36,720 --> 00:38:39,520 basics and then stop the fancy don't 827 00:38:39,520 --> 00:38:42,680 fancy stuff doesn't solve this audit 828 00:38:42,680 --> 00:38:45,280 everything those tools back on that 829 00:38:45,280 --> 00:38:48,160 other slide those are audit tools and 830 00:38:48,160 --> 00:38:51,440 use Os or Cloud query Cloud query get 831 00:38:51,440 --> 00:38:54,400 that in place secure the environment and 832 00:38:54,400 --> 00:38:57,319 security awareness obviously monitor 833 00:38:57,319 --> 00:39:00,480 everything um apply security everything 834 00:39:00,480 --> 00:39:03,119 automate CIS if you 835 00:39:03,119 --> 00:39:05,440 can and then encrypt the data and 836 00:39:05,440 --> 00:39:07,400 Transit and it rest prepare for 837 00:39:07,400 --> 00:39:12,119 incidents yes yes we know um and 838 00:39:12,119 --> 00:39:14,560 practice what the pad actors do I always 839 00:39:14,560 --> 00:39:16,599 throw this in here if you've never heard 840 00:39:16,599 --> 00:39:19,720 of cloud goat Cloud goat is a way to go 841 00:39:19,720 --> 00:39:22,680 test and play around with insecure 842 00:39:22,680 --> 00:39:26,440 configurations and see what happens when 843 00:39:26,440 --> 00:39:29,079 you've got an insecure configuration go 844 00:39:29,079 --> 00:39:30,960 take a look at it if you played with web 845 00:39:30,960 --> 00:39:34,640 goat very similar Cloud goat is similar 846 00:39:34,640 --> 00:39:37,640 okay that brings us yeah there we are um 847 00:39:37,640 --> 00:39:39,480 did I did I I went over by a couple 848 00:39:39,480 --> 00:39:42,839 minutes sorry um anyway that brings us 849 00:39:42,839 --> 00:39:44,880 to this this is my contact info you can 850 00:39:44,880 --> 00:39:47,400 find me coming soon that URL actually is 851 00:39:47,400 --> 00:39:49,359 going to be my YouTube channel which is 852 00:39:49,359 --> 00:39:53,440 called rainbow cat and tequila