1 00:00:01,560 --> 00:00:02,840 this is the first time I've done this so 2 00:00:02,840 --> 00:00:04,400 it worked out well that this is where it 3 00:00:04,400 --> 00:00:06,879 ended up happening so hi everyone in the 4 00:00:06,879 --> 00:00:08,920 back how's it 5 00:00:08,920 --> 00:00:12,559 going all right let's get 6 00:00:12,639 --> 00:00:15,280 going this is Gone in 60 Seconds how 7 00:00:15,280 --> 00:00:17,000 Azure ad entra ID tenants are 8 00:00:17,000 --> 00:00:19,199 compromised and uh I will I will be 9 00:00:19,199 --> 00:00:23,199 honest I saw that uh Dr azer dor over 10 00:00:23,199 --> 00:00:25,519 here uh had submitted to Cloud Village 11 00:00:25,519 --> 00:00:27,039 and I was like well I can't let him go 12 00:00:27,039 --> 00:00:29,320 speak there and not be there also uh the 13 00:00:29,320 --> 00:00:31,039 last time I SP at the cloud Village was 14 00:00:31,039 --> 00:00:32,680 5 years ago and I was actually the 15 00:00:32,680 --> 00:00:34,040 opening keynote of the first Cloud 16 00:00:34,040 --> 00:00:35,760 Village so thank you to jish and and all 17 00:00:35,760 --> 00:00:37,520 of the wonderful Cloud Village folks for 18 00:00:37,520 --> 00:00:40,000 putting this together uh this talk is 19 00:00:40,000 --> 00:00:42,120 about what happens when someone 20 00:00:42,120 --> 00:00:44,800 compromises Azure ID sorry enture ID 21 00:00:44,800 --> 00:00:48,199 Microsoft wherever you are in the cloud 22 00:00:48,199 --> 00:00:50,920 um I I wanted to put something together 23 00:00:50,920 --> 00:00:53,079 to show ways that attackers can actually 24 00:00:53,079 --> 00:00:54,280 compromise the environment and things 25 00:00:54,280 --> 00:00:56,039 that we can do about it so we got to 26 00:00:56,039 --> 00:00:58,199 start with our cast so this is our Gone 27 00:00:58,199 --> 00:01:01,320 in 60 Seconds cast and what's 28 00:01:01,320 --> 00:01:02,600 interesting is I found that there's an 29 00:01:02,600 --> 00:01:03,840 Easter egg there's actually a little 30 00:01:03,840 --> 00:01:06,520 sticker on that tool box thing that says 31 00:01:06,520 --> 00:01:08,880 b for tools so we we also kind of have 32 00:01:08,880 --> 00:01:11,560 Tim Allen uh in this in this movie as 33 00:01:11,560 --> 00:01:14,000 well I was already introduced so thank 34 00:01:14,000 --> 00:01:15,520 you very much for Mike uh to Mike for 35 00:01:15,520 --> 00:01:17,759 introducing me uh but this is what 36 00:01:17,759 --> 00:01:19,400 co-pilot said I look like so I'm going 37 00:01:19,400 --> 00:01:21,680 to go with 38 00:01:21,680 --> 00:01:24,759 that so as as Mike said I am founder and 39 00:01:24,759 --> 00:01:26,799 CTO of trar I'm a Microsoft certified 40 00:01:26,799 --> 00:01:28,680 master and act directory and I've spoken 41 00:01:28,680 --> 00:01:30,040 at a number of conferences including 42 00:01:30,040 --> 00:01:32,360 Defcon black hat uh and the cloud 43 00:01:32,360 --> 00:01:35,240 Village so our agenda we are going to be 44 00:01:35,240 --> 00:01:37,280 talking about entra ID highly privileged 45 00:01:37,280 --> 00:01:39,439 roles and applications the security 46 00:01:39,439 --> 00:01:41,280 posture issues that I see when I look at 47 00:01:41,280 --> 00:01:43,640 environments on a regular basis and then 48 00:01:43,640 --> 00:01:44,880 conditional access policy I'm not going 49 00:01:44,880 --> 00:01:46,600 to Deep dive into conditional access 50 00:01:46,600 --> 00:01:48,640 policy but I am going to talk about 51 00:01:48,640 --> 00:01:50,799 those gaps I'm going to talk about three 52 00:01:50,799 --> 00:01:53,119 specific gaps that if you are managing 53 00:01:53,119 --> 00:01:55,320 your enter ID environment you probably 54 00:01:55,320 --> 00:01:57,039 have one of these gaps in place because 55 00:01:57,039 --> 00:01:58,600 this is what I frequently see during 56 00:01:58,600 --> 00:02:00,399 assessments and then what I'm calling 57 00:02:00,399 --> 00:02:02,320 Microsoft blizzard cuz why not Microsoft 58 00:02:02,320 --> 00:02:05,240 calls the uh the attackers the Russians 59 00:02:05,240 --> 00:02:07,399 uh midnight blizzard so I'm calling this 60 00:02:07,399 --> 00:02:09,598 midnight uh Microsoft blizzard and then 61 00:02:09,598 --> 00:02:11,680 going to wrap it up with securing the 62 00:02:11,680 --> 00:02:13,280 administration and how to best to fix 63 00:02:13,280 --> 00:02:15,599 these things so moving from one Nick 64 00:02:15,599 --> 00:02:17,760 Cage screenshot to another uh I'm going 65 00:02:17,760 --> 00:02:20,080 to talk about entra ID level zero this 66 00:02:20,080 --> 00:02:22,879 is kind of like tier zero but different 67 00:02:22,879 --> 00:02:24,319 um one of the things that I think is 68 00:02:24,319 --> 00:02:26,000 important is to understand what are the 69 00:02:26,000 --> 00:02:27,360 what are the most significant and 70 00:02:27,360 --> 00:02:30,519 important environment or components in a 71 00:02:30,519 --> 00:02:33,720 in an environment in a system there are 72 00:02:33,720 --> 00:02:37,640 100 roles in entra ID there were not 73 00:02:37,640 --> 00:02:40,519 always a 100 rolls I remember when there 74 00:02:40,519 --> 00:02:43,680 were what five yeah the stor says five I 75 00:02:43,680 --> 00:02:45,159 remember when it was probably about 5 to 76 00:02:45,159 --> 00:02:47,400 10 uh Microsoft has gone through and 77 00:02:47,400 --> 00:02:49,080 started tagging these with a privilege 78 00:02:49,080 --> 00:02:52,360 tag and there are 26 privilege roles 79 00:02:52,360 --> 00:02:54,920 according to Microsoft but for those in 80 00:02:54,920 --> 00:02:56,640 the back the one on the bottom left says 81 00:02:56,640 --> 00:02:59,159 Glo Global reader that will not give you 82 00:02:59,159 --> 00:03:00,640 the ability to change change anything in 83 00:03:00,640 --> 00:03:03,319 inra ID at all so I don't really 84 00:03:03,319 --> 00:03:04,760 understand that perspective labeling 85 00:03:04,760 --> 00:03:06,120 privileges I get that there's certain 86 00:03:06,120 --> 00:03:07,799 things you can see as a global reader 87 00:03:07,799 --> 00:03:10,760 that a user can't that's concerning so I 88 00:03:10,760 --> 00:03:12,400 went ahead and change this and so 89 00:03:12,400 --> 00:03:13,640 there's a few things that are bolded 90 00:03:13,640 --> 00:03:16,080 here that are really very important or 91 00:03:16,080 --> 00:03:18,680 some that are italicized but let's just 92 00:03:18,680 --> 00:03:20,920 make this really really simple so at 93 00:03:20,920 --> 00:03:22,799 Trimark we do security assessments and 94 00:03:22,799 --> 00:03:24,319 we have actually broken these roles down 95 00:03:24,319 --> 00:03:26,680 into what we call levels level zero is 96 00:03:26,680 --> 00:03:29,200 like tier zero so we start with global 97 00:03:29,200 --> 00:03:30,959 admin every everyone knows Global admin 98 00:03:30,959 --> 00:03:33,120 it is the domain admin Enterprise admin 99 00:03:33,120 --> 00:03:36,040 of entra ID then we have the hybrid 100 00:03:36,040 --> 00:03:38,400 identity administrator role this one 101 00:03:38,400 --> 00:03:40,000 when Microsoft came out with this I 102 00:03:40,000 --> 00:03:42,360 think it came out in 2020 um I reached 103 00:03:42,360 --> 00:03:44,680 out to Microsoft in early 2021 and spent 104 00:03:44,680 --> 00:03:46,920 a year and a half with them trying to 105 00:03:46,920 --> 00:03:49,080 get them to pair back and pull back 106 00:03:49,080 --> 00:03:51,040 permissions which they did they actually 107 00:03:51,040 --> 00:03:52,400 reduced the permission to hybrid de 108 00:03:52,400 --> 00:03:54,280 identity administrator role because when 109 00:03:54,280 --> 00:03:57,599 it existed in 2021 it was effectively a 110 00:03:57,599 --> 00:03:59,360 global admin just not name that and no 111 00:03:59,360 --> 00:04:01,040 one knew what it was called and was or 112 00:04:01,040 --> 00:04:03,400 what it was for and just started adding 113 00:04:03,400 --> 00:04:06,439 accounts to it so uh they've kind of 114 00:04:06,439 --> 00:04:08,720 gotten to a side of kind of status quo 115 00:04:08,720 --> 00:04:10,760 place with this role so at this point 116 00:04:10,760 --> 00:04:12,799 this role still has some highly uh 117 00:04:12,799 --> 00:04:13,959 privileged rights especially around 118 00:04:13,959 --> 00:04:16,040 Federation settings anyone who can 119 00:04:16,040 --> 00:04:18,000 control Federation settings within enter 120 00:04:18,000 --> 00:04:19,238 ID has the ability to control 121 00:04:19,238 --> 00:04:21,279 authentication which can control how 122 00:04:21,279 --> 00:04:22,800 people authenticate and who can 123 00:04:22,800 --> 00:04:24,919 authenticate and do different things uh 124 00:04:24,919 --> 00:04:26,720 thanks to Andy for partner tier 2 125 00:04:26,720 --> 00:04:29,720 support this one is tends to be in 126 00:04:29,720 --> 00:04:32,080 invisible depending on which portal 127 00:04:32,080 --> 00:04:34,360 you're looking at Microsoft loves her 128 00:04:34,360 --> 00:04:36,639 portals uh hopefully they they'll work 129 00:04:36,639 --> 00:04:38,560 through and and consolidate those we 130 00:04:38,560 --> 00:04:39,720 have the privilege authentication 131 00:04:39,720 --> 00:04:41,880 administrator role uh which Microsoft 132 00:04:41,880 --> 00:04:43,680 has said do not use for some reason but 133 00:04:43,680 --> 00:04:45,320 it allows you to set or reset any 134 00:04:45,320 --> 00:04:46,880 authentication method including 135 00:04:46,880 --> 00:04:49,479 passwords so that sounds like a pretty 136 00:04:49,479 --> 00:04:50,919 big 137 00:04:50,919 --> 00:04:53,160 deal and that's someone using the 138 00:04:53,160 --> 00:04:54,600 privileged authentication administrator 139 00:04:54,600 --> 00:04:56,160 roll in Microsoft and the cloud getting 140 00:04:56,160 --> 00:04:57,759 mad so just don't do that we don't want 141 00:04:57,759 --> 00:05:00,199 to anger the the cloud Gods here and 142 00:05:00,199 --> 00:05:01,240 then finally the privilege role 143 00:05:01,240 --> 00:05:02,639 administrator has the ability to 144 00:05:02,639 --> 00:05:04,680 actually modify these role 145 00:05:04,680 --> 00:05:07,280 memberships so then we also look at uh 146 00:05:07,280 --> 00:05:08,960 the next level the sort of what we call 147 00:05:08,960 --> 00:05:10,960 the level zero roles these are the ones 148 00:05:10,960 --> 00:05:13,880 that have potential to actually be full 149 00:05:13,880 --> 00:05:15,919 admins within the uh entri ID 150 00:05:15,919 --> 00:05:18,199 environment or have the ability to 151 00:05:18,199 --> 00:05:20,759 adjust the security posture so we have 152 00:05:20,759 --> 00:05:22,440 application administrator which by the 153 00:05:22,440 --> 00:05:25,000 way is effectively a level zero or a 154 00:05:25,000 --> 00:05:27,039 tier zero role if you have highly 155 00:05:27,039 --> 00:05:29,160 privileged applications because those 156 00:05:29,160 --> 00:05:31,600 applications are controlled by Guess Who 157 00:05:31,600 --> 00:05:33,680 the application administrator and 158 00:05:33,680 --> 00:05:35,840 because one role to do that is not good 159 00:05:35,840 --> 00:05:37,319 enough Microsoft created another one 160 00:05:37,319 --> 00:05:39,199 called Cloud application administrator 161 00:05:39,199 --> 00:05:41,479 which has effectively the same rights a 162 00:05:41,479 --> 00:05:43,120 little bit different but effectively the 163 00:05:43,120 --> 00:05:44,960 same uh both of these can add 164 00:05:44,960 --> 00:05:47,199 credentials modify service principles 165 00:05:47,199 --> 00:05:48,600 depending on how the application is 166 00:05:48,600 --> 00:05:51,120 configured that's important uh we need 167 00:05:51,120 --> 00:05:52,840 to be careful of those and of course 168 00:05:52,840 --> 00:05:54,440 directory synchronization account is 169 00:05:54,440 --> 00:05:56,520 that one that actually synchronizes 170 00:05:56,520 --> 00:05:58,160 between the on-prem environment and the 171 00:05:58,160 --> 00:05:59,759 cloud which of course is very very 172 00:05:59,759 --> 00:06:01,280 highly 173 00:06:01,280 --> 00:06:03,560 privileged uh and then partner tier one 174 00:06:03,560 --> 00:06:05,319 support which has ability to reset 175 00:06:05,319 --> 00:06:08,520 passwords can do stuff with ooth um 176 00:06:08,520 --> 00:06:09,880 again something that Microsoft says 177 00:06:09,880 --> 00:06:11,639 don't use but then people use it and 178 00:06:11,639 --> 00:06:14,479 it's been around for a while there is a 179 00:06:14,479 --> 00:06:16,520 pretty good table that Microsoft has it 180 00:06:16,520 --> 00:06:18,840 talks about who can reset one p what 181 00:06:18,840 --> 00:06:22,080 password for whom um but honestly Andy 182 00:06:22,080 --> 00:06:25,000 did it better uh so this table is way 183 00:06:25,000 --> 00:06:27,039 better to understand who actually has 184 00:06:27,039 --> 00:06:29,960 the ability to set which uh password for 185 00:06:29,960 --> 00:06:32,720 what role so if you you have an account 186 00:06:32,720 --> 00:06:34,680 that's in a certain role uh your help 187 00:06:34,680 --> 00:06:36,960 desk may or may not be actually able to 188 00:06:36,960 --> 00:06:39,039 change that 189 00:06:39,039 --> 00:06:42,639 password so about two years ago I did a 190 00:06:42,639 --> 00:06:44,759 talk at Tech and I talked about the 191 00:06:44,759 --> 00:06:47,880 highly privileged uh permissions that 192 00:06:47,880 --> 00:06:50,400 applications can have and so at trar we 193 00:06:50,400 --> 00:06:51,440 went ahead and rolled these over into 194 00:06:51,440 --> 00:06:54,039 what we call level zero permissions uh 195 00:06:54,039 --> 00:06:56,240 so the level zero this this first one 196 00:06:56,240 --> 00:06:58,960 directory rewrite all now there has been 197 00:06:58,960 --> 00:07:01,000 a couple of conversations online about 198 00:07:01,000 --> 00:07:03,039 is this that highly privileged or isn't 199 00:07:03,039 --> 00:07:05,400 it I'm not going to get into the nuances 200 00:07:05,400 --> 00:07:07,120 of that Microsoft says it it's highly 201 00:07:07,120 --> 00:07:09,879 privileged and it's concerning and they 202 00:07:09,879 --> 00:07:11,319 often tweak permissions in the 203 00:07:11,319 --> 00:07:13,120 background so I'm going to keep this on 204 00:07:13,120 --> 00:07:14,879 the list until such a time that 205 00:07:14,879 --> 00:07:17,000 Microsoft actually reduces the rights 206 00:07:17,000 --> 00:07:19,759 fully and it stays that way which is not 207 00:07:19,759 --> 00:07:22,280 and so we have app roll assignment this 208 00:07:22,280 --> 00:07:23,840 is kind of cool because this gives the 209 00:07:23,840 --> 00:07:25,400 application the ability to go you know 210 00:07:25,400 --> 00:07:27,879 what I want to be a global admin today 211 00:07:27,879 --> 00:07:29,520 or actually not a global admin but have 212 00:07:29,520 --> 00:07:31,199 Global admin rights I want to be able to 213 00:07:31,199 --> 00:07:33,479 manage applications it basically says I 214 00:07:33,479 --> 00:07:35,599 can do whatever I want to be I can have 215 00:07:35,599 --> 00:07:37,919 any rights I want because it can provide 216 00:07:37,919 --> 00:07:39,520 itself the permissions that it wants 217 00:07:39,520 --> 00:07:41,680 when it needs them or when it wants them 218 00:07:41,680 --> 00:07:43,599 role management that's the one where it 219 00:07:43,599 --> 00:07:45,560 says I want to be a global admin today 220 00:07:45,560 --> 00:07:47,280 and it can be a global admin it can be 221 00:07:47,280 --> 00:07:49,280 any of the roles it can manage any role 222 00:07:49,280 --> 00:07:51,319 that it wants to and then finally 223 00:07:51,319 --> 00:07:53,560 application read WR all this is the one 224 00:07:53,560 --> 00:07:55,680 that gives the ability to control the 225 00:07:55,680 --> 00:07:57,560 applications any of the applications 226 00:07:57,560 --> 00:07:59,879 that are in the environment so an with 227 00:07:59,879 --> 00:08:01,599 this right can manage any of the other 228 00:08:01,599 --> 00:08:03,319 applications so you might have an 229 00:08:03,319 --> 00:08:05,319 application that has this right but 230 00:08:05,319 --> 00:08:07,800 nothing else but another application in 231 00:08:07,800 --> 00:08:09,199 your environment actually has role 232 00:08:09,199 --> 00:08:11,120 management read write directory which 233 00:08:11,120 --> 00:08:12,960 means that the application that has this 234 00:08:12,960 --> 00:08:16,080 bottom right has ability to then control 235 00:08:16,080 --> 00:08:18,080 that other application to then become a 236 00:08:18,080 --> 00:08:20,159 domain admin or sorry Global 237 00:08:20,159 --> 00:08:24,080 admin slip back into my 80 days so Azure 238 00:08:24,080 --> 00:08:27,280 ad and entra ID so I asked co-pilot 239 00:08:27,280 --> 00:08:29,720 because AI is the rage to uh make an 240 00:08:29,720 --> 00:08:33,320 image of what I said create an image 241 00:08:33,320 --> 00:08:35,880 that represents Azure ad and I think it 242 00:08:35,880 --> 00:08:37,919 did a pretty good job what do you think 243 00:08:37,919 --> 00:08:39,159 can I hear a round of applause for 244 00:08:39,159 --> 00:08:40,679 co-pilot like I think that was pretty 245 00:08:40,679 --> 00:08:42,679 good thank you and all the other 246 00:08:42,679 --> 00:08:43,640 speakers are going to be like why are 247 00:08:43,640 --> 00:08:44,880 they 248 00:08:44,880 --> 00:08:47,040 clapping there are some defaults that I 249 00:08:47,040 --> 00:08:48,720 don't think are necessarily insecure I'm 250 00:08:48,720 --> 00:08:51,160 going to call them unfortunate users 251 00:08:51,160 --> 00:08:52,880 represented by this DJ on the left for 252 00:08:52,880 --> 00:08:56,279 some reason um can register applications 253 00:08:56,279 --> 00:08:58,600 they can consent to Applications they 254 00:08:58,600 --> 00:09:00,640 can create new tenants and then they can 255 00:09:00,640 --> 00:09:03,120 join and hybrid join uh devices to the 256 00:09:03,120 --> 00:09:05,720 tenant no mfas is required for that so 257 00:09:05,720 --> 00:09:08,440 that's unfortunate I I mean we could say 258 00:09:08,440 --> 00:09:10,800 it's insecure but that doesn't 259 00:09:10,800 --> 00:09:12,480 necessarily lead to something directly 260 00:09:12,480 --> 00:09:14,959 but often these are the reasons why we 261 00:09:14,959 --> 00:09:17,440 have the problems that we do in entra ID 262 00:09:17,440 --> 00:09:19,760 today because a user creates an 263 00:09:19,760 --> 00:09:21,640 application or they register an 264 00:09:21,640 --> 00:09:23,200 application they become the owner of 265 00:09:23,200 --> 00:09:25,880 that app that app then gets consented to 266 00:09:25,880 --> 00:09:28,440 by the uh Global admin and all of a 267 00:09:28,440 --> 00:09:29,760 sudden it has role man agement 268 00:09:29,760 --> 00:09:32,120 capabilities and that user still has 269 00:09:32,120 --> 00:09:33,600 owner rights on it which means that they 270 00:09:33,600 --> 00:09:35,519 can go ahead and control that 271 00:09:35,519 --> 00:09:37,360 application they can add credentials to 272 00:09:37,360 --> 00:09:39,399 it and then guests over here which is 273 00:09:39,399 --> 00:09:41,079 represented by Bob Hope for some reason 274 00:09:41,079 --> 00:09:43,920 I'm showing my age uh have the same view 275 00:09:43,920 --> 00:09:45,760 rights as users and they can invite 276 00:09:45,760 --> 00:09:48,640 other guests as well so that's a lot I 277 00:09:48,640 --> 00:09:50,200 mean do you really want this guy to be 278 00:09:50,200 --> 00:09:51,360 able to have all these rights in your 279 00:09:51,360 --> 00:09:54,000 environment no absolutely 280 00:09:54,000 --> 00:09:56,360 not and there's a number of common 281 00:09:56,360 --> 00:09:58,600 security issues that we see we see 282 00:09:58,600 --> 00:10:00,399 issues with the a privilege account so 283 00:10:00,399 --> 00:10:03,160 standard users regular users that have 284 00:10:03,160 --> 00:10:06,320 email are in roles stop doing that 285 00:10:06,320 --> 00:10:09,120 please if you're in a security role 286 00:10:09,120 --> 00:10:10,640 please make sure that we're using 287 00:10:10,640 --> 00:10:13,279 separate administrator accounts because 288 00:10:13,279 --> 00:10:15,760 the same account that is is used for 289 00:10:15,760 --> 00:10:17,880 email is used for web browsing they're 290 00:10:17,880 --> 00:10:19,480 probably logging onto the web browser to 291 00:10:19,480 --> 00:10:21,480 manage that Azure ad environment or 292 00:10:21,480 --> 00:10:24,720 sorry entra ID sorry um we're also 293 00:10:24,720 --> 00:10:26,000 seeing accounts that authenticate from 294 00:10:26,000 --> 00:10:27,800 user workstations again that same web 295 00:10:27,800 --> 00:10:30,000 browser that they use to go to Facebook 296 00:10:30,000 --> 00:10:33,079 Twitter sorry X wherever everywhere that 297 00:10:33,079 --> 00:10:35,959 they go that's where the this this um 298 00:10:35,959 --> 00:10:38,160 that user that admin token is is 299 00:10:38,160 --> 00:10:39,680 existing on that web browser I'm going 300 00:10:39,680 --> 00:10:41,240 to show you why that's problematic in a 301 00:10:41,240 --> 00:10:45,279 minute using Pim but everyone is active 302 00:10:45,279 --> 00:10:47,760 everyone is a permanent member so I get 303 00:10:47,760 --> 00:10:49,880 that Microsoft to set this up used to be 304 00:10:49,880 --> 00:10:51,800 when you enabled Pim you had to onboard 305 00:10:51,800 --> 00:10:53,959 roles and Microsoft said Ah that's kind 306 00:10:53,959 --> 00:10:55,399 of hard we'll just on board all the 307 00:10:55,399 --> 00:10:57,440 roles and then everyone who's already a 308 00:10:57,440 --> 00:11:00,240 member will be permanently active in Pim 309 00:11:00,240 --> 00:11:02,279 and then that way it's all set the 310 00:11:02,279 --> 00:11:03,639 problem with this is we've seen 311 00:11:03,639 --> 00:11:04,800 environments where they go well we're 312 00:11:04,800 --> 00:11:08,680 using Pim check we're done now we move 313 00:11:08,680 --> 00:11:11,120 on but there is no difference to having 314 00:11:11,120 --> 00:11:14,480 a permanent active member in Pim as it 315 00:11:14,480 --> 00:11:17,639 is to use not use Pim at all so that's 316 00:11:17,639 --> 00:11:20,200 not helping you Pim is for just in time 317 00:11:20,200 --> 00:11:22,760 access just in time capability that we 318 00:11:22,760 --> 00:11:24,800 shouldn't have permanent members within 319 00:11:24,800 --> 00:11:28,120 Pim and then MFA not required uh 320 00:11:28,120 --> 00:11:29,360 applications with highly privileged 321 00:11:29,360 --> 00:11:30,839 permissions I talked about this a little 322 00:11:30,839 --> 00:11:32,680 bit standard user account in the 323 00:11:32,680 --> 00:11:34,079 application administrator Andor the 324 00:11:34,079 --> 00:11:35,600 cloud application administrator role I 325 00:11:35,600 --> 00:11:37,839 see this all the time can anyone shout 326 00:11:37,839 --> 00:11:39,760 out the number one reason why a regular 327 00:11:39,760 --> 00:11:41,160 user might be in the application 328 00:11:41,160 --> 00:11:43,279 administrator 329 00:11:43,279 --> 00:11:46,320 role because they want to register an 330 00:11:46,320 --> 00:11:49,440 application they can already do that 331 00:11:49,440 --> 00:11:51,120 they shouldn't be able to and there is a 332 00:11:51,120 --> 00:11:52,720 role called application developer which 333 00:11:52,720 --> 00:11:54,519 gives them that ability so there are 334 00:11:54,519 --> 00:11:56,480 ways to do that today in 2024 that 335 00:11:56,480 --> 00:11:58,600 weren't there in 2020 or 2021 336 00:11:58,600 --> 00:12:00,920 potentially so the one thing if there's 337 00:12:00,920 --> 00:12:03,079 any message that you get from my talk is 338 00:12:03,079 --> 00:12:05,360 that these change things change rapidly 339 00:12:05,360 --> 00:12:07,880 but that also means that vendors are not 340 00:12:07,880 --> 00:12:09,839 keeping up with it they might have said 341 00:12:09,839 --> 00:12:11,399 that their application needs directory 342 00:12:11,399 --> 00:12:12,959 rewrite all because they came out with 343 00:12:12,959 --> 00:12:15,560 it in 2019 or 2020 but that may not be 344 00:12:15,560 --> 00:12:17,800 the case today so keep checking with 345 00:12:17,800 --> 00:12:20,199 your vendors push on them to use lesser 346 00:12:20,199 --> 00:12:23,000 rights uh group nesting guess what what 347 00:12:23,000 --> 00:12:25,399 is old is new again and in active 348 00:12:25,399 --> 00:12:26,920 directory one of the biggest problems 349 00:12:26,920 --> 00:12:29,199 that I've seen with with uh permissions 350 00:12:29,199 --> 00:12:30,880 or privileged accounts in the 351 00:12:30,880 --> 00:12:34,079 environment is group nesting we have 352 00:12:34,079 --> 00:12:36,320 members of this this group which is 353 00:12:36,320 --> 00:12:37,680 members of another group which is then a 354 00:12:37,680 --> 00:12:39,079 member of the administrators group in 355 00:12:39,079 --> 00:12:41,279 domain admins Microsoft said you know 356 00:12:41,279 --> 00:12:42,920 what entra id doesn't have that we 357 00:12:42,920 --> 00:12:45,160 should put it in there that'll be great 358 00:12:45,160 --> 00:12:47,519 it'll be fine we all love that and then 359 00:12:47,519 --> 00:12:49,519 finally partner access delegated access 360 00:12:49,519 --> 00:12:50,760 permissions which I'll talk in about a 361 00:12:50,760 --> 00:12:53,040 little bit so as I talk through this 362 00:12:53,040 --> 00:12:54,920 this is what it looks like this is very 363 00:12:54,920 --> 00:12:56,800 common we have a bunch of user accounts 364 00:12:56,800 --> 00:12:59,240 we have a Shayla we have a Kenya we have 365 00:12:59,240 --> 00:13:01,360 chrisa we have a bunch of accounts here 366 00:13:01,360 --> 00:13:03,839 that are standard regular user accounts 367 00:13:03,839 --> 00:13:05,560 that are members of global administrator 368 00:13:05,560 --> 00:13:07,519 and they're permanent members that means 369 00:13:07,519 --> 00:13:09,839 that their token in their web browser 370 00:13:09,839 --> 00:13:11,440 when they're browsing whatever else once 371 00:13:11,440 --> 00:13:13,880 they're authenticated has full admin 372 00:13:13,880 --> 00:13:16,240 rights to the environment they are not 373 00:13:16,240 --> 00:13:18,240 eligible they are set to 374 00:13:18,240 --> 00:13:20,720 permanent and then we often see admin 375 00:13:20,720 --> 00:13:23,480 accounts that don't require MFA don't 376 00:13:23,480 --> 00:13:25,680 even have them registered so now that 377 00:13:25,680 --> 00:13:27,760 we're using the graph API because the 378 00:13:27,760 --> 00:13:30,959 older uh mson line and azuread U command 379 00:13:30,959 --> 00:13:32,839 LS are are deprecated which by the way 380 00:13:32,839 --> 00:13:34,440 they're deprecated but Microsoft just 381 00:13:34,440 --> 00:13:36,560 released the entra poers shell module so 382 00:13:36,560 --> 00:13:38,040 definitely start shifting over to that 383 00:13:38,040 --> 00:13:40,560 as soon as possible um it came out late 384 00:13:40,560 --> 00:13:43,040 June so we're what about two months in 385 00:13:43,040 --> 00:13:46,440 now uh but what we have is is MFA 386 00:13:46,440 --> 00:13:48,920 capable is MFA registered so we get a 387 00:13:48,920 --> 00:13:50,800 lot more detail than we did before so 388 00:13:50,800 --> 00:13:53,639 that's a good thing as I talked about we 389 00:13:53,639 --> 00:13:56,320 now have groups what is old is new again 390 00:13:56,320 --> 00:13:58,600 but Microsoft was like wait a second in 391 00:13:58,600 --> 00:14:00,519 active Direct if we had a group that was 392 00:14:00,519 --> 00:14:01,839 a member of this a member of this a 393 00:14:01,839 --> 00:14:03,759 member of this and so on and so forth we 394 00:14:03,759 --> 00:14:05,519 have a problem where someone could have 395 00:14:05,519 --> 00:14:08,240 rights to that group so let's create a 396 00:14:08,240 --> 00:14:10,720 whole new type of group and call it a 397 00:14:10,720 --> 00:14:12,720 role assignable group so the role 398 00:14:12,720 --> 00:14:15,279 assignable group can only be created by 399 00:14:15,279 --> 00:14:16,839 a privilege authentication administrator 400 00:14:16,839 --> 00:14:20,040 or group a global administrator uh I'm 401 00:14:20,040 --> 00:14:21,759 sorry a a privilege role administrator 402 00:14:21,759 --> 00:14:23,880 or a global administrator can created 403 00:14:23,880 --> 00:14:25,519 and then only the uh privileged 404 00:14:25,519 --> 00:14:27,160 authentication administrator or Global 405 00:14:27,160 --> 00:14:29,199 admin can change those credentials or 406 00:14:29,199 --> 00:14:32,279 reset MFA or and make any changes to it 407 00:14:32,279 --> 00:14:35,199 and so we have these roles these role 408 00:14:35,199 --> 00:14:37,240 assignable groups so that way you can 409 00:14:37,240 --> 00:14:39,839 have this group nesting anyone want to 410 00:14:39,839 --> 00:14:42,240 guess how frequently we see this misused 411 00:14:42,240 --> 00:14:45,199 or used in a way that it wasn't 412 00:14:45,199 --> 00:14:48,000 expected if you said like 95% of the 413 00:14:48,000 --> 00:14:49,920 time you're absolutely right so rooll 414 00:14:49,920 --> 00:14:51,440 assignable groups are the new group 415 00:14:51,440 --> 00:14:53,600 nesting and entry ID and it's a problem 416 00:14:53,600 --> 00:14:56,079 because it's not Global admin it's just 417 00:14:56,079 --> 00:14:58,839 a member of global admin so this is 418 00:14:58,839 --> 00:15:00,199 something something that can be useful 419 00:15:00,199 --> 00:15:02,519 and helpful and Microsoft did Think 420 00:15:02,519 --> 00:15:04,000 Through the security but the problem 421 00:15:04,000 --> 00:15:07,519 with this is uh it it's this is the 422 00:15:07,519 --> 00:15:09,360 biggest problem I'd say so here we have 423 00:15:09,360 --> 00:15:11,440 our Global administrator role and we 424 00:15:11,440 --> 00:15:13,680 have big Mega Corp Global admins next to 425 00:15:13,680 --> 00:15:15,000 that blue arrow I'm talking through it 426 00:15:15,000 --> 00:15:17,320 for the people in the back and then I 427 00:15:17,320 --> 00:15:19,560 have type here called group and there is 428 00:15:19,560 --> 00:15:21,600 a a tag on that that says that it's a a 429 00:15:21,600 --> 00:15:22,839 role assignable 430 00:15:22,839 --> 00:15:26,040 group but it we can't just click on this 431 00:15:26,040 --> 00:15:28,160 to see who the members are who thinks 432 00:15:28,160 --> 00:15:29,680 that's a bad idea 433 00:15:29,680 --> 00:15:31,959 I think that's a horrible idea I don't 434 00:15:31,959 --> 00:15:33,720 understand that at all you can't click 435 00:15:33,720 --> 00:15:35,120 on that you can't see any of the 436 00:15:35,120 --> 00:15:38,279 membership of this of this group in this 437 00:15:38,279 --> 00:15:40,240 this console right here we have to go to 438 00:15:40,240 --> 00:15:43,360 the groups uh portal page which is 439 00:15:43,360 --> 00:15:45,160 completely separate we have to search 440 00:15:45,160 --> 00:15:47,519 for this name Global uh big Mega Corp 441 00:15:47,519 --> 00:15:49,519 Global admins and then we can see that 442 00:15:49,519 --> 00:15:51,120 there's a bunch of regular user accounts 443 00:15:51,120 --> 00:15:53,240 there this is a problem and this is why 444 00:15:53,240 --> 00:15:55,000 group nesting continuously be a problem 445 00:15:55,000 --> 00:16:00,279 in entra ID then other thing is owners 446 00:16:00,279 --> 00:16:02,440 so Global administrator can go ahead and 447 00:16:02,440 --> 00:16:04,360 say all right well you know this this Ro 448 00:16:04,360 --> 00:16:05,839 assignable group I want to make sure 449 00:16:05,839 --> 00:16:08,319 that we have uh Kate and Robert they 450 00:16:08,319 --> 00:16:09,959 they should be able to manage it because 451 00:16:09,959 --> 00:16:11,000 they're they're the ones that should be 452 00:16:11,000 --> 00:16:13,839 managing that well these two user 453 00:16:13,839 --> 00:16:15,720 accounts now have the ability to control 454 00:16:15,720 --> 00:16:17,120 who can go into that role assignable 455 00:16:17,120 --> 00:16:19,199 group and who the members are but 456 00:16:19,199 --> 00:16:21,000 they're not Global admins they're not 457 00:16:21,000 --> 00:16:23,399 admins that are they're they're just 458 00:16:23,399 --> 00:16:26,040 users but what if the role ass signable 459 00:16:26,040 --> 00:16:27,920 group is in a different 460 00:16:27,920 --> 00:16:30,319 tenant so I found this in an environment 461 00:16:30,319 --> 00:16:32,319 and it's not supposed to work this 462 00:16:32,319 --> 00:16:36,040 way but it does uh I believe through 463 00:16:36,040 --> 00:16:37,839 some partner configuration called 464 00:16:37,839 --> 00:16:39,880 Lighthouse um from what I'm gathering so 465 00:16:39,880 --> 00:16:41,000 far I still have a question out to 466 00:16:41,000 --> 00:16:43,839 Microsoft about it you can actually have 467 00:16:43,839 --> 00:16:45,600 a role assignable group in a partner 468 00:16:45,600 --> 00:16:47,399 tenant that's a member of privilege role 469 00:16:47,399 --> 00:16:49,560 administrator or another role within 470 00:16:49,560 --> 00:16:51,880 your production 471 00:16:51,880 --> 00:16:54,440 tenant let me see a let me see a show of 472 00:16:54,440 --> 00:16:55,720 hands how many people think we can 473 00:16:55,720 --> 00:16:57,199 enumerate the membership of that group 474 00:16:57,199 --> 00:16:59,959 that role assignable group no we cannot 475 00:16:59,959 --> 00:17:02,399 we cannot see anything in that role at 476 00:17:02,399 --> 00:17:03,759 all we can't see anything about it cuz 477 00:17:03,759 --> 00:17:06,160 it's in the partner tenant so that's 478 00:17:06,160 --> 00:17:07,640 kind of a problem we can't even see it 479 00:17:07,640 --> 00:17:10,760 in Powershell it won't show 480 00:17:10,760 --> 00:17:14,400 up so conditional access policies uh I 481 00:17:14,400 --> 00:17:16,400 decided to do a little word cloud here 482 00:17:16,400 --> 00:17:18,119 so these are some of the more the higher 483 00:17:18,119 --> 00:17:19,599 numbers of conditional access policies 484 00:17:19,599 --> 00:17:21,280 that we see in environments somewhere 485 00:17:21,280 --> 00:17:24,359 between 20 and 100 um we actually just 486 00:17:24,359 --> 00:17:25,679 have an environment that we're going to 487 00:17:25,679 --> 00:17:27,079 be looking at soon that has something 488 00:17:27,079 --> 00:17:29,160 like 200 conditional access policies and 489 00:17:29,160 --> 00:17:31,760 50 of them are reporting only that's 150 490 00:17:31,760 --> 00:17:33,960 enabled conditional access policies 491 00:17:33,960 --> 00:17:36,000 please don't do that I understand that 492 00:17:36,000 --> 00:17:37,760 these are confusing and difficult to use 493 00:17:37,760 --> 00:17:39,840 at times but this is not the new group 494 00:17:39,840 --> 00:17:41,280 policy we are not trying to create a 495 00:17:41,280 --> 00:17:42,720 whole bunch of conditional access 496 00:17:42,720 --> 00:17:46,160 policies so I also asked co-pilots who I 497 00:17:46,160 --> 00:17:48,840 said create an image that represents 498 00:17:48,840 --> 00:17:50,960 conditional access policies and so they 499 00:17:50,960 --> 00:17:53,200 thought this is a great way to do it and 500 00:17:53,200 --> 00:17:55,360 um so everyone who says that AI is 501 00:17:55,360 --> 00:17:57,280 taking over but it can't spell 502 00:17:57,280 --> 00:18:00,840 conditional or access 503 00:18:01,120 --> 00:18:03,600 I don't know about that so conditional 504 00:18:03,600 --> 00:18:05,200 access policies these are policies that 505 00:18:05,200 --> 00:18:07,360 apply after the first Factor 506 00:18:07,360 --> 00:18:09,960 authentication so these have once you 507 00:18:09,960 --> 00:18:11,600 put in your username and password then 508 00:18:11,600 --> 00:18:13,320 these start applying and and actually 509 00:18:13,320 --> 00:18:16,360 take effect um they require P1 licensing 510 00:18:16,360 --> 00:18:18,480 but it really is a very important part 511 00:18:18,480 --> 00:18:20,640 of protecting your Cloud environment 512 00:18:20,640 --> 00:18:22,640 there's rules based on who's connecting 513 00:18:22,640 --> 00:18:24,320 the the the the you know the information 514 00:18:24,320 --> 00:18:26,000 that reporters are always looking for 515 00:18:26,000 --> 00:18:28,360 the who the where the what the when um 516 00:18:28,360 --> 00:18:29,919 and then I the the graphics that 517 00:18:29,919 --> 00:18:31,960 Microsoft has the signal to the decision 518 00:18:31,960 --> 00:18:32,880 to the 519 00:18:32,880 --> 00:18:34,480 enforcement and then there's this 520 00:18:34,480 --> 00:18:36,080 beautiful graphic that Microsoft has on 521 00:18:36,080 --> 00:18:38,200 its conditional access uh page but 522 00:18:38,200 --> 00:18:39,840 basically the conditional access policy 523 00:18:39,840 --> 00:18:41,480 for me is like an identity access 524 00:18:41,480 --> 00:18:43,880 firewall it determines who can access 525 00:18:43,880 --> 00:18:47,280 what from where and how so basically uh 526 00:18:47,280 --> 00:18:50,320 user Joe user can access from this 527 00:18:50,320 --> 00:18:53,280 country or from this network location 528 00:18:53,280 --> 00:18:55,000 and can access this application but has 529 00:18:55,000 --> 00:18:56,799 to use 530 00:18:56,799 --> 00:18:59,480 MFA the challenge with this is it 531 00:18:59,480 --> 00:19:01,360 doesn't work as well as Group Policy 532 00:19:01,360 --> 00:19:04,559 does I'm going to say that again it does 533 00:19:04,559 --> 00:19:06,440 not work as well as Group Policy does 534 00:19:06,440 --> 00:19:08,120 group policy at least you can figure out 535 00:19:08,120 --> 00:19:11,480 which one applies all of these apply 536 00:19:11,480 --> 00:19:12,600 moving 537 00:19:12,600 --> 00:19:16,039 on so commonly we find a number of 538 00:19:16,039 --> 00:19:17,200 things that people use conditional 539 00:19:17,200 --> 00:19:19,559 access policies for uh you have to use 540 00:19:19,559 --> 00:19:21,880 MFA when when when connecting outside 541 00:19:21,880 --> 00:19:24,120 the corporate Network you have to MFA 542 00:19:24,120 --> 00:19:26,720 for certain uh applications or certain 543 00:19:26,720 --> 00:19:29,840 administrator roles uh blocking Legacy 544 00:19:29,840 --> 00:19:31,919 authentication but there are gaps with 545 00:19:31,919 --> 00:19:33,559 this configuration whether we're 546 00:19:33,559 --> 00:19:35,360 blocking or allowing from certain 547 00:19:35,360 --> 00:19:37,840 locations the first one is users require 548 00:19:37,840 --> 00:19:40,240 MFA outside of the corporate Network why 549 00:19:40,240 --> 00:19:42,919 is this a problem because if your users 550 00:19:42,919 --> 00:19:44,280 are just connected from their corporate 551 00:19:44,280 --> 00:19:46,480 Network which could be globally which 552 00:19:46,480 --> 00:19:48,799 could be a VPN then that's how they 553 00:19:48,799 --> 00:19:52,000 always do it and they're not mfing ever 554 00:19:52,000 --> 00:19:54,679 so fun fact attackers love SSO they love 555 00:19:54,679 --> 00:19:57,440 the fact that MFA is not there granted 556 00:19:57,440 --> 00:19:59,200 attackers have figured out ways to get 557 00:19:59,200 --> 00:20:01,720 past MFA by just spamming the user with 558 00:20:01,720 --> 00:20:04,600 MFA prompts but is another Factor it 559 00:20:04,600 --> 00:20:09,000 will slow them down it will help sorry 560 00:20:09,000 --> 00:20:12,360 MGM admins don't require MFA this is a 561 00:20:12,360 --> 00:20:14,480 big one this one really bothers me 562 00:20:14,480 --> 00:20:16,400 admins should always have to MFA I'm 563 00:20:16,400 --> 00:20:17,960 sorry admins but you should always have 564 00:20:17,960 --> 00:20:21,159 to MFA I have to MFA all the time and I 565 00:20:21,159 --> 00:20:22,960 hate it but it's just the our new 566 00:20:22,960 --> 00:20:24,480 reality we have to make sure their 567 00:20:24,480 --> 00:20:27,640 admins are forced to MFA uh because 568 00:20:27,640 --> 00:20:29,360 otherwise we're not we're not really 569 00:20:29,360 --> 00:20:32,080 protecting our admin accounts uh so I 570 00:20:32,080 --> 00:20:33,960 love this screenshot with Angelina jolle 571 00:20:33,960 --> 00:20:35,600 looking at the fact that uh Nick Cage 572 00:20:35,600 --> 00:20:38,039 just pulled off the uh the the the Wheel 573 00:20:38,039 --> 00:20:40,000 from the car that had the club on it and 574 00:20:40,000 --> 00:20:41,320 they just put on another wheel and then 575 00:20:41,320 --> 00:20:44,360 stole the car so if we're not giving our 576 00:20:44,360 --> 00:20:46,960 admins or requiring them to use MFA all 577 00:20:46,960 --> 00:20:48,559 the attackers going to do is switch the 578 00:20:48,559 --> 00:20:50,440 wheels that's that's my attempt at 579 00:20:50,440 --> 00:20:52,799 making that work um and then fun fact 580 00:20:52,799 --> 00:20:54,240 attackers love SSO they love it when 581 00:20:54,240 --> 00:20:56,320 they can just get in and not have to do 582 00:20:56,320 --> 00:20:59,000 anything and the third one are exclusion 583 00:20:59,000 --> 00:21:02,080 we see this all the time the admin goes 584 00:21:02,080 --> 00:21:03,520 you know what I'm going to create this 585 00:21:03,520 --> 00:21:05,080 conditional access policy that has all 586 00:21:05,080 --> 00:21:06,280 these security 587 00:21:06,280 --> 00:21:09,600 controls mfas required location based 588 00:21:09,600 --> 00:21:11,640 access connecting to the Microsoft 589 00:21:11,640 --> 00:21:14,080 portals I'm going to make sure they have 590 00:21:14,080 --> 00:21:16,559 a compliant system and then it's h 591 00:21:16,559 --> 00:21:19,880 hybrid joined or Azure ad joined but I'm 592 00:21:19,880 --> 00:21:21,840 going to exclude everyone except for 593 00:21:21,840 --> 00:21:22,640 this 594 00:21:22,640 --> 00:21:25,159 group so when the auditor comes in and 595 00:21:25,159 --> 00:21:27,240 goes okay do you have a policy that has 596 00:21:27,240 --> 00:21:28,400 these things and they're going to go yep 597 00:21:28,400 --> 00:21:29,840 right there 598 00:21:29,840 --> 00:21:33,000 check but it doesn't apply to anybody we 599 00:21:33,000 --> 00:21:34,679 are getting what if we are getting 600 00:21:34,679 --> 00:21:36,799 better um information about what 601 00:21:36,799 --> 00:21:38,120 conditional access policies are doing 602 00:21:38,120 --> 00:21:40,760 which is good but it's still not enough 603 00:21:40,760 --> 00:21:42,279 and Microsoft has been working through 604 00:21:42,279 --> 00:21:44,799 and helping customers over time started 605 00:21:44,799 --> 00:21:46,880 with Baseline policies then conditional 606 00:21:46,880 --> 00:21:48,279 access templates and now Microsoft 607 00:21:48,279 --> 00:21:51,159 managed policies and then after Baseline 608 00:21:51,159 --> 00:21:53,279 policies they're like no not Baseline 609 00:21:53,279 --> 00:21:54,640 policies don't do that anymore we got 610 00:21:54,640 --> 00:21:55,960 security defaults for you don't worry 611 00:21:55,960 --> 00:21:58,159 about it so forget I said Baseline 612 00:21:58,159 --> 00:21:59,919 policy CU Microsoft wants us forget 613 00:21:59,919 --> 00:22:03,120 about them but we have Microsoft managed 614 00:22:03,120 --> 00:22:05,320 policies and right now there are three 615 00:22:05,320 --> 00:22:07,480 main policies that are there uh once 616 00:22:07,480 --> 00:22:09,640 they're lit up in your in your tenant uh 617 00:22:09,640 --> 00:22:11,679 they switch from reporting only to 618 00:22:11,679 --> 00:22:14,039 active enabled 90 days after being 619 00:22:14,039 --> 00:22:15,960 introduced you can't really make changes 620 00:22:15,960 --> 00:22:17,880 to them you can duplicate it and then 621 00:22:17,880 --> 00:22:19,440 make changes to it from there but 622 00:22:19,440 --> 00:22:21,440 Microsoft really wants to have this 623 00:22:21,440 --> 00:22:23,159 situation and based on their research 624 00:22:23,159 --> 00:22:25,360 that they from a study that they did 625 00:22:25,360 --> 00:22:27,679 having these enabled in your environment 626 00:22:27,679 --> 00:22:31,159 will reduce the attack uh uh the the 627 00:22:31,159 --> 00:22:33,320 attack types that the uh the attackers 628 00:22:33,320 --> 00:22:35,000 are using by like 629 00:22:35,000 --> 00:22:36,880 99% because these are the things that 630 00:22:36,880 --> 00:22:39,320 attackers are absolutely doing so admins 631 00:22:39,320 --> 00:22:42,960 have to use MFA MFA per there was the 632 00:22:42,960 --> 00:22:45,480 way where you set up MFA on each of the 633 00:22:45,480 --> 00:22:48,240 user accounts Microsoft said it's better 634 00:22:48,240 --> 00:22:50,400 to use conditional access policy but a 635 00:22:50,400 --> 00:22:52,799 lot of times those kind of get confused 636 00:22:52,799 --> 00:22:55,080 because someone will get MFA but there's 637 00:22:55,080 --> 00:22:56,440 not a conditional access policy that 638 00:22:56,440 --> 00:22:58,720 requires them UF MFA but it's on that 639 00:22:58,720 --> 00:23:01,240 user account itself um and then MFA and 640 00:23:01,240 --> 00:23:03,000 reauthentication for risky sign-ins 641 00:23:03,000 --> 00:23:04,279 which is probably one of the best parts 642 00:23:04,279 --> 00:23:07,000 about this one of the challenges is that 643 00:23:07,000 --> 00:23:08,880 Microsoft is charging more for all of 644 00:23:08,880 --> 00:23:11,360 the security capabilities I hate that I 645 00:23:11,360 --> 00:23:13,320 know everyone else hates that here as 646 00:23:13,320 --> 00:23:16,120 well and my colleague Brandon collie is 647 00:23:16,120 --> 00:23:18,159 giving a talk here at the cloud Village 648 00:23:18,159 --> 00:23:21,440 tomorrow at 12 talking about finding 649 00:23:21,440 --> 00:23:23,200 holes in conditional access policies so 650 00:23:23,200 --> 00:23:24,320 if you want to know more about 651 00:23:24,320 --> 00:23:25,919 conditional access policies that's the 652 00:23:25,919 --> 00:23:26,880 talk to 653 00:23:26,880 --> 00:23:29,919 see so let's talk about attacking uh 654 00:23:29,919 --> 00:23:33,720 Azure Ed entra ID we know about fishing 655 00:23:33,720 --> 00:23:36,200 uh so Nick Cage in in the movie he walks 656 00:23:36,200 --> 00:23:39,080 in to uh act like he's buying a Ferrari 657 00:23:39,080 --> 00:23:40,520 and he's like yes this one I saw this 658 00:23:40,520 --> 00:23:43,080 one out the club the other night but it 659 00:23:43,080 --> 00:23:44,840 Saturday nights are the loneliest nights 660 00:23:44,840 --> 00:23:47,000 for me and I want a nice looking car but 661 00:23:47,000 --> 00:23:48,720 I don't want one that everyone else has 662 00:23:48,720 --> 00:23:50,799 I want one that looks fancy that's from 663 00:23:50,799 --> 00:23:53,880 you know it's it's a a classic and so he 664 00:23:53,880 --> 00:23:55,120 goes in there pretending to be someone 665 00:23:55,120 --> 00:23:57,840 he's not just like the uh attackers fish 666 00:23:57,840 --> 00:23:59,480 others 667 00:23:59,480 --> 00:24:02,480 and here's how simple it is to get a 668 00:24:02,480 --> 00:24:05,320 token out of the web browser we use the 669 00:24:05,320 --> 00:24:08,320 universal uh web browser attack tool 670 00:24:08,320 --> 00:24:09,200 called 671 00:24:09,200 --> 00:24:13,720 F12 developer tools we open that up and 672 00:24:13,720 --> 00:24:15,360 if I'm an attacker and I have access to 673 00:24:15,360 --> 00:24:16,919 the system I can do this behind the 674 00:24:16,919 --> 00:24:18,120 scenes without them knowing there's 675 00:24:18,120 --> 00:24:20,520 other ways to do it obviously but all I 676 00:24:20,520 --> 00:24:23,799 need to do is search um and look through 677 00:24:23,799 --> 00:24:24,880 information that's in there the web 678 00:24:24,880 --> 00:24:26,760 browser when you authenticate in the web 679 00:24:26,760 --> 00:24:28,559 browser the web browser has to get a 680 00:24:28,559 --> 00:24:30,399 token from the system that it's talking 681 00:24:30,399 --> 00:24:33,320 to in order to then use that to validate 682 00:24:33,320 --> 00:24:35,520 and verify that it it is already 683 00:24:35,520 --> 00:24:37,840 authenticated just like in AD just like 684 00:24:37,840 --> 00:24:39,799 in in most other systems and this is not 685 00:24:39,799 --> 00:24:42,440 just an Azure ad thing all web systems 686 00:24:42,440 --> 00:24:43,760 when you authenticate to them whether 687 00:24:43,760 --> 00:24:45,440 it's workday Salesforce what have you 688 00:24:45,440 --> 00:24:47,720 any IDP is going to give you an access 689 00:24:47,720 --> 00:24:50,240 token which you use then to provide to a 690 00:24:50,240 --> 00:24:52,600 system in order to authenticate so all I 691 00:24:52,600 --> 00:24:54,559 need to do is search here and then 692 00:24:54,559 --> 00:24:57,279 capture out a string of data and then I 693 00:24:57,279 --> 00:25:01,080 can use the Ms uh uh website to look to 694 00:25:01,080 --> 00:25:03,240 see what token and I have and I can see 695 00:25:03,240 --> 00:25:05,039 what this token is and there's the user 696 00:25:05,039 --> 00:25:07,000 account there's where it's U the IP 697 00:25:07,000 --> 00:25:08,640 address where it's coming from and that 698 00:25:08,640 --> 00:25:11,480 is the proof of identity on this system 699 00:25:11,480 --> 00:25:13,200 and I can seal this access token and I 700 00:25:13,200 --> 00:25:15,919 can use it anywhere else that I want to 701 00:25:15,919 --> 00:25:18,520 and that's it that's how easy it is to 702 00:25:18,520 --> 00:25:21,559 to to compromise an admin who's using a 703 00:25:21,559 --> 00:25:24,000 standard web browser on a regular user 704 00:25:24,000 --> 00:25:27,159 workstation that's that's like Elite 705 00:25:27,159 --> 00:25:28,440 hacking that's the most elite hacking 706 00:25:28,440 --> 00:25:30,919 and you'll see here at Defcon I'm joking 707 00:25:30,919 --> 00:25:33,120 um special thanks to Dr AZ for walking 708 00:25:33,120 --> 00:25:34,440 through this with me because there were 709 00:25:34,440 --> 00:25:35,640 couple parts of it that I was a little 710 00:25:35,640 --> 00:25:37,679 confused by but he showed me how easy it 711 00:25:37,679 --> 00:25:40,000 was and it was amazing if you do not 712 00:25:40,000 --> 00:25:42,600 already go to aad internals um you 713 00:25:42,600 --> 00:25:45,200 really need to okay because there's a 714 00:25:45,200 --> 00:25:48,440 wealth of information there but I don't 715 00:25:48,440 --> 00:25:50,320 need to just operate within the web 716 00:25:50,320 --> 00:25:53,000 browser and hit F12 I could inject my 717 00:25:53,000 --> 00:25:55,760 own browser extension I could use an 718 00:25:55,760 --> 00:25:58,799 evil proxy where I H 719 00:25:58,799 --> 00:26:01,399 trick the admin into logging into 720 00:26:01,399 --> 00:26:03,279 something that is not actually what they 721 00:26:03,279 --> 00:26:06,679 think it is like evil Jinx and with that 722 00:26:06,679 --> 00:26:08,880 we have approv the sign on request which 723 00:26:08,880 --> 00:26:11,240 is happening on the evil Jinx side and 724 00:26:11,240 --> 00:26:13,880 then all it does is proxy it over to me 725 00:26:13,880 --> 00:26:15,480 and then when I enter the information 726 00:26:15,480 --> 00:26:18,320 that's supposed to be there then I'm 727 00:26:18,320 --> 00:26:20,679 approved and that's how easy it is 728 00:26:20,679 --> 00:26:22,520 that's what the attackers do we have to 729 00:26:22,520 --> 00:26:25,399 use PH2 in order to ensure that we have 730 00:26:25,399 --> 00:26:28,320 better more more resistant attacks uh 731 00:26:28,320 --> 00:26:30,240 fishing resistant resistance against 732 00:26:30,240 --> 00:26:32,120 these sort of attacks so we have an 733 00:26:32,120 --> 00:26:34,600 overprivileged user this is the Eleanor 734 00:26:34,600 --> 00:26:37,080 of of attacks right we have this user 735 00:26:37,080 --> 00:26:39,919 the attacker compromises the user fishes 736 00:26:39,919 --> 00:26:41,880 them whatever and they're a member of 737 00:26:41,880 --> 00:26:43,880 say conditional access administrator 738 00:26:43,880 --> 00:26:45,840 this attacker may have compromised an 739 00:26:45,840 --> 00:26:47,559 account in the in the environment but 740 00:26:47,559 --> 00:26:49,480 it's not a member of global admin or 741 00:26:49,480 --> 00:26:51,240 maybe it is but they can't do anything 742 00:26:51,240 --> 00:26:52,799 with it because of the conditional 743 00:26:52,799 --> 00:26:54,120 access policies well once they're a 744 00:26:54,120 --> 00:26:55,960 member conditional access administrator 745 00:26:55,960 --> 00:26:57,760 they can change those policies they can 746 00:26:57,760 --> 00:27:00,279 exclude that admin application 747 00:27:00,279 --> 00:27:01,679 administrator like I said if you're an 748 00:27:01,679 --> 00:27:03,120 application administrator you can add a 749 00:27:03,120 --> 00:27:05,480 credential to an application and then 750 00:27:05,480 --> 00:27:07,120 impersonate the application and what 751 00:27:07,120 --> 00:27:09,720 rights it has user administrator if we 752 00:27:09,720 --> 00:27:12,200 have users that are owners of 753 00:27:12,200 --> 00:27:14,520 applications or owners of uh Ro 754 00:27:14,520 --> 00:27:16,440 assignable group then they're able to 755 00:27:16,440 --> 00:27:18,760 modify that they're able to control that 756 00:27:18,760 --> 00:27:20,640 and then finally partner tier 2 support 757 00:27:20,640 --> 00:27:21,919 we can just change the password of a 758 00:27:21,919 --> 00:27:24,520 global admin if we want to which means 759 00:27:24,520 --> 00:27:27,039 this regular user with a couple of 760 00:27:27,039 --> 00:27:29,520 interesting roles or one role can do a 761 00:27:29,520 --> 00:27:31,960 lot of damage within the 762 00:27:31,960 --> 00:27:35,480 environment so application escalation so 763 00:27:35,480 --> 00:27:37,640 we have Lotso privs here one application 764 00:27:37,640 --> 00:27:39,159 and we also have an over privileged uh 765 00:27:39,159 --> 00:27:41,200 over permission app which is you know 766 00:27:41,200 --> 00:27:42,159 you probably don't want to do this in 767 00:27:42,159 --> 00:27:44,240 your environment uh but just to call it 768 00:27:44,240 --> 00:27:46,000 out we have directory read write all 769 00:27:46,000 --> 00:27:47,640 application read write all app roll 770 00:27:47,640 --> 00:27:49,559 assignment read write all Ro management 771 00:27:49,559 --> 00:27:52,039 read write directory and all we need to 772 00:27:52,039 --> 00:27:54,559 do is find where the app owner is and we 773 00:27:54,559 --> 00:27:56,159 see that there's a Shayla and Cadence 774 00:27:56,159 --> 00:27:58,679 and kinata that are here and they 775 00:27:58,679 --> 00:28:00,720 have owner rights on the on this 776 00:28:00,720 --> 00:28:02,320 application which means they can add a 777 00:28:02,320 --> 00:28:04,320 credential so if any of these accounts 778 00:28:04,320 --> 00:28:06,480 get compromised then the attacker just 779 00:28:06,480 --> 00:28:08,120 goes ahead and adds a credential to that 780 00:28:08,120 --> 00:28:10,000 app which I'm going to show you here the 781 00:28:10,000 --> 00:28:12,519 attacker compromises that account they 782 00:28:12,519 --> 00:28:14,279 then add a credential to that 783 00:28:14,279 --> 00:28:16,320 application then they impersonate that 784 00:28:16,320 --> 00:28:18,399 application use that role management 785 00:28:18,399 --> 00:28:21,360 capability to add a an account to Global 786 00:28:21,360 --> 00:28:24,960 administrator to compromise Azure ad and 787 00:28:24,960 --> 00:28:27,000 it works the same way with the 788 00:28:27,000 --> 00:28:28,720 application administrator role Ro 789 00:28:28,720 --> 00:28:30,080 because the application administrator 790 00:28:30,080 --> 00:28:31,760 role can add the credential as well 791 00:28:31,760 --> 00:28:33,399 whether it's directly to the app or 792 00:28:33,399 --> 00:28:35,039 updating that service principle which is 793 00:28:35,039 --> 00:28:37,799 used by it in order to add that member 794 00:28:37,799 --> 00:28:39,600 to Global admin there's a number of 795 00:28:39,600 --> 00:28:40,720 different things that ATT attackers can 796 00:28:40,720 --> 00:28:42,559 do and I'm just showing you one a couple 797 00:28:42,559 --> 00:28:45,320 of them uh so same thing I mentioned Ro 798 00:28:45,320 --> 00:28:47,320 assignable groups so all we need to do 799 00:28:47,320 --> 00:28:49,080 is find that owner of that Ro assignable 800 00:28:49,080 --> 00:28:51,120 group add a member that Ro assignable 801 00:28:51,120 --> 00:28:53,200 group is a member of global admin then 802 00:28:53,200 --> 00:28:56,399 we have compromised Azure ad now I 803 00:28:56,399 --> 00:28:58,279 mentioned uh delegated administ 804 00:28:58,279 --> 00:28:59,440 Privileges and this was something that 805 00:28:59,440 --> 00:29:01,919 Microsoft added for partners and in the 806 00:29:01,919 --> 00:29:04,880 Sol salate time what the attacker did 807 00:29:04,880 --> 00:29:07,799 was they recognized that the uh the 808 00:29:07,799 --> 00:29:11,559 Microsoft CSP the cloud service provider 809 00:29:11,559 --> 00:29:14,640 had the ability to actually have rights 810 00:29:14,640 --> 00:29:16,760 to a bunch of tenants because this is 811 00:29:16,760 --> 00:29:18,440 the way it was meant to be so if you are 812 00:29:18,440 --> 00:29:19,799 a smaller company or even a larger 813 00:29:19,799 --> 00:29:20,760 company you're like I don't want to 814 00:29:20,760 --> 00:29:22,440 manage my licenses I don't want to 815 00:29:22,440 --> 00:29:24,279 manage this I'll let this partner do it 816 00:29:24,279 --> 00:29:26,559 great you just enroll them into this so 817 00:29:26,559 --> 00:29:28,760 they realized that with that delegate 818 00:29:28,760 --> 00:29:31,840 Administration on tenant a or tenant B 819 00:29:31,840 --> 00:29:34,000 they could then hop across those tenants 820 00:29:34,000 --> 00:29:36,440 and have control of it so basically this 821 00:29:36,440 --> 00:29:37,720 how it 822 00:29:37,720 --> 00:29:40,159 worked Microsoft decided there'd be two 823 00:29:40,159 --> 00:29:42,840 roles for the CSP one is the admin agent 824 00:29:42,840 --> 00:29:44,960 which is effectively Global admin to 825 00:29:44,960 --> 00:29:47,679 every one of their customers that says 826 00:29:47,679 --> 00:29:51,159 yes and it's just one role in that in 827 00:29:51,159 --> 00:29:52,840 that that's cloud service provider 828 00:29:52,840 --> 00:29:55,240 environment just one role one group of 829 00:29:55,240 --> 00:29:58,080 all their users for all their customers 830 00:29:58,080 --> 00:29:59,480 and the same thing with the help desk 831 00:29:59,480 --> 00:30:01,679 agent so this was no granular 832 00:30:01,679 --> 00:30:03,600 configuration in this at all so we need 833 00:30:03,600 --> 00:30:05,559 to shift for uh over to granular 834 00:30:05,559 --> 00:30:07,760 delegation uh admin privileges also this 835 00:30:07,760 --> 00:30:09,760 was buried in the in the uh interface 836 00:30:09,760 --> 00:30:11,480 Microsoft's finally moved this up to the 837 00:30:11,480 --> 00:30:13,320 top level so you can check it yourself 838 00:30:13,320 --> 00:30:14,679 with the link at the 839 00:30:14,679 --> 00:30:16,880 bottom what about admin synchronized 840 00:30:16,880 --> 00:30:19,640 from on-prem ad I was going to do a 841 00:30:19,640 --> 00:30:21,640 whole bunch of slides on this but as 842 00:30:21,640 --> 00:30:23,960 often happens Andy put out a tweet just 843 00:30:23,960 --> 00:30:25,559 a couple days ago and I was like thank 844 00:30:25,559 --> 00:30:27,120 you Andy because this made it very easy 845 00:30:27,120 --> 00:30:29,840 for me he say you're on Prem ad admin or 846 00:30:29,840 --> 00:30:33,000 on Prem ad your user there um domain 847 00:30:33,000 --> 00:30:35,320 users have a session to that and have 848 00:30:35,320 --> 00:30:37,360 admin rights to that computer uh that 849 00:30:37,360 --> 00:30:40,640 user is sync to to entra and it has the 850 00:30:40,640 --> 00:30:43,440 role privilege role admin which can then 851 00:30:43,440 --> 00:30:44,919 add a secret to app registration add 852 00:30:44,919 --> 00:30:47,159 that credential and then can jump over 853 00:30:47,159 --> 00:30:49,240 through that to Global admin and he 854 00:30:49,240 --> 00:30:50,720 tweeted that because that's a real wild 855 00:30:50,720 --> 00:30:53,720 life example so let's listen to sway AKA 856 00:30:53,720 --> 00:30:56,720 Angela J and let's not do that 857 00:30:56,720 --> 00:30:58,799 okay so let's talk a little bit about 858 00:30:58,799 --> 00:30:59,799 midnight 859 00:30:59,799 --> 00:31:02,320 blizzard and uh I asked co-pilot to give 860 00:31:02,320 --> 00:31:03,919 me an image of a really cool looking 861 00:31:03,919 --> 00:31:05,639 bear that represents midnight blizzard 862 00:31:05,639 --> 00:31:07,519 so I think uh crowd strike is going to 863 00:31:07,519 --> 00:31:09,799 have its uh a tough time coming up with 864 00:31:09,799 --> 00:31:11,080 an action figure that's going to beat 865 00:31:11,080 --> 00:31:11,919 this 866 00:31:11,919 --> 00:31:15,360 one but Microsoft was like hey we we had 867 00:31:15,360 --> 00:31:17,440 this attack it was a passord spray blah 868 00:31:17,440 --> 00:31:18,880 blah blah blah blah but then there was 869 00:31:18,880 --> 00:31:20,600 an article that came out that actually 870 00:31:20,600 --> 00:31:23,360 explains some more detail of how uh uh 871 00:31:23,360 --> 00:31:25,200 they figured out what happened so 872 00:31:25,200 --> 00:31:26,960 basically the attacker passard spray in 873 00:31:26,960 --> 00:31:29,320 account in a test tenant that had no MFA 874 00:31:29,320 --> 00:31:31,559 that was unprivileged but somehow then 875 00:31:31,559 --> 00:31:33,320 they jumped to a non-production system 876 00:31:33,320 --> 00:31:36,360 and a legacy test ooth app in this test 877 00:31:36,360 --> 00:31:38,080 environment well that doesn't sound bad 878 00:31:38,080 --> 00:31:41,679 at all except for this blue arrow here 879 00:31:41,679 --> 00:31:44,360 which means that this Legacy test ooth 880 00:31:44,360 --> 00:31:46,519 app had rights to the production tenant 881 00:31:46,519 --> 00:31:49,600 at Microsoft so then they added a couple 882 00:31:49,600 --> 00:31:52,320 well several malicious ooth apps they 883 00:31:52,320 --> 00:31:54,360 created a new account which is shown by 884 00:31:54,360 --> 00:31:56,559 my baby icon here cuz it's a brand new 885 00:31:56,559 --> 00:31:59,559 new account and somehow they use that in 886 00:31:59,559 --> 00:32:02,200 order to then consent to these two or 887 00:32:02,200 --> 00:32:05,679 these several malicious oo apps and then 888 00:32:05,679 --> 00:32:08,120 ended up with full access as app 889 00:32:08,120 --> 00:32:10,039 permission to exchange online so 890 00:32:10,039 --> 00:32:12,639 basically they were exchange online and 891 00:32:12,639 --> 00:32:14,240 then were able to download email from 892 00:32:14,240 --> 00:32:16,320 mailboxes Microsoft says a subset of the 893 00:32:16,320 --> 00:32:18,559 total total but it included Executives 894 00:32:18,559 --> 00:32:20,919 it included legal included HR and said 895 00:32:20,919 --> 00:32:22,120 that midnight blizzard was very 896 00:32:22,120 --> 00:32:24,039 interested in things specifically to 897 00:32:24,039 --> 00:32:28,080 midnight B midnight blizzard ah and pull 898 00:32:28,080 --> 00:32:29,159 down a bunch of 899 00:32:29,159 --> 00:32:31,240 emails so I have this slide I'm not 900 00:32:31,240 --> 00:32:32,320 going to read through it but it's like 901 00:32:32,320 --> 00:32:33,799 the details of what I talk through so 902 00:32:33,799 --> 00:32:35,320 when you look at the slides later they 903 00:32:35,320 --> 00:32:38,240 make sense and then Microsoft put out uh 904 00:32:38,240 --> 00:32:40,440 some a note in March saying hey yeah 905 00:32:40,440 --> 00:32:42,039 there wasn't a whole bunch that that was 906 00:32:42,039 --> 00:32:44,279 compromised but yeah I included access 907 00:32:44,279 --> 00:32:45,840 to some of the company's source code 908 00:32:45,840 --> 00:32:48,320 repository and internal systems but no 909 00:32:48,320 --> 00:32:50,039 evidence that Microsoft F hosted 910 00:32:50,039 --> 00:32:51,600 customer facing system has been 911 00:32:51,600 --> 00:32:54,240 compromised but midnight blizzard is 912 00:32:54,240 --> 00:32:55,919 using the information from what they 913 00:32:55,919 --> 00:32:58,000 found and spreading out and doing do 914 00:32:58,000 --> 00:32:59,519 other things which is the dangerous part 915 00:32:59,519 --> 00:33:01,559 of it so um I just want to point out 916 00:33:01,559 --> 00:33:03,639 that using thans Canary I get no money 917 00:33:03,639 --> 00:33:05,840 for saying that but check out than 918 00:33:05,840 --> 00:33:11,440 Canary t h i n uh n k s t um basically 919 00:33:11,440 --> 00:33:13,880 you can for free use Canary tokens 920 00:33:13,880 --> 00:33:15,120 scatter those throughout your 921 00:33:15,120 --> 00:33:17,279 environment um because Microsoft said 922 00:33:17,279 --> 00:33:20,600 that there were um uh they actually had 923 00:33:20,600 --> 00:33:22,720 some secrets between customers and 924 00:33:22,720 --> 00:33:24,120 Microsoft that were identified and 925 00:33:24,120 --> 00:33:26,399 captured possibly even to and some of 926 00:33:26,399 --> 00:33:28,639 the systems in their environment so 927 00:33:28,639 --> 00:33:30,960 using this will help you identify if an 928 00:33:30,960 --> 00:33:32,679 attacker is doing something they 929 00:33:32,679 --> 00:33:34,880 shouldn't so let's talk about securing 930 00:33:34,880 --> 00:33:37,679 ad securing entra ID Administration and 931 00:33:37,679 --> 00:33:41,159 I asked co-pilot for a visual a photo 932 00:33:41,159 --> 00:33:43,039 that would represent what entra id 933 00:33:43,039 --> 00:33:44,880 Administration looks like and I guess 934 00:33:44,880 --> 00:33:46,039 that's pretty good I mean that's what it 935 00:33:46,039 --> 00:33:48,799 feels like going through TSA these days 936 00:33:48,799 --> 00:33:50,760 but Microsoft put up this article with 937 00:33:50,760 --> 00:33:52,840 this graphic a few years ago and they 938 00:33:52,840 --> 00:33:54,440 called it ramp and they're like okay the 939 00:33:54,440 --> 00:33:56,440 old tier model is gone this is what you 940 00:33:56,440 --> 00:33:57,919 should do you should do this and do this 941 00:33:57,919 --> 00:33:59,120 do this and do that and do that and do 942 00:33:59,120 --> 00:34:00,840 that that I don't have enough coffee in 943 00:34:00,840 --> 00:34:02,840 me right now to to explain that to the 944 00:34:02,840 --> 00:34:04,720 level that they need to but I've decided 945 00:34:04,720 --> 00:34:07,120 to break it down to the simple area what 946 00:34:07,120 --> 00:34:09,639 what we really need to focus on if you 947 00:34:09,639 --> 00:34:12,320 have these level zero roles and you have 948 00:34:12,320 --> 00:34:14,320 accounts in them which you do they 949 00:34:14,320 --> 00:34:16,119 should be created an entry ID not 950 00:34:16,119 --> 00:34:18,040 synchronized they should be required to 951 00:34:18,040 --> 00:34:19,960 use MFA through conditional access 952 00:34:19,960 --> 00:34:23,000 through policy they should be secured by 953 00:34:23,000 --> 00:34:24,280 conditional access they should be coming 954 00:34:24,280 --> 00:34:27,239 from a compliant uh computer one that is 955 00:34:27,239 --> 00:34:30,599 joined to the to the uh join to Azure ad 956 00:34:30,599 --> 00:34:32,760 and I say join and compliant and yes you 957 00:34:32,760 --> 00:34:34,918 can get past that uh Dr Azure ad here 958 00:34:34,918 --> 00:34:36,560 will tell you all the ways to bypass 959 00:34:36,560 --> 00:34:38,239 that but it is still another thing that 960 00:34:38,239 --> 00:34:40,199 has to be done it's another trip wire 961 00:34:40,199 --> 00:34:41,320 it's another thing that you could 962 00:34:41,320 --> 00:34:43,359 potentially get an alert on and then 963 00:34:43,359 --> 00:34:45,560 finally Microsoft says Azure managed 964 00:34:45,560 --> 00:34:47,079 workstations I'm going to say admin 965 00:34:47,079 --> 00:34:50,320 systems at least have your admins uh RDP 966 00:34:50,320 --> 00:34:52,079 into an admin system and do everything 967 00:34:52,079 --> 00:34:53,918 from there that will protect that 968 00:34:53,918 --> 00:34:55,800 credential which is what I'm talking 969 00:34:55,800 --> 00:34:57,720 about here so Microsoft says manage from 970 00:34:57,720 --> 00:35:00,560 Cloud control devices no on-prem account 971 00:35:00,560 --> 00:35:02,640 has those highly privilege at 972 00:35:02,640 --> 00:35:04,960 rights and then we want to make sure 973 00:35:04,960 --> 00:35:06,520 that we're using Azure Ed Cloud 974 00:35:06,520 --> 00:35:08,400 authentication so we can use that that 975 00:35:08,400 --> 00:35:10,800 stronger off around MFA we want to use 976 00:35:10,800 --> 00:35:13,480 the we want to use the authentication uh 977 00:35:13,480 --> 00:35:15,960 from the Microsoft authenticator app 978 00:35:15,960 --> 00:35:18,160 because it's stronger um we want to use 979 00:35:18,160 --> 00:35:20,400 entra password protection on Prem for 980 00:35:20,400 --> 00:35:21,880 those accounts that are synchronized so 981 00:35:21,880 --> 00:35:23,240 that way they're not using horrible 982 00:35:23,240 --> 00:35:25,200 passwords we want to use fishing 983 00:35:25,200 --> 00:35:27,800 defensive layers require our users to MF 984 00:35:27,800 --> 00:35:30,160 a preferably PH2 preferably the 985 00:35:30,160 --> 00:35:32,560 Microsoft authenticator we need to make 986 00:35:32,560 --> 00:35:33,920 sure that we're using conditional access 987 00:35:33,920 --> 00:35:35,320 policies that are working that are 988 00:35:35,320 --> 00:35:38,200 effective aren't adding gaps and risk 989 00:35:38,200 --> 00:35:39,920 based if you have the licensing if you 990 00:35:39,920 --> 00:35:42,960 can I highly recommend it because when 991 00:35:42,960 --> 00:35:44,640 we get these things figured out when we 992 00:35:44,640 --> 00:35:46,160 protect our 993 00:35:46,160 --> 00:35:49,280 credentials we make Nick Cage very happy 994 00:35:49,280 --> 00:35:52,359 so admin systems PH2 for level zero and 995 00:35:52,359 --> 00:35:54,480 level one roles phto 2 keys for 996 00:35:54,480 --> 00:35:56,119 emergency break glass accounts that's 997 00:35:56,119 --> 00:35:57,359 very important to have emergency break 998 00:35:57,359 --> 00:35:59,359 glass accounts Microsoft now is saying 999 00:35:59,359 --> 00:36:01,000 MFA is required for everyone including 1000 00:36:01,000 --> 00:36:02,760 emergency break glass accounts so you 1001 00:36:02,760 --> 00:36:05,160 want to have PH2 keys there and Leverage 1002 00:36:05,160 --> 00:36:06,440 The conditional access policies to 1003 00:36:06,440 --> 00:36:10,160 enforce this Microsoft is changing MFA 1004 00:36:10,160 --> 00:36:12,160 um Merl's tweet from just a couple days 1005 00:36:12,160 --> 00:36:15,040 ago talks about this and then finally I 1006 00:36:15,040 --> 00:36:16,480 want to mention that there's common 1007 00:36:16,480 --> 00:36:17,800 persistence method checks that you want 1008 00:36:17,800 --> 00:36:20,160 to look at elicit consent uh grants from 1009 00:36:20,160 --> 00:36:22,599 ooth um looking at exchange forms and 1010 00:36:22,599 --> 00:36:24,560 rules for potentially malicious settings 1011 00:36:24,560 --> 00:36:26,319 and reviewing exchange Online mail prox 1012 00:36:26,319 --> 00:36:28,119 permissions I've seen environment that 1013 00:36:28,119 --> 00:36:30,280 have been breached and what the attacker 1014 00:36:30,280 --> 00:36:32,119 does is they give themselves rights or 1015 00:36:32,119 --> 00:36:35,359 say all users all users basically have 1016 00:36:35,359 --> 00:36:36,960 rights every mailbox so they have 1017 00:36:36,960 --> 00:36:39,720 persistent access to everything so in 1018 00:36:39,720 --> 00:36:41,280 conclusion attackers are targeting the 1019 00:36:41,280 --> 00:36:43,160 cloud and identifying these common 1020 00:36:43,160 --> 00:36:46,000 issues and closing them are the best way 1021 00:36:46,000 --> 00:36:48,680 to secure your environment fixing these 1022 00:36:48,680 --> 00:36:50,880 provides improved breach resilience and 1023 00:36:50,880 --> 00:36:53,200 will make Nick Cage happy so that's my 1024 00:36:53,200 --> 00:36:55,280 time thank you very much for yours 1025 00:36:55,280 --> 00:37:00,240 [Applause] 1026 00:37:00,240 --> 00:37:03,919 thank you thank you