[00:00.000 --> 00:07.020] Hi, everyone. I'm Tanya. And okay, so my previous job, I was like a web app pen tester. And [00:07.020 --> 00:12.040] then I started working at Microsoft, and they let me do whatever I want to Azure, which [00:12.040 --> 00:15.880] is really cool. And I realized that everyone I know is like, can you show me how to do [00:15.980 --> 00:20.880] a pen test in Azure? And I was like, maybe I should write a talk. So then I met my friend [00:20.880 --> 00:27.100] Terry. Terry's an AWS hero. And she can just shatter the crap out of anything. She's amazing. [00:27.100 --> 00:29.920] And I was like, do you want to write a talk with me? And then she actually said yes. [00:29.920 --> 00:34.720] So she's not here, because she got offered so much money that she had to go do something [00:34.720 --> 00:39.320] else. And I have to say, if I got offered that much money, I'd probably go too. But [00:39.320 --> 00:43.920] anyway, so she's really amazing. And we wrote this talk together. Okay, so where are we [00:43.920 --> 00:47.240] going? Oh, yeah, I have to stand still. What are we going to talk about today? So we're [00:47.240 --> 00:50.440] going to talk about doing it yourself. We're going to talk about doing a security assessment [00:50.440 --> 00:56.040] yourself before calling a pen tester. So usually, when someone like me or someone like Terry, [00:56.040 --> 01:01.760] who's been like networking forever, they go in, like it's the basics that aren't done. [01:01.760 --> 01:05.240] People aren't even ready for the pen test. And so I want to show you all the stuff that [01:05.240 --> 01:10.200] because if I come in, and then like everyone, if the security is like here, then you're [01:10.200 --> 01:14.700] not getting your money out of me. Does that make sense? So I want you to be able to do [01:14.700 --> 01:18.340] this much yourself. So when I come in, you're like, you have to earn that paycheck. Okay, [01:18.340 --> 01:21.800] so here's the mandatory about me slide. This is the one where like we prove that we're [01:21.800 --> 01:27.580] qualified to do our talk. I like punk rock. And I'm Tonya Janka. On the internet, I'm [01:27.580 --> 01:34.480] SheXPurple. I work at that startup company. I don't know if you've heard of us. I'm a [01:34.960 --> 01:39.800] developer advocate, which means I get to do my hobby, and then they give me money. I'm [01:39.800 --> 01:44.340] totally obsessed with OWASP. It's ridiculous. I'm part of WOSEC, Women of Security. So if [01:44.760 --> 01:47.780] you're a woman and you want to make more female friends that work in security, you can talk [01:47.780 --> 01:52.740] to me. And oh, also, I speak French in case anyone wants to ask questions in French if [01:52.740 --> 01:58.700] you're shy. This is Terry. Terry's awesome. I'm Terry's biggest fan. She's a badass cloud [01:58.700 --> 02:02.580] hacker. I want to like put over top of this just badass cloud hacker. And she's like, no, [02:02.580 --> 02:07.900] Tonya, just remain calm. She's a lot more serious and like very professional when she [02:07.900 --> 02:13.200] presents. And I'm the silly one. So she's been programming forever. She is so basically [02:13.200 --> 02:19.260] she does cloud security training and testing. And she has a wealth of experience that's just [02:19.260 --> 02:23.880] out of this world. And I learn from her every time I see her. So what is a security [02:23.880 --> 02:28.780] assessment? It's not a pen test, slightly different. So we find all the vulnerabilities and [02:28.780 --> 02:33.380] gaps and then try to help you fix them. Right? So we're going to do a lot of scanning. We're [02:33.380 --> 02:36.920] going to talk to people. We're going to, if you'll let us, look at like an architecture [02:36.920 --> 02:41.200] review. We might threat model things. And then at the end, just the same as a pen test, we [02:41.200 --> 02:46.620] give you a report, except for like, it's just, I don't know. I prefer security assessments, [02:46.620 --> 02:52.220] but pen tests are cooler. Um, okay. So as a pen test, so similar to a security assessment, [02:52.220 --> 02:58.620] except for you burn everything down. It excludes, it includes exploitation, pivoting to [02:58.620 --> 03:04.040] other areas. Um, there may be targets, objectives, like things you're supposed to steal. [03:04.640 --> 03:09.180] Basically you're trying to prove the systems can be broken into. Um, Terry's way better at [03:09.180 --> 03:13.020] this than I am. I'm more like, I'm going to help you set up really good policies and do this [03:13.020 --> 03:17.920] and do that. And she's more like, ah, and then everything's on fire. Um, but you still have to [03:17.920 --> 03:22.960] do a report. There's no getting around it. Okay. So why would you want to do it yourself? [03:23.400 --> 03:29.340] Why? Why would you? Because like, we're expensive. Pen testers are expensive. Also like [03:29.860 --> 03:35.360] almost no places have their own pen testers on staff. Like unless you work out a big startup [03:35.360 --> 03:41.200] like I do, you can't usually afford like a team of pen testers. You also want to have like not the [03:41.200 --> 03:44.180] same pen tester come every time because you want a fresh set of eyes, but a security [03:44.180 --> 03:47.980] assessment, you can do that yourself. So let's, we're going to go through a big list of [03:47.980 --> 03:52.500] things that I want you to go look at if you have Azure. Okay. So who here uses Azure? [03:53.180 --> 03:59.540] Awesome. Okay. I want all of you to have good experiences because then my boss will think I'm [03:59.540 --> 04:05.060] cool. No, because I want you to be secure. Okay. So I want you to be able to do all these [04:05.060 --> 04:10.360] things before you bother to call a pen tester. So I can save you money. And because I, I [04:10.360 --> 04:15.580] just, I want the internet to be safe. The end. Okay. So first thing, do not test the [04:15.580 --> 04:21.500] average, the Azure fabric. You don't want Microsoft to be angry at you. You don't. I [04:21.500 --> 04:26.120] don't either. So that means the infrastructure, the fabric of the cloud, like that's the [04:26.120 --> 04:33.120] thing that is us that makes us unhappy. Um, so you do not, so none of the cloud providers [04:33.120 --> 04:38.460] now demand that you tell them in advance if you're doing, um, like if you're going to do a [04:38.460 --> 04:42.360] pen test, but you should. It's just so much easier because if we see something, we might [04:42.360 --> 04:47.700] just be like, no. Right? Because we're trying to protect all the people. And if what you're [04:47.700 --> 04:52.660] doing is kind of like out of the blue and weird, we might not understand that. And so if you [04:52.660 --> 04:56.360] tell us you're coming, you don't need permission. You're just like, hey, tomorrow I'm going to [04:56.460 --> 05:02.340] make a mess. Thank you. We'll watch out for that. Okay. So here are things that are out of [05:02.340 --> 05:06.100] scope. So there's a lot of things I'm not going to cover in this talk. Sometimes after talk, [05:06.100 --> 05:08.360] people will be like, you didn't cover this. I'm like, yeah, that's not what the talk was [05:08.360 --> 05:12.840] about. So I'm going to give you a list because I only basically talk about AppSec all the [05:12.840 --> 05:17.740] time. So we're not going to talk about DevOps security. We're not going to talk about [05:17.740 --> 05:21.920] application security, API security, password management, physical security, enterprise [05:21.920 --> 05:26.300] security. We're just going to talk about if you were going to assess the security of your [05:26.300 --> 05:29.880] Azure implementation, how would you do it? Or if you're a consultant and you're going to do [05:29.880 --> 05:34.680] it for someone else. We're only going to cover that. There's also going to be, after this [05:34.680 --> 05:43.240] slide, no more rick rolling. That's the last one. Okay. So let's do this. Okay. So the first [05:43.240 --> 05:48.400] thing you want to do is define the scope of your assessment. Right? Guess what's bad? [05:48.400 --> 05:53.720] It's testing a thing you're not supposed to, and then your boss getting pissed. Especially if [05:53.720 --> 05:57.680] you're a consultant. This is way, way more important if you're a consultant. Because [05:59.820 --> 06:04.120] you don't want to piss off your clients. If you work there full time, they know you and know [06:04.120 --> 06:09.260] your intentions. But if you're a consultant, you're on the thin ice all the time. I know. I've [06:09.260 --> 06:13.820] been one. So you want to talk about, like, is data part of this? Is application security a part [06:13.820 --> 06:17.700] of this? Because some of them think that it is and some of them think it's not. And I assure [06:17.700 --> 06:21.320] you, everyone has a different opinion. I've learned. Because sometimes they're like, oh, but [06:21.320 --> 06:26.440] you're also going to fish our employees? I'm like, no. What? You don't want me for that. They'll [06:26.440 --> 06:31.240] be like, that was Tanya. Everyone has different skill set, right? So definitely in this, [06:31.240 --> 06:36.040] network security is part of it. Access control is going to be a part of it. You need to make [06:36.040 --> 06:40.900] sure that each thing is you want to make sure also that they're not like, hey, you were [06:40.900 --> 06:44.780] supposed to test that and you didn't. Right? So you want to make sure everyone's on the same [06:44.780 --> 06:52.820] page. Also, often they want to talk about methodology. I've seen a lot of people point to [06:52.820 --> 06:59.500] that appendix or methodology web page and copy and paste it. I'm like, no. I try to explain to [06:59.500 --> 07:03.940] them what I'm going to do with real words that they understand and then actually write it into [07:03.940 --> 07:08.800] an appendix so that they know. Because I just want them to be comfortable and I'd rather spend a bit [07:08.800 --> 07:15.280] more time. But that's me. Okay. So also, are you going to only do cloud stuff or are you going to [07:15.280 --> 07:21.340] do internal stuff? Or do they have a multi-cloud instance? So a lot of what is happening right now, [07:21.340 --> 07:25.840] I'm not sure if you're aware, but so a lot of people are so super-duper-duper in bed with one [07:25.840 --> 07:30.040] cloud provider, they realize, like, that is a lot of eggs in only one basket. And so what they're [07:30.040 --> 07:33.840] doing is they're doing two clouds and they have them talk to each other. They have secure stuff [07:33.840 --> 07:40.480] in between. And they monitor them both. Are both clouds in scope? You definitely want to make sure [07:40.480 --> 07:44.780] that you know that before you get in trouble. You also want to know if you're supposed to [07:44.780 --> 07:49.500] test the incident handling or not. Make sure the incident team knows you're coming. [07:50.680 --> 07:55.120] Everyone... you know that. Okay. So you want to make sure that each thing that is or is not in [07:55.120 --> 08:01.400] scope. Okay. Here's the scope of our assessment. So we made this talk because I was, like, [08:01.400 --> 08:07.380] trying to... so I have, like, this little show with my friend Nancy and Francisca and Nicole. [08:07.900 --> 08:13.540] And basically... so we just, like, live stream us being nerdy. And so I really wanted to have [08:13.540 --> 08:22.100] Terry on. So I was, like, let's do a pen test of our website. So we did one. So we did one [08:22.100 --> 08:29.020] of devslop.co. That's my open source project's website. It's ugly, I know. And so we did also [08:29.020 --> 08:36.420] my entire Azure subscription at that moment. We did the SQL database for the app. The network. [08:36.420 --> 08:41.660] Stuff I was supposed to have deleted from previous demos but had forgotten. And the VMs. And there [08:41.660 --> 08:46.360] would have been containers, but I didn't have any. So ha-ha, Terry couldn't get them. We didn't [08:46.360 --> 08:50.840] test the web app itself. Because we already do that on the show all the time. So that's our scope [08:50.840 --> 08:56.300] that we set. And we made a video just as an FYI. And we wrote a bunch of articles, which I'll share [08:56.300 --> 09:01.380] at the end. So you can see, like, in detail all the steps we did and demos and stuff. So that... [09:01.380 --> 09:04.300] and then there's, like, a checklist that's written down for you. So just so you know, [09:04.300 --> 09:08.300] I'm not going to leave you hanging. Okay. So the very first thing that Azure will... [09:08.300 --> 09:16.420] so Azure will nag you. It will tell you, like, this is bad. So the very first thing that it always [09:16.420 --> 09:21.100] tells you is, like, go... so go check that every single subscription has multi-factor authentication [09:21.100 --> 09:29.100] on. This is the keys to your kingdom. This is the keys to everything ever. So it will give you 50 [09:29.100 --> 09:34.980] Azure security points. It will congratulate you and be happy. It will nag you constantly if you [09:34.980 --> 09:44.020] don't do it. Because MFA, multi-factor authentication, is so important. I was supposed [09:44.020 --> 09:50.060] to wear a T-shirt on stage, but they didn't have my size. But anyway, so I made a video about how [09:50.060 --> 09:54.020] to do that. So on the bottom, a bunch of these things are going to have links. And it's either [09:54.020 --> 09:57.720] an article or a video about how to do the thing that I'm talking about. Because, again, I don't [09:57.720 --> 10:01.480] want to leave you hanging. Sometimes I find it frustrating. I go to a technical talk, and then [10:01.480 --> 10:06.360] oh, that's cool. How do I do that? Or I look it up, and there's, like, 50 pages. I'm like, [10:06.360 --> 10:09.780] which one is the one I should look at? This is the one I think you should look at? [10:10.560 --> 10:15.560] But anyway, so number one is that you should do that. I don't know if anyone follows me online, [10:15.560 --> 10:19.820] but I've been hassling the crap out of all... so I'm from Canada. That's why I say aboot. [10:23.220 --> 10:28.940] Yeah. Like, I don't think that it's weird. But anyway, so we only have six banks in Canada, [10:29.320 --> 10:35.840] where I hear you have at least ten. And so, like, only one of them uses multi-factor [10:35.840 --> 10:40.080] authentication. And I'm like, yo, I gave you all my money. I really want to be secure. So [10:40.080 --> 10:43.800] I've been just hassling them over and over. And so I wrote an article about multi-factor [10:43.800 --> 10:48.040] authentication. And I'm just... it's really, really important. And so this is just very [10:48.040 --> 10:53.160] dear to my heart that I want us to protect all of our customers. Okay. Next. So identity and [10:53.160 --> 10:58.140] access management. So you want to make sure that you have roles set up. You can make your own [10:58.140 --> 11:03.220] custom roles. Almost everyone does. Like, if you're an enterprise. If you're a startup, [11:03.220 --> 11:06.140] whatever. If you have six people, you don't need to make your own roles. But if you have, like, [11:06.140 --> 11:09.880] 20,000 people, you're probably going to have things that are very special for you. You want [11:09.880 --> 11:15.280] to make sure people have the right roles. So if I'm a DBA, I should have database owner access. [11:15.280 --> 11:20.760] But I'm not a DBA. So I should not have it. And Azure actually always complains to me about it. [11:20.760 --> 11:25.980] Saying you shouldn't have DBA owner, Tanya. I'm like, I know. So you want to go and verify those. [11:25.980 --> 11:30.760] You can set those in policies within Azure. You can create your own custom policies. [11:31.360 --> 11:36.580] When I used to think of policies, what I thought of was because I worked for the Canadian government, [11:36.580 --> 11:42.980] and it would be, like, a website of, like, white, like, space and then black text that would just [11:42.980 --> 11:49.160] go on endlessly. And it would be boring and I wouldn't understand what it meant. [11:49.560 --> 11:54.620] But when we say policy here, what we mean is it's like a list of rules that are kind of true or [11:54.620 --> 12:00.360] false that you've set. And then it goes and it checks for you in real time and says that guy [12:00.360 --> 12:07.120] doesn't have MFA on. That website's available via HTTP. No. And so it tells you all the policies [12:07.120 --> 12:12.260] that you've broken. And so that's what we mean when we say policy. So I don't know about you, [12:12.260 --> 12:17.780] but when I hear policy, I think of a lot of text. You also want to make sure that you're doing least [12:17.780 --> 12:23.160] privilege. So, again, don't give Tanya database owner access because she's not a DBA. [12:24.620 --> 12:28.460] Another thing you want to verify is that you're using service accounts when you should use service [12:28.460 --> 12:34.600] accounts. So if I am a person that is using our network, I am. I'm Tanya Jank on the network. [12:34.600 --> 12:39.840] But when I make the Dev Slop app and it needs to talk to my database, it shouldn't be Tanya's [12:39.840 --> 12:46.080] credentials. Because what if I quit? Right? Or, like, what if I become evil? Okay. What if I quit? [12:47.240 --> 12:52.600] And so the idea is that then you have this service principle or a service account that does this. [12:52.600 --> 12:57.340] You should never be having your apps call things with some developer's credentials. [12:57.340 --> 13:02.660] That's very dangerous. That also means that that developer has superpowers. You don't want that. [13:02.660 --> 13:07.360] You want to see Tanya did this, but the Dev Slop database made this request. And that they're [13:07.360 --> 13:14.220] separate. So when you look at logs, they make sense. Okay. These apply to everything in Azure. [13:14.220 --> 13:20.620] You can set up a thing for literally everything. Because that's how it works. This can work in [13:20.620 --> 13:27.440] multi-cloud situations. So if you extend Azure AD onto your premises or into, like, let's say AWS [13:27.440 --> 13:34.680] or GCP, it will monitor all the things there. So you can have it do all the stuff there. Or you [13:34.680 --> 13:41.600] can use a different identity system within Azure. It also works for Azure stack. So Azure stack is, [13:41.600 --> 13:44.980] like, where you have your own data center and you're, like, no way I'm putting that in Azure, [13:44.980 --> 13:50.080] but I really like Azure, so we're going to bring Azure home. And so then here's, like, [13:50.080 --> 13:57.640] so we have this thing called Microsoft Learn, which are basically free lessons. And so I made [13:57.640 --> 14:02.700] one. I did not make this one. But it's basically they're around, like, 45 minute to an hour, like, [14:02.700 --> 14:08.780] walk through with sandboxes so you can try things and play with them. And so I made one. It's, like, [14:08.780 --> 14:14.520] five security things developers need to do before they push to prod. But so basically, like, we have [14:14.520 --> 14:20.920] one on most of the things because we want you to do it right. Okay. This is a Terry slide. So [14:20.920 --> 14:28.360] pretend I'm being very serious. Okay. So account structure and governance. So this is probably [14:28.360 --> 14:33.920] different than in your home data center if you have an on premise site or if you have an on [14:33.920 --> 14:39.680] premise data center. So everything goes down kind of like this. You can have this top view where you [14:39.680 --> 14:47.000] see everything. Right? Or if you're me, pretty close to the bottom. And so I can only see me [14:47.000 --> 14:50.840] and then, like, my teammates because that's how we've arranged it. Of course, I was, like, I should [14:50.840 --> 14:55.040] do security for our whole team. They're, like, please remain calm. No, you cannot look in your [14:55.040 --> 15:02.040] coworkers subscriptions. But anyway, so you want to make sure that you have policies and that they [15:02.040 --> 15:05.780] cover everything. You want to make sure that people only have access to the things they're [15:05.780 --> 15:10.740] supposed to. For instance, you don't want me being able to add security to everyone else's apps [15:10.740 --> 15:16.220] without their permission. All these things. So first accounts, management groups, subscriptions, [15:16.220 --> 15:23.380] and resource groups. Resource groups are like a directory or a folder in Windows. They're not, [15:23.380 --> 15:27.640] like, a real thing. They're not, like, it's not, like, a network security group. It is not [15:27.640 --> 15:31.920] protected. It's just, like, oh, I'm going to put all the things for this project in this bucket. [15:31.920 --> 15:37.000] But everything can see everything else. Just to be clear, those are not security borders. Those [15:37.000 --> 15:42.080] are just for organizational purposes. So please don't assume that when you put something in a [15:42.080 --> 15:48.100] resource group. Okay. But you can give permissions to resource groups. Okay. So who's heard of SIS? [15:48.100 --> 15:53.860] The security for, yeah, center for security, uh, internet security. It's, like, crowd sourced [15:53.860 --> 15:58.820] security knowledge, which is really, really, really cool. And they have, um, best practices, [15:58.820 --> 16:04.340] benchmarks, and, um, there's so much cool stuff. So a whole bunch of people, so, like, we contribute [16:04.340 --> 16:10.740] to it. And we also benefit from it. And lots and lots of governments do, especially in the United [16:10.740 --> 16:19.520] States. Okay. So SIS is kind of famous for their 20 critical controls. Um, so when we were creating [16:19.520 --> 16:25.480] all these policies in Azure, and by we, I mean, like, they did the hard work. Um, one of the [16:25.480 --> 16:29.760] things they decided to do is, like, oh, like, what if you could just check if you're following the SIS [16:29.760 --> 16:34.740] benchmarks? What if you could just check to see if you're HIPAA compliant? So we've added, I don't [16:34.740 --> 16:38.580] know if I have a screenshot of that, but, um, we've added a thing where you can just go check, and [16:38.580 --> 16:43.640] it'll tell you one by one if you are or are not compliant to these, and it'll point you to where [16:43.640 --> 16:48.920] you're not compliant, and you can click it, and you can go down, and once the lecture's over, then [16:48.920 --> 16:53.900] you can go fix it. I don't know, I think that's pretty cool, because, um, I like it when I get [16:53.900 --> 16:58.880] point, rather than, like, you have a lot of vulnerabilities in the app, I like to have it be, [16:58.880 --> 17:05.140] like, this virtual machine does not have this enabled, or this one's missing this patch. I like [17:05.140 --> 17:10.860] it to be really specific. Okay, so here's some sample controls. Um, inventory and control of [17:10.860 --> 17:15.960] software assets. Who has a perfect list of every single app that is in their cloud or on-prem? [17:16.140 --> 17:22.660] Yeah, exactly, right? So this will tell you, um, so this is an assessment, and then there's [17:22.660 --> 17:27.280] controlled use of administrative privileges. Guess who doesn't get administrative privileges [17:27.280 --> 17:40.320] at work? I know, right? Only C-level executives need that. Okay, so, um, on top of, so it, oh, [17:40.320 --> 17:45.560] here it is, is here's where it will assess CIS benchmarks. So we have one for Azure, Exchange [17:45.560 --> 17:51.720] Server, IIS, etc. A lot of companies do this, because we want you to follow best practices. [17:51.720 --> 17:56.640] So we want to make it easy, so you can go and download the CIS benchmark and have, like, this [17:56.640 --> 18:01.460] checklist of things to check. But like I said, in Azure, it's automated, um, so you can go through [18:01.460 --> 18:06.020] and then click on it, and it'll tell you. Okay, another thing you can do is you can download [18:06.020 --> 18:12.580] images that are already hardened and set to this. That's cool. I'm lazy. I don't want to do things [18:12.580 --> 18:18.220] twice. If someone else is going to do it for me, that's awesome. So we have, I believe, 126 as of [18:18.220 --> 18:25.400] May when we made this slide. Not bad, right? Okay, so one more. Example control. So ensure [18:25.400 --> 18:31.340] that restricted access to Azure AD administrative portal is set to yes. So then it actually gives [18:31.340 --> 18:37.280] you the exact, here it is, step-by-step, like, what menu you click on, exactly where you go. [18:40.400 --> 18:43.840] Microsoft is Microsoft, right? It's going to be, like, glossy. We want to hold your hand. We want [18:43.840 --> 18:47.680] to make sure, you know what I mean? Like, it's not like an open source project where it's, like, [18:47.680 --> 18:51.580] you just have to download these 25 other things and compile them yourself and then also just, [18:51.580 --> 18:55.800] you know what I mean? Like, I don't know. So we're really, we want you to get to the end. [18:56.240 --> 19:01.860] Okay, so then, so my favorite part and the thing that you should probably look at right after you [19:01.860 --> 19:06.940] ensure MFA is turned on is that you should just go to the security center. I have a link at the [19:06.940 --> 19:11.880] bottom. So I'm not, I'm not doing a demo. One, because I don't have time. And two, because I'm [19:11.880 --> 19:17.660] afraid of the internet here. And I was just like, I am not willing to sign in and use my, I'm just [19:17.660 --> 19:24.360] not willing to do that on this. Sorry. No offense. It's not you. It's all people now in this room. [19:25.400 --> 19:29.520] But so this is like the start of what it looks like. And there's three sections. So the first [19:29.520 --> 19:34.600] one at the top, you can see policy and compliance. So we have a secure score. What is a secure [19:34.600 --> 19:40.340] score? I know people are like, oh, gamification, blah, blah, blah. When I worked in like a, [19:40.340 --> 19:44.400] not in a SOC, but like I was on the incident response team and like the enterprise security [19:44.400 --> 19:49.460] team, it was really hard for me to show my boss I was doing a good job. Because he would only see [19:49.460 --> 19:55.000] me when there was an incident or not at all. Right? So then like if he didn't see me for a [19:55.000 --> 19:59.000] month, it's like, oh, is Tanya even working? And then when he would see me, my name was a [19:59.000 --> 20:06.180] swear word. And so here I can say like, look, I went from 48 to 550. Like I've done, I've checked [20:06.180 --> 20:11.200] off these things. So you can see like your mark go up of when you improve different things. And [20:11.200 --> 20:15.240] it also helps you know like what the biggest bang is for your buck. Like if we give you five [20:15.240 --> 20:21.140] points, it's a low priority. If we give you 50 points, that's the highest you can get and that's [20:21.140 --> 20:28.340] for turning on multi-factor authentication. And so then also regulatory compliance, so ISO 27001, [20:28.340 --> 20:32.740] et cetera. So you click on those and as best we can, we're going to tell you where you've done [20:32.840 --> 20:39.120] a good job or not. Okay. This is the part where you can figure out who is or is not covered by [20:39.120 --> 20:44.220] Azure Security Center. So there's like a free version and then there's like the paid version. [20:44.220 --> 20:49.120] I work there. So I have the paid version. The free version is completely awesome. And then [20:49.120 --> 20:53.500] the paid version is like even better. Basically you get a bunch of extra tools that we made. [20:53.560 --> 20:58.700] And you want to make sure that at least the purple is at 100% or the blue. You do not want [20:58.700 --> 21:05.700] any in the gray of not covered. It's free. Come on. So you don't want anything to not at least [21:05.700 --> 21:11.440] give you like the list of things you're missing, right? Okay. Oh, and I have like little links at [21:11.440 --> 21:15.520] the bottom to all of these because, um, I felt I didn't have enough time to explain all of them. [21:15.520 --> 21:22.680] And I'm so worried. How much time do I have? Okay. Sorry. Okay. I better move it. All right. [21:22.680 --> 21:27.760] So, um, this is where you set security policies. Those are the things like the checklist will [21:27.760 --> 21:34.520] basically like one of the things, for instance, I want, I only want my apps to be available via [21:34.520 --> 21:43.100] HTTPS. I do not want HTTP to be available external anymore. That's my personal policy slash [21:43.100 --> 21:48.620] that's what Microsoft also wants. Um, and so, and, and so like that is one of the things that would [21:48.620 --> 21:54.820] be in my custom policy. So you can set your policies here. Okay. So cloud security, zero [21:54.820 --> 22:01.300] trust. You can do zero trust in your own data center. However, okay. Who's here has heard of [22:01.300 --> 22:08.720] zero trust? Okay. Yeah. So the idea is, is what we used to do is we would have firewalls. We call [22:08.720 --> 22:13.700] it zoning or network security groups. And it's just a firewall and everything inside. It's like, [22:13.700 --> 22:19.400] you're probably okay. We're all in the data zone. Everything's probably fine. But then if a bad [22:19.400 --> 22:24.960] person, a malicious actor got in, then they could just pivot to any, any of the other ones and get [22:24.960 --> 22:32.620] all of the things. But now with zero trust, you're just nothing trusts anything. And the reason why [22:32.620 --> 22:38.080] this is important is because of pivoting. And if you do it for everything, it's a lot easier. I'm [22:38.080 --> 22:42.560] going to show you like a way that you can do it in Azure. Um, we have like a couple automatic [22:42.560 --> 22:46.340] things. So you can do this in regards to ports. You can do this in regards to firewalls. You can [22:46.340 --> 22:53.200] do this in regards to your apps. Okay. Terry made this graphic. She, I told her to print pictures [22:53.200 --> 23:00.320] or stickers of it. I love it. I want a sticker on my laptop. Hacker's heart, flat networks. Okay. [23:00.320 --> 23:08.860] So, um, don't have a flat network. That's what this slide means. Basically like good points for [23:08.860 --> 23:13.960] good network design. Basically follow best practices of networking in the cloud, right? [23:13.960 --> 23:20.160] Like some things don't change when you move to the cloud. Okay. Next. Um, has anyone seen this [23:20.160 --> 23:27.780] article? Um, wrote it and it's about how basically there's a vulnerability on confluence where [23:27.780 --> 23:36.320] everyone just left something open. And then he managed to report on over 50, um, uh, bug, uh, [23:36.320 --> 23:42.800] bug bounties in like just a few hours. And he was really happy. And so sometimes if you find one [23:42.800 --> 23:47.180] vulnerability, you can just go to all of the bug bounties and get the money. And he did that. [23:47.180 --> 23:52.500] And it's just a lesson for all of us that we need to make sure everything is following zero trust. [23:52.880 --> 23:59.900] Okay. Network security groups, also known as firewalls. It's just like zoning and that's what [23:59.900 --> 24:09.860] we call it in Canada. Um, okay. So yes, we should, um, uh, basically what we used to do is we used [24:09.860 --> 24:13.920] to have most of the ports open instead. Now we have all the ports closed except for the one you [24:13.920 --> 24:18.740] need. And is the next one zero trust? No. Okay. Nevermind. I'm going to tell you more about [24:18.740 --> 24:25.060] closing ports in a second. Another cool thing, another cool feature is network watcher. And [24:25.060 --> 24:29.020] then there's a section and it's really small and it's highlighted there on the left. And I know [24:29.020 --> 24:35.480] it's hard to see, but it says effective security rules. So the network will, it's like Wireshark [24:35.480 --> 24:39.980] kind of, but for Azure and it's part of it. And so you can watch everything as it goes back and [24:39.980 --> 24:45.400] forth. Um, but then there's like a special security sections where we just highlight that. [24:45.680 --> 24:50.600] It also, so like, let's say that this is what your app looks like. Then you can go in there and [24:50.600 --> 24:55.900] I know it's hard to see because it's small, but it will actually map it all out for you visually, [24:55.900 --> 25:01.020] which is pretty sweet. No more sitting there with Visio for 10 hours trying to make this. [25:02.240 --> 25:09.520] Oh my gosh. Um, so Azure makes its own firewall. We basically make one of everything now except [25:09.520 --> 25:16.040] for password managers. Um, so we have a firewall. It's just like a regular firewall, except it's [25:16.040 --> 25:21.200] from us. Um, and you can use it to set up least privileges rules. You can put it around storage [25:21.200 --> 25:30.280] accounts, logging, always turn on the logging, right? No heads nodding. Um, so you can turn [25:30.280 --> 25:37.540] on logging and then, um, you should turn on monitoring. Okay. Next VPN, virtual private [25:37.540 --> 25:42.420] network. We also have one of those. I feel like Terry's slides are so much prettier than mine. [25:42.420 --> 25:47.520] This is a Terry slide. So this is what it looks like. Um, but we also have something slightly [25:47.520 --> 25:52.000] different in Azure called Azure express route. So what a lot of people are doing is they have, [25:52.000 --> 25:56.920] so no one's like, oh, tomorrow we went to the cloud. Like we went in one day. It usually takes [25:57.060 --> 26:03.580] a few years and basically the new things go there and a transformation or migration takes months to [26:03.580 --> 26:10.280] years. Right? So in the meantime, we have express route, which is a VPN in between you, um, and [26:10.280 --> 26:17.360] Azure. And it also makes sure that you go really, really, really, really fast. Okay. Next bastion [26:17.360 --> 26:22.300] host. So who here has heard of a bastion host? Okay. Who here calls it jump box? Cause that's [26:22.300 --> 26:28.140] what I call it. And Terry and I are both like, what are you talking about? Okay. So it's also [26:28.220 --> 26:34.440] a jump box. So you can have the box that you go into from outside the network and then you hop, [26:34.440 --> 26:39.680] you jump to the other or you bastion, you jump to the other boxes. Right? But instead of that, [26:39.820 --> 26:43.500] a thing that you can do now is called just in time, which I'll explain in a minute. [26:44.360 --> 26:49.860] Okay. I'm going to talk about a couple of things that are only available in Azure, [26:50.660 --> 26:59.820] called something else from the other cloud providers. Awesome. Okay. So adaptive application [26:59.820 --> 27:07.820] controls. That's wait listing. Just in time VM access that is instead of a jump box, [27:07.820 --> 27:13.320] network hardening, um, which is not in preview anymore. It's out now. Uh, it just tells you like, [27:13.320 --> 27:17.020] this is bad. You should change this. It just helps you harden your network. It's really cool [27:17.020 --> 27:21.420] file integrity monitoring, which I feel goes really well with the first one, wait listing. [27:21.540 --> 27:27.100] So if any of the core files within your system changes, it tells you right away because something [27:27.100 --> 27:32.340] bad's happening. So, oh yeah. So we're going to talk about that one first. Oh, and that one too. [27:32.900 --> 27:37.540] I recorded lots of demos and then realized that I had less time. Okay. [27:38.480 --> 27:44.720] Just in time is like a zero trust for ports. So it closes all of your ports. Um, that's one of [27:44.720 --> 27:49.940] my apps called, or one of my virtual machines is called Dev Slop D check and it's part of the [27:49.940 --> 27:55.900] Dev Slop project and I have OS app installed on it. And so I have all the ports closed 100% of [27:55.900 --> 28:00.020] the time. If I want to use one of the ports, I have to make a request. Let's see if I have, [28:00.020 --> 28:07.560] yeah. So I request access and then I tell it how long I want it for. So port, um, eight, eight, [28:07.560 --> 28:13.500] or three, three, eight, nine. So I want to RDP into it. So I click on, I say only my IP address. [28:13.500 --> 28:18.580] So it means I have to have used multi-factor authentication to get into the Azure portal. [28:18.580 --> 28:23.980] And then I have to have like access to go into there. Then I turn it on and then it's on for [28:23.980 --> 28:29.320] only three hours and you have to be coming from my IP to get in. And then there's a 64 bit random [28:29.320 --> 28:35.500] character password that you have to do. So between all of that, even though I live stream, I'll go [28:35.500 --> 28:40.620] in and I'll be live streaming. No one's come in. Pretty good, eh? So instead of a bastion host, [28:40.620 --> 28:47.780] I do that. Adaptive application controls, whitelisting, um, is basically, so again, [28:47.780 --> 28:53.220] on the same virtual machine, I have OWASP zap installed, which is a hacker tool, right? Like [28:53.220 --> 28:58.240] I could do malicious things if I were malicious with it. So I really don't want anyone else using [28:58.240 --> 29:03.200] it. So I have whitelisting turned on when what that means is system things can run on the virtual [29:03.200 --> 29:09.340] machine because it's windows. So the basic windows stuff and zap and the zap API, because I call it [29:09.340 --> 29:15.280] and nothing else can run on there. So if someone tries to install something on it, it won't run. [29:15.280 --> 29:20.100] And if someone tries to change one of the core system files, it will alert me and that won't [29:20.100 --> 29:25.000] run because of file integrity monitoring. So together, it means my VM's pretty damn safe, [29:25.000 --> 29:31.240] especially with all the ports closed. Yes. Um, okay. So another thing that I like to do is, so [29:31.700 --> 29:37.300] Azure will set up alerts. I don't know, uh, if I have time to tell the story of Azure telling on [29:37.300 --> 29:44.000] me my second week at Microsoft, like, okay, no, I don't. And so anyway, it will give you alerts [29:44.000 --> 29:50.520] that are really great. Um, so you can turn on threat protection, which will stop things and [29:50.520 --> 29:58.300] also alert you for storage. Um, and also for your databases. It's, um, it's not a web application [29:58.300 --> 30:05.560] firewall. It's at the network level. Next, a WAF, a web application firewall that is at the [30:05.560 --> 30:11.240] application level as opposed to the network level. Who here has heard of a WAF? Awesome. [30:11.340 --> 30:18.600] So guess what? We make one. So here we have the WAF application firewall rules and they call them [30:18.600 --> 30:24.340] the OWASP rules, but they're actually the core rule set rules, which is an OWASP project. And [30:24.340 --> 30:29.440] you can have level 2.7 or you can have level 3. Obviously you want the new one. Who's like, oh, [30:29.440 --> 30:38.540] give me the old rules. No one. Anyway. Okay. So network watcher, not only, um, can you see, um, [30:38.540 --> 30:44.640] all sorts of things going back and forth, like you can watch the flow of traffic. So yeah, there's [30:44.640 --> 30:48.360] some, there's some Wireshark for us. I was going to say, doesn't this look like, oh, that is [30:48.360 --> 30:55.100] Wireshark. You're like, is this Terry's slide? I can't tell. Um, okay. So there's a whole bunch of [30:55.100 --> 31:02.280] network tools, including, so there's intrusion prevention, intrusion detection, um, there's DLP, [31:02.280 --> 31:07.480] there's DNS, there's firewalls and WAF. So firewall network level. Oh, two minutes. Okay. [31:07.480 --> 31:15.680] There's stuff. We also make a SIM. Sorry. We also make a SIM. It's called Sentinel. And there's a [31:15.680 --> 31:21.800] company named Sentinel one, and we're not the same thing, but they're also cool. Um, and then we also [31:21.800 --> 31:27.480] have advanced data security. So you can classify your data. So, you know, when there's an incident, [31:27.480 --> 31:35.680] if it's the end of the world, or if like you can go get a snack. Um, and we'll also, we have, we can [31:35.680 --> 31:40.780] run automatic VAs all the time. Okay. So I'm really sorry, but I only have two minutes and I'm just [31:40.780 --> 31:45.080] going to skip to the end where we do the checklist with you. Okay. So here are the things I need you [31:45.080 --> 31:51.420] to go check. And then you can go watch this online after. Set your scope, only, only check things in [31:51.420 --> 31:58.200] scope. Verify account structure, identity, access control. All the same best practices apply, it's just [31:58.200 --> 32:04.880] different settings, right? You already know all of that. Set an Azure policy. And then if someone is [32:04.880 --> 32:11.820] not obeying it, go buy them donuts and ask them nicely. And then after, go check. Turn on Azure [32:11.820 --> 32:17.520] Security Center. So after you turn on MFA, turn on Azure Security Center, at least on the free level. [32:17.520 --> 32:23.840] It's free. And then just go through and do all the recommendations and fix them. Use the cloud [32:23.840 --> 32:29.000] native features. So there's threat detection, adaptive application controls, file integrity [32:29.000 --> 32:36.300] monitoring, just in time. And now there's network security hardening. And follow the network best [32:36.300 --> 32:43.020] practices. Like they all still apply. So network security groups, routes, access, network watcher, [32:43.020 --> 32:51.020] firewalls, express route, jump boxes. Make sure you're on top of your alerts. A thing that you can do [32:51.020 --> 32:56.260] is you can like go through and start customizing them so it stops alerting you on things that are [32:56.260 --> 33:02.780] annoying. There's a lot less alerts in here than there are on other sims I've used. Because we know [33:02.780 --> 33:07.680] ourselves. As opposed to when you plug in a different sim, you have to teach it for a long time. Oh, I'm [33:07.680 --> 33:17.640] so done. I'm done. I'm done now. I'm done. Okay. So what did we learn today other than we're done? [33:17.640 --> 33:25.320] We learned this. And here's the resources. Just take a picture of this. That's it. Thank you!