Latest / CyberCode Academy / Course 29 - AZ-500 Microsoft Azure Security Technologies | Episode 4: Protecting Azure Virtual Networks
Transcript
- 0:00Speaker 1: Imagine you build this highly secure, totally private digital vault.
- 0:05Speaker 1: You know, you lock the front door, you hire security guards,
- 0:08Speaker 1: you put the absolute most sensitive data your company owns
- 0:11Speaker 1: right inside.
- 0:12Speaker 2: Right, you think you're totally protected, exactly, But.
- 0:15Speaker 1: What you don't realize is that the architect built a
- 0:17Speaker 1: back door into your vall and the default setting on
- 0:21Speaker 1: that back door is just wide open to the entire
- 0:24Speaker 1: public Internet.
- 0:25Speaker 2: Anyone inside can literally just walk out carrying whatever they want.
- 0:28Speaker 1: Yeah, it's wild. Yeah, and welcome to today's deep dive.
- 0:31Speaker 1: Today we are talking about cloud network security and why
- 0:35Speaker 1: the default settings in your cloud environment might well they
- 0:39Speaker 1: might actually be actively working against you.
- 0:42Speaker 2: It is a terrifying scenario, but I see it all
- 0:44Speaker 2: the time. I mean, it's incredibly common. We see organizations
- 0:48Speaker 2: spin up cloud infrastructure every single day, assuming the platform
- 0:52Speaker 2: is just secure out of the box.
- 0:53Speaker 1: Because it's a major cloud provider, right, you assume they
- 0:55Speaker 1: locked it down, right.
- 0:57Speaker 2: But cloud security is a shared responsibility. So today we
- 1:01Speaker 2: aren't just going to look at what the core components
- 1:03Speaker 2: of network security are. We're going to break down exactly
- 1:06Speaker 2: how they work under the hood.
- 1:07Speaker 1: Yeah, and why cloud providers actually design them that way,
- 1:11Speaker 1: Because whether you're a self taught programmer tinkering with your
- 1:14Speaker 1: first web app, or a seasoned cybersecurity professional architecting and
- 1:18Speaker 1: enterprise environment Mastering these specific layers is the exact difference
- 1:23Speaker 1: between a robust infrastructure and a catastrophic data breach.
- 1:27Speaker 2: It really is.
- 1:28Speaker 1: So we are going to build a secure digital fortress
- 1:31Speaker 1: today from the ground up, entirely in your mind's eye.
- 1:34Speaker 1: And to do that, let's use a strict city planning analogy.
- 1:38Speaker 2: I like that.
- 1:38Speaker 1: Yeah, think of your clode infrastructure as a brand new city.
- 1:41Speaker 1: You have to draw the city limits, zone the neighborhoods,
- 1:44Speaker 1: pave the connecting highways, and probably most importantly, establish the
- 1:48Speaker 1: security checkpoints.
- 1:49Speaker 2: That city planning framework actually holds up incredibly well against
- 1:53Speaker 2: the actual architecture. So let's start with those city limits.
- 1:56Speaker 2: In the cloud, your overarching boundary is your virtual network
- 2:00Speaker 2: v net.
- 2:01Speaker 1: The v net.
- 2:02Speaker 2: Yeah, this is the foundational layer of isolation. Before you
- 2:05Speaker 2: can deploy a single server, you have to define this
- 2:10Speaker 2: massive private boundary using an IP address range.
- 2:13Speaker 1: Now, when you set this up, these ranges use CIDR
- 2:16Speaker 1: notation right classless inter domain routing, So you might type
- 2:18Speaker 1: in something like ten point hunter zero point zero slash
- 2:23Speaker 1: sixteen exactly. So to stick with our city analogy, that
- 2:27Speaker 1: slash sixteen essentially dictates the total acreage of your city.
- 2:31Speaker 1: It tells the cloud provider, Hey, I want a massive
- 2:33Speaker 1: pool of over sixty five thousand private IP addresses to
- 2:37Speaker 1: work with.
- 2:37Speaker 2: That's the mechanism. Yes, yeah, you are essentially telling the
- 2:40Speaker 2: cloud provider's underlying fabric to carve out a logically isolated
- 2:45Speaker 2: space just for you, a private bubble. Right. No other
- 2:48Speaker 2: customer on that public cloud can route traffic into that
- 2:50Speaker 2: specific ten point ten space without your explicit permission. But
- 2:54Speaker 2: I mean you would just dump all your cities residential houses,
- 2:57Speaker 2: commercial banks, and industrial factories into one massive, unorganized zone.
- 3:01Speaker 1: Well, of course not, you'd zone it. You'd carve it up.
- 3:03Speaker 1: And that brings us to the neighborhoods, which in cloud
- 3:06Speaker 1: networking are your subnets. You take that massive v ne
- 3:09Speaker 1: it and you chop it into smaller, more manageable chunks.
- 3:13Speaker 1: So you might create a front end subnet which acts
- 3:16Speaker 1: as your commercial district for web servers that eventually need
- 3:19Speaker 1: to interact with the public yep. And then you create
- 3:22Speaker 1: a back end subnet like your highly secure vault district
- 3:26Speaker 1: where you keep sensitive databases that should literally never touch the.
- 3:30Speaker 2: Public Internet, And the underlying math of dividing those subnets
- 3:34Speaker 2: is actually where a lot of architects make their first
- 3:37Speaker 2: critical mistake.
- 3:38Speaker 1: Oh yeah, it's fascinating.
- 3:39Speaker 2: It's not a pure division of available IP addresses. The
- 3:43Speaker 2: cloud provider actually steps in and claims a piece of
- 3:46Speaker 2: every single neighborhood you build.
- 3:48Speaker 1: Yeah. I was looking into how Azure handles this, and
- 3:50Speaker 1: I have to push back on the logic here because
- 3:52Speaker 1: it feels like a ripoff. Microsoft reserves exactly five IP
- 3:56Speaker 1: addresses in every single subnet you create.
- 3:59Speaker 2: They do.
- 3:59Speaker 1: If I'm I'm paying for this infrastructure and I own
- 4:02Speaker 1: this private network, why does the platform steal five addresses
- 4:07Speaker 1: right off the top?
- 4:07Speaker 2: Like?
- 4:07Speaker 1: What are they actually doing with them?
- 4:09Speaker 2: It's a really fair question. But the reason is entirely structural.
- 4:14Speaker 2: The cloud isn't magic, right, It's a massive physical network
- 4:19Speaker 2: abstracting itself for you. So the first reserved address is
- 4:24Speaker 2: the network address itself, defining the boundary. The last address
- 4:27Speaker 2: is the broadcast address, which the fundamental networking protocol just
- 4:31Speaker 2: needs to function.
- 4:32Speaker 1: Okay, that makes sense, but what about the other three?
- 4:34Speaker 2: Right? Those three hidden addresses in the middle usually Dot one,
- 4:37Speaker 2: Dot two, and Dot three. They are hardwired to internal
- 4:41Speaker 2: platform services. Oh, I say, yeah, the provider needs them.
- 4:44Speaker 2: They need one for the default gateway so your traffic
- 4:46Speaker 2: actually knows how to leave the subnet, one for the
- 4:49Speaker 2: internal DNS so your virtual machines can resolve host names,
- 4:52Speaker 2: and one for DHCP so your machines can actually lease
- 4:54Speaker 2: their IP addresses dynamically.
- 4:56Speaker 1: Okay, so they are basically the invisible city tities. You
- 5:00Speaker 1: need them for the neighborhood to run exactly. But the
- 5:02Speaker 1: math on this gets wild. The smallest supported subnet size
- 5:06Speaker 1: you can make in many clouds is a slash twenty nine,
- 5:08Speaker 1: and technically a slash twenty nine holds exactly eight IP addresses.
- 5:13Speaker 1: So if the platform always taxes you five addresses, does
- 5:16Speaker 1: that mean I only actually get three usable IPS for
- 5:19Speaker 1: my own servers?
- 5:20Speaker 2: You only get three?
- 5:22Speaker 1: Wow?
- 5:23Speaker 2: Yeah, And this is why understanding the mechanism behind the
- 5:25Speaker 2: technology is critical. If you don't plan your IP addressing
- 5:29Speaker 2: with this five IP tax in mind, your entire infrastructure
- 5:33Speaker 2: design could fail when you try to scale.
- 5:35Speaker 1: Because you just run out of addresses exactly.
- 5:39Speaker 2: You might think your autoscaling group has room for eight
- 5:41Speaker 2: web servers in that tiny subnet, but the moment demands
- 5:45Speaker 2: spikes and the system tries to spin up that fourth server,
- 5:48Speaker 2: the provisioning just fails completely because there are literally no
- 5:51Speaker 2: IP addresses left to hand out.
- 5:53Speaker 1: That is a brilliant hidden detail. Okay, so we have
- 5:56Speaker 1: our secure back end neighborhood or database vault. So here's
- 6:00Speaker 1: a practical problem. That database probably needs to back up
- 6:03Speaker 1: its data to a massive cloud storage bucket, which is
- 6:06Speaker 1: technically a public platform service.
- 6:09Speaker 2: Yes it is.
- 6:10Speaker 1: If my back end neighborhood is totally isolated, doesn't that
- 6:12Speaker 1: mean the backup traffic has to leave the private city limits,
- 6:15Speaker 1: travel out over the public Internet, and come back in
- 6:18Speaker 1: to reach that storage bucket.
- 6:20Speaker 2: Historically, yes, and that was a massive security headache. The
- 6:23Speaker 2: cloud provider solve this by introducing something called service endpoints
- 6:27Speaker 2: to stick with the city analogy. Service endpoints are basically
- 6:31Speaker 2: subterranean VIP tunnels.
- 6:32Speaker 1: Oh nice, So instead of a data truck leaving the
- 6:35Speaker 1: city limits and driving on the public highway to the
- 6:37Speaker 1: storage facility, it just drops down into a private underground tunnel.
- 6:41Speaker 2: That is exactly how it functions conceptually. Technically, what happens
- 6:46Speaker 2: under the hood when you enable a service endpoint is
- 6:48Speaker 2: a BGP.
- 6:49Speaker 1: Route update Border Gateway Protocol.
- 6:51Speaker 2: Right, the BGP routing tables inside your private subnet are
- 6:54Speaker 2: dynamically rewritten. The provider injects a specific route that says, Hey,
- 6:59Speaker 2: if you are looking for Azure storage, do not take
- 7:02Speaker 2: the default gateway out to the Internet. Take the tunnel exactly,
- 7:05Speaker 2: take this optimized internal path across the Microsoft backbone. So
- 7:10Speaker 2: your data never actually sees the public Internet, which massively
- 7:13Speaker 2: reduces your attack surface.
- 7:15Speaker 1: Okay, so our East Coast city is highly secure, the
- 7:19Speaker 1: subnets are zoned, the utilities are running, we have private
- 7:22Speaker 1: tunnels for backups. But let's say our company is growing,
- 7:25Speaker 1: or you know, we need a disaster recovery site. We
- 7:28Speaker 1: build a second city in the West Coast region. Right now,
- 7:32Speaker 1: they are completely isolated islands. How do we connect them
- 7:36Speaker 1: without exposing our internal traffic to the outside world.
- 7:40Speaker 2: This is where we lay down the private interstate highways.
- 7:42Speaker 2: It's a future called virtual network peering.
- 7:45Speaker 1: Peering.
- 7:46Speaker 2: Yeah, peering connects two separate v nets together completely seamlessly
- 7:50Speaker 2: over the provider's private fiber optic backbone.
- 7:54Speaker 1: So we absolutely aren't sending our internal corporate traffic over
- 7:57Speaker 1: the public Internet at all, Not at all.
- 7:58Speaker 2: It's incredibly fast, super low latency, and highly secure, and
- 8:02Speaker 2: it's vital for disaster recovery. If your east coast city
- 8:05Speaker 2: loses power, your West coast city needs to have it
- 8:08Speaker 2: replicated up to the second copy of the data, and
- 8:11Speaker 2: peering facilitates that rapid transfer.
- 8:13Speaker 1: But there is a massive trap here, right, the golden
- 8:16Speaker 1: rule of peering. Oh, absolutely, the IP address spaces of
- 8:19Speaker 1: the two connected networks cannot overlap. Ever, but what actually
- 8:23Speaker 1: happens if they do? What if I mess that up?
- 8:25Speaker 2: The connection fundamentally fails. And it's because of how network
- 8:28Speaker 2: routers make decisions. Routers use the logic called longest prefix
- 8:32Speaker 2: match to determine where to send a packet of data.
- 8:35Speaker 2: So if your East coast vnut uses the ten point
- 8:38Speaker 2: ten point zero point zero space and your West coast
- 8:40Speaker 2: vnut uses the exact same ten point zero point zero
- 8:43Speaker 2: point zero space.
- 8:44Speaker 1: This would be a huge planning mistake.
- 8:46Speaker 2: Right. The riter looks at a packet destined for say
- 8:49Speaker 2: ten point zero point zero point five, and it gets
- 8:52Speaker 2: entirely confused.
- 8:53Speaker 1: It's like having two identical houses with the same exact
- 8:55Speaker 1: address and two connected cities the post office truck hits
- 8:58Speaker 1: the highway, looks at the envelope and literally cannot make
- 9:01Speaker 1: a deterministic choice about which city to drive to exactly.
- 9:04Speaker 2: The routing table just breaks down. The router cannot choose,
- 9:07Speaker 2: so the packet is black holed. It's just dropped and destroyed.
- 9:10Speaker 2: This is why you must plan your IP spaces, your
- 9:12Speaker 2: zoning maps years in advance. If there is even a
- 9:15Speaker 2: single overlapping IP, the peering connection just.
- 9:18Speaker 1: Won't initiate all right, So our cities are planned properly.
- 9:21Speaker 1: East Coast is ten point ten, West Coast is ten
- 9:24Speaker 1: point twenty week the highway is paved. But now we
- 9:28Speaker 1: have open roads between different neighborhoods and different cities. We
- 9:31Speaker 1: need security checkpoints to stop malicious actors from just stroll
- 9:35Speaker 1: and ride in.
- 9:36Speaker 2: And this brings us to the core defense mechanism. Network
- 9:38Speaker 2: security groups or nsgs. These are your digital checkpoints. Technically speaking,
- 9:43Speaker 2: they are stateful packet filtering firewalls designed specifically to protect
- 9:48Speaker 2: your virtual network interfaces.
- 9:50Speaker 1: Stateful packet filtering. Let's break that down, because I know
- 9:53Speaker 1: people throw the word stateful around a lot in tech.
- 9:56Speaker 1: How is it different from just a basic stateless firewall,
- 9:59Speaker 1: well titless firewall is essentially a rigid checklist.
- 10:02Speaker 2: It evaluates every single packet in total isolation. Ye, no
- 10:05Speaker 2: memory exactly. A stateful firewall, however, remembers the context of
- 10:10Speaker 2: the conversation. If your internal web server reaches out to
- 10:14Speaker 2: download a software update, it sends traffic out on a
- 10:17Speaker 2: specific port, A stateful firewall remembers that outbound request, and
- 10:22Speaker 2: when the update server replies a second later, the firewall
- 10:25Speaker 2: dynamically and temporarily opens a return path for that specific traffic.
- 10:29Speaker 1: Oh, that's incredibly smart.
- 10:31Speaker 2: Yeah, you don't have to write a permanent rule allowing
- 10:33Speaker 2: traffic back in. The firewall tracks the state of the
- 10:35Speaker 2: connection for you.
- 10:36Speaker 1: That saves a massive amount of administrative overhead. But to
- 10:40Speaker 1: make those initial allower deny decisions, the checkpoint uses a
- 10:44Speaker 1: five touple approach. Right. It evaluates five specific characteristics of
- 10:48Speaker 1: every packet.
- 10:49Speaker 2: Yes, think of it as the guard at the checkpoint,
- 10:51Speaker 2: asking five mandatory questions. What is your source IP, what
- 10:55Speaker 2: source port did you leave from, what is your destination IP,
- 10:58Speaker 2: what destination port are you trying to hit? And what protocol?
- 11:01Speaker 2: What language you're using like TCP or UDP, And if all.
- 11:04Speaker 1: Five characteristics don't match an explicit rule on the guard's clipboard,
- 11:08Speaker 1: the default rules take over, and the way those rules
- 11:11Speaker 1: are organized on the clipboard is a strict priority number system.
- 11:15Speaker 1: You assign a role in a number between one hundred
- 11:17Speaker 1: and forty ninety six, and the lower the number, the
- 11:20Speaker 1: earlier the rule is evaluated. So priority one hundred is
- 11:23Speaker 1: like the ultimate VIP pass. The checkpoint guard looks at
- 11:26Speaker 1: rule one hundred first. If the packet matches, the guard
- 11:29Speaker 1: lets it through immediately and just stops reading the rest
- 11:31Speaker 1: of the list.
- 11:32Speaker 2: The priority system is elegant, but it actually introduces the
- 11:36Speaker 2: most dangerous hidden trap in cloud architecture.
- 11:39Speaker 1: This is the back door we talked about at the start.
- 11:41Speaker 2: Yes, every single network security group comes with default undeletable rules.
- 11:47Speaker 2: They are assigned massive priority numbers, usually sixty five thousand
- 11:51Speaker 2: and above, meaning they sit at the absolute bottom of
- 11:54Speaker 2: the guard's clipboard as a total last resort.
- 11:56Speaker 1: Right, and if we look at the inbound side traffic
- 11:58Speaker 1: trying to enter your network, the default rule six y
- 12:01Speaker 1: five to five hundred is deny all, which makes perfect sense.
- 12:04Speaker 1: If no other rule matches, the guard drops the barrier
- 12:07Speaker 1: and denies entry from the Internet.
- 12:08Speaker 2: But the outbound rules.
- 12:10Speaker 1: Yeah, this blew my mind. Traffic leaving your virtual machines.
- 12:14Speaker 1: The default rules explicitly allow all outbound traffic to the
- 12:18Speaker 1: entire public Internet.
- 12:20Speaker 2: Any virtual machine you spin up can by default talk
- 12:23Speaker 2: to anyone outside the city.
- 12:25Speaker 1: I just have to ask why on Earth would a
- 12:27Speaker 1: security platform default to leaving the back door wide open.
- 12:31Speaker 1: And it seems like security mailpractice to just let any
- 12:34Speaker 1: server connect to the public Internet by default.
- 12:36Speaker 2: It feels completely counterintuitive, I know, but a deliberate trade
- 12:40Speaker 2: off between strict security and platform usability.
- 12:44Speaker 1: Usability Yeah yeah.
- 12:45Speaker 2: If cloud providers ship firewalls that blocked all outbound traffic
- 12:49Speaker 2: by default, every single virtual machine you spun up would
- 12:52Speaker 2: just be dead on arrival.
- 12:53Speaker 1: Oh, because they couldn't update exactly.
- 12:54Speaker 2: Windows servers couldn't reach out to Microsoft to activate their
- 12:57Speaker 2: licenses or download critical security patches. Linux machines couldn't reach
- 13:01Speaker 2: public repositories to install basic software like Python or apatche.
- 13:05Speaker 2: Even the cloud provider's owned telemetry agents would fail.
- 13:08Speaker 1: So they leave it open. So the servers actually function
- 13:11Speaker 1: out of the box. But man, the security risk is staggering.
- 13:15Speaker 1: Lessen back to the vault analogy, if a bad actor
- 13:18Speaker 1: manages to get a tiny piece of malware into your
- 13:21Speaker 1: back end database, maybe through a compromise credential. Because the
- 13:25Speaker 1: default rules allow all outbound traffic, that malware can just
- 13:29Speaker 1: quietly phone home to a commanding control server, or worse,
- 13:32Speaker 1: it can bundle up your sensitive customer data and literally
- 13:35Speaker 1: expiltrate it right out the front door.
- 13:38Speaker 2: And the checkpoint guard literally waves the skull and data
- 13:41Speaker 2: through because the bottom of his clipboard says, let everything out.
- 13:45Speaker 1: So how do we fix this architectural flaw? Because we
- 13:48Speaker 1: obviously can't leave.
- 13:49Speaker 2: It like that, you must explicitly override those default usability
- 13:53Speaker 2: rules with your own strict security rules. You do this
- 13:56Speaker 2: by creating a custom deny all rule and assigning it
- 13:59Speaker 2: a priority now of say four thousand, ah, because four
- 14:02Speaker 2: thousand is a lower number than sixty five thousand. The
- 14:05Speaker 2: guard evaluates your rule first, so.
- 14:07Speaker 1: You basically drop a massive concrete barrier at priority four
- 14:10Speaker 1: thousand that says nothing leaves period. And then if your
- 14:14Speaker 1: server actually needs to, say, download a Windows update, you
- 14:18Speaker 1: write a highly specific rule at priority two hundred, poking
- 14:22Speaker 1: a tiny temporary hole just for that specific Microsoft IP address.
- 14:26Speaker 2: Exactly, you deny everything by default and force yourself to
- 14:30Speaker 2: justify every single exception. Now, the application of these checkpoints
- 14:34Speaker 2: requires some strategic thinking as well. You can apply a
- 14:38Speaker 2: network security group to an entire subnet the entrance to
- 14:41Speaker 2: the neighborhood, or you can apply it directly to a
- 14:44Speaker 2: specific virtual Machines Network interface card, the NIC, like the
- 14:49Speaker 2: smart lock on the house itself.
- 14:50Speaker 1: Oh okay, So if I have a checkpoint at the
- 14:52Speaker 1: entrance to the neighborhood and a smart lock on the
- 14:54Speaker 1: specific house, how does a traffic flow actually work? Like
- 14:58Speaker 1: who evaluates the packet?
- 15:00Speaker 2: Both checkpoints apply, but the sequence depends entirely on the
- 15:03Speaker 2: direction of the traffic. For inbound traffic coming from the
- 15:06Speaker 2: outside world, the subnet checkpoint evaluates the packet first.
- 15:09Speaker 1: Makes sense, You hit the neighborhood gate first, right.
- 15:11Speaker 2: If the neighborhood guard approves it, the packet travels to
- 15:14Speaker 2: the house, where the individual NIC checkpoint evaluates it again.
- 15:19Speaker 2: Both must explicitly allow the traffic or just gets dropped.
- 15:23Speaker 1: But for outbound traffic a server trying to phone home,
- 15:26Speaker 1: the order reverses.
- 15:27Speaker 2: The house checkpoint evaluates the outbound packet first as it
- 15:30Speaker 2: tries to lead the driveway If it passes, it travels
- 15:34Speaker 2: to the edge of the neighborhood, where the subnet checkpoint
- 15:36Speaker 2: evaluates it again before it can hit the highway.
- 15:38Speaker 1: Okay, I'm visualizing this, but I see a massive administrative
- 15:42Speaker 1: nightmare approaching rapidly. Oh. I know where you're going with this, right,
- 15:46Speaker 1: Because if I have fifty web servers in an auto
- 15:48Speaker 1: scaling group, their IP addresses are constantly changing at servers
- 15:52Speaker 1: spin up and spin down based on user demand. Writing
- 15:55Speaker 1: security rules based on raw static IP addresses saying priority
- 16:00Speaker 1: two one hundred allow IP ten point zero point two
- 16:03Speaker 1: point four. That's literally impossible to maintain.
- 16:06Speaker 2: You would spend your entire career just updating firewall rules exactly,
- 16:09Speaker 2: and this operational friction is exactly why Application security groups
- 16:13Speaker 2: or asgs were developed. They decouple your security policy from
- 16:17Speaker 2: your network topology.
- 16:18Speaker 1: So we basically stop using IP addresses entirely.
- 16:21Speaker 2: We abstract them away using labels. Application security groups act
- 16:26Speaker 2: as digital zoning permits or like passports for your virtual machines.
- 16:30Speaker 2: Let's see you have twenty web servers. Instead of tracking
- 16:33Speaker 2: twenty changing IP addresses, you assign all of them an
- 16:37Speaker 2: ASG passport labeled Web tier Okay. You take your databases
- 16:41Speaker 2: and assign them a passport labeled Data Tier.
- 16:43Speaker 1: And then the checkpoint guard just looks at the passport.
- 16:46Speaker 1: I just write a rule that says allow traffic on
- 16:48Speaker 1: port fourteen thirty three, but only if the source holds
- 16:52Speaker 1: a web Tier passport and the destination holds a data
- 16:54Speaker 1: to your passport.
- 16:55Speaker 2: That is exactly the mechanism. If a new webserver spins up. Yeah,
- 16:58Speaker 2: you just hand it the web Tier pass and it
- 17:01Speaker 2: instantly inherits all the correct security permissions, regardless of what
- 17:04Speaker 2: random IP address the DHTCP server gave it. It makes
- 17:08Speaker 2: your rules entirely human readable.
- 17:10Speaker 1: I love that. Let's put all of these concepts together
- 17:12Speaker 1: into a quick, dynamic mental walkthrough. I want you, the listener,
- 17:16Speaker 1: to really visualize building this out.
- 17:18Speaker 2: Let's do it.
- 17:18Speaker 1: Okay. Step one, we zone two neighborhoods. We put a
- 17:23Speaker 1: Windows server in our front end subnet to act as
- 17:25Speaker 1: our bastion host like a secure jump box. We put
- 17:28Speaker 1: in Abuntu Linux server deep in our back end subnet
- 17:30Speaker 1: to act as our app server.
- 17:31Speaker 2: Perfect. Next, we issue the passports. We give the Windows
- 17:35Speaker 2: machine the bastion ASG label and the Linux machine the
- 17:37Speaker 2: app server ASG label. We then attach our Network Security
- 17:41Speaker 2: Group checkpoint to both subnets.
- 17:42Speaker 1: Okay. Step two we write our rules Priority one hundred.
- 17:46Speaker 1: We say, allow remote desktop traffic which is port three
- 17:49Speaker 1: three eighty nine inbound, but only from the specific public
- 17:52Speaker 1: IP address of my personal laptop at home, and the
- 17:55Speaker 1: destination isn't an IP. The destination is the bastion ASG passport, so.
- 18:00Speaker 2: The checkpoint drops all other Internet traffic immediately. Only your
- 18:03Speaker 2: specific laptop can even see that the Bastan server exists.
- 18:06Speaker 2: Step three we write our internal rule Priority one ten.
- 18:09Speaker 2: We say allow SSH traffic port twenty two to travel
- 18:12Speaker 2: from the Bastion ASG passport directly to the app server
- 18:15Speaker 2: ASG passport.
- 18:16Speaker 1: And step four we drop the hammer. We create our
- 18:21Speaker 1: priority four thousand deny all rule for both inbound and
- 18:25Speaker 1: outbound traffic, completely overriding those dangerous default allow rules. We
- 18:30Speaker 1: apply the checkpoint and we run a test.
- 18:32Speaker 2: Let's see how the stateful filtering handles it in practice.
- 18:35Speaker 1: It's a beautiful sequence. You sit at your laptop, you
- 18:38Speaker 1: open your remote desktop client, You connect straight through the
- 18:41Speaker 1: neighborhood checkpoint into the Bastian server in the front end.
- 18:44Speaker 1: From that bashan desktop. You open a terminal and you
- 18:47Speaker 1: SSH securely into your Obuntu app server.
- 18:50Speaker 2: In the back end, and the traffic flows perfectly perfectly.
- 18:53Speaker 1: But then, to truly test the isolation, you sit in
- 18:56Speaker 1: the bastion server and try to run a basic ping
- 19:00Speaker 1: command to the app server, just a simple network.
- 19:03Speaker 2: Ping, and what happens at the checkpoint The.
- 19:04Speaker 1: Ping cimes out completely. It completely failed, which.
- 19:07Speaker 2: Proves the architecture is solid. And why did it fail?
- 19:10Speaker 2: Because your rules explicitly allowed remote desktop on port three
- 19:14Speaker 2: three eighty nine and explicitly allowed ssh on port twenty two.
- 19:19Speaker 2: A ping command uses a totally different protocol called ICMP.
- 19:24Speaker 2: Because you didn't explicitly write a rule for ICMP, that
- 19:27Speaker 2: priority four thousand deny all barrier caught the ping packet
- 19:31Speaker 2: and just destroyed it. The environment is locked down perfectly.
- 19:34Speaker 1: It is incredibly satisfying when the logic of cloud networking
- 19:37Speaker 1: just locks into place like that. Okay, we have covered
- 19:41Speaker 1: a massive amount of architectural ground today. To lock this in,
- 19:44Speaker 1: I want to pose a quick mental challenge to you,
- 19:47Speaker 1: the listener, to reinforce what we just built. A brief
- 19:50Speaker 1: architectural review exactly imagine you are deploying a new internal
- 19:55Speaker 1: company portal. You have a web server and a database.
- 19:58Speaker 1: You want to ensure the database can only accept traffic
- 20:00Speaker 1: from that specific web server. What two tools do you
- 20:03Speaker 1: combine to make those security rules dynamic, clean and easy
- 20:07Speaker 1: to read without typing out a single raw IP address?
- 20:10Speaker 2: Give them a second.
- 20:10Speaker 1: Yeah, I'll give you a second to think about the
- 20:12Speaker 1: checkpoints and the passports. The answer, You deploy subnet network
- 20:16Speaker 1: security groups your checkpoints to enforce the stateful rules, and
- 20:20Speaker 1: you use application security groups to act as the zoning
- 20:22Speaker 1: passports for your servers.
- 20:24Speaker 2: A perfect synthesis of the mechanics. And I want to
- 20:27Speaker 2: leave you with a broader concept upon or one that
- 20:30Speaker 2: extends far beyond just configuring cloud architecture.
- 20:33Speaker 1: Okay, let's hear it.
- 20:34Speaker 2: Everything we designed today, especially that Priority four thousand deny
- 20:38Speaker 2: all rule, is rooted in a critical cybersecurity philosophy called
- 20:42Speaker 2: zero trust.
- 20:43Speaker 1: Zero trust. We hear that buzzword a lot, but this
- 20:46Speaker 1: is what it actually looks like in practice.
- 20:48Speaker 2: Precisely, by using that custom deny all rule, we made
- 20:52Speaker 2: a conscious decision to trust absolutely nothing by default, not
- 20:56Speaker 2: the cloud provider's defaults, not the internal network, not even
- 20:59Speaker 2: our own virtual machines. We force the architecture to explicitly justify, document,
- 21:04Speaker 2: and permit every single connection. The network is assumed to
- 21:08Speaker 2: be hostile until mathematical proof is provided otherwise.
- 21:11Speaker 1: That is a profound shift in mindset. It really moves
- 21:14Speaker 1: you from reactive security to proactive architecture.
- 21:17Speaker 2: It does. So my question to you, the listener, is this,
- 21:21Speaker 2: how might adopting a strict zero trust mindset change the
- 21:25Speaker 2: way you approach the rest of your digital life. Think
- 21:28Speaker 2: about the code libraries you import into your projects without
- 21:31Speaker 2: reading the documentation. Think about the third party integrations you
- 21:35Speaker 2: blindly grant access to your workspace.
- 21:37Speaker 1: Oh that's a good point, right.
- 21:39Speaker 2: What if you mentally apply to Priority four thousand, deny
- 21:42Speaker 2: all role to your daily workflows, and forced every single tool,
- 21:46Speaker 2: app and permission request to explicitly justify its access.
- 21:50Speaker 1: It fundamentally changes your threat model. It's the exact difference
- 21:53Speaker 1: between hoping you are safe and engineering a genuinely secure environment.
- 21:57Speaker 1: We started this deep die of talking about building an
- 21:59Speaker 1: imped trouble digital fortress using blueprints, v nets and routing tables,
- 22:03Speaker 1: But the truth is that fortress really starts with how
- 22:06Speaker 1: you choose to view the digital world around you. Don't
- 22:09Speaker 1: trust the defaults, keep experimenting, keep building safely, and above all,
- 22:13Speaker 1: stay curious. We'll catch you on the next deep dive.