Latest / CyberCode Academy / Course 29 - AZ-500 Microsoft Azure Security Technologies | Episode 14: Securing Data and Applications in Microsoft Azure
Transcript
- 0:00Speaker 1: In twenty nineteen, one of the largest financial institutions in
- 0:03Speaker 1: the world suffered this just absolutely catastrophic data breach.
- 0:10Speaker 2: Oh yeah, that one was brutal, right.
- 0:12Speaker 1: I mean, over one hundred million customer records were exposed.
- 0:15Speaker 1: And I think the most shocking part of the whole
- 0:16Speaker 1: story wasn't you know, some elite team of hackers repelling
- 0:20Speaker 1: down an elevator shaft like in a movie exactly, like
- 0:23Speaker 1: Mission impossible stuff, or cracking a master encryption key with
- 0:27Speaker 1: a supercomputer. The entire collapse happened because of a single,
- 0:31Speaker 1: seemingly minor misconfiguration.
- 0:33Speaker 2: Yeah, just one little flaw.
- 0:35Speaker 1: Just one a web application firewall allowed a server to
- 0:38Speaker 1: talk to a database that never ever should have had
- 0:40Speaker 1: access to. It was a simple server side request forgery
- 0:45Speaker 1: that basically brought the whole house down.
- 0:47Speaker 2: Yeah, and I mean that twenty nineteen breach completely shattered
- 0:50Speaker 2: the illusion of the you know, the impenetrable digital fortress totally.
- 0:55Speaker 2: We spend so much time obsessing over the perimeter, building
- 0:58Speaker 2: these massive virtual walls and like encrypted modes around everything.
- 1:02Speaker 1: Right, locking the front door exactly.
- 1:04Speaker 2: But the most devastating breaches almost always happen because well,
- 1:09Speaker 2: someone left the side door propped open from the inside,
- 1:12Speaker 2: or you know, because the internal systems just implicitly trusted
- 1:16Speaker 2: each other way too much.
- 1:17Speaker 1: Which perfectly brings us to our mission for this deep dive.
- 1:21Speaker 1: Because whether you are a seasoned software engineer architecting these
- 1:25Speaker 1: systems every day, a cybersecurity student, or honestly you're just
- 1:29Speaker 1: a curious learner trying to understand the invisible machinery keeping
- 1:34Speaker 1: your personal data safe, this conversation is for you.
- 1:37Speaker 2: Absolutely.
- 1:38Speaker 1: We are going back to basics today and then we
- 1:40Speaker 1: are going really deep. We're going to give you the
- 1:42Speaker 1: conceptual building blocks to understand how modern cloud applications actually
- 1:46Speaker 1: protect our most sensitive information.
- 1:49Speaker 2: And to do that, we are going to basically map
- 1:52Speaker 2: out the architecture of cloud security. We'll specifically be looking
- 1:55Speaker 2: at environments like Microsoft Azure.
- 1:57Speaker 1: Right.
- 1:58Speaker 2: Our strategy today is to take a strict defense in
- 2:01Speaker 2: depth approach, because I mean, there is no single magic
- 2:04Speaker 2: shield in cybersecurity, no silver bullet, no, not at all. Instead,
- 2:08Speaker 2: we're going to follow the theoretical journey of a single
- 2:11Speaker 2: piece of user data. We'll start at the very bottom,
- 2:14Speaker 2: you know, the foundational data layer where that information rests. Okay,
- 2:18Speaker 2: then will weave our way up through the software development
- 2:20Speaker 2: life cycle just to see how the code that requests
- 2:23Speaker 2: that data is even built. Gotcha, And finally we will
- 2:26Speaker 2: examine how we protect the live application once it is
- 2:29Speaker 2: deployed and you know, facing the wild, untamed public Internet.
- 2:33Speaker 1: I love that. So let's start at that absolute bedrock,
- 2:36Speaker 1: right the data tier. When we talk about massive modern
- 2:39Speaker 1: cloud applications, we are often talking about these high performance
- 2:43Speaker 1: databases like Azure Cosmos dB.
- 2:47Speaker 2: Oh Cosmos is a beast.
- 2:48Speaker 1: It really is a beast. From an engineering perspective, It's
- 2:51Speaker 1: just wild. It's a globally distributed no SQL database and
- 2:54Speaker 1: it boasts like ninety nine point percent availability, the famous
- 2:59Speaker 1: five nin right five nines, which basically means it is
- 3:02Speaker 1: functionally designed to just never go offline.
- 3:05Speaker 2: The engineering behind that availability is honestly remarkable. But combining
- 3:10Speaker 2: that kind of raw power with a global presence, it
- 3:13Speaker 2: creates this massive security responsibility. All that you have this
- 3:17Speaker 2: incredibly fast, globally replicated database, but you absolutely cannot, under
- 3:23Speaker 2: any circumstances leave it directly exposed to the Internet.
- 3:26Speaker 1: Okay, so you have to lock it down exactly.
- 3:29Speaker 2: The foundational layer of defense here is aggressive network security.
- 3:32Speaker 2: You really have to configure the database's firewall and route
- 3:37Speaker 2: everything through virtual networks. You're intentionally blocking direct access from
- 3:42Speaker 2: the public Internet entirely.
- 3:44Speaker 1: Okay, let me pause you there, because that creates an
- 3:45Speaker 1: interesting architectural paradox. I think, Oh, so, well, if the
- 3:50Speaker 1: database is entirely isolated from the Internet, how does a
- 3:53Speaker 1: legitimate mobile app actually get its data? Like if I'm
- 3:55Speaker 1: holding my smartphone on a public cellular network and I
- 3:58Speaker 1: tap to pull my user profile, my phone has to
- 4:00Speaker 1: ask the database for that information, right right, it does.
- 4:03Speaker 1: But I obviously can't just embed the database's master access
- 4:08Speaker 1: key into the mobile apps source code before uploading it
- 4:12Speaker 1: to the app store. That feels like, I don't know,
- 4:15Speaker 1: giving every single hotel guest the master skeleton key to
- 4:18Speaker 1: the entire building.
- 4:19Speaker 2: Yeah, doing that would be a catastrophic risk. I mean,
- 4:22Speaker 2: if you package the Cosmos dB master key into the
- 4:24Speaker 2: client side code, any mildly competent attacker could just decompile
- 4:29Speaker 2: the mobile app. Oh wow, Yeah, they extract that master
- 4:32Speaker 2: key and immediately take total ownership of your entire database.
- 4:35Speaker 2: That's terrifying, it is, and furthermore, just from a pure
- 4:38Speaker 2: operation standpoint, if you ever suspected a leak and needed
- 4:41Speaker 2: to rotate or you know, change that master key.
- 4:44Speaker 1: How iccros is going.
- 4:45Speaker 2: Yeah, every single instance of your application out in the
- 4:47Speaker 2: world would instantly break. Yeah, because they'd all be holding
- 4:50Speaker 2: the old key.
- 4:51Speaker 1: Okay, So we have a wald Off database and a
- 4:54Speaker 1: user on the outside who legitimately needs their data. How
- 4:57Speaker 1: do we get the guest into their room without giving
- 5:00Speaker 1: them the keys to the kingdom.
- 5:01Speaker 2: Well, we build a secure strategic middleman. In cloud architecture,
- 5:05Speaker 2: we usually call this a mid tier service mid tier service. Okay.
- 5:09Speaker 1: Imagine setting up a secure virtual machine or maybe an
- 5:12Speaker 1: app service that lives safely inside your protected cloud environment,
- 5:17Speaker 1: firmly behind the firewall.
- 5:18Speaker 2: Okay, so it's inside the walls, right, You.
- 5:21Speaker 1: Take the databases master key and you securely give it
- 5:24Speaker 1: only to that mid tier service. Now, when a user
- 5:26Speaker 1: opens the mobile app, the app does not attempt to
- 5:30Speaker 1: talk to cosmos dB directly. It goes to the middleman exactly,
- 5:34Speaker 1: It authenticates itself to the mid tier service.
- 5:36Speaker 2: So the app essentially knocks on the door and says, hey,
- 5:39Speaker 2: it's me, here are my user credentials.
- 5:41Speaker 1: Yeah, the mid tier service acts as your cryptographic bouncer. Basically,
- 5:45Speaker 1: it verifies the user's identity.
- 5:47Speaker 2: Okay.
- 5:47Speaker 1: Once verified, the mid tier service turns around, uses its
- 5:51Speaker 1: master key to talk to Cosmos dB and requests very specific,
- 5:56Speaker 1: narrow permissions on behalf of that user, just for what
- 5:58Speaker 1: they need. Right. Database confirms the request, generates what is
- 6:02Speaker 1: called a resource token, and hands it back to the
- 6:05Speaker 1: mid tier service. The mid tier service then passes that
- 6:08Speaker 1: token down to the mobile app. Gotcha. I want to
- 6:10Speaker 1: dig into the mechanics of this resource token though, like
- 6:13Speaker 1: what makes it secure enough to just hand over to
- 6:16Speaker 1: a public facing mobile device?
- 6:18Speaker 2: So the security really lies in its extreme restrictions. A
- 6:22Speaker 2: resource token is a cryptographically signed document that grants incredibly
- 6:28Speaker 2: limited permissions and crucially, it is strictly time bound.
- 6:32Speaker 1: Oh okay, so it expires.
- 6:34Speaker 2: Yeah, it is essentially a temporary digital hall pass. Yeah.
- 6:37Speaker 2: Once your mobile app has this token, it is temporarily
- 6:40Speaker 2: allowed to connect directly to the database to retrieve data.
- 6:43Speaker 1: So it bypasses the middleman for the actual data retrieval.
- 6:47Speaker 2: Exactly for performance reasons. But the token mathematically restricts the
- 6:50Speaker 2: app so it can only query the exact partition of
- 6:53Speaker 2: data it has been authorized to.
- 6:55Speaker 1: See, like just their own profile data.
- 6:57Speaker 2: Precisely, and it can only do so for a short,
- 6:59Speaker 2: pre determined window of time, say an hour, before the
- 7:03Speaker 2: token just automatically self destructs and becomes mathematically invalid.
- 7:06Speaker 1: Wow, that is an elegant piece of engineering. So the
- 7:09Speaker 1: database stays completely walled off from the broader internet, Your
- 7:12Speaker 1: master keys never leave the internal vault, but the end
- 7:16Speaker 1: user still gets that lightning fast direct read from the database.
- 7:20Speaker 2: You got it?
- 7:21Speaker 1: Okay, So that token system makes total sense for us,
- 7:25Speaker 1: like a transactional mobile app checking a user profile. But
- 7:28Speaker 1: what happens if I am not a mobile user? What
- 7:32Speaker 1: if I am, say, a massive machine learning model trying
- 7:35Speaker 1: to ingest petabytes of unstructured historical data.
- 7:39Speaker 2: Ah yeah, that's different.
- 7:41Speaker 1: Right, because that granular token system sounds like it would
- 7:43Speaker 1: just buckle under the weight of that.
- 7:45Speaker 2: It absolutely would. You're touching on a really crucial distinction
- 7:47Speaker 2: in data architecture there. When dealing with petabytes of unstructured
- 7:51Speaker 2: data from massive analytics or AI training, we don't actually
- 7:55Speaker 2: use transactional databases like Cosmos dB.
- 7:58Speaker 1: Oh what do you use?
- 7:59Speaker 2: We use data lakes, specifically things like Azure data lakes
- 8:02Speaker 2: Storage Gen two. Because you are storing massive oceans of
- 8:05Speaker 2: diverse data, the security mechanism has to scale differently, so
- 8:09Speaker 2: data lakes utilize a hierarchical name space.
- 8:11Speaker 1: Meaning the data is organized in a nested structure like folders,
- 8:15Speaker 1: allowing us to apply rules at different levels of that hierarchy.
- 8:18Speaker 2: Precisely to secure this hierarchy, data lakes use PO six
- 8:22Speaker 2: style access control lists or ACLSO six Yeah. PO six
- 8:26Speaker 2: is a standard originally developed for Unix operating systems to
- 8:29Speaker 2: define file permissions. Instead of a single database master key,
- 8:33Speaker 2: Posix acls allow you to define security mechanically by assigning read, write,
- 8:39Speaker 2: and execute permissions on a really granular file by file
- 8:42Speaker 2: and directory by directory basis.
- 8:44Speaker 1: So I could explicitly dictate that a specific data science
- 8:48Speaker 1: team has read access to a directory containing analytics from
- 8:51Speaker 1: twenty twenty three, but zero access to the directory for
- 8:54Speaker 1: twenty twenty four. Yep, exactly, And I can do that
- 8:57Speaker 1: without needing a complex mid tier service generated temporary tokens
- 9:01Speaker 1: for every single file.
- 9:02Speaker 2: That is the exact mechanism. It gives the data scientists
- 9:04Speaker 2: the bulk access they require for their models without exposing
- 9:07Speaker 2: the entire leake to a potential credential leak.
- 9:09Speaker 1: Okay, so we have successfully locked down where the data lives.
- 9:13Speaker 1: The vault is secure. But let's follow the journey of
- 9:16Speaker 1: our system here. You can have the strongest titanium vault
- 9:19Speaker 1: in the world, but if the guard requesting access to
- 9:21Speaker 1: that vault is corrupt or gets tricked, you are still compromised.
- 9:26Speaker 2: Oh.
- 9:27Speaker 1: Absolutely, So let's move up to the application layer, the
- 9:30Speaker 1: code that is actually asking for the data.
- 9:33Speaker 2: Yeah, and this is where a massive proportion of modern
- 9:36Speaker 2: cyber attacks actually occur. Malicious actors have realized that breaching
- 9:41Speaker 2: a heavily fortified, properly configured cloud network infrastructure is incredibly difficult.
- 9:47Speaker 1: Right, it's too much work.
- 9:48Speaker 2: Yeah, But tricking a poorly written web application into handing
- 9:51Speaker 2: over the data it inherently has access to that's sometimes
- 9:55Speaker 2: terrifyingly easy.
- 9:56Speaker 1: Which implies that security cannot be an afterthought, Like we
- 9:59Speaker 1: can't just write a mill lines of code and then
- 10:00Speaker 1: ask the security team to sprinkle some encryption on top
- 10:04Speaker 1: right before we hit deploy.
- 10:05Speaker 2: No. No, it fundamentally has to be woven into the
- 10:08Speaker 2: DNA of the engineering process. In the industry, we call
- 10:11Speaker 2: this the secure software development life cycle or secure SDLC.
- 10:16Speaker 1: Secure SDLC.
- 10:18Speaker 2: Right, it begins at the whiteboard stage with threat modeling.
- 10:21Speaker 2: Before a single line of code is written, the engineering
- 10:24Speaker 2: team sits down and actively brainstorms how could an attacker
- 10:28Speaker 2: exploit the logic of this.
- 10:29Speaker 1: Feature proactive instead of reactive exactly.
- 10:32Speaker 2: Furthermore, it requires ongoing developer training tailored to the specific
- 10:37Speaker 2: programming language is being used, because a memory leak vulnerability
- 10:42Speaker 2: in C plus plus requires a completely different exploit than say,
- 10:46Speaker 2: a de serialization vulnerability in Java.
- 10:49Speaker 1: Right, that makes sense. But even with highly trained developers,
- 10:52Speaker 1: I mean they're writing and modifying thousands of lines of
- 10:54Speaker 1: code a week. You can't ask a human being to
- 10:57Speaker 1: manually read through every single commit to spot of vulnerability. Oh.
- 11:01Speaker 2: Human review is totally insufficient at scale, which is why
- 11:04Speaker 2: the Secure SDLC relies heavily on automated security scanning and
- 11:08Speaker 2: that gets embedded directly into the deployment pipeline.
- 11:10Speaker 1: Okay, how does that work?
- 11:12Speaker 2: There are three primary mechanisms here. First is static code analysis.
- 11:16Speaker 2: This is an automated tool that partses the application source
- 11:18Speaker 2: code without.
- 11:19Speaker 1: Actually running it, so just looking at the text.
- 11:21Speaker 2: Basically, it builds an abstracts index tree and searches for
- 11:25Speaker 2: known vulnerable patterns. So, for instance, identifying a database query
- 11:30Speaker 2: that improperly concatenates user input.
- 11:33Speaker 1: Oh, which is the exact mechanism that allows a SQL
- 11:36Speaker 1: injection attack.
- 11:36Speaker 2: Right, you got it.
- 11:37Speaker 1: So it's essentially a highly advanced grammar check. It's proofreading
- 11:41Speaker 1: the script for fatal errors before you ever turn on
- 11:43Speaker 1: the cameras to film the movie.
- 11:45Speaker 2: That is a great analogy. But static analysis cannot catch everything,
- 11:49Speaker 2: which brings us to the second mechanism, dynamic analysis.
- 11:53Speaker 1: Okay, dynamic This is where.
- 11:54Speaker 2: The automated tools probe the application while it is actively
- 11:57Speaker 2: running and executing in a test environment. The scanner will
- 12:01Speaker 2: feed the application fuzzed unexpected inputs to see if it
- 12:05Speaker 2: can force a memory leak, a crash, or some unhandled exception.
- 12:09Speaker 1: Just throwing garbage at it to see if it breaks.
- 12:11Speaker 2: Yeah, exactly, because sometimes a vulnerability only manifests when the
- 12:15Speaker 2: different compiled components of the code dynamically interact with each other.
- 12:19Speaker 1: Okay, So if static analysis is proofreading the script, dynamic
- 12:23Speaker 1: analysis is watching the dress rehearsal to see if an
- 12:26Speaker 1: actor actually trips over a set piece when the lights
- 12:28Speaker 1: go down.
- 12:29Speaker 2: Yes, it tests the runtime reality. And finally we have
- 12:32Speaker 2: the third mechanism, software decomposition analysis, and this is arguably
- 12:38Speaker 2: the most critical step today.
- 12:39Speaker 1: Really, why is that?
- 12:41Speaker 2: Well, modern software is rarely written entirely from scratch. Developers
- 12:46Speaker 2: import dozens, sometimes hundreds of open source third party libraries
- 12:50Speaker 2: to handle routine tasks.
- 12:52Speaker 1: Right, nobody's reinventing the wheel exactly.
- 12:54Speaker 2: So software decomposition scans the application's entire dependency tree. It
- 12:59Speaker 2: calculates the cryptographic hashes of every single external library you imported,
- 13:03Speaker 2: and it checks them against the global Common Vulnerabilities and
- 13:06Speaker 2: Exposures Database, the CVE.
- 13:08Speaker 1: Okay, I see the logic there. Software decomposition is basically
- 13:11Speaker 1: checking the ingredients label on processed food. You want to
- 13:14Speaker 1: make sure the factory didn't sneak in an artificial preservative
- 13:16Speaker 1: that you are severely allergic to. Because your team didn't
- 13:19Speaker 1: write the physics engine for your app. Maybe, but you
- 13:22Speaker 1: still inherit every single vulnerability hidden inside it.
- 13:25Speaker 2: You inherit all of their technical debt. If a library
- 13:29Speaker 2: you use has a known vulnerability, your application is vulnerable,
- 13:33Speaker 2: full stop.
- 13:34Speaker 1: I have to ask about the real world tension here.
- 13:36Speaker 1: Though we live in the era of agile development, engineering
- 13:39Speaker 1: teams want to move fast, push updates daily, iterate rapidly.
- 13:43Speaker 1: Oh yeah, constantly.
- 13:44Speaker 2: So if an organization forces a static scan, a dynamic scan,
- 13:48Speaker 2: and a massive ingredient check on every single code commit,
- 13:51Speaker 2: doesn't that just grind development to an absolute halt. If
- 13:54Speaker 2: security becomes a massive bottleneck, engineers will inevitably find a
- 13:58Speaker 2: way to bypass it.
- 14:00Speaker 1: That tension is very real, and honestly, the most effective
- 14:03Speaker 1: solution isn't actually a software tool, It is a cultural shift.
- 14:07Speaker 1: The prevailing strategy now is to appoint security champions within
- 14:11Speaker 1: the individual agile pots.
- 14:12Speaker 2: Secure champions Okay, what are they? Well, you don't create
- 14:15Speaker 2: an isolated adversarial security police force that drops in to
- 14:20Speaker 2: audit everyone at the end of the month. Instead, you
- 14:23Speaker 2: highly train a developer who is already embedded on the
- 14:25Speaker 2: product team.
- 14:26Speaker 1: Oh I like that.
- 14:27Speaker 2: Yeah. They advocate for secure practices organically, day to day.
- 14:31Speaker 2: They ensure that threat modeling and code reviews happen naturally
- 14:34Speaker 2: as part of the normal two week sprint cycle.
- 14:37Speaker 1: It embeds the security mindset into the team's culture, rather
- 14:40Speaker 1: than treating it as this external friction.
- 14:43Speaker 2: Exactly.
- 14:43Speaker 1: Okay, so let's assume our team has done this perfectly.
- 14:46Speaker 1: We have secured the data tier, we have written, scanned,
- 14:50Speaker 1: and dynamically tested bulletproof code. Now that code has to
- 14:53Speaker 1: be deployed out into the wild. It's going onto the
- 14:56Speaker 1: public internet via cloud app services. How do we build
- 15:00Speaker 1: shields for the live application?
- 15:02Speaker 2: So this is where we implement our runtime defenses. The
- 15:05Speaker 2: first pillar is managing identity and access flawlessly when a
- 15:09Speaker 2: user or another service tries to connect. We use protocols
- 15:12Speaker 2: LIKEWAYS two point zero to handle the authentication. Right oh yeah,
- 15:16Speaker 2: OHOOTH is the industry standard mechanism for delegated authorization.
- 15:20Speaker 1: Let's break down that mechanism. If I log into a
- 15:22Speaker 1: new application using my existing say Google or Microsoft account,
- 15:27Speaker 1: how does OOTH securely handle that without just handing my
- 15:30Speaker 1: raw password to this random new app.
- 15:32Speaker 2: The brilliance of o ooth is that it completely separates
- 15:35Speaker 2: the authentication from the application. When you click log in
- 15:38Speaker 2: with Google, the new app redirects you to Google's authorization server.
- 15:42Speaker 2: You prove who you are to Google. Google then generates
- 15:46Speaker 2: a secure cryptographic access token and hands it back to
- 15:49Speaker 2: the new app.
- 15:50Speaker 1: So the app never sees my password never.
- 15:52Speaker 2: It only sees the token proving that Google vouches for you.
- 15:56Speaker 2: And then we pair this protocol with role based access
- 15:58Speaker 2: control or BAC.
- 16:01Speaker 1: Ah RBAC that enforces the principle of least privilege. Right.
- 16:05Speaker 1: You grant the user or even the application itself the
- 16:07Speaker 1: exact minimum permissions required to execute their specific task and
- 16:11Speaker 1: absolutely nothing more.
- 16:12Speaker 2: Spot on.
- 16:13Speaker 1: But beyond managing user identities, the application itself has secrets,
- 16:17Speaker 1: right like it needs its own cryptographic keys to talk
- 16:19Speaker 1: to third party payment gateways or back end servers.
- 16:22Speaker 2: Oh, applications are full of secrets, and as we established earlier,
- 16:27Speaker 2: hardcoding those secrets into the source code is a cardinal sin.
- 16:31Speaker 1: Right, no master keys in the code exactly.
- 16:34Speaker 2: So to solve this, we utilize a service like Azure Keyvolt.
- 16:37Speaker 2: Keyvolt is a centralized cloud service designed specifically to safeguard
- 16:41Speaker 2: cryptographic keys and certificates. But it doesn't just store them
- 16:45Speaker 2: in a standard database table. It utilizes hardware security modules
- 16:49Speaker 2: or HSMs.
- 16:50Speaker 1: Hardware security modules. What exactly makes an HSM different from
- 16:54Speaker 1: like just a normal encrypted hard drive.
- 16:56Speaker 2: Oh, It's very different, and HSM is a dedicated physics
- 17:00Speaker 2: cryptographic processor. It is a tamper resistant hardware appliance.
- 17:04Speaker 1: This psysical hardware.
- 17:05Speaker 2: Yes, if someone were to physically break into the Microsoft
- 17:08Speaker 2: data center, an attempt to pry open the HSM server
- 17:11Speaker 2: chassis to extract the keys. The hardware is actually designed
- 17:13Speaker 2: to detect the physical intrusion and instantly zero wise, meaning
- 17:17Speaker 2: it permanently deletes all the cryptographic material before the attacker
- 17:20Speaker 2: can extract it.
- 17:21Speaker 1: WHOA. So, relying on keyvol is essentially putting your valuables
- 17:24Speaker 1: in a bank's heavily guarded, self destructing safe deposit box,
- 17:29Speaker 1: as opposed to writing your ATM PIN on a Neon
- 17:32Speaker 1: sticky note and attaching it to a public GitHub repository.
- 17:35Speaker 2: That is the exact mechanism. Yes, but even with all
- 17:38Speaker 2: your secrets locked in an HSM, your applications front door
- 17:42Speaker 2: is still exposed to the public Internet. Malicious traffic is
- 17:45Speaker 2: going to hit it. It's just background radiation on the
- 17:47Speaker 2: web at this point.
- 17:48Speaker 1: Yeah, the Internet is a noisy place. So let's talk
- 17:50Speaker 1: about the active defenses. When an attacker actually points their
- 17:53Speaker 1: scripts at the app service, what actively blocks them.
- 17:56Speaker 2: We deploy a Web application firewall or directly in front
- 18:01Speaker 2: of the application waw right. Now, a traditional firewall just
- 18:04Speaker 2: looks at IP addresses important numbers, but a WAFF is
- 18:07Speaker 2: much smarter. It deeply inspects the actual HTTP request payloads.
- 18:12Speaker 2: It constantly updates its signatures to identify the specific syntax
- 18:16Speaker 2: of common exploits, like those outline in the o WASP
- 18:19Speaker 2: pop ten.
- 18:19Speaker 1: Okay, So if an attacker tries a SQL injection, meaning
- 18:23Speaker 1: they type database commands into a standard user named field
- 18:26Speaker 1: hoping the back end will accidentally execute them, how does
- 18:29Speaker 1: the WAF handle it?
- 18:31Speaker 2: So the wave parses that incoming HTTP request, recognizes that
- 18:36Speaker 2: the text freeing contains SQL syntax rather than a standard name,
- 18:39Speaker 2: flags it as a malicious signature, and instantly drops the
- 18:42Speaker 2: connection before that payload ever reaches your application code.
- 18:46Speaker 1: Okay, so that handles the sophisticated, sneaky attacks. But what
- 18:49Speaker 1: about brute force? What happens when an attacker just tries
- 18:52Speaker 1: to overwhelm the server with an avalanche of garbage data
- 18:55Speaker 1: so legitimate users can't get through.
- 18:57Speaker 2: That is a distributed denial of service or DDoS attack,
- 19:01Speaker 2: and cloud providers have massive global infrastructure designed to mitigate
- 19:05Speaker 2: these across several network layers.
- 19:06Speaker 1: How does that work?
- 19:07Speaker 2: Well, First, they defend against volumetric attacks. This is a
- 19:11Speaker 2: raw flood of data terabytes per second trying to clog
- 19:14Speaker 2: your network pipes. Cloud providers handle this by routing incoming
- 19:18Speaker 2: traffic through massive scrubbing centers that basically absorb the garbage
- 19:21Speaker 2: data and only pass the clean traffic through to your app.
- 19:24Speaker 1: Oh that's clever. It's like building a massive multi lane
- 19:27Speaker 1: detour to filter out malicious vehicles before they hit the
- 19:30Speaker 1: main highway exactly.
- 19:32Speaker 2: And then the second layer stops protocol attacks. These exploit
- 19:36Speaker 2: weaknesses in how network connections are formed at layer three
- 19:39Speaker 2: and layer four of the OSI model, the network and
- 19:42Speaker 2: transport layers like what For example, an attacker might launch
- 19:46Speaker 2: a syn flood where they repeatedly initiate a server connection
- 19:50Speaker 2: handshake but never actually complete it, leaving the server hanging
- 19:53Speaker 2: until it runs out of memory.
- 19:54Speaker 1: Oh I see, so they're attacking the delivery trucks and
- 19:57Speaker 1: the shipping routes themselves rather than the warehouse.
- 20:00Speaker 2: That's the perfect way to visualize it. And finally, DIDOSIS
- 20:02Speaker 2: mitigation guards against application layer attacks. This is where the
- 20:06Speaker 2: attacker targets the web application itself, trying to overwhelm the
- 20:10Speaker 2: service CPU with seemingly legitimate but highly complex ACTP requests,
- 20:15Speaker 2: like repeatedly asking a server to generate a really heavy PDF.
- 20:19Speaker 1: File right bogging it down.
- 20:21Speaker 2: Yeah, and it's worth noting that while basic infrastructure DIDOS
- 20:24Speaker 2: protection is baked into the cloud platform for free, standard
- 20:28Speaker 2: or premium tiers provide detailed analytics, guaranteed service level agreements,
- 20:32Speaker 2: and crucially, direct access to a dedicated incident response team
- 20:36Speaker 2: to help manually write custom mitigation rules during a live
- 20:40Speaker 2: sophisticated attack.
- 20:42Speaker 1: Man. We have covered incredible ground here. We have really
- 20:45Speaker 1: built the defense in depth architecture. But to truly understand this,
- 20:49Speaker 1: I want you, the listener, to put on your security
- 20:52Speaker 1: architect hat for a minute. We're going to run through
- 20:54Speaker 1: two practical architectural puzzles based on the mechanisms we've just discussed.
- 20:58Speaker 2: I love these. Let's do it.
- 21:00Speaker 1: Scenario one, the compromised token. Imagine you discover that a
- 21:04Speaker 1: shared access signature, which is a type of cryptographic at
- 21:07Speaker 1: custoken used in Azure, has been compromised by a bad actor.
- 21:12Speaker 1: You need to stop them from using it immediately. What
- 21:14Speaker 1: is your first move?
- 21:16Speaker 2: So this scenario trips up a lot of engineers. Actually
- 21:18Speaker 2: the instinct is to open the cloud command line interface,
- 21:22Speaker 2: find that specific token's ID and run a delete or
- 21:25Speaker 2: revoke command. But if you try that, you'll find there
- 21:28Speaker 2: is literally no such command.
- 21:29Speaker 1: Wait, really, why can't I just delete it from the system.
- 21:32Speaker 2: Because of the underlying mathematical mechanism, a shared access signature
- 21:37Speaker 2: is not a record sitting in a database table somewhere.
- 21:40Speaker 2: It is simply a string of text that has been
- 21:42Speaker 2: cryptographically signed using your storage account's master key.
- 21:46Speaker 1: Oh, I get it right.
- 21:47Speaker 2: So when the attacker presents that token to Azure, Azure
- 21:50Speaker 2: just runs the math. As long as the cryptographic signature
- 21:53Speaker 2: matches the master key, Azure lets them in. Azure has
- 21:57Speaker 2: no memory of issuing that specific toe. Therefore, you have
- 22:01Speaker 2: to cut off the trust.
- 22:02Speaker 1: At the source, which means I have to rotate the
- 22:05Speaker 1: master access key that was used to sign it. If
- 22:07Speaker 1: I change the master key, the math on the stolen
- 22:09Speaker 1: token suddenly fails and it becomes worthless.
- 22:12Speaker 2: That will successfully stop the attacker, yes, but however, rotating
- 22:16Speaker 2: the master key will simultaneously mathematically invalidate every other legitimate
- 22:21Speaker 2: token that was signed with it, potentially taking down your
- 22:24Speaker 2: entire application.
- 22:25Speaker 1: Ouch. Yeah, that's bad, very.
- 22:27Speaker 2: Bad, which is why the proper architectural mechanism is to
- 22:30Speaker 2: link your generated tokens to a stored access policy on
- 22:34Speaker 2: the server side. If a token is compromised, you simply
- 22:36Speaker 2: delete the stored access policy. The token's math might still
- 22:40Speaker 2: check out, but the policy it relies on is gone,
- 22:43Speaker 2: surgically revoking access without blowing up your entire key infrastructure.
- 22:46Speaker 1: Wow. That perfectly illustrates why understanding the underlying mechanism is
- 22:51Speaker 1: way more important than memorizing buttons on a dashboard. Okay,
- 22:56Speaker 1: let's tackle scenario two granting access. Say we have a
- 23:00Speaker 1: new engineer, Bob, in our active directory and we need
- 23:03Speaker 1: to securely grant his identity read only access to a
- 23:06Speaker 1: live SQL database. My instinct is to open the SQL
- 23:09Speaker 1: database security tab, click ad user search for Bob's active
- 23:12Speaker 1: directory email, and hit save.
- 23:14Speaker 2: And if you try that, the database will throw an
- 23:16Speaker 2: error and deny the request. Because active directory and a
- 23:20Speaker 2: SEQL database engine are entirely separate systems, they do not
- 23:23Speaker 2: inherently trust or understand each other. You have to build
- 23:26Speaker 2: the cryptographic trust bridge step by step.
- 23:28Speaker 1: Okay, walk me through building that bridge.
- 23:30Speaker 2: Step one, you must configure the SQL server settings to
- 23:35Speaker 2: enable active directory authentication, essentially telling the database engine you
- 23:39Speaker 2: are now allowed to verify identities with this specific directory.
- 23:43Speaker 1: Okay, Step one done.
- 23:44Speaker 2: Step two you cannot assign permissions from an unauthorized account.
- 23:48Speaker 2: You must log into the database engine using an account
- 23:51Speaker 2: that is already designated as an active directory admin makes sense.
- 23:54Speaker 2: Step three. Once inside, you execute a command to create
- 23:59Speaker 2: a contained database user that maps directly to Bob's act
- 24:02Speaker 2: to directory identity. You are basically creating a local placeholder form.
- 24:06Speaker 2: Only then in step four can you assign that local
- 24:09Speaker 2: placeholder the database data reader role.
- 24:11Speaker 1: So the logic is rigorous. You cannot assign a role
- 24:14Speaker 1: to an identity that doesn't exist in the database. The
- 24:16Speaker 1: identity cannot exist until an authorized admin maps it, and
- 24:20Speaker 1: the admin cannot map it until the database engine is
- 24:22Speaker 1: explicitly configured to trust the external directory. It is a
- 24:26Speaker 1: strict chain of cryptographic trusts.
- 24:28Speaker 2: It's entirely logical. Cybersecurity at this level is fundamentally about architecture,
- 24:32Speaker 2: understanding state, and rigorous logic.
- 24:35Speaker 1: Amazing. Let's recap the journey of our data packet today.
- 24:39Speaker 1: We started at the absolute bedrock, locking down the data
- 24:42Speaker 1: tier by hiding COSMOSDB behind virtual networks and using mathematically
- 24:47Speaker 1: time bound resource tokens, while relying on granular PO six
- 24:51Speaker 1: ACLS for our massive data leaks.
- 24:53Speaker 2: Yep.
- 24:54Speaker 1: Then we moved up the stack, weaving security directly into
- 24:57Speaker 1: the software development life cycle through statics, int analysis, dynamic
- 25:01Speaker 1: runtime fuzzing, and cryptographic dependency checking, all while empowering security
- 25:06Speaker 1: champions within our agile teams.
- 25:08Speaker 2: Ohail.
- 25:08Speaker 1: And finally we shielded the deployed application on the public
- 25:11Speaker 1: Internet by inspecting payloads with web application firewalls, absorbing traffic
- 25:16Speaker 1: floods and beat off scrubbing centers, and locking our application
- 25:19Speaker 1: secrets inside physical, self destructing hardware security modules.
- 25:23Speaker 2: It is a phenomenal blueprint for defense in depth. Every
- 25:27Speaker 2: layer compensates for the potential failure of the layer above it. Yeah,
- 25:30Speaker 2: but looking at this massive stack of defenses raises an important,
- 25:34Speaker 2: almost philosophical question for anyone architecting these systems. Well, we
- 25:38Speaker 2: talked heavily about rotating master keys to invalidate stolen tokens,
- 25:41Speaker 2: and we relied on azure key vaults backed by physical
- 25:44Speaker 2: hardware security modules to protect our deepest secrets.
- 25:47Speaker 1: Right the absolute bottom layer of the defense, the tamper
- 25:50Speaker 1: proof bank vault itself.
- 25:52Speaker 2: Exactly, But what happens if that physical hardware module itself
- 25:56Speaker 2: like the actual microchip processing the cryptography in in side
- 26:00Speaker 2: the data center discovers a zero day vulnerability.
- 26:03Speaker 1: Oh wow. Yeah.
- 26:04Speaker 2: In a fully cloud hosted world where you do not
- 26:07Speaker 2: own the physical metal, where does your chain of trust
- 26:09Speaker 2: truly end? If the very bottom layer of the architecture
- 26:13Speaker 2: is compromised at the hardware level, how would you architect
- 26:16Speaker 2: your application logic to survive?
- 26:18Speaker 1: Man? That is the ultimate puzzle and exactly the kind
- 26:22Speaker 1: of question that keeps security architects awake at night. A
- 26:25Speaker 1: digital fortress is only as resilient as the physical bedrocket
- 26:29Speaker 1: is built upon. We are going to leave you to
- 26:31Speaker 1: mul that one over on your own. I encourage you
- 26:33Speaker 1: to look at your own projects and map out the
- 26:35Speaker 1: mechanisms securing your data. Keep questioning your architectures, keep exploring
- 26:40Speaker 1: the math behind the curtain, and always assume there is
- 26:42Speaker 1: a crack in the wall you haven't found yet. Thank
- 26:44Speaker 1: you for joining us on this deep dive. Keep learning
- 26:47Speaker 1: and keep building securely.