1 00:00:00,000 --> 00:00:00,860 Hi, everyone. 2 00:00:00,960 --> 00:00:02,120 I'm Tanya. 3 00:00:02,240 --> 00:00:06,820 And okay, so my previous job, I was like a web app pen tester. 4 00:00:06,840 --> 00:00:13,020 And then I started working at Microsoft, and they let me do whatever I want to Azure, which is really cool. 5 00:00:13,020 --> 00:00:17,040 And I realized that everyone I know is like, can you show me how to do a pen test in Azure? 6 00:00:17,040 --> 00:00:19,980 And I was like, maybe I should write a talk. 7 00:00:19,980 --> 00:00:21,620 So then I met my friend Terry. 8 00:00:21,760 --> 00:00:23,440 Terry's an AWS hero. 9 00:00:23,520 --> 00:00:26,120 And she can just shatter the crap out of anything. 10 00:00:26,120 --> 00:00:27,100 She's amazing. 11 00:00:27,100 --> 00:00:28,600 And I was like, do you want to write a talk with me? 12 00:00:28,600 --> 00:00:29,920 And then she actually said yes. 13 00:00:29,920 --> 00:00:35,420 So she's not here, because she got offered so much money that she had to go do something else. 14 00:00:35,640 --> 00:00:39,200 And I have to say, if I got offered that much money, I'd probably go too. 15 00:00:39,200 --> 00:00:41,340 But anyway, so she's really amazing. 16 00:00:41,340 --> 00:00:42,600 And we wrote this talk together. 17 00:00:42,980 --> 00:00:44,140 Okay, so where are we going? 18 00:00:44,140 --> 00:00:45,900 Oh, yeah, I have to stand still. 19 00:00:45,900 --> 00:00:47,080 What are we going to talk about today? 20 00:00:47,080 --> 00:00:48,600 So we're going to talk about doing it yourself. 21 00:00:48,600 --> 00:00:52,940 We're going to talk about doing a security assessment yourself before calling a pen tester. 22 00:00:52,940 --> 00:01:01,760 So usually, when someone like me or someone like Terry, who's been like networking forever, they go in, like it's the basics that aren't done. 23 00:01:01,760 --> 00:01:03,760 People aren't even ready for the pen test. 24 00:01:03,760 --> 00:01:11,580 And so I want to show you all the stuff that because if I come in, and then like everyone, if the security is like here, then you're not getting your money out of me. 25 00:01:11,580 --> 00:01:12,340 Does that make sense? 26 00:01:12,340 --> 00:01:15,560 So I want you to be able to do this much yourself. 27 00:01:15,560 --> 00:01:17,740 So when I come in, you're like, you have to earn that paycheck. 28 00:01:17,740 --> 00:01:20,140 Okay, so here's the mandatory about me slide. 29 00:01:20,140 --> 00:01:23,360 This is the one where like we prove that we're qualified to do our talk. 30 00:01:23,360 --> 00:01:24,580 I like punk rock. 31 00:01:24,800 --> 00:01:26,320 And I'm Tonya Janka. 32 00:01:26,720 --> 00:01:28,760 On the internet, I'm SheXPurple. 33 00:01:28,900 --> 00:01:30,800 I work at that startup company. 34 00:01:30,800 --> 00:01:32,140 I don't know if you've heard of us. 35 00:01:33,720 --> 00:01:38,400 I'm a developer advocate, which means I get to do my hobby, and then they give me money. 36 00:01:39,100 --> 00:01:40,840 I'm totally obsessed with OWASP. 37 00:01:40,840 --> 00:01:41,740 It's ridiculous. 38 00:01:41,840 --> 00:01:43,880 I'm part of WOSEC, Women of Security. 39 00:01:43,880 --> 00:01:48,480 So if you're a woman and you want to make more female friends that work in security, you can talk to me. 40 00:01:48,700 --> 00:01:53,600 And oh, also, I speak French in case anyone wants to ask questions in French if you're shy. 41 00:01:53,680 --> 00:01:54,320 This is Terry. 42 00:01:54,320 --> 00:01:55,580 Terry's awesome. 43 00:01:55,680 --> 00:01:57,160 I'm Terry's biggest fan. 44 00:01:57,220 --> 00:01:59,380 She's a badass cloud hacker. 45 00:01:59,380 --> 00:02:01,940 I want to like put over top of this just badass cloud hacker. 46 00:02:01,940 --> 00:02:04,460 And she's like, no, Tonya, just remain calm. 47 00:02:05,280 --> 00:02:08,580 She's a lot more serious and like very professional when she presents. 48 00:02:08,580 --> 00:02:09,660 And I'm the silly one. 49 00:02:09,660 --> 00:02:11,540 So she's been programming forever. 50 00:02:11,620 --> 00:02:15,900 She is so basically she does cloud security training and testing. 51 00:02:16,180 --> 00:02:20,200 And she has a wealth of experience that's just out of this world. 52 00:02:20,200 --> 00:02:22,460 And I learn from her every time I see her. 53 00:02:22,860 --> 00:02:24,520 So what is a security assessment? 54 00:02:24,520 --> 00:02:26,360 It's not a pen test, slightly different. 55 00:02:26,580 --> 00:02:30,960 So we find all the vulnerabilities and gaps and then try to help you fix them. 56 00:02:30,980 --> 00:02:31,440 Right? 57 00:02:31,440 --> 00:02:33,160 So we're going to do a lot of scanning. 58 00:02:33,160 --> 00:02:34,380 We're going to talk to people. 59 00:02:34,380 --> 00:02:37,380 We're going to, if you'll let us, look at like an architecture review. 60 00:02:37,380 --> 00:02:38,680 We might threat model things. 61 00:02:38,680 --> 00:02:45,060 And then at the end, just the same as a pen test, we give you a report, except for like, it's just, I don't know. 62 00:02:45,060 --> 00:02:48,460 I prefer security assessments, but pen tests are cooler. 63 00:02:49,140 --> 00:02:49,720 Um, okay. 64 00:02:49,720 --> 00:02:53,760 So as a pen test, so similar to a security assessment, except for you burn everything down. 65 00:02:54,080 --> 00:02:59,900 It excludes, it includes exploitation, pivoting to other areas. 66 00:03:00,020 --> 00:03:04,040 Um, there may be targets, objectives, like things you're supposed to steal. 67 00:03:04,640 --> 00:03:07,580 Basically you're trying to prove the systems can be broken into. 68 00:03:07,580 --> 00:03:10,040 Um, Terry's way better at this than I am. 69 00:03:10,040 --> 00:03:13,620 I'm more like, I'm going to help you set up really good policies and do this and do that. 70 00:03:13,620 --> 00:03:16,460 And she's more like, ah, and then everything's on fire. 71 00:03:16,860 --> 00:03:18,740 Um, but you still have to do a report. 72 00:03:18,740 --> 00:03:20,280 There's no getting around it. 73 00:03:20,980 --> 00:03:21,200 Okay. 74 00:03:21,200 --> 00:03:22,960 So why would you want to do it yourself? 75 00:03:23,400 --> 00:03:23,860 Why? 76 00:03:23,860 --> 00:03:24,740 Why would you? 77 00:03:24,740 --> 00:03:26,980 Because like, we're expensive. 78 00:03:27,140 --> 00:03:28,580 Pen testers are expensive. 79 00:03:28,660 --> 00:03:33,680 Also like almost no places have their own pen testers on staff. 80 00:03:33,680 --> 00:03:38,560 Like unless you work out a big startup like I do, you can't usually afford like a team of pen testers. 81 00:03:38,560 --> 00:03:45,840 You also want to have like not the same pen tester come every time because you want a fresh set of eyes, but a security assessment, you can do that yourself. 82 00:03:45,840 --> 00:03:50,480 So let's, we're going to go through a big list of things that I want you to go look at if you have Azure. 83 00:03:50,600 --> 00:03:50,780 Okay. 84 00:03:50,780 --> 00:03:52,500 So who here uses Azure? 85 00:03:53,180 --> 00:03:53,800 Awesome. 86 00:03:53,800 --> 00:03:54,100 Okay. 87 00:03:54,100 --> 00:03:59,820 I want all of you to have good experiences because then my boss will think I'm cool. 88 00:03:59,820 --> 00:04:01,620 No, because I want you to be secure. 89 00:04:01,820 --> 00:04:02,460 Okay. 90 00:04:02,460 --> 00:04:07,600 So I want you to be able to do all these things before you bother to call a pen tester. 91 00:04:07,680 --> 00:04:08,780 So I can save you money. 92 00:04:08,780 --> 00:04:12,440 And because I, I just, I want the internet to be safe. 93 00:04:12,440 --> 00:04:13,140 The end. 94 00:04:13,140 --> 00:04:13,560 Okay. 95 00:04:13,560 --> 00:04:17,380 So first thing, do not test the average, the Azure fabric. 96 00:04:17,380 --> 00:04:19,680 You don't want Microsoft to be angry at you. 97 00:04:19,760 --> 00:04:20,800 You don't. 98 00:04:21,060 --> 00:04:22,120 I don't either. 99 00:04:22,120 --> 00:04:29,300 So that means the infrastructure, the fabric of the cloud, like that's the thing that is us that makes us unhappy. 100 00:04:29,820 --> 00:04:39,640 Um, so you do not, so none of the cloud providers now demand that you tell them in advance if you're doing, um, like if you're going to do a pen test, but you should. 101 00:04:39,760 --> 00:04:43,300 It's just so much easier because if we see something, we might just be like, no. 102 00:04:43,760 --> 00:04:44,180 Right? 103 00:04:44,180 --> 00:04:46,760 Because we're trying to protect all the people. 104 00:04:46,760 --> 00:04:52,040 And if what you're doing is kind of like out of the blue and weird, we might not understand that. 105 00:04:52,040 --> 00:04:54,420 And so if you tell us you're coming, you don't need permission. 106 00:04:54,420 --> 00:04:56,980 You're just like, hey, tomorrow I'm going to make a mess. 107 00:04:56,980 --> 00:04:57,920 Thank you. 108 00:04:57,920 --> 00:04:59,320 We'll watch out for that. 109 00:04:59,940 --> 00:05:00,440 Okay. 110 00:05:00,440 --> 00:05:02,820 So here are things that are out of scope. 111 00:05:02,820 --> 00:05:05,100 So there's a lot of things I'm not going to cover in this talk. 112 00:05:05,100 --> 00:05:07,240 Sometimes after talk, people will be like, you didn't cover this. 113 00:05:07,240 --> 00:05:08,800 I'm like, yeah, that's not what the talk was about. 114 00:05:08,800 --> 00:05:13,500 So I'm going to give you a list because I only basically talk about AppSec all the time. 115 00:05:14,140 --> 00:05:16,960 So we're not going to talk about DevOps security. 116 00:05:17,060 --> 00:05:22,300 We're not going to talk about application security, API security, password management, physical security, enterprise security. 117 00:05:22,460 --> 00:05:28,120 We're just going to talk about if you were going to assess the security of your Azure implementation, how would you do it? 118 00:05:28,120 --> 00:05:31,000 Or if you're a consultant and you're going to do it for someone else. 119 00:05:31,320 --> 00:05:33,180 We're only going to cover that. 120 00:05:33,240 --> 00:05:36,460 There's also going to be, after this slide, no more rick rolling. 121 00:05:36,460 --> 00:05:38,280 That's the last one. 122 00:05:39,060 --> 00:05:39,720 Okay. 123 00:05:39,880 --> 00:05:41,660 So let's do this. 124 00:05:42,080 --> 00:05:42,420 Okay. 125 00:05:42,420 --> 00:05:45,960 So the first thing you want to do is define the scope of your assessment. 126 00:05:46,280 --> 00:05:46,820 Right? 127 00:05:46,840 --> 00:05:48,400 Guess what's bad? 128 00:05:48,400 --> 00:05:52,980 It's testing a thing you're not supposed to, and then your boss getting pissed. 129 00:05:53,080 --> 00:05:54,440 Especially if you're a consultant. 130 00:05:54,440 --> 00:05:57,200 This is way, way more important if you're a consultant. 131 00:05:57,240 --> 00:06:01,960 Because you don't want to piss off your clients. 132 00:06:01,960 --> 00:06:04,860 If you work there full time, they know you and know your intentions. 133 00:06:04,860 --> 00:06:08,600 But if you're a consultant, you're on the thin ice all the time. 134 00:06:08,720 --> 00:06:09,140 I know. 135 00:06:09,140 --> 00:06:09,600 I've been one. 136 00:06:09,600 --> 00:06:12,480 So you want to talk about, like, is data part of this? 137 00:06:12,480 --> 00:06:14,080 Is application security a part of this? 138 00:06:14,080 --> 00:06:17,140 Because some of them think that it is and some of them think it's not. 139 00:06:17,200 --> 00:06:19,240 And I assure you, everyone has a different opinion. 140 00:06:19,260 --> 00:06:20,040 I've learned. 141 00:06:20,040 --> 00:06:22,960 Because sometimes they're like, oh, but you're also going to fish our employees? 142 00:06:22,960 --> 00:06:23,860 I'm like, no. 143 00:06:24,020 --> 00:06:24,640 What? 144 00:06:24,640 --> 00:06:26,280 You don't want me for that. 145 00:06:26,280 --> 00:06:27,580 They'll be like, that was Tanya. 146 00:06:28,180 --> 00:06:29,820 Everyone has different skill set, right? 147 00:06:29,820 --> 00:06:32,420 So definitely in this, network security is part of it. 148 00:06:32,420 --> 00:06:34,480 Access control is going to be a part of it. 149 00:06:35,120 --> 00:06:42,660 You need to make sure that each thing is you want to make sure also that they're not like, hey, you were supposed to test that and you didn't. 150 00:06:42,660 --> 00:06:43,000 Right? 151 00:06:43,000 --> 00:06:45,580 So you want to make sure everyone's on the same page. 152 00:06:45,780 --> 00:06:50,240 Also, often they want to talk about methodology. 153 00:06:51,300 --> 00:06:56,920 I've seen a lot of people point to that appendix or methodology web page and copy and paste it. 154 00:06:56,920 --> 00:06:57,800 I'm like, no. 155 00:06:58,280 --> 00:07:05,820 I try to explain to them what I'm going to do with real words that they understand and then actually write it into an appendix so that they know. 156 00:07:05,820 --> 00:07:09,680 Because I just want them to be comfortable and I'd rather spend a bit more time. 157 00:07:09,680 --> 00:07:10,620 But that's me. 158 00:07:11,020 --> 00:07:11,400 Okay. 159 00:07:11,400 --> 00:07:17,100 So also, are you going to only do cloud stuff or are you going to do internal stuff? 160 00:07:17,220 --> 00:07:19,240 Or do they have a multi-cloud instance? 161 00:07:19,240 --> 00:07:29,400 So a lot of what is happening right now, I'm not sure if you're aware, but so a lot of people are so super-duper-duper in bed with one cloud provider, they realize, like, that is a lot of eggs in only one basket. 162 00:07:29,600 --> 00:07:33,220 And so what they're doing is they're doing two clouds and they have them talk to each other. 163 00:07:33,220 --> 00:07:34,680 They have secure stuff in between. 164 00:07:34,700 --> 00:07:36,400 And they monitor them both. 165 00:07:36,540 --> 00:07:38,800 Are both clouds in scope? 166 00:07:39,280 --> 00:07:42,560 You definitely want to make sure that you know that before you get in trouble. 167 00:07:43,060 --> 00:07:46,640 You also want to know if you're supposed to test the incident handling or not. 168 00:07:46,880 --> 00:07:49,500 Make sure the incident team knows you're coming. 169 00:07:50,680 --> 00:07:51,920 Everyone... you know that. 170 00:07:51,920 --> 00:07:52,400 Okay. 171 00:07:52,400 --> 00:07:55,580 So you want to make sure that each thing that is or is not in scope. 172 00:07:55,580 --> 00:07:56,260 Okay. 173 00:07:56,440 --> 00:07:58,060 Here's the scope of our assessment. 174 00:07:58,060 --> 00:08:07,380 So we made this talk because I was, like, trying to... so I have, like, this little show with my friend Nancy and Francisca and Nicole. 175 00:08:07,900 --> 00:08:12,160 And basically... so we just, like, live stream us being nerdy. 176 00:08:12,160 --> 00:08:14,280 And so I really wanted to have Terry on. 177 00:08:14,660 --> 00:08:19,480 So I was, like, let's do a pen test of our website. 178 00:08:19,520 --> 00:08:21,480 So we did one. 179 00:08:21,480 --> 00:08:23,740 So we did one of devslop.co. 180 00:08:23,740 --> 00:08:26,060 That's my open source project's website. 181 00:08:26,160 --> 00:08:27,900 It's ugly, I know. 182 00:08:27,900 --> 00:08:32,640 And so we did also my entire Azure subscription at that moment. 183 00:08:33,500 --> 00:08:35,800 We did the SQL database for the app. 184 00:08:35,800 --> 00:08:36,420 The network. 185 00:08:36,420 --> 00:08:39,740 Stuff I was supposed to have deleted from previous demos but had forgotten. 186 00:08:39,920 --> 00:08:41,320 And the VMs. 187 00:08:41,320 --> 00:08:43,460 And there would have been containers, but I didn't have any. 188 00:08:43,460 --> 00:08:45,220 So ha-ha, Terry couldn't get them. 189 00:08:45,720 --> 00:08:47,500 We didn't test the web app itself. 190 00:08:47,520 --> 00:08:49,760 Because we already do that on the show all the time. 191 00:08:49,760 --> 00:08:51,760 So that's our scope that we set. 192 00:08:52,540 --> 00:08:54,640 And we made a video just as an FYI. 193 00:08:54,640 --> 00:08:56,700 And we wrote a bunch of articles, which I'll share at the end. 194 00:08:56,700 --> 00:09:00,820 So you can see, like, in detail all the steps we did and demos and stuff. 195 00:09:00,820 --> 00:09:01,380 So that... 196 00:09:01,380 --> 00:09:03,680 and then there's, like, a checklist that's written down for you. 197 00:09:03,680 --> 00:09:05,460 So just so you know, I'm not going to leave you hanging. 198 00:09:05,520 --> 00:09:05,920 Okay. 199 00:09:05,940 --> 00:09:08,300 So the very first thing that Azure will... 200 00:09:08,300 --> 00:09:11,000 so Azure will nag you. 201 00:09:12,720 --> 00:09:15,160 It will tell you, like, this is bad. 202 00:09:15,160 --> 00:09:21,680 So the very first thing that it always tells you is, like, go... so go check that every single subscription has multi-factor authentication on. 203 00:09:21,680 --> 00:09:24,320 This is the keys to your kingdom. 204 00:09:24,580 --> 00:09:26,600 This is the keys to everything ever. 205 00:09:26,600 --> 00:09:31,600 So it will give you 50 Azure security points. 206 00:09:31,600 --> 00:09:33,360 It will congratulate you and be happy. 207 00:09:33,360 --> 00:09:35,780 It will nag you constantly if you don't do it. 208 00:09:36,000 --> 00:09:40,420 Because MFA, multi-factor authentication, is so important. 209 00:09:42,800 --> 00:09:46,540 I was supposed to wear a T-shirt on stage, but they didn't have my size. 210 00:09:47,160 --> 00:09:50,840 But anyway, so I made a video about how to do that. 211 00:09:50,960 --> 00:09:53,680 So on the bottom, a bunch of these things are going to have links. 212 00:09:53,680 --> 00:09:56,960 And it's either an article or a video about how to do the thing that I'm talking about. 213 00:09:56,960 --> 00:09:58,920 Because, again, I don't want to leave you hanging. 214 00:09:59,220 --> 00:10:00,380 Sometimes I find it frustrating. 215 00:10:00,380 --> 00:10:02,920 I go to a technical talk, and then oh, that's cool. 216 00:10:02,920 --> 00:10:03,840 How do I do that? 217 00:10:03,840 --> 00:10:06,160 Or I look it up, and there's, like, 50 pages. 218 00:10:06,160 --> 00:10:07,800 I'm like, which one is the one I should look at? 219 00:10:07,800 --> 00:10:09,780 This is the one I think you should look at? 220 00:10:10,560 --> 00:10:13,920 But anyway, so number one is that you should do that. 221 00:10:13,920 --> 00:10:18,340 I don't know if anyone follows me online, but I've been hassling the crap out of all... so I'm from Canada. 222 00:10:18,340 --> 00:10:19,820 That's why I say aboot. 223 00:10:23,220 --> 00:10:23,940 Yeah. 224 00:10:23,980 --> 00:10:25,760 Like, I don't think that it's weird. 225 00:10:25,760 --> 00:10:31,480 But anyway, so we only have six banks in Canada, where I hear you have at least ten. 226 00:10:33,080 --> 00:10:36,580 And so, like, only one of them uses multi-factor authentication. 227 00:10:36,580 --> 00:10:38,540 And I'm like, yo, I gave you all my money. 228 00:10:38,540 --> 00:10:39,940 I really want to be secure. 229 00:10:39,940 --> 00:10:42,000 So I've been just hassling them over and over. 230 00:10:42,000 --> 00:10:44,600 And so I wrote an article about multi-factor authentication. 231 00:10:44,620 --> 00:10:46,720 And I'm just... it's really, really important. 232 00:10:46,720 --> 00:10:51,060 And so this is just very dear to my heart that I want us to protect all of our customers. 233 00:10:51,060 --> 00:10:51,640 Okay. 234 00:10:52,120 --> 00:10:52,520 Next. 235 00:10:52,520 --> 00:10:54,300 So identity and access management. 236 00:10:54,360 --> 00:10:57,360 So you want to make sure that you have roles set up. 237 00:10:57,360 --> 00:10:59,180 You can make your own custom roles. 238 00:10:59,180 --> 00:11:00,400 Almost everyone does. 239 00:11:00,600 --> 00:11:02,040 Like, if you're an enterprise. 240 00:11:02,040 --> 00:11:03,600 If you're a startup, whatever. 241 00:11:03,600 --> 00:11:05,480 If you have six people, you don't need to make your own roles. 242 00:11:05,480 --> 00:11:09,660 But if you have, like, 20,000 people, you're probably going to have things that are very special for you. 243 00:11:09,660 --> 00:11:11,660 You want to make sure people have the right roles. 244 00:11:11,800 --> 00:11:15,280 So if I'm a DBA, I should have database owner access. 245 00:11:15,280 --> 00:11:16,820 But I'm not a DBA. 246 00:11:16,820 --> 00:11:18,460 So I should not have it. 247 00:11:18,460 --> 00:11:20,760 And Azure actually always complains to me about it. 248 00:11:20,760 --> 00:11:22,840 Saying you shouldn't have DBA owner, Tanya. 249 00:11:22,840 --> 00:11:23,780 I'm like, I know. 250 00:11:23,980 --> 00:11:25,980 So you want to go and verify those. 251 00:11:25,980 --> 00:11:28,640 You can set those in policies within Azure. 252 00:11:28,640 --> 00:11:30,760 You can create your own custom policies. 253 00:11:31,360 --> 00:11:44,420 When I used to think of policies, what I thought of was because I worked for the Canadian government, and it would be, like, a website of, like, white, like, space and then black text that would just go on endlessly. 254 00:11:45,240 --> 00:11:49,160 And it would be boring and I wouldn't understand what it meant. 255 00:11:49,560 --> 00:11:56,740 But when we say policy here, what we mean is it's like a list of rules that are kind of true or false that you've set. 256 00:11:56,740 --> 00:12:01,780 And then it goes and it checks for you in real time and says that guy doesn't have MFA on. 257 00:12:01,780 --> 00:12:04,180 That website's available via HTTP. 258 00:12:04,520 --> 00:12:05,180 No. 259 00:12:05,440 --> 00:12:08,160 And so it tells you all the policies that you've broken. 260 00:12:09,080 --> 00:12:11,440 And so that's what we mean when we say policy. 261 00:12:11,440 --> 00:12:15,100 So I don't know about you, but when I hear policy, I think of a lot of text. 262 00:12:16,060 --> 00:12:18,220 You also want to make sure that you're doing least privilege. 263 00:12:18,220 --> 00:12:23,160 So, again, don't give Tanya database owner access because she's not a DBA. 264 00:12:24,620 --> 00:12:29,040 Another thing you want to verify is that you're using service accounts when you should use service accounts. 265 00:12:29,040 --> 00:12:32,280 So if I am a person that is using our network, I am. 266 00:12:32,480 --> 00:12:34,600 I'm Tanya Jank on the network. 267 00:12:34,600 --> 00:12:40,560 But when I make the Dev Slop app and it needs to talk to my database, it shouldn't be Tanya's credentials. 268 00:12:40,560 --> 00:12:41,900 Because what if I quit? 269 00:12:42,180 --> 00:12:42,480 Right? 270 00:12:42,480 --> 00:12:44,280 Or, like, what if I become evil? 271 00:12:44,620 --> 00:12:44,980 Okay. 272 00:12:44,980 --> 00:12:46,080 What if I quit? 273 00:12:47,240 --> 00:12:52,600 And so the idea is that then you have this service principle or a service account that does this. 274 00:12:52,600 --> 00:12:57,340 You should never be having your apps call things with some developer's credentials. 275 00:12:57,340 --> 00:12:58,820 That's very dangerous. 276 00:12:58,820 --> 00:13:01,600 That also means that that developer has superpowers. 277 00:13:01,600 --> 00:13:02,660 You don't want that. 278 00:13:02,660 --> 00:13:07,020 You want to see Tanya did this, but the Dev Slop database made this request. 279 00:13:07,020 --> 00:13:07,780 And that they're separate. 280 00:13:07,780 --> 00:13:10,260 So when you look at logs, they make sense. 281 00:13:10,460 --> 00:13:11,060 Okay. 282 00:13:12,480 --> 00:13:14,220 These apply to everything in Azure. 283 00:13:14,220 --> 00:13:17,180 You can set up a thing for literally everything. 284 00:13:17,680 --> 00:13:19,360 Because that's how it works. 285 00:13:19,820 --> 00:13:21,940 This can work in multi-cloud situations. 286 00:13:21,940 --> 00:13:31,160 So if you extend Azure AD onto your premises or into, like, let's say AWS or GCP, it will monitor all the things there. 287 00:13:31,160 --> 00:13:34,260 So you can have it do all the stuff there. 288 00:13:34,260 --> 00:13:37,740 Or you can use a different identity system within Azure. 289 00:13:38,760 --> 00:13:40,660 It also works for Azure stack. 290 00:13:40,660 --> 00:13:47,720 So Azure stack is, like, where you have your own data center and you're, like, no way I'm putting that in Azure, but I really like Azure, so we're going to bring Azure home. 291 00:13:48,780 --> 00:13:55,800 And so then here's, like, so we have this thing called Microsoft Learn, which are basically free lessons. 292 00:13:56,620 --> 00:13:58,160 And so I made one. 293 00:13:58,160 --> 00:13:59,940 I did not make this one. 294 00:13:59,940 --> 00:14:06,860 But it's basically they're around, like, 45 minute to an hour, like, walk through with sandboxes so you can try things and play with them. 295 00:14:07,140 --> 00:14:08,340 And so I made one. 296 00:14:08,340 --> 00:14:12,380 It's, like, five security things developers need to do before they push to prod. 297 00:14:12,960 --> 00:14:17,660 But so basically, like, we have one on most of the things because we want you to do it right. 298 00:14:18,200 --> 00:14:18,860 Okay. 299 00:14:19,560 --> 00:14:20,880 This is a Terry slide. 300 00:14:20,880 --> 00:14:22,800 So pretend I'm being very serious. 301 00:14:23,720 --> 00:14:24,260 Okay. 302 00:14:24,260 --> 00:14:26,160 So account structure and governance. 303 00:14:26,880 --> 00:14:34,840 So this is probably different than in your home data center if you have an on premise site or if you have an on premise data center. 304 00:14:35,240 --> 00:14:37,940 So everything goes down kind of like this. 305 00:14:37,940 --> 00:14:40,760 You can have this top view where you see everything. 306 00:14:41,200 --> 00:14:41,480 Right? 307 00:14:41,480 --> 00:14:44,660 Or if you're me, pretty close to the bottom. 308 00:14:45,620 --> 00:14:49,580 And so I can only see me and then, like, my teammates because that's how we've arranged it. 309 00:14:49,580 --> 00:14:52,120 Of course, I was, like, I should do security for our whole team. 310 00:14:52,120 --> 00:14:53,440 They're, like, please remain calm. 311 00:14:53,440 --> 00:14:56,860 No, you cannot look in your coworkers subscriptions. 312 00:14:56,860 --> 00:15:02,880 But anyway, so you want to make sure that you have policies and that they cover everything. 313 00:15:03,060 --> 00:15:06,400 You want to make sure that people only have access to the things they're supposed to. 314 00:15:06,400 --> 00:15:11,980 For instance, you don't want me being able to add security to everyone else's apps without their permission. 315 00:15:12,700 --> 00:15:13,940 All these things. 316 00:15:13,940 --> 00:15:17,400 So first accounts, management groups, subscriptions, and resource groups. 317 00:15:17,600 --> 00:15:22,580 Resource groups are like a directory or a folder in Windows. 318 00:15:22,860 --> 00:15:24,560 They're not, like, a real thing. 319 00:15:24,560 --> 00:15:27,300 They're not, like, it's not, like, a network security group. 320 00:15:27,300 --> 00:15:28,460 It is not protected. 321 00:15:28,540 --> 00:15:31,920 It's just, like, oh, I'm going to put all the things for this project in this bucket. 322 00:15:31,920 --> 00:15:33,940 But everything can see everything else. 323 00:15:34,020 --> 00:15:36,920 Just to be clear, those are not security borders. 324 00:15:36,920 --> 00:15:39,000 Those are just for organizational purposes. 325 00:15:39,000 --> 00:15:42,740 So please don't assume that when you put something in a resource group. 326 00:15:42,860 --> 00:15:43,260 Okay. 327 00:15:43,260 --> 00:15:45,560 But you can give permissions to resource groups. 328 00:15:45,560 --> 00:15:46,180 Okay. 329 00:15:46,540 --> 00:15:47,960 So who's heard of SIS? 330 00:15:47,960 --> 00:15:51,660 The security for, yeah, center for security, uh, internet security. 331 00:15:51,700 --> 00:15:56,260 It's, like, crowd sourced security knowledge, which is really, really, really cool. 332 00:15:56,260 --> 00:16:01,880 And they have, um, best practices, benchmarks, and, um, there's so much cool stuff. 333 00:16:01,880 --> 00:16:05,020 So a whole bunch of people, so, like, we contribute to it. 334 00:16:05,020 --> 00:16:06,680 And we also benefit from it. 335 00:16:06,900 --> 00:16:11,540 And lots and lots of governments do, especially in the United States. 336 00:16:11,820 --> 00:16:12,120 Okay. 337 00:16:12,120 --> 00:16:17,380 So SIS is kind of famous for their 20 critical controls. 338 00:16:17,780 --> 00:16:23,500 Um, so when we were creating all these policies in Azure, and by we, I mean, like, they did the hard work. 339 00:16:23,500 --> 00:16:30,360 Um, one of the things they decided to do is, like, oh, like, what if you could just check if you're following the SIS benchmarks? 340 00:16:30,360 --> 00:16:32,980 What if you could just check to see if you're HIPAA compliant? 341 00:16:33,280 --> 00:16:45,540 So we've added, I don't know if I have a screenshot of that, but, um, we've added a thing where you can just go check, and it'll tell you one by one if you are or are not compliant to these, and it'll point you to where you're not compliant, and you can click it, 342 00:16:45,540 --> 00:16:50,120 and you can go down, and once the lecture's over, then you can go fix it. 343 00:16:50,920 --> 00:17:04,840 I don't know, I think that's pretty cool, because, um, I like it when I get point, rather than, like, you have a lot of vulnerabilities in the app, I like to have it be, like, this virtual machine does not have this enabled, or this one's missing this patch. 344 00:17:04,840 --> 00:17:06,800 I like it to be really specific. 345 00:17:07,120 --> 00:17:09,120 Okay, so here's some sample controls. 346 00:17:09,540 --> 00:17:11,720 Um, inventory and control of software assets. 347 00:17:11,720 --> 00:17:15,960 Who has a perfect list of every single app that is in their cloud or on-prem? 348 00:17:16,140 --> 00:17:18,580 Yeah, exactly, right? 349 00:17:18,580 --> 00:17:25,160 So this will tell you, um, so this is an assessment, and then there's controlled use of administrative privileges. 350 00:17:25,420 --> 00:17:28,400 Guess who doesn't get administrative privileges at work? 351 00:17:28,520 --> 00:17:29,800 I know, right? 352 00:17:30,300 --> 00:17:33,200 Only C-level executives need that. 353 00:17:36,480 --> 00:17:43,100 Okay, so, um, on top of, so it, oh, here it is, is here's where it will assess CIS benchmarks. 354 00:17:43,100 --> 00:17:47,300 So we have one for Azure, Exchange Server, IIS, etc. 355 00:17:47,300 --> 00:17:51,720 A lot of companies do this, because we want you to follow best practices. 356 00:17:51,720 --> 00:17:58,120 So we want to make it easy, so you can go and download the CIS benchmark and have, like, this checklist of things to check. 357 00:17:58,120 --> 00:18:03,340 But like I said, in Azure, it's automated, um, so you can go through and then click on it, and it'll tell you. 358 00:18:03,820 --> 00:18:10,120 Okay, another thing you can do is you can download images that are already hardened and set to this. 359 00:18:10,140 --> 00:18:11,000 That's cool. 360 00:18:11,000 --> 00:18:11,840 I'm lazy. 361 00:18:11,840 --> 00:18:13,000 I don't want to do things twice. 362 00:18:13,000 --> 00:18:15,280 If someone else is going to do it for me, that's awesome. 363 00:18:15,280 --> 00:18:20,000 So we have, I believe, 126 as of May when we made this slide. 364 00:18:20,000 --> 00:18:21,120 Not bad, right? 365 00:18:22,500 --> 00:18:24,060 Okay, so one more. 366 00:18:24,060 --> 00:18:25,020 Example control. 367 00:18:25,020 --> 00:18:30,140 So ensure that restricted access to Azure AD administrative portal is set to yes. 368 00:18:30,480 --> 00:18:37,280 So then it actually gives you the exact, here it is, step-by-step, like, what menu you click on, exactly where you go. 369 00:18:40,400 --> 00:18:41,720 Microsoft is Microsoft, right? 370 00:18:41,720 --> 00:18:42,700 It's going to be, like, glossy. 371 00:18:42,700 --> 00:18:43,640 We want to hold your hand. 372 00:18:43,640 --> 00:18:45,620 We want to make sure, you know what I mean? 373 00:18:45,620 --> 00:18:52,060 Like, it's not like an open source project where it's, like, you just have to download these 25 other things and compile them yourself and then also just, you know what I mean? 374 00:18:52,060 --> 00:18:52,840 Like, I don't know. 375 00:18:52,840 --> 00:18:55,800 So we're really, we want you to get to the end. 376 00:18:56,240 --> 00:19:05,840 Okay, so then, so my favorite part and the thing that you should probably look at right after you ensure MFA is turned on is that you should just go to the security center. 377 00:19:06,160 --> 00:19:07,560 I have a link at the bottom. 378 00:19:07,680 --> 00:19:09,980 So I'm not, I'm not doing a demo. 379 00:19:09,980 --> 00:19:11,140 One, because I don't have time. 380 00:19:11,140 --> 00:19:13,560 And two, because I'm afraid of the internet here. 381 00:19:13,640 --> 00:19:19,520 And I was just like, I am not willing to sign in and use my, I'm just not willing to do that on this. 382 00:19:19,700 --> 00:19:20,420 Sorry. 383 00:19:20,860 --> 00:19:21,780 No offense. 384 00:19:21,860 --> 00:19:22,700 It's not you. 385 00:19:22,700 --> 00:19:24,360 It's all people now in this room. 386 00:19:25,400 --> 00:19:28,260 But so this is like the start of what it looks like. 387 00:19:28,260 --> 00:19:29,140 And there's three sections. 388 00:19:29,140 --> 00:19:31,880 So the first one at the top, you can see policy and compliance. 389 00:19:32,060 --> 00:19:33,940 So we have a secure score. 390 00:19:33,940 --> 00:19:35,140 What is a secure score? 391 00:19:35,140 --> 00:19:38,080 I know people are like, oh, gamification, blah, blah, blah. 392 00:19:38,340 --> 00:19:48,540 When I worked in like a, not in a SOC, but like I was on the incident response team and like the enterprise security team, it was really hard for me to show my boss I was doing a good job. 393 00:19:48,720 --> 00:19:52,800 Because he would only see me when there was an incident or not at all. 394 00:19:53,000 --> 00:19:53,420 Right? 395 00:19:53,420 --> 00:19:56,820 So then like if he didn't see me for a month , it's like, oh, is Tanya even working? 396 00:19:56,880 --> 00:19:59,620 And then when he would see me, my name was a swear word. 397 00:19:59,900 --> 00:20:04,340 And so here I can say like, look, I went from 48 to 550. 398 00:20:04,340 --> 00:20:07,160 Like I've done, I've checked off these things. 399 00:20:07,300 --> 00:20:11,060 So you can see like your mark go up of when you improve different things. 400 00:20:11,060 --> 00:20:14,280 And it also helps you know like what the biggest bang is for your buck. 401 00:20:14,280 --> 00:20:17,880 Like if we give you five points, it's a low priority. 402 00:20:17,880 --> 00:20:23,140 If we give you 50 points, that's the highest you can get and that's for turning on multi-factor authentication. 403 00:20:23,480 --> 00:20:28,780 And so then also regulatory compliance, so ISO 27001, et cetera. 404 00:20:28,780 --> 00:20:34,180 So you click on those and as best we can, we're going to tell you where you've done a good job or not. 405 00:20:34,560 --> 00:20:35,120 Okay. 406 00:20:35,620 --> 00:20:40,100 This is the part where you can figure out who is or is not covered by Azure Security Center. 407 00:20:40,100 --> 00:20:44,220 So there's like a free version and then there's like the paid version. 408 00:20:44,220 --> 00:20:44,840 I work there. 409 00:20:44,840 --> 00:20:46,360 So I have the paid version. 410 00:20:46,520 --> 00:20:48,620 The free version is completely awesome. 411 00:20:48,620 --> 00:20:50,940 And then the paid version is like even better. 412 00:20:50,940 --> 00:20:53,500 Basically you get a bunch of extra tools that we made. 413 00:20:53,560 --> 00:20:57,960 And you want to make sure that at least the purple is at 100% or the blue. 414 00:20:57,960 --> 00:21:00,640 You do not want any in the gray of not covered. 415 00:21:00,640 --> 00:21:01,860 It's free. 416 00:21:01,860 --> 00:21:03,040 Come on. 417 00:21:03,280 --> 00:21:08,260 So you don't want anything to not at least give you like the list of things you're missing, right? 418 00:21:08,600 --> 00:21:09,220 Okay. 419 00:21:09,460 --> 00:21:15,520 Oh, and I have like little links at the bottom to all of these because, um, I felt I didn't have enough time to explain all of them. 420 00:21:15,520 --> 00:21:16,720 And I'm so worried. 421 00:21:16,720 --> 00:21:18,260 How much time do I have? 422 00:21:19,520 --> 00:21:19,980 Okay. 423 00:21:19,980 --> 00:21:20,680 Sorry. 424 00:21:20,920 --> 00:21:21,340 Okay. 425 00:21:21,340 --> 00:21:22,160 I better move it. 426 00:21:22,160 --> 00:21:22,680 All right. 427 00:21:22,680 --> 00:21:25,640 So, um, this is where you set security policies. 428 00:21:25,640 --> 00:21:35,940 Those are the things like the checklist will basically like one of the things, for instance, I want, I only want my apps to be available via HTTPS. 429 00:21:35,980 --> 00:21:40,920 I do not want HTTP to be available external anymore. 430 00:21:40,980 --> 00:21:44,980 That's my personal policy slash that's what Microsoft also wants. 431 00:21:45,040 --> 00:21:50,260 Um, and so, and, and so like that is one of the things that would be in my custom policy. 432 00:21:50,260 --> 00:21:52,140 So you can set your policies here. 433 00:21:53,020 --> 00:21:53,540 Okay. 434 00:21:53,540 --> 00:21:55,480 So cloud security, zero trust. 435 00:21:55,480 --> 00:21:58,740 You can do zero trust in your own data center. 436 00:21:58,760 --> 00:22:00,120 However, okay. 437 00:22:00,120 --> 00:22:02,300 Who's here has heard of zero trust? 438 00:22:02,620 --> 00:22:03,120 Okay. 439 00:22:03,120 --> 00:22:03,580 Yeah. 440 00:22:03,580 --> 00:22:08,260 So the idea is, is what we used to do is we would have firewalls. 441 00:22:08,260 --> 00:22:10,640 We call it zoning or network security groups. 442 00:22:11,180 --> 00:22:13,440 And it's just a firewall and everything inside. 443 00:22:13,440 --> 00:22:15,060 It's like, you're probably okay. 444 00:22:15,080 --> 00:22:17,100 We're all in the data zone. 445 00:22:17,340 --> 00:22:18,280 Everything's probably fine. 446 00:22:18,280 --> 00:22:26,220 But then if a bad person, a malicious actor got in, then they could just pivot to any, any of the other ones and get all of the things. 447 00:22:26,500 --> 00:22:30,980 But now with zero trust, you're just nothing trusts anything. 448 00:22:31,660 --> 00:22:34,980 And the reason why this is important is because of pivoting. 449 00:22:35,420 --> 00:22:38,020 And if you do it for everything, it's a lot easier. 450 00:22:38,020 --> 00:22:41,280 I'm going to show you like a way that you can do it in Azure. 451 00:22:41,380 --> 00:22:43,020 Um, we have like a couple automatic things. 452 00:22:43,020 --> 00:22:44,680 So you can do this in regards to ports. 453 00:22:44,680 --> 00:22:46,140 You can do this in regards to firewalls. 454 00:22:46,140 --> 00:22:48,220 You can do this in regards to your apps. 455 00:22:48,940 --> 00:22:49,660 Okay. 456 00:22:49,940 --> 00:22:51,260 Terry made this graphic. 457 00:22:51,260 --> 00:22:54,620 She, I told her to print pictures or stickers of it. 458 00:22:54,620 --> 00:22:55,540 I love it. 459 00:22:55,540 --> 00:22:57,340 I want a sticker on my laptop. 460 00:22:57,340 --> 00:22:59,500 Hacker's heart, flat networks. 461 00:22:59,980 --> 00:23:00,320 Okay. 462 00:23:00,320 --> 00:23:03,520 So, um, don't have a flat network. 463 00:23:04,980 --> 00:23:06,480 That's what this slide means. 464 00:23:06,580 --> 00:23:09,800 Basically like good points for good network design. 465 00:23:09,800 --> 00:23:13,960 Basically follow best practices of networking in the cloud, right? 466 00:23:13,960 --> 00:23:17,560 Like some things don't change when you move to the cloud. 467 00:23:17,560 --> 00:23:18,020 Okay. 468 00:23:18,020 --> 00:23:18,820 Next. 469 00:23:18,960 --> 00:23:21,080 Um, has anyone seen this article? 470 00:23:22,100 --> 00:23:29,540 Um, wrote it and it's about how basically there's a vulnerability on confluence where everyone just left something open. 471 00:23:29,540 --> 00:23:38,540 And then he managed to report on over 50, um, uh, bug, uh, bug bounties in like just a few hours. 472 00:23:38,540 --> 00:23:40,140 And he was really happy. 473 00:23:41,200 --> 00:23:46,240 And so sometimes if you find one vulnerability, you can just go to all of the bug bounties and get the money. 474 00:23:46,240 --> 00:23:47,180 And he did that. 475 00:23:47,180 --> 00:23:52,500 And it's just a lesson for all of us that we need to make sure everything is following zero trust. 476 00:23:52,880 --> 00:23:53,320 Okay. 477 00:23:53,320 --> 00:23:57,000 Network security groups, also known as firewalls. 478 00:23:57,460 --> 00:24:01,100 It's just like zoning and that's what we call it in Canada. 479 00:24:02,500 --> 00:24:03,080 Um, okay. 480 00:24:03,080 --> 00:24:11,640 So yes, we should, um, uh, basically what we used to do is we used to have most of the ports open instead. 481 00:24:11,640 --> 00:24:14,560 Now we have all the ports closed except for the one you need. 482 00:24:15,060 --> 00:24:16,800 And is the next one zero trust? 483 00:24:16,800 --> 00:24:17,100 No. 484 00:24:17,100 --> 00:24:17,380 Okay. 485 00:24:17,380 --> 00:24:17,980 Nevermind. 486 00:24:17,980 --> 00:24:20,060 I'm going to tell you more about closing ports in a second. 487 00:24:21,040 --> 00:24:24,260 Another cool thing, another cool feature is network watcher. 488 00:24:24,700 --> 00:24:28,780 And then there's a section and it's really small and it's highlighted there on the left. 489 00:24:28,780 --> 00:24:32,640 And I know it's hard to see, but it says effective security rules. 490 00:24:32,960 --> 00:24:38,040 So the network will, it's like Wireshark kind of, but for Azure and it's part of it. 491 00:24:38,040 --> 00:24:40,700 And so you can watch everything as it goes back and forth. 492 00:24:41,280 --> 00:24:45,400 Um, but then there's like a special security sections where we just highlight that. 493 00:24:45,680 --> 00:24:49,380 It also, so like, let's say that this is what your app looks like. 494 00:24:49,380 --> 00:24:57,100 Then you can go in there and I know it's hard to see because it's small, but it will actually map it all out for you visually, which is pretty sweet. 495 00:24:57,100 --> 00:25:01,020 No more sitting there with Visio for 10 hours trying to make this. 496 00:25:02,240 --> 00:25:03,540 Oh my gosh. 497 00:25:04,260 --> 00:25:07,520 Um, so Azure makes its own firewall. 498 00:25:07,520 --> 00:25:11,040 We basically make one of everything now except for password managers. 499 00:25:11,500 --> 00:25:14,180 Um, so we have a firewall. 500 00:25:14,200 --> 00:25:16,900 It's just like a regular firewall, except it's from us. 501 00:25:16,960 --> 00:25:20,240 Um, and you can use it to set up least privileges rules. 502 00:25:20,240 --> 00:25:24,940 You can put it around storage accounts, logging, always turn on the logging, right? 503 00:25:26,560 --> 00:25:28,320 No heads nodding. 504 00:25:29,240 --> 00:25:34,220 Um, so you can turn on logging and then, um, you should turn on monitoring. 505 00:25:34,300 --> 00:25:34,920 Okay. 506 00:25:35,140 --> 00:25:38,120 Next VPN, virtual private network. 507 00:25:38,120 --> 00:25:39,580 We also have one of those. 508 00:25:40,000 --> 00:25:42,420 I feel like Terry's slides are so much prettier than mine. 509 00:25:42,420 --> 00:25:43,780 This is a Terry slide. 510 00:25:43,780 --> 00:25:45,560 So this is what it looks like. 511 00:25:45,780 --> 00:25:49,580 Um, but we also have something slightly different in Azure called Azure express route. 512 00:25:49,580 --> 00:25:54,680 So what a lot of people are doing is they have, so no one's like, oh, tomorrow we went to the cloud. 513 00:25:54,760 --> 00:25:56,320 Like we went in one day. 514 00:25:56,320 --> 00:26:04,440 It usually takes a few years and basically the new things go there and a transformation or migration takes months to years. 515 00:26:04,800 --> 00:26:05,080 Right? 516 00:26:05,080 --> 00:26:10,820 So in the meantime, we have express route, which is a VPN in between you, um, and Azure. 517 00:26:11,200 --> 00:26:14,840 And it also makes sure that you go really, really, really, really fast. 518 00:26:15,880 --> 00:26:16,420 Okay. 519 00:26:16,420 --> 00:26:17,800 Next bastion host. 520 00:26:17,800 --> 00:26:19,740 So who here has heard of a bastion host? 521 00:26:19,800 --> 00:26:20,400 Okay. 522 00:26:20,400 --> 00:26:22,000 Who here calls it jump box? 523 00:26:22,000 --> 00:26:23,080 Cause that's what I call it. 524 00:26:23,300 --> 00:26:25,900 And Terry and I are both like, what are you talking about? 525 00:26:26,900 --> 00:26:27,320 Okay. 526 00:26:27,320 --> 00:26:28,940 So it's also a jump box. 527 00:26:28,940 --> 00:26:38,560 So you can have the box that you go into from outside the network and then you hop, you jump to the other or you bastion, you jump to the other boxes. 528 00:26:38,560 --> 00:26:38,720 Right? 529 00:26:38,720 --> 00:26:43,500 But instead of that, a thing that you can do now is called just in time, which I'll explain in a minute. 530 00:26:44,360 --> 00:26:45,060 Okay. 531 00:26:45,920 --> 00:26:53,980 I'm going to talk about a couple of things that are only available in Azure, called something else from the other cloud providers. 532 00:26:55,240 --> 00:26:56,200 Awesome. 533 00:26:56,360 --> 00:26:57,020 Okay. 534 00:26:57,260 --> 00:27:00,760 So adaptive application controls. 535 00:27:00,760 --> 00:27:02,000 That's wait listing. 536 00:27:02,360 --> 00:27:10,560 Just in time VM access that is instead of a jump box, network hardening, um, which is not in preview anymore. 537 00:27:10,560 --> 00:27:11,380 It's out now. 538 00:27:11,700 --> 00:27:14,220 Uh, it just tells you like, this is bad. 539 00:27:14,220 --> 00:27:15,060 You should change this. 540 00:27:15,060 --> 00:27:16,360 It just helps you harden your network. 541 00:27:16,360 --> 00:27:21,420 It's really cool file integrity monitoring, which I feel goes really well with the first one, wait listing. 542 00:27:21,540 --> 00:27:28,180 So if any of the core files within your system changes, it tells you right away because something bad's happening. 543 00:27:28,680 --> 00:27:29,520 So, oh yeah. 544 00:27:29,520 --> 00:27:31,240 So we're going to talk about that one first. 545 00:27:31,240 --> 00:27:32,340 Oh, and that one too. 546 00:27:32,900 --> 00:27:36,380 I recorded lots of demos and then realized that I had less time. 547 00:27:36,960 --> 00:27:37,540 Okay. 548 00:27:38,480 --> 00:27:41,940 Just in time is like a zero trust for ports. 549 00:27:41,940 --> 00:27:43,760 So it closes all of your ports. 550 00:27:44,000 --> 00:27:53,540 Um, that's one of my apps called, or one of my virtual machines is called Dev Slop D check and it's part of the Dev Slop project and I have OS app installed on it. 551 00:27:53,680 --> 00:27:56,320 And so I have all the ports closed 100% of the time. 552 00:27:56,320 --> 00:27:58,720 If I want to use one of the ports, I have to make a request. 553 00:27:58,720 --> 00:28:00,780 Let's see if I have, yeah. 554 00:28:00,900 --> 00:28:05,580 So I request access and then I tell it how long I want it for. 555 00:28:05,580 --> 00:28:08,780 So port, um, eight, eight, or three, three, eight, nine. 556 00:28:08,780 --> 00:28:10,500 So I want to RDP into it. 557 00:28:10,540 --> 00:28:13,500 So I click on, I say only my IP address. 558 00:28:13,500 --> 00:28:18,580 So it means I have to have used multi-factor authentication to get into the Azure portal. 559 00:28:18,580 --> 00:28:22,180 And then I have to have like access to go into there. 560 00:28:22,180 --> 00:28:27,520 Then I turn it on and then it's on for only three hours and you have to be coming from my IP to get in. 561 00:28:27,540 --> 00:28:31,760 And then there's a 64 bit random character password that you have to do. 562 00:28:31,920 --> 00:28:36,580 So between all of that, even though I live stream, I'll go in and I'll be live streaming. 563 00:28:36,580 --> 00:28:37,480 No one's come in. 564 00:28:37,480 --> 00:28:38,460 Pretty good, eh? 565 00:28:38,800 --> 00:28:41,620 So instead of a bastion host, I do that. 566 00:28:41,940 --> 00:28:53,060 Adaptive application controls, whitelisting, um, is basically, so again, on the same virtual machine, I have OWASP zap installed, which is a hacker tool, right? 567 00:28:53,060 --> 00:28:55,940 Like I could do malicious things if I were malicious with it. 568 00:28:55,940 --> 00:28:58,520 So I really don't want anyone else using it. 569 00:28:58,520 --> 00:29:04,760 So I have whitelisting turned on when what that means is system things can run on the virtual machine because it's windows. 570 00:29:04,760 --> 00:29:11,440 So the basic windows stuff and zap and the zap API, because I call it and nothing else can run on there. 571 00:29:11,440 --> 00:29:15,280 So if someone tries to install something on it, it won't run. 572 00:29:15,280 --> 00:29:22,220 And if someone tries to change one of the core system files, it will alert me and that won't run because of file integrity monitoring. 573 00:29:22,220 --> 00:29:26,780 So together, it means my VM's pretty damn safe, especially with all the ports closed. 574 00:29:27,700 --> 00:29:28,360 Yes. 575 00:29:28,720 --> 00:29:29,220 Um, okay. 576 00:29:29,220 --> 00:29:33,480 So another thing that I like to do is, so Azure will set up alerts. 577 00:29:33,480 --> 00:29:42,340 I don't know, uh, if I have time to tell the story of Azure telling on me my second week at Microsoft, like, okay, no, I don't. 578 00:29:42,340 --> 00:29:45,400 And so anyway, it will give you alerts that are really great. 579 00:29:46,760 --> 00:29:53,020 Um, so you can turn on threat protection, which will stop things and also alert you for storage. 580 00:29:53,240 --> 00:29:55,720 Um, and also for your databases. 581 00:29:55,880 --> 00:29:58,980 It's, um, it's not a web application firewall. 582 00:29:58,980 --> 00:30:00,460 It's at the network level. 583 00:30:01,180 --> 00:30:08,040 Next, a WAF, a web application firewall that is at the application level as opposed to the network level. 584 00:30:08,080 --> 00:30:09,900 Who here has heard of a WAF? 585 00:30:10,360 --> 00:30:11,240 Awesome. 586 00:30:11,340 --> 00:30:11,820 So guess what? 587 00:30:11,820 --> 00:30:12,700 We make one. 588 00:30:13,900 --> 00:30:24,100 So here we have the WAF application firewall rules and they call them the OWASP rules, but they're actually the core rule set rules, which is an OWASP project. 589 00:30:24,100 --> 00:30:27,320 And you can have level 2.7 or you can have level 3. 590 00:30:27,320 --> 00:30:28,720 Obviously you want the new one. 591 00:30:28,720 --> 00:30:31,060 Who's like, oh, give me the old rules. 592 00:30:31,300 --> 00:30:32,180 No one. 593 00:30:32,460 --> 00:30:33,120 Anyway. 594 00:30:34,100 --> 00:30:34,700 Okay. 595 00:30:34,720 --> 00:30:42,000 So network watcher, not only, um, can you see, um, all sorts of things going back and forth, like you can watch the flow of traffic. 596 00:30:42,540 --> 00:30:46,520 So yeah, there's some, there's some Wireshark for us. 597 00:30:46,520 --> 00:30:49,120 I was going to say, doesn't this look like, oh, that is Wireshark. 598 00:30:50,100 --> 00:30:51,760 You're like, is this Terry's slide? 599 00:30:51,760 --> 00:30:52,840 I can't tell. 600 00:30:53,220 --> 00:30:53,900 Um, okay. 601 00:30:53,900 --> 00:31:05,120 So there's a whole bunch of network tools, including, so there's intrusion prevention, intrusion detection, um, there's DLP, there's DNS, there's firewalls and WAF. 602 00:31:05,120 --> 00:31:06,440 So firewall network level. 603 00:31:06,440 --> 00:31:06,980 Oh, two minutes. 604 00:31:06,980 --> 00:31:07,480 Okay. 605 00:31:07,480 --> 00:31:08,560 There's stuff. 606 00:31:08,560 --> 00:31:10,620 We also make a SIM. 607 00:31:11,440 --> 00:31:12,480 Sorry. 608 00:31:12,580 --> 00:31:13,680 We also make a SIM. 609 00:31:13,680 --> 00:31:14,800 It's called Sentinel. 610 00:31:14,800 --> 00:31:19,340 And there's a company named Sentinel one, and we're not the same thing, but they're also cool. 611 00:31:20,560 --> 00:31:23,400 Um, and then we also have advanced data security. 612 00:31:23,400 --> 00:31:25,700 So you can classify your data. 613 00:31:25,700 --> 00:31:31,400 So, you know, when there's an incident, if it's the end of the world, or if like you can go get a snack. 614 00:31:33,660 --> 00:31:37,940 Um, and we'll also, we have, we can run automatic VAs all the time. 615 00:31:37,940 --> 00:31:38,140 Okay. 616 00:31:38,140 --> 00:31:43,680 So I'm really sorry, but I only have two minutes and I'm just going to skip to the end where we do the checklist with you. 617 00:31:43,680 --> 00:31:43,920 Okay. 618 00:31:43,920 --> 00:31:45,860 So here are the things I need you to go check. 619 00:31:45,920 --> 00:31:48,060 And then you can go watch this online after. 620 00:31:48,240 --> 00:31:52,060 Set your scope, only, only check things in scope. 621 00:31:52,220 --> 00:31:55,360 Verify account structure, identity, access control. 622 00:31:55,860 --> 00:31:59,680 All the same best practices apply, it's just different settings, right? 623 00:31:59,680 --> 00:32:02,200 You already know all of that. 624 00:32:02,640 --> 00:32:04,280 Set an Azure policy. 625 00:32:04,280 --> 00:32:08,480 And then if someone is not obeying it, go buy them donuts and ask them nicely. 626 00:32:08,480 --> 00:32:10,700 And then after, go check. 627 00:32:11,060 --> 00:32:13,000 Turn on Azure Security Center. 628 00:32:13,180 --> 00:32:17,520 So after you turn on MFA, turn on Azure Security Center, at least on the free level. 629 00:32:17,520 --> 00:32:18,760 It's free. 630 00:32:18,900 --> 00:32:22,520 And then just go through and do all the recommendations and fix them. 631 00:32:22,780 --> 00:32:24,800 Use the cloud native features. 632 00:32:24,800 --> 00:32:30,400 So there's threat detection, adaptive application controls, file integrity monitoring, just in time. 633 00:32:30,400 --> 00:32:32,580 And now there's network security hardening. 634 00:32:33,120 --> 00:32:36,960 And follow the network best practices. 635 00:32:36,960 --> 00:32:39,000 Like they all still apply. 636 00:32:39,180 --> 00:32:46,240 So network security groups, routes, access, network watcher, firewalls, express route, jump boxes. 637 00:32:48,140 --> 00:32:50,080 Make sure you're on top of your alerts. 638 00:32:50,080 --> 00:32:56,920 A thing that you can do is you can like go through and start customizing them so it stops alerting you on things that are annoying. 639 00:32:56,920 --> 00:33:02,020 There's a lot less alerts in here than there are on other sims I've used. 640 00:33:02,020 --> 00:33:03,780 Because we know ourselves. 641 00:33:03,780 --> 00:33:07,300 As opposed to when you plug in a different sim, you have to teach it for a long time. 642 00:33:07,300 --> 00:33:08,740 Oh, I'm so done. 643 00:33:08,740 --> 00:33:09,880 I'm done. 644 00:33:10,060 --> 00:33:11,560 I'm done now. 645 00:33:11,860 --> 00:33:12,900 I'm done. 646 00:33:13,600 --> 00:33:14,380 Okay. 647 00:33:14,380 --> 00:33:17,640 So what did we learn today other than we're done? 648 00:33:17,640 --> 00:33:19,800 We learned this. 649 00:33:20,000 --> 00:33:22,060 And here's the resources. 650 00:33:22,060 --> 00:33:23,080 Just take a picture of this. 651 00:33:23,080 --> 00:33:24,000 That's it. 652 00:33:24,120 --> 00:33:25,320 Thank you!