1 00:00:00,080 --> 00:00:01,920 this talk so so we're on the last Talk 2 00:00:01,920 --> 00:00:04,120 of the day thank you all for being here 3 00:00:04,120 --> 00:00:05,690 how uh how's everyone's Defcon 4 00:00:05,690 --> 00:00:08,849 [Music] 5 00:00:08,880 --> 00:00:12,000 going mine too this has been great uh 6 00:00:12,000 --> 00:00:14,400 and we haven't had any hiccups yet so 7 00:00:14,400 --> 00:00:16,239 don't mess it up guys all 8 00:00:16,239 --> 00:00:19,359 right no I'm just kidding um okay it's a 9 00:00:19,359 --> 00:00:21,960 live demo Mike well did you make an 10 00:00:21,960 --> 00:00:24,119 offering to the demo Gods yes okay good 11 00:00:24,119 --> 00:00:26,400 good good good all right let's get 12 00:00:26,400 --> 00:00:27,880 started so our next speakers here 13 00:00:27,880 --> 00:00:29,279 they're no strangers to the cloud 14 00:00:29,279 --> 00:00:31,840 Village we've got Noom danan and igal 15 00:00:31,840 --> 00:00:34,520 Gman Noom is a senior security 16 00:00:34,520 --> 00:00:36,480 researcher at edic and has previously 17 00:00:36,480 --> 00:00:38,840 spoken at black hat Defcon and I think 18 00:00:38,840 --> 00:00:41,200 most recently at Ford cloudsac yeah 19 00:00:41,200 --> 00:00:42,960 that's that's a fun little spot over 20 00:00:42,960 --> 00:00:45,320 there and eal Goffman is head of 21 00:00:45,320 --> 00:00:47,640 security research at heric and has also 22 00:00:47,640 --> 00:00:49,239 spoken at various conferences including 23 00:00:49,239 --> 00:00:51,640 black hat and devcom so this talk 24 00:00:51,640 --> 00:00:53,960 they're going to introduce uh us all to 25 00:00:53,960 --> 00:00:56,399 scap goat it's a CLI tool designed to 26 00:00:56,399 --> 00:00:58,559 deploy intent intentionally vulnerable 27 00:00:58,559 --> 00:01:00,519 by Design Cloud infrastructure 28 00:01:00,519 --> 00:01:02,680 providing a useful playground for def 29 00:01:02,680 --> 00:01:04,119 Defenders to test their protective 30 00:01:04,119 --> 00:01:05,760 strategies and for offensive 31 00:01:05,760 --> 00:01:07,880 professionals to refine their skills 32 00:01:07,880 --> 00:01:11,000 please give a warm welcome to 33 00:01:14,880 --> 00:01:18,960 no hi everyone uh so we're here for scap 34 00:01:18,960 --> 00:01:21,079 go and uh Mike just had to deal with the 35 00:01:21,079 --> 00:01:22,720 m mouthful but I'll read it again it's 36 00:01:22,720 --> 00:01:25,159 an open source tool to deploy multicloud 37 00:01:25,159 --> 00:01:28,040 vulnerable by Design Cloud components 38 00:01:28,040 --> 00:01:30,720 basically you have a lot of bad stuff 39 00:01:30,720 --> 00:01:33,000 that you want to monitor for uh uh 40 00:01:33,000 --> 00:01:36,159 prevent remediate alert detect so you 41 00:01:36,159 --> 00:01:38,799 need a way to provision that so that you 42 00:01:38,799 --> 00:01:43,439 know where your posture is uh who are we 43 00:01:43,439 --> 00:01:45,880 very shortly uh so yeah we've just been 44 00:01:45,880 --> 00:01:49,719 introduced so I think we can skip ahead 45 00:01:49,960 --> 00:01:53,040 okay uh oh sorry I forgot that this 46 00:01:53,040 --> 00:01:55,240 doesn't do what I wanted to okay so 47 00:01:55,240 --> 00:01:57,039 cenap go is 48 00:01:57,039 --> 00:01:59,840 uh so cenap goat is open source or 49 00:01:59,840 --> 00:02:01,880 wouldn't be here its modular Provisions 50 00:02:01,880 --> 00:02:04,799 vulnerable by Design uh Cloud components 51 00:02:04,799 --> 00:02:06,680 and what it does differently than a lot 52 00:02:06,680 --> 00:02:08,598 of really great projects out there which 53 00:02:08,598 --> 00:02:11,440 we wholeheartedly support have a little 54 00:02:11,440 --> 00:02:15,560 feedback back back actually all right uh 55 00:02:15,560 --> 00:02:17,680 then a lot of other Pro projects which 56 00:02:17,680 --> 00:02:20,959 we wholeheartedly support like uh Cloud 57 00:02:20,959 --> 00:02:24,319 Go cube go Cloud foxable uh Stratus red 58 00:02:24,319 --> 00:02:27,519 team is that we have gone uh with very 59 00:02:27,519 --> 00:02:29,599 Atomic scenarios so we're looking for 60 00:02:29,599 --> 00:02:31,599 the modules to be able to test that like 61 00:02:31,599 --> 00:02:34,440 kind of security Primitives of scap I'm 62 00:02:34,440 --> 00:02:35,680 just going to be talking about what like 63 00:02:35,680 --> 00:02:40,680 scap is in a second and also um more uh 64 00:02:40,680 --> 00:02:43,840 posture based than events based so there 65 00:02:43,840 --> 00:02:46,040 are other tooling out there uh der 66 00:02:46,040 --> 00:02:49,360 presented uh here by cat Stratus which 67 00:02:49,360 --> 00:02:50,440 are really good for events-based 68 00:02:50,440 --> 00:02:52,840 detection but a lot of what people do in 69 00:02:52,840 --> 00:02:55,040 Cloud security is actually look for 70 00:02:55,040 --> 00:02:56,840 posture actually look for something like 71 00:02:56,840 --> 00:02:59,400 a public bucket being created or more uh 72 00:02:59,400 --> 00:03:03,120 complic at uh setups so to set up all 73 00:03:03,120 --> 00:03:05,040 you need is an account with your cloud 74 00:03:05,040 --> 00:03:07,080 provider of choice we do recommend a 75 00:03:07,080 --> 00:03:09,280 separate sandbox because as it says in 76 00:03:09,280 --> 00:03:11,120 the title you're going to be 77 00:03:11,120 --> 00:03:13,239 provisioning vulnerable components we've 78 00:03:13,239 --> 00:03:14,680 tried to walk the tight rope of making 79 00:03:14,680 --> 00:03:16,920 it them vulnerable enough to be detected 80 00:03:16,920 --> 00:03:18,720 but not so vulnerable that you 81 00:03:18,720 --> 00:03:22,120 immediately get pawned uh but still you 82 00:03:22,120 --> 00:03:23,920 know tread with tread lightly these are 83 00:03:23,920 --> 00:03:25,799 vulnerable components so put them in a 84 00:03:25,799 --> 00:03:27,200 separate sandbox and it's an easy 85 00:03:27,200 --> 00:03:29,239 install what what what are we expecting 86 00:03:29,239 --> 00:03:31,720 people them for so Security 87 00:03:31,720 --> 00:03:33,959 Professionals can use them to test their 88 00:03:33,959 --> 00:03:37,120 teams procedures protocols so let's say 89 00:03:37,120 --> 00:03:40,200 you installed or or set up a security 90 00:03:40,200 --> 00:03:41,640 plan like we're not going to be talking 91 00:03:41,640 --> 00:03:43,400 about anybody that charges money so you 92 00:03:43,400 --> 00:03:45,599 set up Cloud custodian right it's an 93 00:03:45,599 --> 00:03:47,879 open source framework or you set up AWS 94 00:03:47,879 --> 00:03:50,360 config you set up Azure your Microsoft 95 00:03:50,360 --> 00:03:52,879 Defender and now it says everything's 96 00:03:52,879 --> 00:03:55,319 clean but what you don't know is what if 97 00:03:55,319 --> 00:03:58,560 something wasn't clean what it is are 98 00:03:58,560 --> 00:04:01,560 the things being detected so you can set 99 00:04:01,560 --> 00:04:03,400 up the sort of things you're worried 100 00:04:03,400 --> 00:04:06,640 about out of the uh very expansive list 101 00:04:06,640 --> 00:04:08,400 of things that well as Security 102 00:04:08,400 --> 00:04:10,280 Professionals we should be worried about 103 00:04:10,280 --> 00:04:12,720 and see that they're indeed detected uh 104 00:04:12,720 --> 00:04:14,439 instructors can use them to create 105 00:04:14,439 --> 00:04:16,358 Hands-On workshops that's actually one 106 00:04:16,358 --> 00:04:19,519 of our primary internal use cases as 107 00:04:19,519 --> 00:04:21,519 some of you may know AWS have a pretty 108 00:04:21,519 --> 00:04:23,080 great tool for it but they keep it 109 00:04:23,080 --> 00:04:25,720 completely internal uh so uh uh 110 00:04:25,720 --> 00:04:27,240 everybody needs to set up their own if 111 00:04:27,240 --> 00:04:29,039 you're someone doing instructions 112 00:04:29,039 --> 00:04:31,039 education trainings for your team for 113 00:04:31,039 --> 00:04:32,680 your customers for your partners for 114 00:04:32,680 --> 00:04:35,120 whoever and pentesters can provision a 115 00:04:35,120 --> 00:04:37,320 shooting range to test their skills and 116 00:04:37,320 --> 00:04:39,560 also their tooling right if I set up 117 00:04:39,560 --> 00:04:41,360 something that's supposed to hack a 118 00:04:41,360 --> 00:04:42,919 container with log for Shell I need to 119 00:04:42,919 --> 00:04:44,720 be able to set up and tear down quickly 120 00:04:44,720 --> 00:04:47,960 and expose container with log for Shell 121 00:04:47,960 --> 00:04:50,440 uh so the modules modules are the 122 00:04:50,440 --> 00:04:52,720 categories of risks that we are working 123 00:04:52,720 --> 00:04:56,280 with so C so all of these fall under the 124 00:04:56,280 --> 00:04:58,840 broad defin definition of scap which for 125 00:04:58,840 --> 00:05:00,759 those of you who are fortunately out of 126 00:05:00,759 --> 00:05:03,240 the Gartner sphere I will explain 127 00:05:03,240 --> 00:05:06,199 briefly cnap is cloud native application 128 00:05:06,199 --> 00:05:08,560 protection platform and all it means is 129 00:05:08,560 --> 00:05:10,919 basically what all the cloud security 130 00:05:10,919 --> 00:05:15,800 tooling uh uh uh uh does uh so and and 131 00:05:15,800 --> 00:05:17,600 and that divides into a couple of 132 00:05:17,600 --> 00:05:19,240 primary categories the one the ones 133 00:05:19,240 --> 00:05:20,919 we're supporting at launch because we 134 00:05:20,919 --> 00:05:23,759 just launched a week and a half ago are 135 00:05:23,759 --> 00:05:27,000 cim or Keem which is uh identities and 136 00:05:27,000 --> 00:05:30,479 entitlements cwpp workload protection 137 00:05:30,479 --> 00:05:32,280 that's all of your workloads 138 00:05:32,280 --> 00:05:34,520 vulnerabilities out ofd operating 139 00:05:34,520 --> 00:05:36,919 systems vulnerable containers and see 140 00:05:36,919 --> 00:05:39,120 SPM those are all your post security 141 00:05:39,120 --> 00:05:41,600 posture risks your exposed buckets your 142 00:05:41,600 --> 00:05:44,360 misconfigured Cloud Trails all of those 143 00:05:44,360 --> 00:05:47,240 uh we will also look to support the 144 00:05:47,240 --> 00:05:49,120 other components that make up or don't 145 00:05:49,120 --> 00:05:52,080 make up scap like infrastructure's code 146 00:05:52,080 --> 00:05:54,319 or kubernetes security but there the 147 00:05:54,319 --> 00:05:57,160 challenge is kind of how to incorporate 148 00:05:57,160 --> 00:05:59,000 it without redoing the work of some 149 00:05:59,000 --> 00:06:01,479 really great existing projects like Tero 150 00:06:01,479 --> 00:06:04,400 and Cub go while still providing this 151 00:06:04,400 --> 00:06:07,280 easy CLI you don't need to be a devops 152 00:06:07,280 --> 00:06:10,360 you don't need to know terraform or pumi 153 00:06:10,360 --> 00:06:12,280 uh uh to build it you only need to know 154 00:06:12,280 --> 00:06:14,800 how to run a CLI command so scap go is 155 00:06:14,800 --> 00:06:17,120 built with pumi uh palumi is an open 156 00:06:17,120 --> 00:06:19,160 source infrastructure code tool which 157 00:06:19,160 --> 00:06:21,160 was as of a week ago was a non-unique 158 00:06:21,160 --> 00:06:24,080 statement uh and you build by writing 159 00:06:24,080 --> 00:06:26,720 code in whatever programming language 160 00:06:26,720 --> 00:06:30,560 you prefer so that's go no Js python any 161 00:06:30,560 --> 00:06:33,319 net language any like nodejs in the tree 162 00:06:33,319 --> 00:06:38,520 language jav Java yaml and uh and uh 163 00:06:38,520 --> 00:06:40,280 basically the way the tool works is that 164 00:06:40,280 --> 00:06:42,520 we have the scap go Engine with its own 165 00:06:42,520 --> 00:06:44,520 State Management and with its own like 166 00:06:44,520 --> 00:06:46,440 uh things taken care of you that goes to 167 00:06:46,440 --> 00:06:48,880 the palumi automation API and that goes 168 00:06:48,880 --> 00:06:52,160 to the palumi CLI core so what are we 169 00:06:52,160 --> 00:06:53,440 going to do today we're going to check 170 00:06:53,440 --> 00:06:54,759 out some scenarios we're going to look 171 00:06:54,759 --> 00:06:56,560 at the list of scenarios and what's on 172 00:06:56,560 --> 00:06:58,199 the docket what's available we're going 173 00:06:58,199 --> 00:07:00,080 to see a description of one scenario 174 00:07:00,080 --> 00:07:01,879 with the describ command we're going to 175 00:07:01,879 --> 00:07:04,160 provision and destroy a scenario then 176 00:07:04,160 --> 00:07:05,560 we're going to provision a whole bunch 177 00:07:05,560 --> 00:07:08,120 of them and what and see whether than 178 00:07:08,120 --> 00:07:10,520 they're being detected by the native 179 00:07:10,520 --> 00:07:14,000 detections in AWS in this case uh 180 00:07:14,000 --> 00:07:15,720 otherwise we can like chat about a whole 181 00:07:15,720 --> 00:07:17,240 bunch of things and we will have time 182 00:07:17,240 --> 00:07:19,199 for questions and before we move on to 183 00:07:19,199 --> 00:07:21,360 the exciting part of the live demo does 184 00:07:21,360 --> 00:07:25,599 anybody have a question up until 185 00:07:25,599 --> 00:07:28,400 now okay so hopefully we're clear enough 186 00:07:28,400 --> 00:07:31,240 and now we we move into you know the 187 00:07:31,240 --> 00:07:32,800 dark mode screen and 188 00:07:32,800 --> 00:07:34,720 everybody's a little a little more 189 00:07:34,720 --> 00:07:35,800 excited 190 00:07:35,800 --> 00:07:38,440 hopefully so first thing we do with anyi 191 00:07:38,440 --> 00:07:40,800 tool is Type in help right so we type SC 192 00:07:40,800 --> 00:07:43,560 go help and we see the commands down 193 00:07:43,560 --> 00:07:47,319 there we have a clean describe destroy 194 00:07:47,319 --> 00:07:49,159 list provision all these should be 195 00:07:49,159 --> 00:07:50,919 self-explanatory they either tell you 196 00:07:50,919 --> 00:07:52,960 about commands or they tear them up and 197 00:07:52,960 --> 00:07:55,039 build them up and tear them down uh the 198 00:07:55,039 --> 00:07:56,520 first thing we're going to do is 199 00:07:56,520 --> 00:08:00,120 demonstrate a Lambda with public secrets 200 00:08:00,120 --> 00:08:02,639 so lambas y all know several functions 201 00:08:02,639 --> 00:08:04,440 and often times they need to access 202 00:08:04,440 --> 00:08:06,240 things which aren't like Cloud native 203 00:08:06,240 --> 00:08:08,120 like they're not accessing a Dynamo DB 204 00:08:08,120 --> 00:08:09,879 they're accessing like an elastic search 205 00:08:09,879 --> 00:08:11,840 cluster that you have to access 206 00:08:11,840 --> 00:08:14,720 network-wise so the devs need to put 207 00:08:14,720 --> 00:08:17,039 creds on there now the AWS like 208 00:08:17,039 --> 00:08:19,159 documentation correct recommended way to 209 00:08:19,159 --> 00:08:21,280 do it is you give the Lambda a role 210 00:08:21,280 --> 00:08:23,840 right and the role has Secrets manager 211 00:08:23,840 --> 00:08:25,720 permissions and in Secrets manager you 212 00:08:25,720 --> 00:08:28,159 store the secret for the credentials and 213 00:08:28,159 --> 00:08:30,280 then you use the credential to access 214 00:08:30,280 --> 00:08:32,360 but that sounds hard and developers want 215 00:08:32,360 --> 00:08:35,599 to be happy so often times they put the 216 00:08:35,599 --> 00:08:38,159 credentials in the environment variables 217 00:08:38,159 --> 00:08:40,080 that way they're not hardcoded which we 218 00:08:40,080 --> 00:08:42,760 know is bad uh but they're just 219 00:08:42,760 --> 00:08:44,720 hardcoded in metadata which is quite 220 00:08:44,720 --> 00:08:46,720 readily accessible to some very very low 221 00:08:46,720 --> 00:08:48,480 permission users in your work and 222 00:08:48,480 --> 00:08:50,040 sometimes publicly right because they 223 00:08:50,040 --> 00:08:51,160 want to expose the Lambda for 224 00:08:51,160 --> 00:08:53,080 invocations it's like what's the harm in 225 00:08:53,080 --> 00:08:55,320 this exposing describe you know what's 226 00:08:55,320 --> 00:08:57,880 the harm in exposing again uh so here 227 00:08:57,880 --> 00:08:59,360 you have a description that's basically 228 00:08:59,360 --> 00:09:01,680 what I told you right now uh and now 229 00:09:01,680 --> 00:09:04,040 we're going to set it up uh so all we 230 00:09:04,040 --> 00:09:07,800 did was uh type in uh where is it uh y 231 00:09:07,800 --> 00:09:11,560 scap go provision uh and what you're 232 00:09:11,560 --> 00:09:13,720 seeing for the output there if we scroll 233 00:09:13,720 --> 00:09:16,120 down is just the palumi output for it I 234 00:09:16,120 --> 00:09:19,320 will warn that uh uh palumi and this is 235 00:09:19,320 --> 00:09:22,640 a feature uh loads plugins ad hoc so the 236 00:09:22,640 --> 00:09:24,560 first time you run it if your internet 237 00:09:24,560 --> 00:09:26,800 connection is not that great like in 238 00:09:26,800 --> 00:09:29,600 some of our homes uh then it's going to 239 00:09:29,600 --> 00:09:31,040 take a little while because it's 240 00:09:31,040 --> 00:09:33,160 downloading a whole another plugin now 241 00:09:33,160 --> 00:09:36,040 that it's set up uh we just typed in AWS 242 00:09:36,040 --> 00:09:38,079 Lambda list functions just the AWS 243 00:09:38,079 --> 00:09:40,399 command not the scup go Command right 244 00:09:40,399 --> 00:09:43,079 and we see the secret right here and 245 00:09:43,079 --> 00:09:45,200 like this is like very Bal secret one in 246 00:09:45,200 --> 00:09:47,120 secret too but in real life it's going 247 00:09:47,120 --> 00:09:49,120 to be like your elastic search creds uh 248 00:09:49,120 --> 00:09:51,839 for for maybe your production cluster so 249 00:09:51,839 --> 00:09:53,200 it's an important thing to float a 250 00:09:53,200 --> 00:09:55,839 detection for and it's a good way to see 251 00:09:55,839 --> 00:09:57,279 is this something that the people 252 00:09:57,279 --> 00:09:59,200 watching security Hub or watching the 253 00:09:59,200 --> 00:10:00,880 security product that I'm buying even 254 00:10:00,880 --> 00:10:02,720 paying attention to is it something I'm 255 00:10:02,720 --> 00:10:04,519 getting an alert from from like Azure 256 00:10:04,519 --> 00:10:06,399 defender or whatever I'm using or my 257 00:10:06,399 --> 00:10:08,480 organizational policy am I actually 258 00:10:08,480 --> 00:10:11,760 preventing it so yeah so the next thing 259 00:10:11,760 --> 00:10:14,079 we're going to do is just list the 260 00:10:14,079 --> 00:10:16,279 scenarios with the module flag so the 261 00:10:16,279 --> 00:10:18,560 module is cwpp that's workload 262 00:10:18,560 --> 00:10:20,440 protection and what do we see here all 263 00:10:20,440 --> 00:10:21,920 the vulnerable stuff and all the 264 00:10:21,920 --> 00:10:24,680 malicious stuff and some end of life and 265 00:10:24,680 --> 00:10:26,959 what we're going to do is provision uh 266 00:10:26,959 --> 00:10:31,360 is essentially push two ECR a uh 267 00:10:31,360 --> 00:10:33,040 vulnerable uh oh we're going to 268 00:10:33,040 --> 00:10:35,680 provision a bunch of scenarios so first 269 00:10:35,680 --> 00:10:37,040 thing we're going to do is uh we're 270 00:10:37,040 --> 00:10:40,079 going to provision an ec2 with imds V1 271 00:10:40,079 --> 00:10:42,320 enabled it's not an imds lecture but 272 00:10:42,320 --> 00:10:43,560 imds is 273 00:10:43,560 --> 00:10:47,200 essentially uh how uh instances and not 274 00:10:47,200 --> 00:10:49,120 only instances get their Cloud 275 00:10:49,120 --> 00:10:51,320 credentials actually into the SDK and 276 00:10:51,320 --> 00:10:53,680 working in the code and all you need to 277 00:10:53,680 --> 00:10:56,639 know for this part is that V1 is bad and 278 00:10:56,639 --> 00:10:59,800 insecure and got some got a bank 279 00:10:59,800 --> 00:11:03,639 breached uh and and V2 is more secure uh 280 00:11:03,639 --> 00:11:05,680 significantly we're also provisioning a 281 00:11:05,680 --> 00:11:08,560 public bucket with Secrets ooh and we're 282 00:11:08,560 --> 00:11:10,399 provisioning a vulnerable container of 283 00:11:10,399 --> 00:11:14,200 redis uh uh to ECR so in this point if 284 00:11:14,200 --> 00:11:15,480 you're asking yourself what's more 285 00:11:15,480 --> 00:11:17,120 exposure for this scenario we're only 286 00:11:17,120 --> 00:11:19,399 pushing it to ECR still a bad idea to 287 00:11:19,399 --> 00:11:21,399 have a vulnerable container in your ECR 288 00:11:21,399 --> 00:11:23,839 because someone might use it but you 289 00:11:23,839 --> 00:11:26,120 know it's just on ECR it's not deployed 290 00:11:26,120 --> 00:11:28,639 uh to the world and now it's asking us 291 00:11:28,639 --> 00:11:30,240 because it's a whole bunch of scenarios 292 00:11:30,240 --> 00:11:32,320 you have a little prompt here and it's 293 00:11:32,320 --> 00:11:34,800 going to uh provision them so where 294 00:11:34,800 --> 00:11:39,959 would we expect to to see uh to see the 295 00:11:39,959 --> 00:11:41,560 findings for those things and before 296 00:11:41,560 --> 00:11:43,040 that if anybody has a question feel free 297 00:11:43,040 --> 00:11:47,839 to like okay got a question yeah can you 298 00:11:47,839 --> 00:11:49,959 does the configuration support putting 299 00:11:49,959 --> 00:11:53,519 like access controls with like IP do 300 00:11:53,519 --> 00:11:55,360 that go you have a command switch to put 301 00:11:55,360 --> 00:11:57,480 your own IP so can while you're doing 302 00:11:57,480 --> 00:12:01,959 testing so right now the oh yeah the the 303 00:12:01,959 --> 00:12:03,519 question thanks the question is whether 304 00:12:03,519 --> 00:12:06,160 we have a control to put your own IP to 305 00:12:06,160 --> 00:12:08,839 plug it in right now the way to do that 306 00:12:08,839 --> 00:12:13,600 is to edit the scenario and put it in uh 307 00:12:13,600 --> 00:12:17,680 uh we it's a good idea to build that in 308 00:12:17,680 --> 00:12:19,560 as a configuration to the scenario 309 00:12:19,560 --> 00:12:21,639 because what we've done essentially is 310 00:12:21,639 --> 00:12:24,880 that in the configuration uh uh files 311 00:12:24,880 --> 00:12:26,760 you you can edit the configuration files 312 00:12:26,760 --> 00:12:28,399 and cnap go tunnels that through the 313 00:12:28,399 --> 00:12:30,680 palumi auto API into palumi itself and 314 00:12:30,680 --> 00:12:32,639 then that gets set up as a configuration 315 00:12:32,639 --> 00:12:34,720 in the scenario so if someone else 316 00:12:34,720 --> 00:12:36,320 doesn't write that poll request I may 317 00:12:36,320 --> 00:12:38,560 write it uh but right now if you wanted 318 00:12:38,560 --> 00:12:40,920 to do this tomorrow uh your scenarios 319 00:12:40,920 --> 00:12:42,480 are entirely accessible to you they're 320 00:12:42,480 --> 00:12:44,440 under home. scap goe and you can just 321 00:12:44,440 --> 00:12:47,000 edit them they're just vanilla palumi uh 322 00:12:47,000 --> 00:12:49,920 uh you can just uh uh use them however 323 00:12:49,920 --> 00:12:52,399 you want yep that's just palumi we like 324 00:12:52,399 --> 00:12:54,079 palumi it's pretty convenient if you 325 00:12:54,079 --> 00:12:55,639 think you know terraform and don't know 326 00:12:55,639 --> 00:12:59,720 palumi it's not a hard switch uh also 327 00:12:59,720 --> 00:13:03,120 like uh you know some some AI tooling is 328 00:13:03,120 --> 00:13:05,320 decent enough with building palumi if 329 00:13:05,320 --> 00:13:07,000 you're really careful about updating all 330 00:13:07,000 --> 00:13:10,320 the versioning from 2021 uh so now we 331 00:13:10,320 --> 00:13:12,120 have all of them deployed so where do we 332 00:13:12,120 --> 00:13:15,279 expect to see all of this so for uh our 333 00:13:15,279 --> 00:13:17,880 redus we go to ECR and we see that the 334 00:13:17,880 --> 00:13:21,440 repo has indeed been provisioned and we 335 00:13:21,440 --> 00:13:25,160 go on it and we look at it and we scroll 336 00:13:25,160 --> 00:13:26,880 down to see findings let's see if we 337 00:13:26,880 --> 00:13:29,920 have some findings and we have some 338 00:13:29,920 --> 00:13:33,240 uh so so this is like good news on the 339 00:13:33,240 --> 00:13:35,360 technical sense you are using in this 340 00:13:35,360 --> 00:13:37,920 case we're using right paying for 341 00:13:37,920 --> 00:13:39,839 inspector 2 they told us they were able 342 00:13:39,839 --> 00:13:41,800 to find vulnerable containers we pushed 343 00:13:41,800 --> 00:13:43,480 a vulnerable container they were able to 344 00:13:43,480 --> 00:13:45,360 find it of course if you're doing a test 345 00:13:45,360 --> 00:13:47,880 for a team that's part one part two is 346 00:13:47,880 --> 00:13:50,920 did anyone care did we respond to this 347 00:13:50,920 --> 00:13:52,839 was this like flagged as a false 348 00:13:52,839 --> 00:13:56,880 positive or or anything like that uh the 349 00:13:56,880 --> 00:13:58,880 next thing is the bucket and indeed we 350 00:13:58,880 --> 00:14:01,240 can see the bucket is public uh that's 351 00:14:01,240 --> 00:14:03,399 also an access analyzer finding you can 352 00:14:03,399 --> 00:14:05,079 see it there you can see it in security 353 00:14:05,079 --> 00:14:07,079 Hub though the like you know jbls 354 00:14:07,079 --> 00:14:10,519 pushing stuff from the front part back 355 00:14:10,519 --> 00:14:12,279 into security Hub sometimes run a little 356 00:14:12,279 --> 00:14:15,240 slow so for the demo we'll stick to to 357 00:14:15,240 --> 00:14:16,800 seeing that it's actually a public 358 00:14:16,800 --> 00:14:20,279 bucket and for imds V1 I think we would 359 00:14:20,279 --> 00:14:22,920 see that in config but uh there we would 360 00:14:22,920 --> 00:14:24,440 really experience you know the the 361 00:14:24,440 --> 00:14:27,519 config experience of this is an empty 362 00:14:27,519 --> 00:14:29,320 account and if I 363 00:14:29,320 --> 00:14:31,920 set like took you to the config screen 364 00:14:31,920 --> 00:14:33,920 right now it would have like 35 findings 365 00:14:33,920 --> 00:14:35,560 and the one we just set up would only be 366 00:14:35,560 --> 00:14:39,199 one of them uh and now we just destroy 367 00:14:39,199 --> 00:14:40,880 everything in case anyone in the 368 00:14:40,880 --> 00:14:43,199 audience got some you know fun 369 00:14:43,199 --> 00:14:46,079 ideas uh we destroy it and uh and 370 00:14:46,079 --> 00:14:48,560 everything does get immediately deleted 371 00:14:48,560 --> 00:14:51,279 by pumi pumi does save the state files 372 00:14:51,279 --> 00:14:52,800 unless you use the clean command so when 373 00:14:52,800 --> 00:14:54,920 you set them up again they'll have the 374 00:14:54,920 --> 00:14:57,480 same names the same post fixes like to 375 00:14:57,480 --> 00:14:59,680 the best of palumi capabil right an ec2 376 00:14:59,680 --> 00:15:01,160 instance is going to have a different 377 00:15:01,160 --> 00:15:05,120 name but a bucket they're is uh so 378 00:15:05,120 --> 00:15:06,399 bucket you can't build under the same 379 00:15:06,399 --> 00:15:07,759 name whatever you can build under the 380 00:15:07,759 --> 00:15:10,880 same name will build under the same name 381 00:15:10,880 --> 00:15:12,160 and 382 00:15:12,160 --> 00:15:16,240 uh and uh once it gets destroyed with 383 00:15:16,240 --> 00:15:18,160 that uh concludes the demo element then 384 00:15:18,160 --> 00:15:20,959 we can chat about how to add scenarios 385 00:15:20,959 --> 00:15:23,600 and how to and and where the road map 386 00:15:23,600 --> 00:15:28,279 takes us uh but as you can see it's all 387 00:15:28,279 --> 00:15:30,319 pretty easy it's all accessible to 388 00:15:30,319 --> 00:15:32,199 people in the team who don't have to 389 00:15:32,199 --> 00:15:33,880 know palumi who don't have to know 390 00:15:33,880 --> 00:15:36,720 terraform uh the one person leading the 391 00:15:36,720 --> 00:15:39,720 charge here should probably read the 392 00:15:39,720 --> 00:15:41,959 open source publicly available scenarios 393 00:15:41,959 --> 00:15:43,600 and the descriptions and understand 394 00:15:43,600 --> 00:15:45,680 exactly what's being deployed but to use 395 00:15:45,680 --> 00:15:48,160 it actually is a very simple streamlined 396 00:15:48,160 --> 00:15:49,720 process that's how we want to keep it 397 00:15:49,720 --> 00:15:51,399 like pretty opinionated and and 398 00:15:51,399 --> 00:15:53,680 something that you can deploy with 399 00:15:53,680 --> 00:15:57,240 simple CLI tooling we are on two repos 400 00:15:57,240 --> 00:15:58,880 right we want to keep them separate scap 401 00:15:58,880 --> 00:16:00,720 go is the engine repo and this is the 402 00:16:00,720 --> 00:16:02,839 scenarios repository right now 403 00:16:02,839 --> 00:16:05,240 everything that we written was in go 404 00:16:05,240 --> 00:16:07,279 because we like go but the crossplatform 405 00:16:07,279 --> 00:16:10,639 support is out of the box here so you 406 00:16:10,639 --> 00:16:12,079 can just write a scenario in your 407 00:16:12,079 --> 00:16:14,199 preferred language uh like if if you 408 00:16:14,199 --> 00:16:17,360 like doet you can just write one in net 409 00:16:17,360 --> 00:16:20,480 uh you can write one in yo uh that's 410 00:16:20,480 --> 00:16:22,000 also a supported language you don't 411 00:16:22,000 --> 00:16:24,319 really have to uh do a programming 412 00:16:24,319 --> 00:16:28,199 language uh and uh and if uh you like it 413 00:16:28,199 --> 00:16:29,560 uh then there are contributing 414 00:16:29,560 --> 00:16:31,959 guidelines to for how to like build the 415 00:16:31,959 --> 00:16:33,759 the project file the way we like it the 416 00:16:33,759 --> 00:16:35,920 way the naming is consistent the way the 417 00:16:35,920 --> 00:16:37,720 resources are tagged appropriately and 418 00:16:37,720 --> 00:16:39,600 we' love a poll request we actually have 419 00:16:39,600 --> 00:16:42,759 one poll request from Aden steel uh and 420 00:16:42,759 --> 00:16:45,480 uh and it should be merged uh uh soon 421 00:16:45,480 --> 00:16:50,040 enough right now we are on 50 scenarios 422 00:16:50,040 --> 00:16:52,519 uh uh but we're looking to be on 100 423 00:16:52,519 --> 00:16:56,240 soon enough uh we are on AWS and Azure 424 00:16:56,240 --> 00:16:59,279 but by the time the Defcon has hangover 425 00:16:59,279 --> 00:17:01,560 wears off and for the two of us the 426 00:17:01,560 --> 00:17:05,359 10hour time uh time shift wears off uh 427 00:17:05,359 --> 00:17:08,319 then we will have gcp up the PRS are 428 00:17:08,319 --> 00:17:09,559 there it's just the people approving 429 00:17:09,559 --> 00:17:11,119 them are in this room right now talking 430 00:17:11,119 --> 00:17:12,520 to 431 00:17:12,520 --> 00:17:17,720 you and uh and uh and uh and after that 432 00:17:17,720 --> 00:17:19,359 uh sky the limit but mostly 433 00:17:19,359 --> 00:17:21,559 infrastructures go dsbm for data 434 00:17:21,559 --> 00:17:23,640 security and and like private 435 00:17:23,640 --> 00:17:26,160 information where it shouldn't be and uh 436 00:17:26,160 --> 00:17:28,600 kubernetes uh for that although for 437 00:17:28,600 --> 00:17:30,559 there's like a fun question of so the 438 00:17:30,559 --> 00:17:32,840 scap goat way would be let's set up a 439 00:17:32,840 --> 00:17:34,600 whole cluster right because we're like 440 00:17:34,600 --> 00:17:36,880 put us in an empty account but let's set 441 00:17:36,880 --> 00:17:39,160 up a whole cluster is also not in line 442 00:17:39,160 --> 00:17:40,400 with the way we're trying to build 443 00:17:40,400 --> 00:17:42,840 really cheap stuff for you that at 444 00:17:42,840 --> 00:17:45,679 minimal cost triggers your detections or 445 00:17:45,679 --> 00:17:48,760 triggers your preventions and 446 00:17:48,760 --> 00:17:53,480 remediations and uh yeah any questions 447 00:17:53,480 --> 00:17:55,720 any 448 00:17:57,039 --> 00:17:59,720 questions think about 449 00:17:59,720 --> 00:18:02,760 have you have you looked at uh the 450 00:18:02,760 --> 00:18:04,880 virtualization of kubernetes and side 451 00:18:04,880 --> 00:18:08,360 kubernetes type like where you can have 452 00:18:08,360 --> 00:18:11,000 basically a k3s kubernetes cluster 453 00:18:11,000 --> 00:18:12,600 inside for that 454 00:18:12,600 --> 00:18:15,200 temporary let me try to repeat that have 455 00:18:15,200 --> 00:18:16,559 I looked at have we looked at the 456 00:18:16,559 --> 00:18:18,240 virtualization of kubernetes within 457 00:18:18,240 --> 00:18:20,600 kubernetes where we can have a 458 00:18:20,600 --> 00:18:24,520 k3s provisioned inside no we have not uh 459 00:18:24,520 --> 00:18:28,799 but we would love to learn uh this is 460 00:18:28,799 --> 00:18:30,480 among other things is what we come here 461 00:18:30,480 --> 00:18:32,640 for right last year at Cloud Village uh 462 00:18:32,640 --> 00:18:34,919 we got Google to stop ignoring a bug 463 00:18:34,919 --> 00:18:38,200 report and reopen it so vill is a good 464 00:18:38,200 --> 00:18:41,520 place good things 465 00:18:41,840 --> 00:18:45,080 happen all right that's fine yes there's 466 00:18:45,080 --> 00:18:46,640 about 50 scenarios how many different 467 00:18:46,640 --> 00:18:50,600 services on AWS and Azure are how many 468 00:18:50,600 --> 00:18:53,480 services on AWS and Azure fall into 469 00:18:53,480 --> 00:18:56,520 these 50 scenarios not a lot we kept 470 00:18:56,520 --> 00:18:59,240 really core focused like we we have some 471 00:18:59,240 --> 00:19:02,159 nicher services like code build is in 472 00:19:02,159 --> 00:19:05,679 there and uh uh but but but we wanted to 473 00:19:05,679 --> 00:19:08,520 start from the core and the core is 474 00:19:08,520 --> 00:19:13,320 going to be ec2 Lambda IM uh the 475 00:19:13,320 --> 00:19:15,880 security stack and uh and and the 476 00:19:15,880 --> 00:19:18,120 container stack like you know they're 477 00:19:18,120 --> 00:19:20,039 famously 17 container Stacks but the 478 00:19:20,039 --> 00:19:22,960 main container stack uh so right now not 479 00:19:22,960 --> 00:19:25,480 a lot of we focused on uh scenario 480 00:19:25,480 --> 00:19:28,000 coverage over service coverage we're 481 00:19:28,000 --> 00:19:31,320 also looking at uh a compound modularity 482 00:19:31,320 --> 00:19:34,039 as a step in the in the nearish future 483 00:19:34,039 --> 00:19:36,000 like being able to tie a few scenarios 484 00:19:36,000 --> 00:19:37,600 together have an exposed machine with 485 00:19:37,600 --> 00:19:39,640 the secret on it that leads to another 486 00:19:39,640 --> 00:19:41,799 that leads to an I am user uh but for 487 00:19:41,799 --> 00:19:44,679 now we really wanted like I think by now 488 00:19:44,679 --> 00:19:46,720 you've understood our primary use cases 489 00:19:46,720 --> 00:19:48,960 and for those use cases the compound 490 00:19:48,960 --> 00:19:51,520 scenarios weren't Priority One and also 491 00:19:51,520 --> 00:19:53,400 in comparison to again some great stuff 492 00:19:53,400 --> 00:19:55,200 out there that does these capture the 493 00:19:55,200 --> 00:19:58,360 flags uh that does these uh uh uh hack 494 00:19:58,360 --> 00:20:01,280 the Box uh uh riddles like uh like a 495 00:20:01,280 --> 00:20:04,880 flaw cloud or hacking the cloud or or or 496 00:20:04,880 --> 00:20:06,320 Cloud 497 00:20:06,320 --> 00:20:09,200 go than yes how did you guys come up 498 00:20:09,200 --> 00:20:12,720 with the list of I guess scenarios that 499 00:20:12,720 --> 00:20:15,440 were high priority so the 500 00:20:15,440 --> 00:20:21,480 framework so yes yes and no uh uh 501 00:20:21,480 --> 00:20:24,080 essentially oh sorry how did we come up 502 00:20:24,080 --> 00:20:27,799 with the list of scenarios so the the 503 00:20:27,799 --> 00:20:29,480 question forces me to mention that we 504 00:20:29,480 --> 00:20:32,000 work for a cloud security company and so 505 00:20:32,000 --> 00:20:35,440 and so it it is a based on our internal 506 00:20:35,440 --> 00:20:37,799 assessments of findings to a certain 507 00:20:37,799 --> 00:20:39,840 extent uh those findings are in 508 00:20:39,840 --> 00:20:43,679 alignment with uh you know ISO nist a 509 00:20:43,679 --> 00:20:45,080 whole bunch of Frameworks I'm not really 510 00:20:45,080 --> 00:20:47,480 the compliance guy but uh but but with a 511 00:20:47,480 --> 00:20:51,640 whole bunch of Frameworks it would be 512 00:20:51,640 --> 00:20:54,520 interesting to do what some other 513 00:20:54,520 --> 00:20:59,400 tooling uh uh does which is stick 514 00:20:59,400 --> 00:21:05,080 standards uh to each scenario uh but uh 515 00:21:05,080 --> 00:21:07,240 yeah so so it's some somewhere in the 516 00:21:07,240 --> 00:21:11,240 road map uh it's it's also I mean I I 517 00:21:11,240 --> 00:21:13,000 don't I'm not going to I'm not going to 518 00:21:13,000 --> 00:21:15,159 funnel off the the hard labor here 519 00:21:15,159 --> 00:21:17,400 anything that I say we will eventually 520 00:21:17,400 --> 00:21:19,600 do but it's also a very easy Community 521 00:21:19,600 --> 00:21:22,000 contribution if anybody wants to make it 522 00:21:22,000 --> 00:21:24,400 but of course we'll do it we're not like 523 00:21:24,400 --> 00:21:26,520 telling you to do it it's just some 524 00:21:26,520 --> 00:21:28,440 people want green squares on their 525 00:21:28,440 --> 00:21:30,640 GitHub and you 526 00:21:30,640 --> 00:21:34,520 know or faster sorry oh I was or they 527 00:21:34,520 --> 00:21:36,679 want it faster or they want it faster 528 00:21:36,679 --> 00:21:39,039 yeah definitely we we yeah we're we're 529 00:21:39,039 --> 00:21:41,320 definitely open open to that and also 530 00:21:41,320 --> 00:21:43,080 for scap go to like keep up with the 531 00:21:43,080 --> 00:21:46,159 time so Aden spr for us was about the 532 00:21:46,159 --> 00:21:49,240 GitHub uh subject for oidc so if you 533 00:21:49,240 --> 00:21:51,200 connect with GitHub with oidc but you 534 00:21:51,200 --> 00:21:53,360 don't check the subject line in the IM 535 00:21:53,360 --> 00:21:56,200 roll anybody can connect to your IM roll 536 00:21:56,200 --> 00:21:59,159 from their own GitHub actions DC so 537 00:21:59,159 --> 00:22:00,919 that's what he put in so it's all about 538 00:22:00,919 --> 00:22:02,360 like keeping up with the research and 539 00:22:02,360 --> 00:22:04,039 whenever a new TTP gets launched 540 00:22:04,039 --> 00:22:07,880 incorporating it straight into SCA 541 00:22:07,880 --> 00:22:12,840 go yes uh for R team exercise I may need 542 00:22:12,840 --> 00:22:16,200 to change an IM user with vulnerability 543 00:22:16,200 --> 00:22:19,039 some misconfiguration with another ec2 544 00:22:19,039 --> 00:22:21,679 and so on how would I go on about 545 00:22:21,679 --> 00:22:24,480 creating such scenario you said that 546 00:22:24,480 --> 00:22:27,000 Cann how would I go about creating a 547 00:22:27,000 --> 00:22:29,039 compound scenario because for a red team 548 00:22:29,039 --> 00:22:30,960 engagement you would need to chain a 549 00:22:30,960 --> 00:22:33,480 vulnerability to credentials to 550 00:22:33,480 --> 00:22:36,240 something else so as I said we are 551 00:22:36,240 --> 00:22:38,440 personally not there yet but the magic 552 00:22:38,440 --> 00:22:40,559 and beauty of Open Source is that you 553 00:22:40,559 --> 00:22:43,640 can go on cenap Goat scenarios and just 554 00:22:43,640 --> 00:22:45,600 like copy our palumi and use it for 555 00:22:45,600 --> 00:22:47,679 whatever right now we're not solving 556 00:22:47,679 --> 00:22:49,720 this problem for you today going to be 557 00:22:49,720 --> 00:22:52,679 perfectly honest but uh that doesn't 558 00:22:52,679 --> 00:22:55,640 mean that a trip to the repo can't save 559 00:22:55,640 --> 00:22:58,799 a few working days of your life until we 560 00:22:58,799 --> 00:23:02,080 do it we'll get done 561 00:23:03,679 --> 00:23:05,799 though go so if there are no further 562 00:23:05,799 --> 00:23:07,640 questions thanks a lot everyone and 563 00:23:07,640 --> 00:23:12,720 start the repo and uh catch us our side 564 00:23:12,720 --> 00:23:16,440 uh we are at hermetic 565 00:23:16,440 --> 00:23:19,919 research scap goat for the repo and scap 566 00:23:19,919 --> 00:23:23,360 goat scenarios for the scenarios