Latest / CyberCode Academy / Course 29 - AZ-500 Microsoft Azure Security Technologies | Episode 12: Mastering Data Protection and SQL Security
Transcript
- 0:00Speaker 1: You hear the term the cloud tossed around constantly, usually
- 0:03Speaker 1: like it's some I don't know, magic amorphous hard drive
- 0:05Speaker 1: floating up in the.
- 0:06Speaker 2: Sky, right, Yeah, just a big and visible.
- 0:09Speaker 1: Flash drive exactly. But when you actually get into the
- 0:12Speaker 1: architecture of it, the reality is entirely different. The cloud
- 0:16Speaker 1: isn't just a single entity. It's really a sprawling series
- 0:19Speaker 1: of highly configurable vaults.
- 0:21Speaker 2: Oh absolutely, And that configurability is where the danger lies, honestly, right.
- 0:26Speaker 1: And today our mission is to take a really deep
- 0:28Speaker 1: dive and give you the listener a masterclass in locking
- 0:32Speaker 1: down that digital real estate. We're going to walk you
- 0:35Speaker 1: step by step through exactly how to set up those vaults,
- 0:38Speaker 1: configure the firewalls, and mask sensitive data.
- 0:42Speaker 2: It's all about building an impenetrable digital fortress from the
- 0:45Speaker 2: ground up.
- 0:45Speaker 1: Yeah, and by the end of this conversation, we want
- 0:48Speaker 1: you to feel like you're sitting right there at the
- 0:50Speaker 1: control console with us.
- 0:51Speaker 2: That is the perfect mindset to have, because you know,
- 0:54Speaker 2: building in the cloud means you were handed this incredibly
- 0:57Speaker 2: powerful set of tools, but in this a big butt,
- 1:01Speaker 2: it is entirely up to you to configure them correctly.
- 1:03Speaker 1: Right, They don't do it for you exactly.
- 1:05Speaker 2: I mean, if you leave a physical door unlocked, someone
- 1:08Speaker 2: might eventually wander in. But if you leave a cloud
- 1:11Speaker 2: configuration wide open, automated bots and global attackers scanning the
- 1:16Speaker 2: Internet are going to find it in minutes. Minutes, yeah,
- 1:19Speaker 2: literally minutes. So we are going to explore the architecture
- 1:23Speaker 2: of cloud security, comprehensively securing the data itself, the network
- 1:27Speaker 2: it lives on, and of course the mechanism's controlling who
- 1:30Speaker 2: actually gets to access it.
- 1:31Speaker 1: Okay, let's unpack this because before we can even think
- 1:34Speaker 1: about building walls and moats around our data, we first
- 1:37Speaker 1: need to figure out what data is actually worth protecting. Right,
- 1:41Speaker 1: we have to label the loot.
- 1:43Speaker 2: Label the loot.
- 1:44Speaker 1: I like that bankes in a massive organization, You've got
- 1:47Speaker 1: everything from next week's cafeteria menus to top secret financial
- 1:52Speaker 1: projections floating around in the exact same servers. So how
- 1:55Speaker 1: does a system automatically know which document requires the heavy security?
- 1:59Speaker 2: Well, that is the foundational question of data security. You
- 2:02Speaker 2: simply cannot protect what you haven't identified, and this brings
- 2:06Speaker 2: us to the concept of information protection labels.
- 2:09Speaker 1: Okay, what does that look like?
- 2:10Speaker 2: Think of this as the ability to digitally classify every
- 2:13Speaker 2: single document, spreadsheet, and email your organization produces. You might
- 2:18Speaker 2: configure labels like public, private, or secret.
- 2:22Speaker 1: Right, And here's how I picture this. Imagine if every
- 2:26Speaker 1: single piece of paper in your physical office had a
- 2:29Speaker 1: highly trained bouncer assigned to it.
- 2:31Speaker 2: A bouncer Okay, go on, yeah.
- 2:32Speaker 1: And that bouncer didn't just stand at the door of
- 2:35Speaker 1: the office building. That bouncer literally followed the piece of
- 2:39Speaker 1: paper everywhere, even if an employee took that paper home
- 2:43Speaker 1: or mailed it to someone else. The bouncer travels with
- 2:46Speaker 1: the document, constantly checking the idea of whoever tries to
- 2:49Speaker 1: look at it.
- 2:49Speaker 2: That analogy actually hits the nail on the head. The
- 2:52Speaker 2: protection doesn't just live on your company server. It is
- 2:55Speaker 2: fundamentally embedded into the file itself.
- 2:58Speaker 1: Wow, so it's baked right in precisely.
- 3:00Speaker 2: Let's walk through a practical automated scenario of how this
- 3:03Speaker 2: actually looks if you are configuring it at the console.
- 3:06Speaker 2: Imagine you set up a policy for your organization's finance department.
- 3:10Speaker 1: Okay, I'm with you.
- 3:11Speaker 2: A user opens up a standard word document or a
- 3:14Speaker 2: PDF and starts typing in some meeting notes. The moment
- 3:17Speaker 2: they type a sequence of numbers, say a sixteen digit string,
- 3:22Speaker 2: that the system's pattern recognition identifies as a credit card number,
- 3:26Speaker 2: the information protection system instantly springs into action.
- 3:30Speaker 1: Wait, so it's actively scanning for specific patterns or data
- 3:34Speaker 1: types in the background while they type.
- 3:35Speaker 2: Exactly, it scans the content, recognizes the sensitive data pattern
- 3:39Speaker 2: based on the policy you applied, and it automatically stamps
- 3:43Speaker 2: that document with a secret label, no human intervention required.
- 3:47Speaker 1: That's incredibly cool. But what does that stamp actually do functionally?
- 3:51Speaker 1: I mean, is it just a visual warning at the
- 3:53Speaker 1: top of the page.
- 3:54Speaker 2: Oh? No, it alters the file on a structural level.
- 3:57Speaker 2: The moment that secret label is applied, several things happens simultaneously.
- 4:00Speaker 2: The document is immediately encrypted using cloud hosted keys. Okay,
- 4:04Speaker 2: so it's scrambled, right, and a visual watermark might be
- 4:07Speaker 2: instantly applied across the pages to remind the user of
- 4:10Speaker 2: its sensitivity. And most importantly, the access permissions are totally
- 4:14Speaker 2: locked down.
- 4:14Speaker 1: So if we go back to the bouncer analogy, what
- 4:18Speaker 1: happens if that employee accidentally or I don't know, maybe
- 4:22Speaker 1: intentionally emails that newly protected PDF to their personal Gmail
- 4:27Speaker 1: account and tries to open it at a coffee shop
- 4:29Speaker 1: on their iPad.
- 4:30Speaker 2: Well, the protection travels right along with the file. Because
- 4:33Speaker 2: the encryption occurs at the application layer. The physical location
- 4:37Speaker 2: of the file is irrelevant.
- 4:38Speaker 1: Really, so it doesn't matter that it's off the corporate network.
- 4:41Speaker 2: Doesn't matter at all. If that document is downloaded and
- 4:44Speaker 2: opened on a Mac, an iOS device, or an Android tablet,
- 4:48Speaker 2: the compatible reader application still has to reach out over
- 4:51Speaker 2: the open Internet and check in with your central cloud
- 4:54Speaker 2: authority to verify the user's identity.
- 4:56Speaker 1: Oh wow, And if they fail the.
- 4:58Speaker 2: Check, if the person trying to open it is and
- 5:00Speaker 2: authorized by your original corporate policy, the decryption key is denied.
- 5:04Speaker 2: All they get is scrambled ciphertext. The data remains completely
- 5:08Speaker 2: secure regardless of where the physical file ends up.
- 5:11Speaker 1: That structural security makes a lot of sense. So we've
- 5:14Speaker 1: got our individual documents labeled encrypted and guarded. But single
- 5:18Speaker 1: documents are just one part of.
- 5:19Speaker 2: The puzzle, right, They're the micro level.
- 5:21Speaker 1: Yeah, exactly, So what happens when we scale up? What
- 5:25Speaker 1: about the massive centralized databases holding millions of customer records,
- 5:30Speaker 1: application passwords, and transaction histories.
- 5:32Speaker 2: Now we're talking about the macro level.
- 5:34Speaker 1: Right, we have to choose the right type of vault
- 5:36Speaker 1: to store that massive pile of loot before we can
- 5:39Speaker 1: even protect it.
- 5:40Speaker 2: What's fascinating here is that the cloud doesn't just offer
- 5:43Speaker 2: a one size fits all database fault. It offers distinct
- 5:46Speaker 2: flavors of SQL database deployments.
- 5:49Speaker 1: So you have to pick the right tool for the job.
- 5:51Speaker 2: Exactly as the architect. You have to choose the right
- 5:54Speaker 2: one based on your specific security needs, your legacy baggage,
- 5:57Speaker 2: and frankly, your operational capacity. We generally look at three
- 6:02Speaker 2: main options, each with a very specific trade off.
- 6:05Speaker 1: Okay, let's start with the first option. Like for someone
- 6:07Speaker 1: building a modern web application totally from.
- 6:10Speaker 2: Scratch, that would be the fully managed cloud SQL database.
- 6:14Speaker 2: This is a platform as a service or pass. It's
- 6:17Speaker 2: ideal for brand new Internet ready applications because it is
- 6:21Speaker 2: Internet based by design. It comes with a unique domain
- 6:25Speaker 2: name that resolves to an Internet routable public ike address.
- 6:29Speaker 1: Which is incredibly convenient if you want your global application
- 6:32Speaker 1: to connect to it easily.
- 6:34Speaker 2: It is the pinnacle of convenience, and the massive operational
- 6:37Speaker 2: benefit here is that the cloud provider handles almost all
- 6:41Speaker 2: the heavy lifting.
- 6:42Speaker 1: I mean the maintenance, lug updating the software.
- 6:44Speaker 2: Yeah, they do the security patching, They maintain the underlying
- 6:47Speaker 2: operating system, They handle the hardware redundancies and backups. You,
- 6:51Speaker 2: as the customer, just manage your data and your application.
- 6:55Speaker 1: Logic sounds like a dream. But what if you can't
- 6:58Speaker 1: just build a brand new web app. But if you're
- 7:00Speaker 1: a massive enterprise organization dragging a fifteen year old legacy
- 7:03Speaker 1: system into the cloud.
- 7:05Speaker 2: Ah, the classic migration scenario.
- 7:07Speaker 1: Right, And that old system expects to talk to a
- 7:09Speaker 1: local network server, not an Internet address.
- 7:12Speaker 2: That is exactly why the second option exists, the managed instance.
- 7:16Speaker 2: This is engineered specifically for migrating older on premises applications
- 7:21Speaker 2: to the cloud without having to rewrite the entire database architecture.
- 7:25Speaker 1: Okay, so how is it different securely?
- 7:27Speaker 2: The crucial security difference here is that a managed instance
- 7:31Speaker 2: lives entirely inside a private virtual network. It's traffic never
- 7:35Speaker 2: travels over the open Internet, it uses private internal IP addresses.
- 7:41Speaker 1: But you still get the maintenance benefit, exactly.
- 7:43Speaker 2: You still get the pays benefit of the cloud provider
- 7:45Speaker 2: handling all the underlying OS maintenance and patching.
- 7:48Speaker 1: Okay, and then there is the third option, the infrastructure
- 7:51Speaker 1: as a service or SQL on virtual machines.
- 7:54Speaker 2: Right, the ultimate control option. You only choose this path
- 7:57Speaker 2: if your application absolutely requires access to the underlying operating system,
- 8:01Speaker 2: like if you have weird custom software exactly, maybe you
- 8:04Speaker 2: have custom third party agents that need to run directly
- 8:07Speaker 2: on the server itself. The catch is that you take
- 8:10Speaker 2: on a massive amount of responsibility.
- 8:12Speaker 1: You're on your own pretty much.
- 8:13Speaker 2: You are now entirely on the hook for operating system updates,
- 8:17Speaker 2: zero day security patches, SEQL server setup, and all the
- 8:20Speaker 2: ongoing maintenance.
- 8:22Speaker 1: It's totally like the difference between housing options. That first option,
- 8:26Speaker 1: the fully managed cloud sequel, is like renting a fully
- 8:28Speaker 1: furnished luxury apartment.
- 8:30Speaker 2: I love this analogy.
- 8:32Speaker 1: Right, the landlord fixes the plumbing, they maintain the roof.
- 8:35Speaker 1: You just bring your clothes and move in. But the
- 8:37Speaker 1: third option, the virtual machine, is like buying an empty
- 8:40Speaker 1: plot of land and building the house yourself. Yep, you
- 8:43Speaker 1: have total control over where the walls go. But if
- 8:46Speaker 1: the roof leaks at three am, you're the one climbing
- 8:49Speaker 1: up there with a bucket and some tar.
- 8:51Speaker 2: That is a highly accurate way to conceptualize the shared
- 8:54Speaker 2: responsibility model in the cloud. You have to consciously decide
- 8:59Speaker 2: how much of that maintenance burden you are willing and
- 9:02Speaker 2: able to carry.
- 9:03Speaker 1: Okay, So, for the sake of our architecture today, let's
- 9:05Speaker 1: say we chose that first option, the luxury.
- 9:08Speaker 2: Apartment, the fully managed cloud sequel.
- 9:10Speaker 1: Yeah, it's easy to use. The provider does the patching.
- 9:13Speaker 1: But you mentioned a minute ago that it has an
- 9:15Speaker 1: Internet routable IP address by default. We've essentially dropped our
- 9:20Speaker 1: vault right in the middle of a public square. How
- 9:22Speaker 1: do we start building a mote around it?
- 9:24Speaker 2: So this brings us to the core philosophy of cybersecurity,
- 9:27Speaker 2: which is defense in depth. You never rely on just
- 9:31Speaker 2: one lock. We build four distinct overlapping layers network security,
- 9:36Speaker 2: access control, threat protection, and information protection.
- 9:39Speaker 1: So it's like a nested doll of security exactly.
- 9:42Speaker 2: The operational logic is simple. If an attacker manages to
- 9:45Speaker 2: bypass one layer, the next independent layer is there to
- 9:48Speaker 2: catch them.
- 9:48Speaker 1: So let's look at layer one network security, building the
- 9:51Speaker 1: actual mote. If this managed database is public facing out
- 9:55Speaker 1: of the box, what is the immediate vulnerability we have
- 9:58Speaker 1: to patch. Well.
- 9:59Speaker 2: Cloud provider want to make things easy for developers to
- 10:02Speaker 2: start building, so by default, a cloud database might be
- 10:05Speaker 2: configured with a firewall rule that allows connections from any
- 10:08Speaker 2: other service within that same cloud provider's ecosystem.
- 10:11Speaker 1: So if I'm in the same cloud, I can see it. Right.
- 10:14Speaker 2: This makes initial set up a breeze, but it introduces
- 10:17Speaker 2: a massive risk for production data. An attacker could simply
- 10:21Speaker 2: pull out a stolen credit card, spin up a dirt
- 10:24Speaker 2: cheap virtual machine inside that exact same public cloud environment,
- 10:29Speaker 2: and use it to launch an automated brute force attack
- 10:31Speaker 2: against your database.
- 10:33Speaker 1: Oh, because their machine is technically a cloud service too.
- 10:36Speaker 2: Precisely, because their malicious virtual machine is technically a cloud service,
- 10:41Speaker 2: your database's default firewall rules will let them knock on
- 10:44Speaker 2: the door all day long, guessing millions of passwords until
- 10:47Speaker 2: they break in.
- 10:48Speaker 1: Okay, So if you're sitting at the control panel right now,
- 10:50Speaker 1: your first move is to shut that down. Walk us
- 10:53Speaker 1: through the mechanics of locking that firewall.
- 10:55Speaker 2: First, you navigate to your database's networking settings and explicitly
- 11:00Speaker 2: disable the toggle that says allow Azure services and resources
- 11:04Speaker 2: to access this server. You turn that off, you have just.
- 11:06Speaker 1: Dropped the portcullus boom locked down.
- 11:08Speaker 2: Now absolutely nobody can get in not even your own
- 11:11Speaker 2: legitimate application.
- 11:12Speaker 1: Servers, which means we need to selectively lower the drawbridge exactly.
- 11:17Speaker 2: Next, you can figure the firewall to strictly allow traffic
- 11:21Speaker 2: only from a very specific private virtual network subnet. You
- 11:25Speaker 2: are essentially giving the database a strict set of instructions
- 11:29Speaker 2: like what like, reject all traffic from the Internet, reject
- 11:32Speaker 2: all traffic from the rest of the cloud, and only
- 11:35Speaker 2: accept a connection if it is coming from this exact,
- 11:38Speaker 2: pre approved private corridor where our web application lives.
- 11:41Speaker 1: Okay, here's where it gets really interesting. If we block
- 11:45Speaker 1: all Internet traffic and restrict it to just one private
- 11:48Speaker 1: subnet where the app lives, how does our own database
- 11:52Speaker 1: administrator get in from their laptop to do maintenance.
- 11:55Speaker 2: That's the tricky part, right.
- 11:57Speaker 1: Yeah, because they aren't sitting inside the cloud's private subnet.
- 12:00Speaker 1: Are we locking our own people out?
- 12:02Speaker 2: It is a very common operational hurdle, but the solution
- 12:05Speaker 2: is actually quite elegant. You can carve out highly specific
- 12:08Speaker 2: pinpoint exceptions in that firewall. You whitelist the database administrator's
- 12:13Speaker 2: exact public IP address.
- 12:14Speaker 1: Oh, just their specific connection, right, so.
- 12:17Speaker 2: The moat remains completely impassable to the entire world. Except
- 12:21Speaker 2: for a single invisible bridge that only lowers for the
- 12:25Speaker 2: specific IP address of your admin's laptop.
- 12:27Speaker 1: That keeps the blast radius incredibly small. Okay, so the
- 12:31Speaker 1: moat is built, the firewall is strictly configured, but eventually
- 12:35Speaker 1: someone like our admin or an application crosses that invisible bridge.
- 12:39Speaker 2: They're at the front door.
- 12:40Speaker 1: Yeah, how do the guards at the gate actually verify
- 12:44Speaker 1: they are who they say they are? This brings us
- 12:46Speaker 1: to a layer two access control.
- 12:49Speaker 2: To understand access control effectively, you really have to separate
- 12:52Speaker 2: it into two distinct actions, authentication and authorization.
- 12:57Speaker 1: Okay, break this down for us.
- 12:58Speaker 2: Authentication is proving who you are. It's showing your ID
- 13:02Speaker 2: badge to the guard. Authorization dictates what you are actually
- 13:05Speaker 2: allowed to do once you're already inside the building.
- 13:08Speaker 1: Let's cackle authentication first. I mean, in legacy systems, you'd
- 13:10Speaker 1: usually just create a username and a password directly inside
- 13:13Speaker 1: the database itself.
- 13:14Speaker 2: Yes, local sequel authentication. It's the old school way, and
- 13:18Speaker 2: from a modern enterprise security perspective, it is highly problematic.
- 13:21Speaker 1: Why is it so bad?
- 13:22Speaker 2: Well, if you use local database authentication, that credential lives
- 13:26Speaker 2: only in that specific database. If you have fifty databases,
- 13:30Speaker 2: a user ends up with fifty different passwords. Oh nobody
- 13:34Speaker 2: wants that exactly. Not only is it a management nightmare
- 13:37Speaker 2: for the user, but think about the security implications. When
- 13:40Speaker 2: an employee leaves the company, it has to manually hunt
- 13:44Speaker 2: down and delete their local accounts across dozens of disjointed systems.
- 13:48Speaker 1: Oh right. So integrating with a central identity provider like
- 13:52Speaker 1: active directory solves that administrative headache.
- 13:56Speaker 2: It solves the headache, and it drastically elevates the security posture. First,
- 14:00Speaker 2: you get a single unified identity for your users. When
- 14:03Speaker 2: someone leaves, you disable one active directory account and their
- 14:06Speaker 2: access to everything is instantly revoked.
- 14:08Speaker 1: One click and they're out. Yep.
- 14:10Speaker 2: Second, you can enforce multi factor authentication or MFA. Even
- 14:15Speaker 2: if an attacker steals a password via a phishing email,
- 14:18Speaker 2: they still can't get in without the user's physical smartphone.
- 14:21Speaker 1: That's a huge layer of defense, it is.
- 14:23Speaker 2: And Third, modern active directory systems provide risky sign on alerts.
- 14:27Speaker 2: If a user logs in from New York and ten
- 14:30Speaker 2: minutes later their credentials are used to try and log
- 14:32Speaker 2: in from a server in Eastern Europe, the system flags
- 14:35Speaker 2: the physical impossibility and blocks the access dynamically.
- 14:38Speaker 1: Okay, so that's authentication sorted. We know exactly who is
- 14:42Speaker 1: crossing the bridge. Now authorization figuring out what they can
- 14:46Speaker 1: actually touch once they're inside.
- 14:49Speaker 2: Right. Authorization is governed by the principle of least privilege.
- 14:52Speaker 2: You only grant a user the absolute minimum permissions they
- 14:56Speaker 2: require to do their specific job, nothing more.
- 15:00Speaker 1: Get a practical example. Let's say we have a sample database.
- 15:03Speaker 1: We'll call it the adventure Works database full of retail
- 15:06Speaker 1: customer data.
- 15:07Speaker 2: Classic example.
- 15:08Speaker 1: Right, So we create a test user and we assign
- 15:11Speaker 1: them a strict data reader role.
- 15:13Speaker 2: Okay, so you've authenticated the test user through active directory
- 15:17Speaker 2: and you've authorized them only to read data. So they
- 15:19Speaker 2: log in, they run a query to look at a
- 15:21Speaker 2: table of recent sales. The database serves it up perfectly
- 15:24Speaker 2: because reading data is well within their authorized scope. But
- 15:27Speaker 2: let's say that user gets curious, or worse, their account
- 15:30Speaker 2: is compromised by an attacker, and they try to execute
- 15:33Speaker 2: a command to alter a sales order ID or maybe
- 15:36Speaker 2: delete a row entirely.
- 15:38Speaker 1: The database engine catches the discrepancy instantly.
- 15:41Speaker 2: The system intercepts the command and throws a hard permission
- 15:44Speaker 2: denied error. The action is blocked at the database kernel
- 15:47Speaker 2: level because their assigned role simply does not have the
- 15:50Speaker 2: authorization to write or modify data.
- 15:52Speaker 1: Man, so we've secured the network mode, we've locked down
- 15:55Speaker 1: the authentication and authorization. We are in great shape. I mean,
- 16:00Speaker 1: an architect has to assume the worst right always. What
- 16:03Speaker 1: if a highly privileged user, someone who actually has the
- 16:06Speaker 1: right to view and modify the data, goes rogue, or
- 16:10Speaker 1: what if someone manages to intercept the data while it's
- 16:12Speaker 1: traveling across the wires. We need to ensure the data
- 16:15Speaker 1: itself is fundamentally unreadable to unauthorized eyes.
- 16:18Speaker 2: If we connect this to the bigger picture, yeah, you
- 16:21Speaker 2: are talking about the final layer of our defense in
- 16:23Speaker 2: depth information protection at the database level. And we have
- 16:26Speaker 2: to look at this in three distinct phases. Far are
- 16:28Speaker 2: they data in transit, data at rest, and data in use?
- 16:32Speaker 1: Okay, let's start with data in transit. When the data
- 16:35Speaker 1: is moving from the database to the web application.
- 16:38Speaker 2: This is secured using transport layer security or TLS. It
- 16:43Speaker 2: encrypts the communication channel itself, creating a secure tunnel. Most
- 16:47Speaker 2: modern cloud databases have this enabled by default.
- 16:50Speaker 1: Okay, so that's easy.
- 16:51Speaker 2: Mostly, but there is A crucial practical tip for whoever
- 16:54Speaker 2: is actually writing the application code. In the connection string,
- 16:58Speaker 2: which is the actual piece of code the app uses
- 17:01Speaker 2: to initiate talks with the database, you should always explicitly
- 17:05Speaker 2: specify encrypt true.
- 17:07Speaker 1: Wait, if the cloud database already enforces it by default,
- 17:10Speaker 1: why do we need to hard code it into the application.
- 17:13Speaker 2: Because you also want to configure the application to never
- 17:16Speaker 2: automatically trust an unverified server certificate. By forcing the encryption
- 17:20Speaker 2: and forcing the certificate verification from the client side, you
- 17:24Speaker 2: prevent what is called a man in the middle attack.
- 17:26Speaker 1: Oh I see Yeah.
- 17:27Speaker 2: If an attacker somehow intercepts the traffic and tries to
- 17:30Speaker 2: present a fake certificate to trick your application into handing
- 17:33Speaker 2: over credentials, your app will recognize the mismatch and instantly
- 17:37Speaker 2: drop the connection.
- 17:38Speaker 1: That makes perfect sense, okay. Phase two Data at rest
- 17:43Speaker 1: the actual data files sitting on the physical hard drives
- 17:48Speaker 1: deep in the cloud data center.
- 17:49Speaker 2: We have two main concepts here. The first is transparent
- 17:52Speaker 2: data encryption or td Think of TDE like putting all
- 17:57Speaker 2: your paper files into a heavy, locked filing cabinet. It
- 18:01Speaker 2: encrypts the raw database files and the automated backups Okay,
- 18:05Speaker 2: So if someone literally broke into the cloud data center,
- 18:08Speaker 2: pulled the physical hard drive out of the server rack,
- 18:10Speaker 2: and plug it into their own machine, it would be
- 18:12Speaker 2: totally useless. It protects against offline physical access.
- 18:16Speaker 1: But wait, if the database server is powered on and
- 18:18Speaker 1: running normally, TD has essentially unlocked the cabinet, so the
- 18:22Speaker 1: application can function right, which means an overprivileged database administrator
- 18:26Speaker 1: could still peak at the files exactly.
- 18:28Speaker 2: That is the exact limitation of TDE, which brings us
- 18:30Speaker 2: to the second, much more advanced concept, always encrypted.
- 18:34Speaker 1: This is a fascinating architectural feature. How does it separate
- 18:37Speaker 1: the data from.
- 18:38Speaker 2: The advent always encrypted target specific highly sensitive columns within
- 18:43Speaker 2: your database, say a column containing social security numbers or
- 18:47Speaker 2: credit cards. With always encrypted, the data is encrypted at
- 18:51Speaker 2: the application level before it is ever sent over the
- 18:54Speaker 2: network to the database.
- 18:55Speaker 1: So the database just gets gibberish.
- 18:57Speaker 2: Yes, the database only ever receives and stores ciphertext. Crucially,
- 19:02Speaker 2: the database server never holds the decryption key. The key
- 19:05Speaker 2: is kept securely on the client application side.
- 19:08Speaker 1: Wow, so that completely neutralizes the rogue admin thread. Even
- 19:12Speaker 1: the person with ultimate system privileges cannot read the raw
- 19:15Speaker 1: credit card numbers. If they run a query directly on
- 19:18Speaker 1: the database server, all they see is scrambled text.
- 19:21Speaker 2: It creates a brilliant separation of duties and it leads
- 19:24Speaker 2: us perfectly to the final phase data in use, we
- 19:27Speaker 2: utilize a feature called dynamic data masking.
- 19:30Speaker 1: Walk as through how this looks on the screen, because
- 19:32Speaker 1: the mechanism behind it is really clever.
- 19:34Speaker 2: Dynamic data masking hide sensitive data on the fly, depending
- 19:38Speaker 2: entirely on who is asking for it. Let's go back
- 19:40Speaker 2: to our Adventureworks database. Imagine your fully authorized database administrator
- 19:45Speaker 2: runs a query to look at a customer table.
- 19:47Speaker 1: Okay, they run the query.
- 19:49Speaker 2: The database returns the results, and the admin sees the
- 19:51Speaker 2: customer's email address clearly John at email.
- 19:54Speaker 1: Dot com because their role explicitly allows them to see
- 19:58Speaker 1: unmasked data.
- 20:00Speaker 2: Correct. Now, imagine our restricted test user runs the exact
- 20:04Speaker 2: same query against the exact same database table. The system
- 20:08Speaker 2: intercepts their request, It checks their ad roll, realizes they
- 20:11Speaker 2: are not an administrator, and dynamically alters the data in
- 20:15Speaker 2: the split second before it hits their screen.
- 20:17Speaker 1: That's incredibly fast.
- 20:18Speaker 2: It is. The test user's results come back, but instead
- 20:21Speaker 2: of seeing the real email, they see jxxx at xxxx
- 20:25Speaker 2: dot com.
- 20:26Speaker 1: And the beauty of this is that the actual data
- 20:28Speaker 1: stored on the database disc hasn't been changed at all.
- 20:30Speaker 2: Not one bit. The underlying data is completely untouched. Only
- 20:34Speaker 2: the test user's presentation view of that data was masked.
- 20:36Speaker 2: It happens dynamically on the fly with zero changes needed
- 20:40Speaker 2: to the actual application code.
- 20:42Speaker 1: That is just brilliant. Before we wrap up the architecture side,
- 20:45Speaker 1: I want to highlight a quick crucial operational tip for
- 20:48Speaker 1: anyone actually building these test labs. Just like turning off
- 20:51Speaker 1: the lights when you leave an empty room, always remember
- 20:54Speaker 1: to shut down and destroy your virtual machines and unneeded
- 20:58Speaker 1: data discs when you were done experience.
- 21:00Speaker 2: Oh absolutely, the cloud meter is always running.
- 21:03Speaker 1: Leaving a virtual machine spinning over the weekend just to
- 21:06Speaker 1: hold your place is a great way to rack up
- 21:09Speaker 1: a massive unexpected bill. Protect your wallet as fiercely as
- 21:13Speaker 1: you protect your data.
- 21:14Speaker 2: Cost management is an unavoidable and vital part of cloud architecture.
- 21:18Speaker 2: You have to keep an eye on it.
- 21:19Speaker 1: What we have covered a massive amount of ground today,
- 21:22Speaker 1: we want to do a quick mental review exercise for
- 21:25Speaker 1: you to really lock this in. Think of a highly
- 21:28Speaker 1: sensitive application that you use every single day like a
- 21:31Speaker 1: banking app. Yeah, exactly, maybe your personal banking app on
- 21:34Speaker 1: your phone. Can you mentally map out the four layers
- 21:37Speaker 1: of defense we just covered, Try to visualize the architecture
- 21:40Speaker 1: behind the screen. What does the network look like for
- 21:43Speaker 1: that bank's database? How exactly does it authenticate you via
- 21:47Speaker 1: active directory when you open.
- 21:49Speaker 2: The app and think about the masking too?
- 21:51Speaker 1: Right when you look at your account number on the
- 21:53Speaker 1: screen and only see the last four digits, how is
- 21:56Speaker 1: that data being dynamically masked before it even reaches your phone.
- 22:00Speaker 2: Applying these concepts to real world applications is the best
- 22:03Speaker 2: way to understand the architecture. You begin to see how
- 22:06Speaker 2: the systems interact. You realize that security isn't just a
- 22:09Speaker 2: padlock you snap on at the end. It is a living,
- 22:12Speaker 2: breathing ecosystem of policies, network rules, and encryption configurations, all
- 22:16Speaker 2: working in tandem.
- 22:18Speaker 1: So what does this all mean. We've labeled our documents
- 22:21Speaker 1: so the encryption travels with them. We chose the right
- 22:23Speaker 1: sequel vault, put it behind a strict private subnet firewall,
- 22:27Speaker 1: enforced active directory authentication with MFA, and we utilized always
- 22:30Speaker 1: encrypted and dynamic data masking, so even a rogue admin
- 22:33Speaker 1: is locked down. We've engineered an airtight digital fortress.
- 22:37Speaker 2: From a technical standpoint, yes, the architecture we've discussed is
- 22:40Speaker 2: incredibly robust, But I want to leave you with a
- 22:42Speaker 2: chilling operational reality to ponder, uh, oh what cut? Well,
- 22:47Speaker 2: we can build the thickest network firewalls, enforce the strictest
- 22:51Speaker 2: active directory access policies, mandate complex multi factor authentication, and
- 22:56Speaker 2: mask the data dynamically. But consider this scenario. What happens
- 23:01Speaker 2: when a completely authorized user, someone who passed the MFA
- 23:05Speaker 2: across the network mote and has the legitimate, documented authorization
- 23:09Speaker 2: to view fully unmasked data, simply pulls their personal smartphone
- 23:14Speaker 2: out of their pocket and takes a high resolution photograph
- 23:16Speaker 2: of their computer monitor. Oh wow, the analog hole Exactly.
- 23:20Speaker 2: All the encryption algorithms and firewall configurations in the RIND
- 23:24Speaker 2: cannot stop a camera lens. It is a stark reminder
- 23:26Speaker 2: that while we can engineer near perfect technical defenses, the
- 23:30Speaker 2: ultimate vulnerability isn't always digital. Sometimes the final, most dangerous
- 23:35Speaker 2: edge of cybersecurity is just human nature.