Latest / CyberCode Academy / Course 10 - Network Security Fundamentals | Episode 7: Implementing Defense in Depth, Data Integrity, and Zero Trust
Transcript
- 0:00Speaker 1: Network security is a deeply unequal fight. I mean, think
- 0:03Speaker 1: about it. An attacker, the offense only needs to find
- 0:06Speaker 1: one tiny, perfect crack in the system to succeed, just one.
- 0:11Speaker 1: But the defender, the defense has to be perfect everywhere,
- 0:14Speaker 1: all the time. If you have I don't know, ten
- 0:17Speaker 1: thousand potential access points, you need ten thousand perfect defenses.
- 0:22Speaker 2: That's an impossible standard, it really is. It is, and
- 0:26Speaker 2: that imbalance is exactly why relying on a single firewall
- 0:29Speaker 2: or a single line of defense is just a recipe
- 0:32Speaker 2: for disaster. So if you want to stack the deck
- 0:35Speaker 2: in your favor, you have to move past specific security
- 0:37Speaker 2: tools and start thinking about the overarching principles, the policy,
- 0:40Speaker 2: the architecture.
- 0:41Speaker 1: And that's our mission for this deep dive. We're getting
- 0:43Speaker 1: into the core strategies that secure any environment, no matter
- 0:46Speaker 1: what brand of equipment you're.
- 0:47Speaker 2: Using, exactly. And the very first principle, the one that
- 0:50Speaker 2: governs a truly resilient defense, is this idea that nothing
- 0:54Speaker 2: should ever rely on just one single security control.
- 0:57Speaker 1: We're talking about layering them up using multiple overlapping controls.
- 1:01Speaker 2: We are. It's a concept known pretty universally as defense
- 1:06Speaker 2: in depth.
- 1:06Speaker 1: It faints in depth.
- 1:08Speaker 2: It's the foundational strategy. The core idea is actually pretty simple.
- 1:12Speaker 2: An attacker has to bypass several distinct security controls in
- 1:16Speaker 2: a specific order to get to your critical data.
- 1:19Speaker 1: So when they succeed against one layer.
- 1:21Speaker 2: They immediately run into the next. It's like building a
- 1:24Speaker 2: castle with concentric walls.
- 1:25Speaker 1: Okay, let's visualize those layers. Then that's starting from the outside.
- 1:28Speaker 1: You don't actually start with technology, do you. You start with people.
- 1:31Speaker 2: You have to so at the very top you have
- 1:34Speaker 2: your administrative controls.
- 1:35Speaker 1: So policies, procedures.
- 1:37Speaker 2: And crucially, user awareness training because the human element is
- 1:41Speaker 2: almost always the easiest target.
- 1:43Speaker 1: Okay, So if an administrative policy fails, the attacker then
- 1:46Speaker 1: moves down to the real world, to the.
- 1:48Speaker 2: Physical controls think locks, fences, motion detectors, CCTV cameras, all
- 1:53Speaker 2: the stuff protecting the server room itself.
- 1:56Speaker 1: Then the moment they hit the internet connection, they face
- 1:59Speaker 1: the digital realm, starting with the perimeter controls.
- 2:03Speaker 2: Your main firewalls guarding the network. Itch. If they manage
- 2:08Speaker 2: to get past that, they land inside the network. But
- 2:11Speaker 2: they're not done, not even close. Now they're facing the
- 2:13Speaker 2: internal network defenses. And then finally they have to get
- 2:17Speaker 2: past the host and application defenses, so protecting the actual
- 2:21Speaker 2: endpoint or the software itself.
- 2:23Speaker 1: All of that before they can even touch the database.
- 2:25Speaker 2: The whole goal is just to mitigate the damage. You
- 2:27Speaker 2: have to assume any single attack will eventually succeed.
- 2:30Speaker 1: You know, this is where we need a key insight.
- 2:31Speaker 1: You mentioned concentric walls, but we have to make sure
- 2:34Speaker 1: those walls are actually real.
- 2:36Speaker 2: Yes.
- 2:36Speaker 1: The security expert Bruce Schneier has written a ton about
- 2:40Speaker 1: the danger of security theater right controls that look secure
- 2:44Speaker 1: but are actually, you know, really easy to bypass.
- 2:47Speaker 2: And that is the nuance that separates a functional security
- 2:50Speaker 2: team from a tick box compliance team. You can say
- 2:54Speaker 2: you have five layers, but if they all rely on
- 2:56Speaker 2: the same outdated password, you really only have one layer.
- 3:00Speaker 1: Let's unpack this a bit more. If defense and depth
- 3:02Speaker 1: is about layering your defenses from the outside in, then
- 3:06Speaker 1: zero trust networking is about enforcing what absolute perpetual suspicion
- 3:11Speaker 1: once the attacker is already inside.
- 3:12Speaker 2: It's a massive psychological shift. The old model is that castle.
- 3:16Speaker 2: You know, Yeah, once you got past the mote, you
- 3:18Speaker 2: were trusted.
- 3:18Speaker 1: Right, You're in.
- 3:19Speaker 2: Zero trust assumes the attackers already inside. You do not
- 3:22Speaker 2: trust any user, any device, or any internal connection by default.
- 3:27Speaker 2: The catchphrase here is never trust, always verify.
- 3:31Speaker 1: That sounds incredibly stringent. I mean, how do you actually
- 3:34Speaker 1: enforce that kind of skepticism across thousands of devices and users.
- 3:38Speaker 2: It relies heavily on strict identity and access management principles,
- 3:42Speaker 2: specifically what we call triple A authentication, authorization, and accountant
- 3:47Speaker 2: or auditing.
- 3:48Speaker 1: Okay, break that down.
- 3:49Speaker 2: Sure. Authentication proves who you are, Authorization determines exactly what
- 3:52Speaker 2: resources you are allowed to touch, and accounting logs every
- 3:57Speaker 2: single action you take, every move has to be checked.
- 3:59Speaker 1: So they're not just focus on protecting the main gate anymore.
- 4:01Speaker 1: You're focusing security around the most valuable thing Exactly.
- 4:04Speaker 2: You identify what's called the protect surface, the data, the assets,
- 4:07Speaker 2: the applications that matter most, and you draw a really
- 4:10Speaker 2: strict perimeter around that.
- 4:12Speaker 1: And the key mechanism to enforce that is network segmentation.
- 4:16Speaker 2: That's it.
- 4:16Speaker 1: Can you explain network segmentation for someone who isn't a
- 4:21Speaker 1: deep network engineer.
- 4:22Speaker 2: Certainly think of your network like a big open plan
- 4:26Speaker 2: office segmentation is like building small, locked internal rooms for
- 4:31Speaker 2: different departments Okay, we use technologies like VLANs or subnets
- 4:35Speaker 2: to do it. So someone in sales opens the malware attachment,
- 4:39Speaker 2: the infection is trapped in the sales room. It can't
- 4:41Speaker 2: just jump across the hall to finance where the crickled
- 4:44Speaker 2: data is.
- 4:44Speaker 1: So isolation is key.
- 4:45Speaker 2: Isolation is everything.
- 4:47Speaker 1: But I have to ask, if you have to check
- 4:49Speaker 1: and verify every single interaction, doesn't that create like crippling
- 4:54Speaker 1: performance issues. Doesn't it slow down legitimate work that must
- 4:58Speaker 1: cost a furtuin.
- 4:59Speaker 2: And that is the constantention in security right usability versus protection.
- 5:03Speaker 2: Implementing zero trust it does require a substantial investment in
- 5:07Speaker 2: tech and architecture, but the cost of not doing it
- 5:10Speaker 2: a potential data breach that far outweighs the operational overhead.
- 5:14Speaker 2: It shifts your risk from catastrophic failure to manageable isolation.
- 5:18Speaker 1: Okay, so we've got the architecture down. Now we need
- 5:20Speaker 1: to pivot to what we're ultimately protecting the data itself
- 5:25Speaker 1: across its entire life cycle. We're talking about integrity and availability, and.
- 5:29Speaker 2: Backup policies are absolutely critical here. We often think of
- 5:32Speaker 2: backups as just protection against a system failure.
- 5:36Speaker 1: For availability, sure, get the server back online.
- 5:38Speaker 2: But they are just as important for integrity, making sure
- 5:42Speaker 2: that if data is maliciously manipulated or say encrypted by ransomware,
- 5:46Speaker 2: we can restore a guaranteed clean version.
- 5:49Speaker 1: And when you're making that policy, you have to consider
- 5:51Speaker 1: the data life cycle. How long does this information actually
- 5:54Speaker 1: need to live. That's not always a technical question, is
- 5:56Speaker 1: it not at all?
- 5:57Speaker 2: It's often legal or regulatory. For instance, in finance, regulations
- 6:01Speaker 2: often require investment firms to keep everything emails, instant messages
- 6:05Speaker 2: for seven years or more.
- 6:07Speaker 1: That whole process is sometimes called archiving right exactly.
- 6:10Speaker 2: Your policies have to align perfectly with those compliance rules.
- 6:13Speaker 1: And when you're choosing the storage media for those archives,
- 6:17Speaker 1: you have to pick something that's actually going to last.
- 6:20Speaker 1: You can't use something that might be obsolete in a decade.
- 6:23Speaker 2: That's a great point. You need reliable, accessible media for
- 6:28Speaker 2: the entire retention period, and best practices demand redundancy. You
- 6:33Speaker 2: have to store data on multiple devices, and you have
- 6:36Speaker 2: to account for data growth, and you.
- 6:37Speaker 1: Need redundancy in location too, both on site and off
- 6:40Speaker 1: site backups.
- 6:41Speaker 2: Yes, on site gives you the fastest possible recovery time,
- 6:45Speaker 2: but if a disaster hits your building, a fire, a flood,
- 6:48Speaker 2: that off site backup is the only thing that ensures
- 6:51Speaker 2: your data is still available.
- 6:52Speaker 1: They're necessary companions absolutely so. Speaking of protecting data, if
- 6:57Speaker 1: we're backing up confidential information, it needs to be protected
- 6:59Speaker 1: while it's just sitting there on a drive. How do
- 7:03Speaker 1: we secure data at rest?
- 7:05Speaker 2: We have to use strong symmetric encryption. We apply high
- 7:08Speaker 2: level algorithms like AES to make sure that even if
- 7:11Speaker 2: someone physically steals the storage media, that data is just
- 7:15Speaker 2: useless without the key.
- 7:16Speaker 1: And then when the data is finally obsolete, our retention
- 7:20Speaker 1: period is over. Simply hitting delete just doesn't cut it,
- 7:23Speaker 1: does it?
- 7:24Speaker 2: Absolutely not. Proper sanitization of media is vital. Deleting data,
- 7:28Speaker 2: even overwriting it with zeros often leaves forensic traces that
- 7:32Speaker 2: can still be retrieved.
- 7:33Speaker 1: So for really sensitive data you.
- 7:35Speaker 2: Have to use proper physical destruction or specialized wiping processes
- 7:39Speaker 2: that make recovery totally impossible.
- 7:41Speaker 1: All right, let's talk about data that's in constant motion.
- 7:44Speaker 1: We've protected the information that's sitting still. Now we have
- 7:47Speaker 1: to secure our real time communication channels like voice and email.
- 7:51Speaker 2: Securing voice, specifically voiceover IP or VoIP introduces some really
- 7:56Speaker 2: specialized thread actors. Historically we have.
- 7:59Speaker 1: The freaker freaker like a hacker for phones.
- 8:01Speaker 2: Pretty much yeah, the phone system hacker and today VOYP
- 8:05Speaker 2: traffic itself is vulnerable to sniffing and man in the
- 8:07Speaker 2: middle attacks unless it's encrypted.
- 8:09Speaker 1: And the social engineering element here is huge with something
- 8:12Speaker 1: called phishing.
- 8:13Speaker 2: Oh, fishing or voice phishing is rampant. We all get those.
- 8:17Speaker 1: Called fake IRS calls.
- 8:19Speaker 2: Right often with spoofed phone numbers. They rely entirely on
- 8:22Speaker 2: social engineering, on manipulating users to get confidential information.
- 8:27Speaker 1: So what are the immediate defensive measures for a voice network?
- 8:30Speaker 2: First configuration, reduce the attack surface, disable all the features
- 8:35Speaker 2: you don't need, and immediately change all default passwords. And
- 8:38Speaker 2: second structure. That network segmentation we talked about is essential
- 8:42Speaker 2: here too. Put your phone system and VoIP devices on
- 8:45Speaker 2: their own isolated network segment a dedicated VLAN.
- 8:49Speaker 1: I know that governments are trying to fight back against
- 8:51Speaker 1: this whole number spoofing problem at a structural level.
- 8:54Speaker 2: They are. In the US, the FCC has an initiative
- 8:57Speaker 2: called Shaken and Stirred.
- 8:59Speaker 1: Shaken and stir I like it.
- 9:00Speaker 2: It's working to use public key infrastructure, so asymmetric cryptography
- 9:05Speaker 2: to digitally sign and verify the source of caller ID numbers.
- 9:09Speaker 1: Which should make things a lot more trustworthy over time.
- 9:13Speaker 2: It should, but until then, user awareness training is your
- 9:16Speaker 2: strongest defense, along with telling your mobile users to use
- 9:19Speaker 2: encrypted apps for sensitive calls.
- 9:22Speaker 1: Okay, let's pivot to email. Maybe the most common, yet
- 9:26Speaker 1: historically the least secure channel. It's wild to think that
- 9:30Speaker 1: until recently, so much of it was sent completely unencrypted, basically.
- 9:34Speaker 2: In plaintext, and email contains a company's most vital information. Thankfully,
- 9:40Speaker 2: modern encryption is pretty standard now.
- 9:42Speaker 1: There are two main methods, right yep.
- 9:43Speaker 2: The first is PGP or Pretty Good Privacy. It's an
- 9:47Speaker 2: asymmetric system invented by the cryptographer of Phil Zimmerman. It
- 9:51Speaker 2: actually got him in trouble with US export laws back
- 9:53Speaker 2: when encryption was classified as munitions. And the more mainstream
- 9:57Speaker 2: option that would be CESS, which is used by popular
- 10:00Speaker 2: clients like Outlook and Gmail. But crucially, companies also deploy
- 10:04Speaker 2: automated server side measures like opportunistic TLS.
- 10:08Speaker 1: What does opportunistic mean for email encryption?
- 10:11Speaker 2: It just means the email gateway tries to establish a
- 10:13Speaker 2: secure connection using TLS whenever it sends an email. If
- 10:16Speaker 2: the receiving server supports it, great, the email is sent encrypted,
- 10:19Speaker 2: and if it doesn't, then the system falls back to
- 10:22Speaker 2: plain text. But the system always prioritizes encryption whenever it's possible,
- 10:27Speaker 2: and we.
- 10:27Speaker 1: Can't forget email is still the number one way malware
- 10:30Speaker 1: and phishing attacks get in.
- 10:31Speaker 2: Absolutely so a robust anti spam and anti phishing system
- 10:36Speaker 2: is a must have. A lot of them use sophisticated
- 10:39Speaker 2: methods like Bayesian filtering to intelligently quarantine suspicious.
- 10:44Speaker 1: Messages, and you have to pair that tech with training
- 10:47Speaker 1: you do.
- 10:48Speaker 2: Systems that run phishing simulations, for example, are vital for
- 10:51Speaker 2: training users to spot these attacks before they click. And
- 10:54Speaker 2: on top of that, deploying something called SPF or sender
- 10:58Speaker 2: policy framework helps make sure that incoming messages are actually
- 11:01Speaker 2: from who they say they're from.
- 11:03Speaker 1: So what does this all mean? Then we've covered this
- 11:05Speaker 1: crucial architectural shift that has to happen in modern defense.
- 11:09Speaker 1: You have to move from trusting your internal network to
- 11:11Speaker 1: a layered architecture defense in depth combined with that perpetual
- 11:15Speaker 1: skepticism enforced by zero trust principles.
- 11:18Speaker 2: That's the framework, and then we applied operational principles to
- 11:22Speaker 2: the data itself, ensuring integrity and availability through policy driven backups,
- 11:27Speaker 2: strong encryption, and proper media sanitation.
- 11:30Speaker 1: And it has to be applied everywhere.
- 11:32Speaker 2: Across every channel, from voice to email. It's about policy first,
- 11:35Speaker 2: technology second. The critical question you have to constantly ask
- 11:39Speaker 2: is if this one layer fails, what's the next barrier?
- 11:43Speaker 1: That is the ultimate test of resilience. So to make
- 11:46Speaker 1: sure you've really absorbed these core ideas, consider this scenario.
- 11:50Speaker 1: If a malicious insider who has already successfully logged into
- 11:53Speaker 1: your network and bypassed your main firewall, tries to access
- 11:56Speaker 1: a highly restricted database, which principle is zero trust networking
- 12:00Speaker 1: is specifically designed to stop them, and what mechanism enforces it.
- 12:03Speaker 1: Think about the three a's and that concept of internal
- 12:06Speaker 1: isolation as you implement your next security update.