Latest / CyberCode Academy / Course 29 - AZ-500 Microsoft Azure Security Technologies | Episode 2: Managing Security and Hybrid Identity Integration
Transcript
- 0:00Speaker 1: So imagine for a second that you are the chief
- 0:03Speaker 1: architect of a massive global enterprise. You've got thousands of
- 0:07Speaker 1: employees and they are logging in from literally every corner
- 0:10Speaker 1: of the planet.
- 0:11Speaker 2: Right, and they're using all kinds of different devices, accessing
- 0:14Speaker 2: dozens of different apps. It's a lot to manage, it
- 0:16Speaker 2: really is.
- 0:18Speaker 1: And your main mandate is to keep the company's network
- 0:21Speaker 1: perfectly secure without you know, driving your users completely crazy
- 0:26Speaker 1: with endless log in friction.
- 0:28Speaker 2: Yeah, because if you lock the doors too tightly, nobody
- 0:30Speaker 2: can actually get their.
- 0:31Speaker 1: Work done exactly. But if you leave them too loose,
- 0:34Speaker 1: you're looking at a catastrophic data breach. It's this impossible
- 0:37Speaker 1: tightrope walk.
- 0:38Speaker 2: It is the ultimate modern balancing act. Really. I mean,
- 0:42Speaker 2: we are moving entirely away from the old model of
- 0:45Speaker 2: just securing a physical office building with a firewall, right.
- 0:48Speaker 1: Because everyone is everywhere now exactly.
- 0:50Speaker 2: In cloud architecture. Identity is the new perimeter. It is
- 0:54Speaker 2: basically the only boundary that actually matters anymore.
- 0:56Speaker 1: Okay, let's unpack this setting up as your active directory
- 0:59Speaker 1: or as It's like building the ultimate VIP club system.
- 1:03Speaker 2: I like that, a really strict VIP club.
- 1:06Speaker 1: Yeah, you need a bouncer that instantly knows who is legit,
- 1:10Speaker 1: what specific rooms they're allowed to enter, and exactly what
- 1:13Speaker 1: door they use to get into the building.
- 1:15Speaker 2: Yes, but before you can even start issuing those VIP
- 1:19Speaker 2: passes to anyone, you need to put the right name
- 1:21Speaker 2: on the front of the building.
- 1:22Speaker 1: Which brings us to the very first step in our
- 1:25Speaker 1: deep dive today, claiming your digital turf.
- 1:28Speaker 2: Right, So, when you first spin up an Azure tenant,
- 1:31Speaker 2: the system just hands you this functional, but completely unpresentable,
- 1:35Speaker 2: automatically generated subdomain.
- 1:37Speaker 1: Oh yeah, it's always something super long, it is.
- 1:40Speaker 2: It's going to look something like tenant dot on Microsoft dot.
- 1:44Speaker 1: Com, which is just a malful it is.
- 1:47Speaker 2: I mean from an administrative standpoint, it works fine, yeah,
- 1:50Speaker 2: but from a user experience standpoint, it's a nightmare.
- 1:53Speaker 1: You definitely cannot ask your executive team to log in
- 1:56Speaker 1: every single day using this incredibly long, ugly URL.
- 2:00Speaker 2: No, absolutely not. You want to clean professional custom domain, right,
- 2:03Speaker 2: something like a cloud dot guru or learn security dot cloud.
- 2:07Speaker 1: But if we're digging into the architecture here, having that
- 2:10Speaker 1: custom domain isn't just about corporate vanity, is it.
- 2:13Speaker 2: No, not at all. It is a strict prerequisite for
- 2:16Speaker 2: synchronizing your on premise local directories to the cloud later on.
- 2:20Speaker 1: Ah okay, so it's structurally important.
- 2:23Speaker 2: That is the critical piece. Yeah, When the synchronization engine
- 2:26Speaker 2: tries to match an on premise user to a cloud user,
- 2:29Speaker 2: it relies on the user principle name or the upn.
- 2:33Speaker 1: Okay, and what happens if those don't match up?
- 2:35Speaker 2: Well, if your local active directory uses your custom domain
- 2:39Speaker 2: but your cloud environment is still stuck on that on
- 2:42Speaker 2: Microsoft dot Com default, the think engine just fails.
- 2:45Speaker 1: Oh wow, So you have to prove to Microsoft that
- 2:48Speaker 1: you actually own the public domain you want.
- 2:50Speaker 2: To use exactly. You have to verify it.
- 2:52Speaker 1: And the mechanism for proving that is just standard DNS verification, right,
- 2:55Speaker 1: Like you tell Azure the domain name you want.
- 2:58Speaker 2: Yep, and then Azure generates a unique text value for you.
- 3:01Speaker 1: And then you basically take that value log into your
- 3:03Speaker 1: DNS management system, whether that's Amazon Web Services, cloud Flare,
- 3:08Speaker 1: whatever you use, and you just drop that exact value
- 3:10Speaker 1: in as a TXT record.
- 3:12Speaker 2: Right, You're essentially altering the public records of the domain
- 3:15Speaker 2: to prove you have administrative control over it.
- 3:17Speaker 1: So Azure queries the DNS records and once the time
- 3:20Speaker 1: to live, the TTL propagates across the Internet, you just
- 3:24Speaker 1: hit verify in Azure.
- 3:25Speaker 2: Yeah, usually takes like thirty six hundred seconds or so
- 3:27Speaker 2: for the TTL, but yeah, then you're verified.
- 3:30Speaker 1: It's basically like someone handing you a secret code on
- 3:33Speaker 1: a piece of paper and telling you to go paint
- 3:34Speaker 1: it in giant letters on your roof.
- 3:36Speaker 2: That is a great way to picture.
- 3:37Speaker 1: It, right, And once you've done it, the helicopter flies
- 3:40Speaker 1: over sees the code and officially recognizes you own the
- 3:43Speaker 1: house boom. You set it as your primary domain, and
- 3:46Speaker 1: then you.
- 3:46Speaker 2: Can instantly create those sleek user profiles like Cecilia at
- 3:51Speaker 2: your custom domain.
- 3:52Speaker 1: Dot cloud beautiful, but a beautifully named building is still
- 3:56Speaker 1: completely empty. Your users aren't the cloud yet.
- 3:59Speaker 2: No, they are sitting on local office servers in a
- 4:02Speaker 2: server room somewhere in your building.
- 4:04Speaker 1: So how do we bridge that gap? Because you definitely
- 4:06Speaker 1: don't want to force thousands of employees to memorize a
- 4:09Speaker 1: completely new set of passwords just for the cloud, right.
- 4:12Speaker 2: That would cause a riot. So this is what we
- 4:14Speaker 2: call the hybrid identity challenge. It handles the whole JAML
- 4:18Speaker 2: life cycle. Joiners, movers, levers, so one.
- 4:21Speaker 1: Set of credentials used everywhere. Let's visualize this. Imagine you
- 4:25Speaker 1: have a standalone Windows server twenty sixteen acting as your
- 4:28Speaker 1: on premise active directory, okay, and through automated PowerShell scripts,
- 4:33Speaker 1: you've fed it employee data via CSV files, and you've
- 4:36Speaker 1: automatically sorted users into distinct groups like training or DevOps.
- 4:41Speaker 2: Right, So that local server is your ultimate source of truth.
- 4:45Speaker 2: But to get those identities up into the cloudhouse, you
- 4:48Speaker 2: have to introduce a tool called Azure ad Connect.
- 4:51Speaker 1: Azure ad Connect okay, So that's the bridge.
- 4:53Speaker 2: That is the bridge. You install it on a dedicated
- 4:55Speaker 2: on premise server, and I should note never directly on
- 4:59Speaker 2: your primary domain controller in a real enterprise.
- 5:01Speaker 1: Obviously right to maintain security and keep it isolated exactly.
- 5:05Speaker 2: But the design of that bridge depends entirely on how
- 5:08Speaker 2: you choose to handle authentication. And there are three main
- 5:11Speaker 2: architectural pillars.
- 5:12Speaker 1: Here, which is where the most critical security decisions are
- 5:15Speaker 1: actually made. Let's analyze pillar number one, Password hash synchronization
- 5:20Speaker 1: or PHS.
- 5:21Speaker 2: Yes, PHS.
- 5:22Speaker 1: My understanding is that your local server takes the user's password,
- 5:27Speaker 1: runs it through a cryptographic algorithm to turn it into
- 5:29Speaker 1: a scrambled hash and then sinks that hash up to Azure.
- 5:34Speaker 2: Is that right, that's the exact mechanism. So when the
- 5:36Speaker 2: user logs into Azure, Azure just checks the hash against
- 5:40Speaker 2: what it has stored in the cloud.
- 5:42Speaker 1: Which seems pretty efficient.
- 5:43Speaker 2: It's incredibly resilient. It minimizes your reliance on your local infrastructure.
- 5:48Speaker 2: Like if your office loses power or your local internet
- 5:52Speaker 2: connection drops completely, your.
- 5:53Speaker 1: Remote users can still log into their cloud apps because
- 5:56Speaker 1: Azure holds the verification data.
- 5:58Speaker 2: Exactly, and plus PHS is actually a strict requirement if
- 6:02Speaker 2: you want to use Azure AD identity protection.
- 6:05Speaker 1: Oh, the leaked detection stuff.
- 6:07Speaker 2: Yes, Microsoft needs that cloud based hash to compare against
- 6:10Speaker 2: massive databases of credentials that have been leaked on the
- 6:13Speaker 2: dark web.
- 6:13Speaker 1: So if they don't have your hash, they can't warn
- 6:16Speaker 1: you that your user's password was compromised in some random
- 6:19Speaker 1: third party breach.
- 6:20Speaker 2: Right. But you know, some highly regulated organizations operate under
- 6:24Speaker 2: really strict compliance frameworks.
- 6:25Speaker 1: Like finance or healthcare.
- 6:27Speaker 2: Maybe yeah, exactly, they might have a non negotiable policy
- 6:30Speaker 2: stating they absolutely refuse to store any representation of a
- 6:33Speaker 2: password in the cloud, not even a cryptographically scrambled hash. Wow.
- 6:38Speaker 1: Okay, so what do they do which brings us to
- 6:41Speaker 1: pillar number two? I assume pass through authentication or PTA.
- 6:45Speaker 2: You got it. With PTA, there are absolutely no password
- 6:48Speaker 2: hashes stored in Azure at all.
- 6:50Speaker 1: So when a user tries to log in, Azure takes
- 6:53Speaker 1: the request, hashes it, and securely passes it back down
- 6:57Speaker 1: to your local server to verify.
- 6:58Speaker 2: Yes.
- 6:59Speaker 1: Wait, so with passer authentication, Azure is basically just passing
- 7:02Speaker 1: the MIC back to the local server every single time
- 7:05Speaker 1: someone logs in. Doesn't that create a huge bottleneck If
- 7:08Speaker 1: the local server goes down.
- 7:10Speaker 2: It absolutely creates a bottleneck. Yeah, and that's exactly why
- 7:12Speaker 2: PHS is the preferred route for resilience. Okay, but the
- 7:16Speaker 2: brilliant part of the PTA architecture is that no inbound
- 7:20Speaker 2: ports are required to be open on your firewall.
- 7:22Speaker 1: Oh really, how does it communicate?
- 7:24Speaker 2: Then you install a really lightweight PTA agent on your
- 7:27Speaker 2: on premise server. That agent makes an outbound connection to
- 7:30Speaker 2: Azure and just holds it open.
- 7:31Speaker 1: Oh I see.
- 7:32Speaker 2: So when a log in request hits Azure, Azure drops
- 7:34Speaker 2: the request into a secure queue. The local agent pulls
- 7:38Speaker 2: it from the queue, validates the password against the local
- 7:40Speaker 2: active directory and sends the response back up.
- 7:43Speaker 1: So Azure is essentially acting as a middleman. But like
- 7:46Speaker 1: I said, if that outbound connection drops or the local
- 7:48Speaker 1: agent crashes, authentication just stops completely. Nobody gets in.
- 7:52Speaker 2: Yeah, it's a huge dependency. PTA exists almost exclusively for
- 7:56Speaker 2: those strict compliance scenarios where hashes literally cannot leave the premises.
- 8:01Speaker 1: Makes sense. Then there is the third pillar, the really
- 8:04Speaker 1: heavy duty enterprise option Active directory Federation Services or ADFS.
- 8:09Speaker 2: Yeah, ADFS is highly robust and highly complex. Like pKa,
- 8:14Speaker 2: it avoids storing hashes in the cloud.
- 8:16Speaker 1: But instead of Azure passing the password down through an agent,
- 8:20Speaker 1: Azure redirects the user entirely exactly.
- 8:22Speaker 2: Asure looks at the user's custom domain and says, I
- 8:25Speaker 2: don't handle authentication for this domain. Your local ADFS server does.
- 8:29Speaker 1: So it redirects the client's browser to the on premise
- 8:32Speaker 1: ADFS server.
- 8:33Speaker 2: Right the user authentic case locally. If successful, ADFS generates
- 8:38Speaker 2: a digitally signed token, hands it to the browser, and
- 8:41Speaker 2: the browser posts that token back.
- 8:42Speaker 1: To Azure and Azure just verifies the token and grants access.
- 8:47Speaker 1: But why incur all the overhead of managing complex federation
- 8:50Speaker 1: servers just to pass tokens around legacy tech.
- 8:53Speaker 2: Mostly, you deploy adfs when you have legacy on premise
- 8:57Speaker 2: technologies that can't easily integrate with the cl Like what
- 9:01Speaker 2: like if your workforce uses physical smart cards, or if
- 9:04Speaker 2: you have a proprietary on premise multi factor authentication system
- 9:08Speaker 2: deeply embedded in your physical office security.
- 9:10Speaker 1: Oh so adfs lets you keep using those while still
- 9:13Speaker 1: getting into cloud apps.
- 9:14Speaker 2: Exactly.
- 9:14Speaker 1: Okay, so you've successfully built the bridge. The identities are
- 9:18Speaker 1: sinking perfectly via Azure eight connect, but you have just
- 9:20Speaker 1: inherited a massive.
- 9:22Speaker 2: Vulnerability human psychology.
- 9:24Speaker 1: Exactly. A beautifully synchronized infrastructure means absolutely nothing if your
- 9:28Speaker 1: users are picking terrible passwords. Ye, a SYNCD bad password
- 9:32Speaker 1: is still a bad password.
- 9:33Speaker 2: It is the human element is still the most easily
- 9:36Speaker 2: exploited attack factor. I mean. The UK's National Cybersecurity Center
- 9:40Speaker 2: released a stat showing twenty three point two million compromised
- 9:44Speaker 2: accounts use the exact same password.
- 9:47Speaker 1: Let me guess one two three four five six.
- 9:50Speaker 2: Nailed it one two three four five six. In a
- 9:53Speaker 2: global cloud environment, a weak password like that isn't just
- 9:57Speaker 2: a local issue. It is an open door exposed to
- 9:59Speaker 2: the entire higher Internet.
- 10:00Speaker 1: So how does Azure eighty password protection actually fix this?
- 10:04Speaker 1: This is a premium feature, right, It is.
- 10:05Speaker 2: A premium feature, yeah, and it has two main tools.
- 10:08Speaker 2: First is band passwords. Microsoft maintains a dynamically updated global
- 10:13Speaker 2: list of predictable passwords.
- 10:14Speaker 1: But wait, if you just block the word password or
- 10:16Speaker 1: your company name, a user is going to type passw's
- 10:21Speaker 1: zero rd exclamation point. They use those old tricks a
- 10:24Speaker 1: bypass basic complexity rules.
- 10:25Speaker 2: Right, But this is where the engineering gets sophisticated. It
- 10:28Speaker 2: uses fuzzy matching and string normalization.
- 10:30Speaker 1: Okay, what does that mean?
- 10:31Speaker 2: In practice? When a user enters a new password, the
- 10:33Speaker 2: system strips out the special characters. It converts numbers back
- 10:37Speaker 2: to their likely letter equivalents, so a zero becomes an
- 10:40Speaker 2: O and AD symbol becomes an A.
- 10:43Speaker 1: Oh wow. So it normalizes the string and then checks
- 10:46Speaker 1: that core word against the global band list exactly.
- 10:50Speaker 2: And you can also add a custom list of up
- 10:52Speaker 2: to one thousand words, like your local sports teams or
- 10:55Speaker 2: the company name.
- 10:56Speaker 1: Here's where it gets really interesting. It's actively coaching the use.
- 11:00Speaker 1: If you test this and try to use deliberately bad password,
- 11:03Speaker 1: the prompt actually tells you we've seen that password too
- 11:06Speaker 1: many times before, choose something harder to guess.
- 11:09Speaker 2: It's very direct.
- 11:10Speaker 1: It's like a bouncer at a club equipped with a
- 11:12Speaker 1: real time database of every fake ID currently being used
- 11:15Speaker 1: across the city. You hand them a mclove and ID
- 11:17Speaker 1: and they say, look, I confiscated twenty of these exact
- 11:20Speaker 1: same mclove and IDs last night. You need to try harder.
- 11:23Speaker 2: That is a perfect analogy, and that dynamic bouncer concept
- 11:27Speaker 2: extends directly into the other major feature of password protection,
- 11:31Speaker 2: which is smart lockout.
- 11:32Speaker 1: Smart lockout so it automatically locks out bad actors trying
- 11:35Speaker 1: to guess passwords.
- 11:37Speaker 2: Yes, but it doesn't just arbitrarily count to five failed
- 11:40Speaker 2: attempts and lock everyone out. It analyzes the telemetry of
- 11:44Speaker 2: the log in attempts.
- 11:45Speaker 1: So it differentiates between a user who genuinely forgot their password,
- 11:49Speaker 1: and like a distributed botnet.
- 11:51Speaker 2: Exactly it tracks familiar versus unfamiliar IP locations. If it
- 11:56Speaker 2: detects an automated bot spraying passwords from fifty different servers,
- 12:01Speaker 2: it locks out the attacker at the data center.
- 12:03Speaker 1: Level, completely discarding their attempts.
- 12:05Speaker 2: Right, but it simultaneously leaves the door open for the
- 12:09Speaker 2: legitimate user to successfully log in from their usual office
- 12:12Speaker 2: IP address.
- 12:13Speaker 1: That is an incredible layer of defense. But you know,
- 12:16Speaker 1: as an architect, you have to operate under the assumption
- 12:18Speaker 1: of a breach.
- 12:18Speaker 2: Oys.
- 12:19Speaker 1: Even if a user creates a brilliant, unguessable password and
- 12:22Speaker 1: the smart lockout system is flawless, that password can still
- 12:26Speaker 1: be fished. You cannot assume a user is safe just
- 12:29Speaker 1: because they typed the correct password.
- 12:31Speaker 2: No, you can't. Context is king here. You have to
- 12:34Speaker 2: look at the entire context of the requests, who wear
- 12:36Speaker 2: and what?
- 12:37Speaker 1: Which brings us to the final part of the architecture today,
- 12:40Speaker 1: conditional access and multi factor authentication. Conditional access is the
- 12:45Speaker 1: ultimate dynamic bouncer.
- 12:47Speaker 2: It really is. It's essentially a massive if then statement
- 12:50Speaker 2: for your security.
- 12:51Speaker 1: Right if a user meets specific conditions, then apply a
- 12:55Speaker 1: highly targeted action.
- 12:57Speaker 2: Let's break down those conditions. You can target specific US
- 13:00Speaker 2: users or groups like a student's group versus your admins.
- 13:03Speaker 2: You can target specific cloud.
- 13:04Speaker 1: Apps, and you can check their network location right like
- 13:07Speaker 1: their IP addresses.
- 13:09Speaker 2: Yes, and you can even check device compliance. Is this
- 13:11Speaker 2: laptop managed by our company and it checks sign and
- 13:14Speaker 2: risk using machine learning.
- 13:16Speaker 1: And based on all that context, you define the actions.
- 13:19Speaker 1: You can allow access, You can demand an MFA challenge,
- 13:22Speaker 1: require a compliant device, or just deny access completely. Right,
- 13:26Speaker 1: Let's put this into a practical test scenario. Say we
- 13:29Speaker 1: create a named location called office using our public IP address,
- 13:33Speaker 1: and we create a policy targeting a students group. We
- 13:36Speaker 1: set the rules stating that if a student tries to
- 13:38Speaker 1: log in from the office IP, block access completely. If
- 13:41Speaker 1: we test logging in as a student, we get an
- 13:43Speaker 1: error saying you cannot access this right.
- 13:45Speaker 2: Now, which proves the policy is working exactly.
- 13:48Speaker 1: Then we change the IP in the policy, try again,
- 13:50Speaker 1: and we get right in.
- 13:52Speaker 2: That is exactly how you test it. But I should
- 13:54Speaker 2: note when you can figure MFA for these policies, there are.
- 13:58Speaker 1: Limitations, right the free verse versus premium.
- 14:01Speaker 2: Yeah, the basic free version only allows the Microsoft Authenticator
- 14:04Speaker 2: app for notifications. If you want the full Arsenal verification codes, hardware, tokens,
- 14:09Speaker 2: phone calls, SMS RAID, you need the premium tier.
- 14:13Speaker 1: Got it? But wait, if I'm setting this up and
- 14:16Speaker 1: playing around with deny access rules, how do I make
- 14:19Speaker 1: sure I don't accidentally lock myself out of my own cloud?
- 14:21Speaker 1: Like if my OFFICEIP changes unexpectedly.
- 14:24Speaker 2: That is the golden rule of Azure administration. You have
- 14:27Speaker 2: to create emergency access accounts often called break.
- 14:30Speaker 1: Glass accounts, say glass account.
- 14:32Speaker 2: Yes, these are highly secured global administrator accounts that you
- 14:36Speaker 2: explicitly exclude from all conditional access policies.
- 14:39Speaker 1: Oh so you never apply a block policy to your
- 14:42Speaker 1: entire tenant without leaving a backdoor for yourself.
- 14:44Speaker 2: Right, never lock the bouncer out of the club.
- 14:46Speaker 1: I love that. Well. We have walked through the entire
- 14:49Speaker 1: architecture today. We claimed our custom domain, bridged our local
- 14:53Speaker 1: servers to the cloud with Azure ad Connect, outlawed terrible passwords,
- 14:58Speaker 1: and finally set up a smart context aware bouncer using
- 15:02Speaker 1: conditional access.
- 15:03Speaker 2: It's a complete secure identity.
- 15:05Speaker 1: System, it really is. Now before we go, I have
- 15:07Speaker 1: a quick review question for you, the listener, to test
- 15:10Speaker 1: your new knowledge.
- 15:11Speaker 2: Oh this is good, put them on the spot.
- 15:13Speaker 1: Imagine you're consulting for a company that strictly forbids storing
- 15:16Speaker 1: any password hashes in the cloud whatsoever. But they don't
- 15:20Speaker 1: have the budget or the infrastructure to set up complex
- 15:22Speaker 1: federation servers. Which Azure ab connect method should they use.
- 15:27Speaker 2: I'll give you a second to think about the pillars
- 15:29Speaker 2: we talked about.
- 15:29Speaker 1: No hash is allowed, no budget for adfs.
- 15:32Speaker 2: The answer is pass through Authentication PTA.
- 15:36Speaker 1: Yes, PTA uses that lightweight local agent to verify passwords
- 15:40Speaker 1: on premise without heavy infrastructure exactly.
- 15:43Speaker 2: And as we wrap up this deep dive, there is
- 15:45Speaker 2: one final broader concept I want to leave you with.
- 15:49Speaker 1: What's that?
- 15:50Speaker 2: Well, we spend vast amounts of engineering resources trying to
- 15:54Speaker 2: protect hash and synchronize passwords.
- 15:57Speaker 1: Yeah, the whole system revolves around it.
- 15:59Speaker 2: But as identity systems become completely context aware, analyzing your
- 16:03Speaker 2: exact location, the health of your device, the exact apps
- 16:07Speaker 2: you're using, will the concept of a human memorized password
- 16:11Speaker 2: soon become a completely obsolete relic of the past.
- 16:14Speaker 1: Wow, are the conditional access policies we're building today going
- 16:17Speaker 1: to eventually kill the password tomorrow?
- 16:19Speaker 2: It's definitely something to mul over.
- 16:21Speaker 1: That is a profound thought to end on. Thank you
- 16:23Speaker 1: for joining us on this deep dive. Keep exploring and
- 16:25Speaker 1: we'll catch you next time.