Latest / CyberCode Academy / Course 46 - CompTIA Cybersecurity Analyst | Episode 26: From Networks and Hosts to Security Analytics
Transcript
- 0:00Speaker 1: Imagine spending like $ 5 million on this state-of-the-art perimeter firewall.
- 0:06Speaker 1: You configure these incredibly complex intrusion detection systems. You lock
- 0:10Speaker 1: down every single external gateway into your corporate network.
- 0:14Speaker 2: You basically build a fortress.
- 0:15Speaker 1: Exactly, a massive digital fortress. And then the whole environment
- 0:19Speaker 1: gets completely compromised anyway. Why? Why? Because an accountant found
- 0:24Speaker 1: a $ 5 USB drive in the parking lot and just
- 0:26Speaker 1: plugged it into their workstation.
- 0:28Speaker 2: Yeah, that is a classic nightmare scenario. And it happens
- 0:31Speaker 2: all the time.
- 0:31Speaker 1: It really does. And that's why today we are doing
- 0:34Speaker 1: a deep dive into defense in depth. We're going to
- 0:37Speaker 1: look at why that old school traditional approach, you know,
- 0:40Speaker 1: building a massive impenetrable wall around your assets, why that's
- 0:44Speaker 1: basically dead.
- 0:45Speaker 2: Right, because true cybersecurity is about overlapping continuous layers of defense.
- 0:50Speaker 2: It scales all the way from the broad architecture of
- 0:52Speaker 2: your network right down to the local policies on a
- 0:56Speaker 2: single smartphone.
- 0:57Speaker 1: Yeah. And we'll also get into how security teams actually
- 1:00Speaker 1: make sense of the absolute mountain of data all those
- 1:03Speaker 1: layers generate. So by the end of this deep dive,
- 1:07Speaker 1: you are going to understand exactly why your company makes
- 1:10Speaker 1: you use multi-factor authentication, some surprising cost hacks for building networks,
- 1:16Speaker 1: and how analysts basically play detective.
- 1:19Speaker 2: It's a massive shift in mindset. Moving from a perimeter
- 1:22Speaker 2: defense to defense in depth, it really just acknowledges one
- 1:25Speaker 2: fundamental reality, which is that breaches are inevitable.
- 1:29Speaker 1: Right. It's not if, it's when.
- 1:30Speaker 2: Exactly. The objective isn't just preventing access anymore. It's about
- 1:34Speaker 2: engineering systems that assume a compromise has already occurred. How
- 1:38Speaker 2: do we restrict lateral movement, trap malicious processes, and basically
- 1:42Speaker 2: limit the blast radius once a bad actor is already inside?
- 1:46Speaker 1: Okay, let's unpack this, starting with the very first layer
- 1:48Speaker 1: of this architecture, which is the network itself. And a
- 1:51Speaker 1: huge part of this is network segmentation.
- 1:53Speaker 2: Right, segmentation. Instead of having a flat network where every
- 1:56Speaker 2: computer can just freely talk to every other computer, engineers
- 1:59Speaker 2: use routers and switches to break things up.
- 2:02Speaker 1: Like using virtual local area networks or VLANs.
- 2:05Speaker 2: Exactly. Physically and logically compartmentalize the environment into these smaller
- 2:10Speaker 2: networks isolated buckets.
- 2:12Speaker 1: So what's the immediate benefit there, just reducing the attack surface?
- 2:15Speaker 2: Yeah, that's a big part of it. If an attacker
- 2:17Speaker 2: compromises a laptop in the marketing department, segmentation means they
- 2:21Speaker 2: can't just easily pivot over to the HR database or
- 2:25Speaker 2: the engineering servers.
- 2:26Speaker 1: Right.
- 2:26Speaker 2: But honestly, the biggest driver for a lot of companies
- 2:30Speaker 2: is just managing regulatory scope. Take PCI DSS, for example,
- 2:35Speaker 2: the Payment Card Industry Data Security Standard.
- 2:37Speaker 1: Oh, man. Compliance audits. Right.
- 2:40Speaker 2: If you process credit cards on a completely flat network,
- 2:43Speaker 2: your entire infrastructure falls under PCI scope. That means the
- 2:46Speaker 2: compliance audits, the mandatory controls, the financial liability. It applies
- 2:50Speaker 2: to every single laptop and printer in the whole building.
- 2:52Speaker 1: Which is wildly expensive. The business overhead for that is
- 2:55Speaker 1: just totally unsustainable.
- 2:56Speaker 2: Exactly. So by using strict network segmentation, you can isolate
- 3:00Speaker 2: all the credit card processing stuff into its own dedicated,
- 3:04Speaker 2: highly secure VLAN.
- 3:05Speaker 1: So then only that specific subnetwork has to follow the
- 3:09Speaker 1: PCI rules.
- 3:10Speaker 2: You got it. The corporate desktops, the guest Wi-Fi, they
- 3:14Speaker 2: remain totally out of scope. It saves a massive amount
- 3:17Speaker 2: of time and money.
- 3:18Speaker 1: It's like, well, think of a submarine, right? With those
- 3:20Speaker 1: watertight bulkheads. If you get a breach in the forward
- 3:23Speaker 1: torpedo room, the whole ship doesn't immediately sink because those
- 3:27Speaker 1: physical doors contain the flooding.
- 3:29Speaker 2: That is a perfect analogy. Network segmentation provides logical bulkheads
- 3:34Speaker 2: for your data.
- 3:35Speaker 1: But how exactly do we physically create these bulkheads? I mean,
- 3:38Speaker 1: we're mostly talking about firewalls controlling the traffic between these segments, right?
- 3:42Speaker 2: Yeah, primarily firewalls. And there are generally three ways you
- 3:46Speaker 2: can architect this. The most basic design is just a
- 3:48Speaker 2: single firewall or a router with a strict access control list,
- 3:52Speaker 2: an ACL.
- 3:52Speaker 1: Right. So you have the internet connecting to a switch
- 3:55Speaker 1: with your public stuff, like your web server, which creates
- 3:57Speaker 1: your DMZ, your demilitarized zone.
- 4:00Speaker 2: Exactly. And then That single firewall sits between the DMZ
- 4:03Speaker 2: and your internal private network, just inspecting packets and dropping
- 4:07Speaker 2: anything unauthorized.
- 4:08Speaker 1: Okay, so that's the baseline. But I'm guessing bigger companies
- 4:12Speaker 1: do something more complex.
- 4:13Speaker 2: Oh, definitely. Modern environments usually upgrade to a multiple interface firewall.
- 4:18Speaker 2: This is one really powerful appliance that routes traffic between
- 4:23Speaker 2: three or more distinct zones.
- 4:25Speaker 1: Like the internet, the internal network, and the DMZ. Right.
- 4:28Speaker 2: And it applies different inspection rules to each specific interface.
- 4:32Speaker 2: You'll often hear this called a service leg DMZ because
- 4:35Speaker 2: the public servers are logically hanging off one dedicated physical
- 4:38Speaker 2: port on that central firewall.
- 4:41Speaker 1: Okay, so it consolidates everything into one box, which sounds
- 4:43Speaker 1: easy to manage, but, and here's my pushback, a high-end
- 4:48Speaker 1: enterprise-grade firewall with multiple interfaces and advanced threat licensing, that
- 4:52Speaker 1: can cost like tens of thousands of dollars, right? Wait,
- 4:55Speaker 1: so is a giant expensive firewall always better?
- 4:58Speaker 2: Not necessarily. And this is where a multi-firewall approach gets
- 5:01Speaker 2: really interesting. It's a great cost optimization strategy.
- 5:04Speaker 1: Tell me more about cost hacking this.
- 5:06Speaker 2: Well, instead of buying one massive, expensive enterprise firewall to
- 5:09Speaker 2: handle all the zones, you can actually get the exact
- 5:12Speaker 2: same level of compartmentalization using two inexpensive consumer or prosumer-grade firewalls.
- 5:20Speaker 1: Wait, really? Two cheap ones equal one expensive one?
- 5:22Speaker 2: Yeah. You put one device between the internet and the
- 5:24Speaker 2: DMZ and the second one between the DMZ and your
- 5:27Speaker 2: internal network. In a lot of ways, the security posture
- 5:30Speaker 2: is actually better. Better? How? Because an attacker now has
- 5:34Speaker 2: to compromise two entirely separate hardware devices. And if you're smart,
- 5:39Speaker 2: you buy them from different vendors so they run different
- 5:41Speaker 2: operating systems.
- 5:42Speaker 1: Oh, wow. So you decouple the financial investment from the
- 5:46Speaker 1: security capability. Two strategically placed $ 500 devices can give you
- 5:51Speaker 1: the isolation of a $ 5, 000 appliance.
- 5:54Speaker 2: Exactly. But there is a catch. This whole physical architecture
- 5:58Speaker 2: discussion assumes you actually own the hardware.
- 6:01Speaker 1: Ah, the cloud. Right.
- 6:03Speaker 2: With everyone migrating to cloud infrastructure, companies are outsourcing the
- 6:06Speaker 2: management of these segments. And this raises an important question.
- 6:09Speaker 2: Who do you actually trust?
- 6:10Speaker 1: Yeah, because the cloud introduces that shared responsibility model. Which
- 6:15Speaker 1: completely changes defense in depth.
- 6:18Speaker 2: It really does. If you're using SaaS or PS software
- 6:22Speaker 2: or platform as a service, you're relying on the provider
- 6:25Speaker 2: for almost all the lower level network security.
- 6:27Speaker 1: You literally have no visibility into their physical switches or
- 6:30Speaker 1: their core firewalls. It all just shifts to identity and
- 6:34Speaker 1: access management. Right.
- 6:35Speaker 2: Now, contract that with IaaS, infrastructure as a service, where
- 6:38Speaker 2: you're basically just renting raw virtual servers.
- 6:40Speaker 1: In that case, you usually set up a direct VPN
- 6:43Speaker 1: from your physical office to the cloud environment, right? So
- 6:46Speaker 1: to the user, it just looks like one big, seamless
- 6:48Speaker 1: internal network.
- 6:49Speaker 2: Yes. But even then, the underlying physical hardware is managed
- 6:54Speaker 2: by the provider. You might control the virtual firewall rules,
- 6:58Speaker 2: but you still have to trust that Amazon or Microsoft
- 7:00Speaker 2: has properly isolated the physical servers from their other tenants.
- 7:04Speaker 1: It's wild. But you know, this whole perimeter strategy, even
- 7:07Speaker 1: in the cloud, it falls apart the second you factor
- 7:10Speaker 1: in the actual users. Even with perfect network segmentation, it's
- 7:14Speaker 1: useless if an authenticated user runs malware on their laptop.
- 7:17Speaker 2: Humans are absolutely the biggest vulnerability. The battlefield has to
- 7:21Speaker 2: shift to host security, protecting the actual endpoints like laptops, servers, phones.
- 7:26Speaker 1: Here's where it gets really interesting. Because the sheer volume
- 7:29Speaker 1: of controls needed to protect a single laptop is staggering.
- 7:34Speaker 2: It's an entire arsenal. You start with authentication. Passwords just
- 7:37Speaker 2: aren't enough anymore. You need multi-factor authentication, MFA.
- 7:42Speaker 1: Like a smart card or a hardware token or getting
- 7:45Speaker 1: a text.
- 7:45Speaker 2: Exactly. That way, even if the hacker steals your password,
- 7:49Speaker 2: they don't have the physical token needed to finish the login.
- 7:52Speaker 2: But beyond that, the host needs local defenses.
- 7:55Speaker 1: Right, like host-based firewalls to block local traffic and intrusion
- 7:59Speaker 1: prevention systems, IPS, to monitor memory for malware.
- 8:02Speaker 2: And don't forget data loss prevention or DLP software. That's huge.
- 8:06Speaker 1: That's the stuff that scans outgoing emails and USB transfers
- 8:09Speaker 1: for like social security numbers or credit card formats, right?
- 8:12Speaker 2: Yeah, it uses regex patterns to block unauthorized data from
- 8:15Speaker 2: leaving the machine. And on top of that, highly secure
- 8:18Speaker 2: environments use application whitelisting.
- 8:20Speaker 1: Which is way stricter than standard antivirus.
- 8:24Speaker 2: Oh, way stricter. Standard AV tries to block known bad stuff.
- 8:28Speaker 2: Whitelisting says the operating system can only run programs that
- 8:31Speaker 2: the IT department has explicitly approved and cryptographically signed.
- 8:35Speaker 1: So if it's not on the list, it's blocked. Period.
- 8:37Speaker 2: Period. Even if it's totally harmless software. Plus, you have
- 8:41Speaker 2: system hardening, turning off unnecessary background services, closing unused ports,
- 8:46Speaker 2: all before the laptop ever joins the corporate domain.
- 8:49Speaker 1: OK, let's talk about the data actually sitting on these hosts.
- 8:52Speaker 1: We call it data at rest because if someone smashes
- 8:54Speaker 1: your car window and steals your unencrypted laptop, they can
- 8:57Speaker 1: just pull a hard drive out, plug it into another
- 9:00Speaker 1: computer and read everything.
- 9:01Speaker 2: Right, which is why full disk encryption is mandatory. It
- 9:05Speaker 2: uses algorithms like AES-256 to scramble the entire drive.
- 9:09Speaker 1: And without the specific decryption key, which is usually locked
- 9:12Speaker 1: in a physical TPM chip on the motherboard... The data
- 9:15Speaker 1: is basically inaccessible, right? Like, the math behind that cryptography
- 9:18Speaker 1: is unbreakable.
- 9:19Speaker 2: Mathematically, yes. With current computing power, AES-256 is effectively unbreakable.
- 9:25Speaker 1: So if the encryption is so good, are we totally safe? Well, no.
- 9:29Speaker 2: Because the flaw in cryptography is almost never the math.
- 9:33Speaker 2: It's the humans.
- 9:34Speaker 1: Right.
- 9:35Speaker 2: Think about it. If you have a highly secure server
- 9:38Speaker 2: that needs a passphrase to boot up, and 50 different
- 9:41Speaker 2: system admins all share that same passphrase... The cryptography doesn't
- 9:45Speaker 2: matter anymore.
- 9:46Speaker 1: Because the attacker doesn't need to break AES-256. They just
- 9:50Speaker 1: need to phish one admin or look under a keyboard
- 9:52Speaker 1: for a sticky note.
- 9:53Speaker 2: Exactly. Human behavior constantly undermines mathematical security. But cryptography isn't
- 10:00Speaker 2: just for keeping secrets. It's also used to verify integrity
- 10:03Speaker 2: using something called hashing. Hashing.
- 10:06Speaker 1: OK, so this is where you run a file through
- 10:08Speaker 1: an algorithm like SHA-256. And it spits out a unique
- 10:12Speaker 1: cryptographic fingerprint for that file. Right.
- 10:15Speaker 2: And because of the avalanche effect, if a hacker alters
- 10:18Speaker 2: even a single bit of data in a core system file,
- 10:20Speaker 2: the resulting hash will look completely different.
- 10:23Speaker 1: So security systems can just constantly check the hashes of
- 10:26Speaker 1: important files against a known good database. If a rootkit
- 10:29Speaker 1: tries to modify a file, boom, the hashes don't match
- 10:31Speaker 1: and an alarm goes off.
- 10:32Speaker 2: Exactly. It's an instant integrity alert.
- 10:35Speaker 1: But wait, if an IT team has like 5,000 laptops...
- 10:39Speaker 1: How on earth do they actually know that all of
- 10:41Speaker 1: them are running the right encryption, checking hashes, and updating
- 10:44Speaker 1: firewalls every single day?
- 10:46Speaker 2: They use configuration management tools, things like Microsoft SCCM.
- 10:50Speaker 1: Oh, okay, so it's automated.
- 10:51Speaker 2: Highly automated. These tools constantly ping every host on the
- 10:55Speaker 2: network to validate their software versions and security settings. And
- 11:00Speaker 2: if a laptop drifts out of compliance, the tool can
- 11:02Speaker 2: actually automatically fix it or quarantine it.
- 11:05Speaker 1: Okay, so we've got network walls, we've got host locks
- 11:08Speaker 1: on thousands of devices, but this means we are generating
- 11:11Speaker 1: just millions and millions of log files every day. Every
- 11:14Speaker 1: packet dropped, every failed login.
- 11:16Speaker 2: An overwhelming amount of telemetry, yeah.
- 11:17Speaker 1: And data is totally useless if you don't actually look
- 11:20Speaker 1: at it. Trying to manually review those logs would be
- 11:22Speaker 1: like trying to find a needle in a haystack while
- 11:24Speaker 1: the haystack is actively on fire.
- 11:26Speaker 2: It's mathematically impossible for a human team. Which brings us
- 11:29Speaker 2: to the third layer of defense in depth, the watchtower.
- 11:33Speaker 2: the automated analytical systems.
- 11:35Speaker 1: Great. The SIEMs, security information, and event management. Yep.
- 11:40Speaker 2: Platforms like Splunk or AlienVault, they ingest all those millions
- 11:44Speaker 2: of log files from every device, normalize the text, and
- 11:48Speaker 2: put it into one giant database.
- 11:50Speaker 1: So they use automated detective controls, heuristics, and threat signatures
- 11:55Speaker 1: to flag the interesting stuff for the human analysts.
- 11:58Speaker 2: Right, because the signal-to-noise ratio is otherwise way too low.
- 12:02Speaker 1: Mm-hmm.
- 12:02Speaker 2: And what's fascinating here is the data aggregation and correlation.
- 12:06Speaker 1: Oh, I love this part, connecting the dots.
- 12:08Speaker 2: Exactly. If you only look at the email server logs,
- 12:11Speaker 2: you might just see one weird login. If you only
- 12:14Speaker 2: look at the firewall logs, you see one blocked IP,
- 12:16Speaker 2: but the SIM correlates them.
- 12:18Speaker 1: So it tells you, hey, that blocked IP at the
- 12:20Speaker 1: firewall is the exact same IP that just successfully logged
- 12:24Speaker 1: into your marketing server two minutes ago.
- 12:26Speaker 2: Exactly. It connects the telemetry across different segments. And analysts
- 12:29Speaker 2: usually look at this data in two ways. Trend analysis
- 12:32Speaker 2: and historical analysis.
- 12:33Speaker 1: Okay, so trend analysis is forward-looking, right? You establish a
- 12:36Speaker 1: baseline of what normal looks like. Right.
- 12:38Speaker 2: Say a database normally sends 3 gigabits of backup data
- 12:42Speaker 2: every night. That's the baseline. But suddenly, on a Thursday afternoon,
- 12:47Speaker 2: it spikes to 11 gigabits, and it's sending it to
- 12:50Speaker 2: an unknown IP address.
- 12:52Speaker 1: The sum throws a massive red flag. Why did this grow?
- 12:55Speaker 1: Is someone stealing massive amounts of data right now? Exactly.
- 12:58Speaker 2: Exactly. It spots the anomaly while it's happening.
- 13:01Speaker 1: So that's trend analysis. It's like looking at your car's
- 13:03Speaker 1: dashboard while you're driving to see if the engine is
- 13:06Speaker 1: actively overheating.
- 13:07Speaker 2: I like that.
- 13:07Speaker 1: But historical analysis, that's like checking the dash cam footage
- 13:11Speaker 1: after you've already had a crash.
- 13:12Speaker 2: That is a perfect way to put it. Historical analysis
- 13:15Speaker 2: is looking in the rearview mirror. Say you find out
- 13:18Speaker 2: top secret company plans were leaked online. The breach already happened.
- 13:22Speaker 1: So you use the sum to pull the thread backward.
- 13:25Speaker 2: Exactly. You query months of logs to trace the exact timeline.
- 13:29Speaker 2: You find who touched the file, when they did it,
- 13:32Speaker 2: what computer they used, and where they emailed it.
- 13:34Speaker 1: You reconstruct the whole attack chain.
- 13:36Speaker 2: Right. And a true defense in-depth strategy relies on both.
- 13:40Speaker 2: The firewalls and the host policies slow the attacker down,
- 13:44Speaker 2: which generates the logs, which allows the sim to actually
- 13:47Speaker 2: catch them.
- 13:48Speaker 1: So what does this all mean? It means true security
- 13:51Speaker 1: requires continuous layering. You cannot just buy a firewall, set
- 13:55Speaker 1: it up, and walk away.
- 13:56Speaker 2: Cybersecurity is a state of continuous action. If one defensive
- 14:00Speaker 2: layer fails, the next layer has to provide enough friction
- 14:03Speaker 2: to isolate the threat.
- 14:04Speaker 1: To reinforce this, I want you, the listener, to try
- 14:07Speaker 1: a quick mental exercise. Look at the device you're using
- 14:10Speaker 1: to listen to us right now. Based on what we discussed,
- 14:13Speaker 1: try to identify two specific host security layers that are
- 14:17Speaker 1: protecting it this very second.
- 14:19Speaker 2: Is your drive encrypted? Do you have biometric authentication turned on?
- 14:22Speaker 1: Exactly. And then imagine what kind of anomalous trend your
- 14:25Speaker 1: device might send to a centralized log if it got
- 14:27Speaker 1: hacked today. Would it be a weird spike in CPU usage?
- 14:31Speaker 1: Or maybe a connection to a strange IP?
- 14:33Speaker 2: It really makes you think about how much telemetry we generate.
- 14:36Speaker 2: And honestly, it leaves us with a really tough architectural question.
- 14:39Speaker 1: Oh, lay it on me.
- 14:40Speaker 2: As our seams and machine learning models get better at
- 14:43Speaker 2: finding these threats, at what point do we fully trust
- 14:47Speaker 2: the machine to automatically isolate a host without a human
- 14:52Speaker 2: verifying it first?
- 14:53Speaker 1: Oof. Because if the machine guesses wrong and shuts down
- 14:57Speaker 1: your core production server.
- 14:58Speaker 2: Right. What happens to your company's productivity if the algorithm
- 15:01Speaker 2: produces a false positive? That balance is the next major
- 15:05Speaker 2: challenge in security design.
- 15:06Speaker 1: That is definitely something to chew on. Well, thank you
- 15:09Speaker 1: all for joining this deep dive. Keep your defenses layered,
- 15:12Speaker 1: keep your passwords strong, and we'll catch you next time.