1 00:00:00,440 --> 00:00:02,399 delip Perez a security and threat 2 00:00:02,399 --> 00:00:04,480 researcher with many accolades including 3 00:00:04,480 --> 00:00:06,600 founder cyber security Advocate and 4 00:00:06,600 --> 00:00:09,280 application security specialist fipe uh 5 00:00:09,280 --> 00:00:10,519 will be speaking about the critical 6 00:00:10,519 --> 00:00:12,360 importance of permission Management in 7 00:00:12,360 --> 00:00:14,200 Cloud native Integrations and how an 8 00:00:14,200 --> 00:00:16,520 inadequate permissions model can create 9 00:00:16,520 --> 00:00:18,840 significant advantages for attackers the 10 00:00:18,840 --> 00:00:21,119 talk is called revealing choke points 11 00:00:21,119 --> 00:00:22,760 practical tactics for boosting Cloud 12 00:00:22,760 --> 00:00:24,320 security everyone please give a warm 13 00:00:24,320 --> 00:00:25,760 welcome for 14 00:00:25,760 --> 00:00:29,480 pH thank you sir can you hear me good 15 00:00:29,480 --> 00:00:33,120 right nice so uh I will divide this 16 00:00:33,120 --> 00:00:35,120 presentations in two part actually the 17 00:00:35,120 --> 00:00:38,760 first part is the more part as 18 00:00:38,760 --> 00:00:40,800 a technical you know theoric part I know 19 00:00:40,800 --> 00:00:43,120 that's but it's necessary and 20 00:00:43,120 --> 00:00:44,920 the other part is more technical you 21 00:00:44,920 --> 00:00:48,960 know and um okay so let me introduce 22 00:00:48,960 --> 00:00:51,840 myself I'm director of thread research 23 00:00:51,840 --> 00:00:53,800 at s seura s seur it's a Brazilian 24 00:00:53,800 --> 00:00:55,960 company by the way I'm Brazilian but I'm 25 00:00:55,960 --> 00:00:58,960 Liv in Portugal but I'm moving to the US 26 00:00:58,960 --> 00:01:01,079 you know it's quite complic but you know 27 00:01:01,079 --> 00:01:03,039 that's me and I'm responsible for 28 00:01:03,039 --> 00:01:05,199 identifying new threads in the cloud 29 00:01:05,199 --> 00:01:06,840 understand how the attack use it 30 00:01:06,840 --> 00:01:08,880 specifically techniques to you know 31 00:01:08,880 --> 00:01:10,880 bypass some misconfigurations and stuff 32 00:01:10,880 --> 00:01:13,240 like that and bring technolog from this 33 00:01:13,240 --> 00:01:15,400 project okay I'm very active in 34 00:01:15,400 --> 00:01:17,200 different security communities like as 35 00:01:17,200 --> 00:01:18,880 you can see ring Village adversary 36 00:01:18,880 --> 00:01:20,720 village now it's my first time here at 37 00:01:20,720 --> 00:01:23,280 Cloud Village and thank you everyone for 38 00:01:23,280 --> 00:01:25,640 accepting my talk and I'm a part of the 39 00:01:25,640 --> 00:01:27,680 hacking not a crime and I'm sneak 40 00:01:27,680 --> 00:01:30,560 Ambassador the open source part not 41 00:01:30,560 --> 00:01:33,280 Enterprise okay just open source again 42 00:01:33,280 --> 00:01:35,759 and I'm structure writer and reviewer 43 00:01:35,759 --> 00:01:37,600 stre magazine in Europe so if You' like 44 00:01:37,600 --> 00:01:40,280 to share your knowledgement so I can 45 00:01:40,280 --> 00:01:42,439 help you you know with some articles and 46 00:01:42,439 --> 00:01:44,520 I can review if you want it's a very 47 00:01:44,520 --> 00:01:47,479 nice uh magazines in Europe okay nice 48 00:01:47,479 --> 00:01:50,600 good picture just for my mom anyway so 49 00:01:50,600 --> 00:01:52,920 before to start I just would like to put 50 00:01:52,920 --> 00:01:55,000 every people in the same page if you are 51 00:01:55,000 --> 00:01:58,560 you know um principal expert I'm sorry 52 00:01:58,560 --> 00:02:00,039 but I need to put every people in the 53 00:02:00,039 --> 00:02:02,079 same page that explain what is a threat 54 00:02:02,079 --> 00:02:04,200 is not my definition is Accord to these 55 00:02:04,200 --> 00:02:06,840 eyes is a potential cause that you know 56 00:02:06,840 --> 00:02:09,679 can uh happen in some organization or 57 00:02:09,679 --> 00:02:12,480 systems what kind of software attack uh 58 00:02:12,480 --> 00:02:14,560 te of intellectual property or identity 59 00:02:14,560 --> 00:02:16,120 death when you talk about the cloud we 60 00:02:16,120 --> 00:02:18,480 have many identities there we we have 61 00:02:18,480 --> 00:02:21,480 many permissions we have many rules many 62 00:02:21,480 --> 00:02:24,040 groups and many I don't know if can use 63 00:02:24,040 --> 00:02:26,080 but you know many things 64 00:02:26,080 --> 00:02:28,120 okay anyway sorry for the not not be 65 00:02:28,120 --> 00:02:30,440 polite it's recorded but anyway and 66 00:02:30,440 --> 00:02:32,120 sabotage and information is start that 67 00:02:32,120 --> 00:02:33,959 example of formation security threats 68 00:02:33,959 --> 00:02:36,560 just a simple uh example what it is 69 00:02:36,560 --> 00:02:38,400 because when you talk about the cloud we 70 00:02:38,400 --> 00:02:40,560 have many connections between so when 71 00:02:40,560 --> 00:02:42,640 you have something like this we need to 72 00:02:42,640 --> 00:02:45,159 investigate that okay another term what 73 00:02:45,159 --> 00:02:47,800 is high value Target usually comes to 74 00:02:47,800 --> 00:02:50,720 the the military terminology many things 75 00:02:50,720 --> 00:02:52,760 in in cyber security comes the the 76 00:02:52,760 --> 00:02:55,599 military uh terminology but basically is 77 00:02:55,599 --> 00:02:58,760 a kind of a person resource that enemy 78 00:02:58,760 --> 00:03:00,760 command requires to complete the mission 79 00:03:00,760 --> 00:03:03,120 okay when you think about the cloud it's 80 00:03:03,120 --> 00:03:04,599 quite different because in the past when 81 00:03:04,599 --> 00:03:06,440 you think about the high value Target we 82 00:03:06,440 --> 00:03:08,840 look into the active directory okay to 83 00:03:08,840 --> 00:03:10,720 the own primes the guys responsible for 84 00:03:10,720 --> 00:03:14,120 managing this was the the high value 85 00:03:14,120 --> 00:03:15,640 Target but when you talk about the cloud 86 00:03:15,640 --> 00:03:18,319 so everyone that has access in the cloud 87 00:03:18,319 --> 00:03:21,360 can be a high value Target okay nice so 88 00:03:21,360 --> 00:03:23,280 let's go to the when you talk about the 89 00:03:23,280 --> 00:03:26,000 organization sometimes we understand 90 00:03:26,000 --> 00:03:28,080 that se level can be the high value 91 00:03:28,080 --> 00:03:30,400 Target but not everyone that has 92 00:03:30,400 --> 00:03:33,480 elevated privilege in your organization 93 00:03:33,480 --> 00:03:35,720 assets can be a high value Target just 94 00:03:35,720 --> 00:03:39,080 to summarize okay one termin it means 95 00:03:39,080 --> 00:03:41,159 that people work with a sensitive data 96 00:03:41,159 --> 00:03:44,400 or a high stack project can be a high 97 00:03:44,400 --> 00:03:47,080 value Target okay so that's important to 98 00:03:47,080 --> 00:03:48,280 understand high value Target another 99 00:03:48,280 --> 00:03:50,599 term is attack vector and attack pth 100 00:03:50,599 --> 00:03:52,840 okay attack Vector is the method used by 101 00:03:52,840 --> 00:03:55,079 cyber attackers not the hackers okay 102 00:03:55,079 --> 00:03:56,799 because hackers as I mentioned in the 103 00:03:56,799 --> 00:03:59,599 beginning is a the guy or the people 104 00:03:59,599 --> 00:04:01,439 that that works with a creative mind 105 00:04:01,439 --> 00:04:03,480 okay that they help companies if you do 106 00:04:03,480 --> 00:04:05,239 bad things you are criminal okay you 107 00:04:05,239 --> 00:04:07,920 need to need to to go to the jail I know 108 00:04:07,920 --> 00:04:10,239 that's not simple like this but anyway 109 00:04:10,239 --> 00:04:12,439 and um that's the point when you to 110 00:04:12,439 --> 00:04:14,159 think about attack Vector is the method 111 00:04:14,159 --> 00:04:16,959 to use to explore environments what kind 112 00:04:16,959 --> 00:04:18,959 of usually it's more know we we know 113 00:04:18,959 --> 00:04:21,680 like a m enhancer fishing is a kind of 114 00:04:21,680 --> 00:04:24,199 strategy user to explore this kind of 115 00:04:24,199 --> 00:04:26,240 environment you so you know to can you 116 00:04:26,240 --> 00:04:28,240 can send the email with some sample 117 00:04:28,240 --> 00:04:31,000 there or some file the user can click 118 00:04:31,000 --> 00:04:33,120 and go inside and that's it but there 119 00:04:33,120 --> 00:04:35,520 are another human erors Okay one of 120 00:04:35,520 --> 00:04:38,120 these is weak credentials as you can see 121 00:04:38,120 --> 00:04:40,600 so if we collected those credentials we 122 00:04:40,600 --> 00:04:43,240 can go inside of the cloud another is 123 00:04:43,240 --> 00:04:45,280 poor encryptions when you when we talk 124 00:04:45,280 --> 00:04:47,680 about for example web application so if 125 00:04:47,680 --> 00:04:49,639 there are some Pro encryptions in this 126 00:04:49,639 --> 00:04:51,840 application you can drop this you can go 127 00:04:51,840 --> 00:04:54,360 inside as well and misconfiguration the 128 00:04:54,360 --> 00:04:56,759 main top of our conversation okay so if 129 00:04:56,759 --> 00:05:00,160 someone apply a bad configuration they 130 00:05:00,160 --> 00:05:03,880 can go inside based on these actions so 131 00:05:03,880 --> 00:05:06,800 and another is those things allow or 132 00:05:06,800 --> 00:05:08,880 even permission or whatever permission 133 00:05:08,880 --> 00:05:10,680 that allow a kind of sensitive 134 00:05:10,680 --> 00:05:13,199 information inside of the cloud so let 135 00:05:13,199 --> 00:05:17,080 me do a question who here worked with 136 00:05:17,080 --> 00:05:22,520 AWS n nice who works with 137 00:05:22,520 --> 00:05:24,400 gcp 138 00:05:24,400 --> 00:05:26,600 oci and 139 00:05:26,600 --> 00:05:30,160 Azure oh Jesus so you know so the people 140 00:05:30,160 --> 00:05:32,759 works in AWS and Azure for the same time 141 00:05:32,759 --> 00:05:34,680 yeah that's true okay mood Cloud 142 00:05:34,680 --> 00:05:36,440 environment that's the big challenge you 143 00:05:36,440 --> 00:05:38,319 know because we need to manage those 144 00:05:38,319 --> 00:05:41,360 things and who knows the AWS wh 145 00:05:41,360 --> 00:05:46,319 architecture here a AWS wh architecture 146 00:05:46,319 --> 00:05:48,840 damn that's the point you know so I ask 147 00:05:48,840 --> 00:05:51,759 how many people works with AWS I think 148 00:05:51,759 --> 00:05:55,479 almost 80% 90% but when I ask about AWS 149 00:05:55,479 --> 00:05:58,960 framework AWS wh architecture framework 150 00:05:58,960 --> 00:06:00,240 just four people 151 00:06:00,240 --> 00:06:02,919 hands up that's a big problem because 152 00:06:02,919 --> 00:06:04,919 well architecture is the guidance to 153 00:06:04,919 --> 00:06:08,360 work with in the security way using AWS 154 00:06:08,360 --> 00:06:10,199 we have a list privilege concept and 155 00:06:10,199 --> 00:06:12,759 many things about this topic that I will 156 00:06:12,759 --> 00:06:15,199 share with you okay another topic is 157 00:06:15,199 --> 00:06:17,599 okay the attack path just to explain is 158 00:06:17,599 --> 00:06:19,800 the the visualization of the chain as 159 00:06:19,800 --> 00:06:21,560 you can see here this is the simple uh 160 00:06:21,560 --> 00:06:23,639 application on security risk from oasp 161 00:06:23,639 --> 00:06:26,199 but just to see the graphic not in this 162 00:06:26,199 --> 00:06:28,440 case not graphic but the attack Vector 163 00:06:28,440 --> 00:06:30,000 remember how they can use like a 164 00:06:30,000 --> 00:06:32,080 misconfiguration can be some security 165 00:06:32,080 --> 00:06:35,440 weakness like go inside or they bypass 166 00:06:35,440 --> 00:06:38,120 some security controls you can have some 167 00:06:38,120 --> 00:06:40,960 impact uh technical impacts and you can 168 00:06:40,960 --> 00:06:42,800 have some uh business impact it's the 169 00:06:42,800 --> 00:06:44,919 attacker perspective okay and chalk 170 00:06:44,919 --> 00:06:46,880 points so the the topic of our 171 00:06:46,880 --> 00:06:48,960 conversation so chalk points is a 172 00:06:48,960 --> 00:06:51,560 strategy location where multiple attack 173 00:06:51,560 --> 00:06:54,400 path converge that's the key converge 174 00:06:54,400 --> 00:06:56,840 you know so if you have for example AWS 175 00:06:56,840 --> 00:06:58,960 and you have Azure for example you have 176 00:06:58,960 --> 00:07:01,280 a mood cloud so where is the check the 177 00:07:01,280 --> 00:07:03,680 chalk point so you know the point of 178 00:07:03,680 --> 00:07:05,560 chalk inside of the organization that 179 00:07:05,560 --> 00:07:08,120 the attacker can go move laterally 180 00:07:08,120 --> 00:07:10,360 inside or they can escalate privilege in 181 00:07:10,360 --> 00:07:12,440 your environment that's the key so like 182 00:07:12,440 --> 00:07:15,080 this one here so here basically you can 183 00:07:15,080 --> 00:07:17,280 see this is the main graph main graph no 184 00:07:17,280 --> 00:07:19,280 sorry this is the new 4J you can see 185 00:07:19,280 --> 00:07:21,440 this is the group of permission AWS 186 00:07:21,440 --> 00:07:24,400 group here so we have in the uh orange 187 00:07:24,400 --> 00:07:28,879 color uh 135 five users and this is the 188 00:07:28,879 --> 00:07:30,759 chalk point in in this case because it's 189 00:07:30,759 --> 00:07:32,919 the point that I connected in this 190 00:07:32,919 --> 00:07:35,039 example just to clarify what is a CH 191 00:07:35,039 --> 00:07:38,840 chalk Point okay so for the defensive 192 00:07:38,840 --> 00:07:41,560 perspective when you cut this when you 193 00:07:41,560 --> 00:07:45,479 change in this uh policy group you can 194 00:07:45,479 --> 00:07:48,440 broke the Chuck Point that's the key you 195 00:07:48,440 --> 00:07:50,680 know because remember so if you divide 196 00:07:50,680 --> 00:07:52,879 this room we have here for example a 197 00:07:52,879 --> 00:07:55,360 group of the cloud you know developers 198 00:07:55,360 --> 00:07:57,080 and here we have just a developer this 199 00:07:57,080 --> 00:07:59,720 is the bad guys okay I'm joking I'm 200 00:07:59,720 --> 00:08:02,440 joking please I'm joking okay don't kill 201 00:08:02,440 --> 00:08:05,639 me okay so all those peop are connected 202 00:08:05,639 --> 00:08:07,360 based on permissions right bend on 203 00:08:07,360 --> 00:08:09,039 relationship that you have inside of the 204 00:08:09,039 --> 00:08:11,240 groups so we need to identify those 205 00:08:11,240 --> 00:08:12,800 chalk points because based on those 206 00:08:12,800 --> 00:08:15,120 chock points we can cut and you know 207 00:08:15,120 --> 00:08:19,919 Break Stop the some attacks okay nice so 208 00:08:19,919 --> 00:08:23,479 let's go uh about AWS so everyone maybe 209 00:08:23,479 --> 00:08:25,159 knows about this so this is the simple 210 00:08:25,159 --> 00:08:28,919 definition what it is AWS a in this case 211 00:08:28,919 --> 00:08:31,520 responsible for centralize every access 212 00:08:31,520 --> 00:08:34,399 in different resources in NWS Philipp 213 00:08:34,399 --> 00:08:37,479 but about Azure about oci about other 214 00:08:37,479 --> 00:08:40,159 protocol provides how this works the you 215 00:08:40,159 --> 00:08:42,479 know the logical of the the attack is is 216 00:08:42,479 --> 00:08:44,720 quite the same okay we just need to 217 00:08:44,720 --> 00:08:46,680 understand how the for example Azure 218 00:08:46,680 --> 00:08:48,480 Works in this case an enter ID if 219 00:08:48,480 --> 00:08:50,279 Microsoft didn't change the name again 220 00:08:50,279 --> 00:08:53,160 but you know was Azure ID but now it's 221 00:08:53,160 --> 00:08:56,240 ENT ID so I don't know if okay anyway so 222 00:08:56,240 --> 00:08:57,720 that's the point so it's based on 223 00:08:57,720 --> 00:09:00,160 subscriptions it's quite different but 224 00:09:00,160 --> 00:09:02,959 when you talk about oci is very similar 225 00:09:02,959 --> 00:09:06,079 the IM am Services okay nice so a am if 226 00:09:06,079 --> 00:09:07,440 you don't know is just responsible for 227 00:09:07,440 --> 00:09:09,560 authenticate and authorize this kind of 228 00:09:09,560 --> 00:09:12,640 resource inside of the cloud and this is 229 00:09:12,640 --> 00:09:15,200 the permission based on the this is from 230 00:09:15,200 --> 00:09:18,160 AWS by the way that when you need to set 231 00:09:18,160 --> 00:09:20,440 some permissions to thews you need to 232 00:09:20,440 --> 00:09:22,360 use this example what is more important 233 00:09:22,360 --> 00:09:25,000 in this case many things but bases is an 234 00:09:25,000 --> 00:09:27,640 statement here you need to collect those 235 00:09:27,640 --> 00:09:29,959 statement and what is the impact here is 236 00:09:29,959 --> 00:09:33,279 the effect or if I can CH some more 237 00:09:33,279 --> 00:09:36,399 important things is the effect allow or 238 00:09:36,399 --> 00:09:39,880 deny and the actions a bunch of actions 239 00:09:39,880 --> 00:09:42,760 include that allows the polic allows 240 00:09:42,760 --> 00:09:45,279 oriz okay so that's the point so here's 241 00:09:45,279 --> 00:09:48,000 some example and simple example about 242 00:09:48,000 --> 00:09:50,519 this this is more important this is one 243 00:09:50,519 --> 00:09:54,279 of the permissions policy the from AWS 244 00:09:54,279 --> 00:09:55,959 who knows this 245 00:09:55,959 --> 00:09:59,920 PS okay this is this thund right so read 246 00:09:59,920 --> 00:10:02,720 e really only access the question is is 247 00:10:02,720 --> 00:10:05,680 danger or not what do you think who know 248 00:10:05,680 --> 00:10:07,680 that is dangerous hands 249 00:10:07,680 --> 00:10:10,640 up who think that's not 250 00:10:10,640 --> 00:10:13,000 dangerous who think it's 251 00:10:13,000 --> 00:10:15,800 nothing yeah because I think it's that's 252 00:10:15,800 --> 00:10:17,680 the point it's difficult to answer but 253 00:10:17,680 --> 00:10:20,600 anyway so the point is sometimes can be 254 00:10:20,600 --> 00:10:22,640 dangerous because it depends of the user 255 00:10:22,640 --> 00:10:24,279 because they can read some sensitive 256 00:10:24,279 --> 00:10:27,200 data you know about compliance I don't 257 00:10:27,200 --> 00:10:28,720 like compliance but anyway but it's 258 00:10:28,720 --> 00:10:31,279 necessary again again so if the user 259 00:10:31,279 --> 00:10:33,240 received these permissions or the 260 00:10:33,240 --> 00:10:35,920 developer and they read some sensitive 261 00:10:35,920 --> 00:10:40,399 datas is is the problem here you know so 262 00:10:40,399 --> 00:10:42,920 you can read this in AWS we architectur 263 00:10:42,920 --> 00:10:45,279 so remember that so if you see here the 264 00:10:45,279 --> 00:10:47,600 statement you have the allow and the 265 00:10:47,600 --> 00:10:50,240 actions just two action list and get I 266 00:10:50,240 --> 00:10:53,000 cannot uh write nothing here I cannot 267 00:10:53,000 --> 00:10:56,120 change any policy here I can not delete 268 00:10:56,120 --> 00:10:58,639 anything here so maybe it's not too D 269 00:10:58,639 --> 00:11:01,959 too Danger but again depends of which is 270 00:11:01,959 --> 00:11:03,639 the function of the guy responsible for 271 00:11:03,639 --> 00:11:08,000 receive these permissions okay nice so 272 00:11:08,000 --> 00:11:10,560 let's think about how this exploitation 273 00:11:10,560 --> 00:11:13,399 can be possible so just for if you work 274 00:11:13,399 --> 00:11:15,360 with AWS you know that when you have 275 00:11:15,360 --> 00:11:18,240 some secret or key you just go to the 276 00:11:18,240 --> 00:11:21,360 CLI AWS CLI click AWS connect or 277 00:11:21,360 --> 00:11:23,120 whatever something like this and they 278 00:11:23,120 --> 00:11:26,760 request you a secret and key right 279 00:11:26,760 --> 00:11:28,760 that's okay and after that you have 280 00:11:28,760 --> 00:11:30,959 another three or four information then 281 00:11:30,959 --> 00:11:32,639 you can use the standard information 282 00:11:32,639 --> 00:11:34,279 right right just click enter and that's 283 00:11:34,279 --> 00:11:37,040 it and you can go inside after that you 284 00:11:37,040 --> 00:11:41,200 can go to to see for example set this a 285 00:11:41,200 --> 00:11:43,920 command for example list users to 286 00:11:43,920 --> 00:11:47,800 identify if some user you can read so 287 00:11:47,800 --> 00:11:49,240 let's suppose that I gain the access at 288 00:11:49,240 --> 00:11:52,000 some specific AWS key and secret I 289 00:11:52,000 --> 00:11:54,720 connected and this example and I try to 290 00:11:54,720 --> 00:11:56,959 list information and if you see here is 291 00:11:56,959 --> 00:12:00,399 access Deni what that means that this 292 00:12:00,399 --> 00:12:03,360 secret and this key doesn't have any 293 00:12:03,360 --> 00:12:06,320 permissions to read that's okay so the 294 00:12:06,320 --> 00:12:09,399 security guy one in this case Nice List 295 00:12:09,399 --> 00:12:13,360 policy the same case access deny so was 296 00:12:13,360 --> 00:12:17,920 denied and list group denied cool so 297 00:12:17,920 --> 00:12:22,079 good conation success but now let's 298 00:12:22,079 --> 00:12:26,079 suppose if there are some one action I 299 00:12:26,079 --> 00:12:27,959 put two key but this here but it's not 300 00:12:27,959 --> 00:12:30,959 necessary to there one of this is enough 301 00:12:30,959 --> 00:12:32,959 and I will explain more so this is how 302 00:12:32,959 --> 00:12:36,079 you can create a new police for example 303 00:12:36,079 --> 00:12:38,519 I will create one single policy using 304 00:12:38,519 --> 00:12:41,320 one single action and I will show you 305 00:12:41,320 --> 00:12:43,680 the impact of this specifically action 306 00:12:43,680 --> 00:12:45,279 so if you see here when you put the 307 00:12:45,279 --> 00:12:48,240 research I use an asterisk an AWS 308 00:12:48,240 --> 00:12:50,399 suggestion the kind of warning because 309 00:12:50,399 --> 00:12:54,199 we should set a specifically AWS resarch 310 00:12:54,199 --> 00:12:57,839 name okay so that's the point here but 311 00:12:57,839 --> 00:12:59,519 you can do if you want to put in Master 312 00:12:59,519 --> 00:13:02,519 risk and I create this poish and I call 313 00:13:02,519 --> 00:13:05,199 attack module and if you see here the 314 00:13:05,199 --> 00:13:08,000 effect is allow the action is create 315 00:13:08,000 --> 00:13:10,959 policy version and if you see just one 316 00:13:10,959 --> 00:13:13,519 action can you see one only action if 317 00:13:13,519 --> 00:13:15,519 you see in the presentations you can see 318 00:13:15,519 --> 00:13:18,920 just one only action and the research I 319 00:13:18,920 --> 00:13:21,560 call it policy and I said here asterisk 320 00:13:21,560 --> 00:13:23,959 as you can see maybe this to is small 321 00:13:23,959 --> 00:13:27,920 but no problem we can manage this okay 322 00:13:27,920 --> 00:13:31,639 now you can see better right cool let me 323 00:13:31,639 --> 00:13:34,600 go to the next step so now I wrote an 324 00:13:34,600 --> 00:13:36,720 article explain all those step you can 325 00:13:36,720 --> 00:13:39,680 find this article on P magazini and my 326 00:13:39,680 --> 00:13:42,240 LinkedIn as well so it's no problem and 327 00:13:42,240 --> 00:13:45,480 after that I go to I went to the Google 328 00:13:45,480 --> 00:13:47,600 I went to Google and I typed there so 329 00:13:47,600 --> 00:13:50,480 how I can create a new policy with the 330 00:13:50,480 --> 00:13:51,920 full access 331 00:13:51,920 --> 00:13:54,720 inws let's suppose that I am a newbie 332 00:13:54,720 --> 00:13:57,680 okay and they suggested me this code I 333 00:13:57,680 --> 00:13:59,440 just copy and paste was that that mean 334 00:13:59,440 --> 00:14:02,639 in this case so if you see here we have 335 00:14:02,639 --> 00:14:07,160 an access to the all am service okay and 336 00:14:07,160 --> 00:14:09,279 not only this but they suggest me to add 337 00:14:09,279 --> 00:14:11,000 those 338 00:14:11,000 --> 00:14:13,880 others um services or research the 339 00:14:13,880 --> 00:14:15,480 organizations if you know organizations 340 00:14:15,480 --> 00:14:17,600 is a top of account and you can have 341 00:14:17,600 --> 00:14:19,680 more than many accounts below of this 342 00:14:19,680 --> 00:14:22,040 organization so the company usually when 343 00:14:22,040 --> 00:14:24,440 they use many accounts they set one 344 00:14:24,440 --> 00:14:28,360 organization and behind many different 345 00:14:28,360 --> 00:14:29,600 accounts right 346 00:14:29,600 --> 00:14:32,720 so here I'm trying to change something 347 00:14:32,720 --> 00:14:35,160 so let's suppose I'm just a user that I 348 00:14:35,160 --> 00:14:37,680 can create a new policy I'm just access 349 00:14:37,680 --> 00:14:41,519 just only one account but based on this 350 00:14:41,519 --> 00:14:43,959 new permission I can 351 00:14:43,959 --> 00:14:46,440 change or the attacker can change my 352 00:14:46,440 --> 00:14:49,800 policy if you see here I go to Google 353 00:14:49,800 --> 00:14:52,360 once again and I request how I can set 354 00:14:52,360 --> 00:14:55,959 the new police using CLI for example and 355 00:14:55,959 --> 00:14:59,160 they suggest me this common here AWS a 356 00:14:59,160 --> 00:15:01,519 create policy version I need to set the 357 00:15:01,519 --> 00:15:05,680 policy arm just copy and paste set my 358 00:15:05,680 --> 00:15:09,040 policy my document and here is the new 359 00:15:09,040 --> 00:15:10,880 document that I created and take a look 360 00:15:10,880 --> 00:15:12,720 this set as a 361 00:15:12,720 --> 00:15:16,959 default what happened now after that so 362 00:15:16,959 --> 00:15:20,920 if you see here so the policy will 363 00:15:20,920 --> 00:15:22,600 change 364 00:15:22,600 --> 00:15:25,639 it so now the attacker can escalate a 365 00:15:25,639 --> 00:15:27,839 privilege based in one only action 366 00:15:27,839 --> 00:15:29,720 action 367 00:15:29,720 --> 00:15:31,279 you can see the effect of that that 368 00:15:31,279 --> 00:15:34,240 checkbox 369 00:15:34,240 --> 00:15:36,560 checkbox and this checkbox is included 370 00:15:36,560 --> 00:15:38,920 in the in the administrator access and 371 00:15:38,920 --> 00:15:41,880 many others but usually you go to the 372 00:15:41,880 --> 00:15:44,839 AWS police you see administrator access 373 00:15:44,839 --> 00:15:46,480 it you enable because it's easier to 374 00:15:46,480 --> 00:15:50,880 work in this way right so let's get this 375 00:15:50,880 --> 00:15:53,319 access to the developer and they want sh 376 00:15:53,319 --> 00:15:57,040 me right it's easy right that's the 377 00:15:57,040 --> 00:15:59,199 point but what is the impact you the 378 00:15:59,199 --> 00:16:02,319 impact so remember the guy should have 379 00:16:02,319 --> 00:16:04,600 one access in one single account but now 380 00:16:04,600 --> 00:16:05,800 they have an access in the full 381 00:16:05,800 --> 00:16:07,800 organization many accounts can you see 382 00:16:07,800 --> 00:16:09,319 the 383 00:16:09,319 --> 00:16:14,399 impact so that's the key here nice so 384 00:16:14,399 --> 00:16:17,040 let me go to an next one so now the 385 00:16:17,040 --> 00:16:19,319 attacker has access to the full 386 00:16:19,319 --> 00:16:22,000 environment okay that's the point okay 387 00:16:22,000 --> 00:16:23,839 so how we can mitigate that so how we 388 00:16:23,839 --> 00:16:26,319 can protect that because okay I gave the 389 00:16:26,319 --> 00:16:28,639 problem to you but now I can have you I 390 00:16:28,639 --> 00:16:30,680 can help you with the some solutions 391 00:16:30,680 --> 00:16:32,360 okay so we have a kind of different 392 00:16:32,360 --> 00:16:34,759 products more than one but I just have a 393 00:16:34,759 --> 00:16:37,000 time to share with you some of them so 394 00:16:37,000 --> 00:16:38,480 this is one of the interesting project 395 00:16:38,480 --> 00:16:40,800 called it cartography okay it's an open 396 00:16:40,800 --> 00:16:43,000 source project so basically the idea 397 00:16:43,000 --> 00:16:44,759 here if you see they create a kind of 398 00:16:44,759 --> 00:16:47,360 statement and they use in Cipher query 399 00:16:47,360 --> 00:16:50,120 if you don't have much knowledge about 400 00:16:50,120 --> 00:16:52,360 software query it can be more difficult 401 00:16:52,360 --> 00:16:55,120 to you but anyway so basically the query 402 00:16:55,120 --> 00:16:58,240 is to collect some IDE some uh to find 403 00:16:58,240 --> 00:17:00,480 some users that has the crate polic 404 00:17:00,480 --> 00:17:03,160 remember when you have the crate police 405 00:17:03,160 --> 00:17:06,160 okay when you suffering these attacks 406 00:17:06,160 --> 00:17:07,720 remember the flag in the end of the 407 00:17:07,720 --> 00:17:10,679 command set as a default so if you have 408 00:17:10,679 --> 00:17:12,319 these actions based on the set as a 409 00:17:12,319 --> 00:17:15,799 default you you can do the same attack 410 00:17:15,799 --> 00:17:18,439 that's the key and if you think in NWS 411 00:17:18,439 --> 00:17:20,439 you have more than 6,000 permissions 412 00:17:20,439 --> 00:17:23,199 inside of that so we have a few big a 413 00:17:23,199 --> 00:17:25,079 big field to make the research what is 414 00:17:25,079 --> 00:17:26,959 the impact with other actions that we 415 00:17:26,959 --> 00:17:32,240 have okay another very nice uh tool is 416 00:17:32,240 --> 00:17:35,240 AWS SPX as you can see here in this 417 00:17:35,240 --> 00:17:38,400 picture so we have here more than 418 00:17:38,400 --> 00:17:41,880 one users like this one and take a look 419 00:17:41,880 --> 00:17:43,960 how many actions they have take a look 420 00:17:43,960 --> 00:17:46,200 this this relationship between each user 421 00:17:46,200 --> 00:17:49,160 and which group with permissions it's so 422 00:17:49,160 --> 00:17:51,960 complexity right so that's the point so 423 00:17:51,960 --> 00:17:54,240 we need we need looking to inside of 424 00:17:54,240 --> 00:17:57,679 each permissions to look inside of each 425 00:17:57,679 --> 00:17:59,960 check box and based on that we can 426 00:17:59,960 --> 00:18:02,480 improve the security posture in in Cloud 427 00:18:02,480 --> 00:18:06,720 security okay so they create a kind of C 428 00:18:06,720 --> 00:18:08,320 effective admin it's a kind of high 429 00:18:08,320 --> 00:18:10,240 value Target but if you see here we have 430 00:18:10,240 --> 00:18:12,480 many connections many relationship okay 431 00:18:12,480 --> 00:18:15,200 just to finalize hi sayur can help the 432 00:18:15,200 --> 00:18:17,960 community we create this project totally 433 00:18:17,960 --> 00:18:20,919 Community free of charge call it Beauty 434 00:18:20,919 --> 00:18:23,760 th so if you want to scan this C code 435 00:18:23,760 --> 00:18:26,000 it's not malici I promise you you I 436 00:18:26,000 --> 00:18:29,640 think but it's not and um what is this 437 00:18:29,640 --> 00:18:32,919 project basically is the same uh idea of 438 00:18:32,919 --> 00:18:35,200 this project I'm just go to the end so 439 00:18:35,200 --> 00:18:38,159 you can have an access to a full a full 440 00:18:38,159 --> 00:18:41,000 version of three uh four actually Cloud 441 00:18:41,000 --> 00:18:45,039 providers AWS gcp uh Azure and oci you 442 00:18:45,039 --> 00:18:47,240 can receive recommendations to change 443 00:18:47,240 --> 00:18:48,799 this policies this permission how you 444 00:18:48,799 --> 00:18:51,440 can increase that if you see here we 445 00:18:51,440 --> 00:18:53,440 have a kind of recommendations about 446 00:18:53,440 --> 00:18:56,400 administrator access a bunch of you know 447 00:18:56,400 --> 00:18:59,480 access or over privilege that you have 448 00:18:59,480 --> 00:19:03,320 inside of that so you can see what you 449 00:19:03,320 --> 00:19:05,520 can improve this how you can change this 450 00:19:05,520 --> 00:19:08,520 so uh not only this but in the beginning 451 00:19:08,520 --> 00:19:11,000 here if you see there are a specifically 452 00:19:11,000 --> 00:19:13,720 send boox mode here you see so we don't 453 00:19:13,720 --> 00:19:15,919 need to include any things to your 454 00:19:15,919 --> 00:19:17,520 environment this is a fake uh 455 00:19:17,520 --> 00:19:20,320 information just to see how this to 456 00:19:20,320 --> 00:19:22,400 works and after that you have kind of 457 00:19:22,400 --> 00:19:24,679 informations about the access path here 458 00:19:24,679 --> 00:19:27,200 so you can see in the graph way how is 459 00:19:27,200 --> 00:19:30,240 the the the basically the the 460 00:19:30,240 --> 00:19:32,159 connections between of the permissions 461 00:19:32,159 --> 00:19:35,960 where or when they will access and in 462 00:19:35,960 --> 00:19:39,280 the end here we have a a real graphic of 463 00:19:39,280 --> 00:19:42,320 these things and we have a specifically 464 00:19:42,320 --> 00:19:45,360 attack path version here so this is the 465 00:19:45,360 --> 00:19:48,200 feature basically you can map based on 466 00:19:48,200 --> 00:19:49,799 the actions in this case another action 467 00:19:49,799 --> 00:19:52,400 attack user polic that you can attach 468 00:19:52,400 --> 00:19:55,600 new permissions from the users so attach 469 00:19:55,600 --> 00:19:57,960 you know user policy is a kind of uh 470 00:19:57,960 --> 00:19:59,600 action the same case to the create 471 00:19:59,600 --> 00:20:04,400 policy so and here you have a another um 472 00:20:04,400 --> 00:20:05,799 you know 473 00:20:05,799 --> 00:20:08,679 um is uh oh man I forgot the name in 474 00:20:08,679 --> 00:20:13,640 English is uh um machine learning 475 00:20:13,640 --> 00:20:15,440 it's machine learning so we can suggest 476 00:20:15,440 --> 00:20:17,360 to the code to change the Poli to help 477 00:20:17,360 --> 00:20:20,120 you you know using CL formations and 478 00:20:20,120 --> 00:20:23,679 Tera for and that's the key so again 479 00:20:23,679 --> 00:20:26,120 just for free so you can use in your 480 00:20:26,120 --> 00:20:28,400 environment if you want and if you have 481 00:20:28,400 --> 00:20:30,960 any questions I think I don't have a 482 00:20:30,960 --> 00:20:34,280 time to questions but I can see the curl 483 00:20:34,280 --> 00:20:37,400 but again guys thank you for being here 484 00:20:37,400 --> 00:20:40,520 and uh I hope should be useful remember 485 00:20:40,520 --> 00:20:42,600 one single action has a big impact in 486 00:20:42,600 --> 00:20:45,960 your environment so check this out see 487 00:20:45,960 --> 00:20:49,679 how this works make your tests okay and 488 00:20:49,679 --> 00:20:51,480 you can see how is the impact thank you 489 00:20:51,480 --> 00:20:52,790 so much 490 00:20:52,790 --> 00:20:58,619 [Applause]