Latest / CyberCode Academy / Course 10 - Network Security Fundamentals | Episode 3: Firewalls and Intrusion Detection/Prevention Systems (IDS/IPS)
Transcript
- 0:00Speaker 1: Welcome back to the deep Dive. Today, we are really
- 0:03Speaker 1: focusing on one of the most critical challenges in cybersecurity.
- 0:06Speaker 2: Yeah, protecting the perimeter exactly.
- 0:08Speaker 1: And it's not just about, you know, putting up a
- 0:10Speaker 1: digital fence. It's about the philosophy for that exact point
- 0:15Speaker 1: where your safe internal network meets the well, the chaos
- 0:21Speaker 1: of the public Internet.
- 0:22Speaker 2: It really is the original digital border war. I mean,
- 0:25Speaker 2: we talk a lot today about zero trust, you know,
- 0:27Speaker 2: trusting nothing even inside your network, but the perimeter is
- 0:31Speaker 2: still that primary line of defense. If you can't keep
- 0:34Speaker 2: the unknowns out, all those internal strategies become well a
- 0:37Speaker 2: lot less effective.
- 0:38Speaker 1: And when you talk about that first line of defense,
- 0:40Speaker 1: you have to start with the firewall. But I think
- 0:43Speaker 1: it's worth taking just a second to frame why it
- 0:45Speaker 1: was even needed in the first place.
- 0:47Speaker 2: Oh for sure.
- 0:48Speaker 1: I mean back in the sixty seventies, when networking was
- 0:50Speaker 1: just starting, security was physical.
- 0:52Speaker 2: It was about locks on doors, that's it. The idea
- 0:55Speaker 2: of someone electronically intruding from miles away just wasn't a concept.
- 0:58Speaker 1: Yet we were completely footed when the Internet went public.
- 1:01Speaker 2: That's the key. The threat changed overnight from who can
- 1:04Speaker 2: get in the building to who can reach my system
- 1:06Speaker 2: from anywhere? The firewall was just a necessity. It's the
- 1:10Speaker 2: traffic cop making sure only good traffic gets in or out.
- 1:13Speaker 1: Okay, let's unpack this. Then we're going to trace how
- 1:16Speaker 1: firewalls evolve, and I mean evolved rapidly. Then we'll look
- 1:20Speaker 1: at the modern next generation firewall and then see how
- 1:23Speaker 1: its own limits led us to things like intrusion detection
- 1:26Speaker 1: and prevention.
- 1:27Speaker 2: Systems, the IDs and IPS. Yeah, building that truly robust,
- 1:31Speaker 2: multi layered defense.
- 1:32Speaker 1: So when you deploy a firewall, it's that gatekeeper right
- 1:35Speaker 1: sitting right between your private network and.
- 1:37Speaker 2: Everything else right the untrusted public space. It's a vital tool,
- 1:41Speaker 2: but it's never ever enough on its own, and.
- 1:44Speaker 1: That takes us straight to this idea of defense in depth.
- 1:46Speaker 1: You can't just see the firewalls pantas. Yeah, it's not
- 1:50Speaker 1: so if an attacker gets past that first layer, what's next?
- 1:53Speaker 2: You need more layers. That's the whole philosophy. You build
- 1:55Speaker 2: in layers of defense. Some of them are even redundant,
- 1:59Speaker 2: so that when one fails, and it will fail, it
- 2:02Speaker 2: doesn't mean a total compromise.
- 2:04Speaker 1: The firewall is just one very powerful part of that strategy.
- 2:07Speaker 2: An extremely powerful part.
- 2:08Speaker 1: Yeah. So when an organization is choosing one, do they
- 2:12Speaker 1: just buy the most expensive box with the most features.
- 2:15Speaker 2: Absolutely not, that's a huge mistake. You have to do
- 2:18Speaker 2: your due diligence.
- 2:19Speaker 1: What does that mean in this context?
- 2:20Speaker 2: It means aligning the firewall with your actual security goals.
- 2:24Speaker 2: If your biggest worry is a nation state attacker trying
- 2:28Speaker 2: to steal specific research data, that's a very different problem
- 2:32Speaker 2: than say, a hospital trying to prevent general ransomware attacks.
- 2:36Speaker 1: The tool has to match the threat.
- 2:39Speaker 2: It's no negotiable.
- 2:40Speaker 1: Okay, so let's track the evolution here. It's amazing how
- 2:43Speaker 1: fast this technology changed, mostly because attackers just kept finding
- 2:47Speaker 1: ways around the last version.
- 2:48Speaker 2: It was a constant arms race.
- 2:50Speaker 1: It started with the most basic type, right packet filtering firewalls.
- 2:53Speaker 2: The first generation. Yeah, they basically just looked at the envelope.
- 2:57Speaker 2: They could see the source and destination IP addresses, the
- 3:00Speaker 2: port numbers, and that was it.
- 3:03Speaker 1: So they lacked any kind of context.
- 3:05Speaker 2: Zero context. It could block all traffic to a specific
- 3:08Speaker 2: web server port, but if it allowed a connection through,
- 3:12Speaker 2: it had no idea if that connection was legitimate or malicious.
- 3:15Speaker 1: Attackers must have blown right past.
- 3:16Speaker 2: That immediately, which led to the next major leap, really
- 3:22Speaker 2: the third generation stateful inspection.
- 3:26Speaker 1: And this was a game changer.
- 3:27Speaker 2: A total game changer. A stateful firewall remembers the context
- 3:31Speaker 2: of the conversation. It knows who started it.
- 3:34Speaker 1: So if I, from inside the network ask for.
- 3:37Speaker 2: A web page, the firewall remembers that request, and when
- 3:40Speaker 2: the wood page traffic comes back, it says, ah, I
- 3:42Speaker 2: was expecting you, and let's it through.
- 3:44Speaker 1: Which means an attacker can't just send random data to
- 3:47Speaker 1: an open port anymore exactly.
- 3:48Speaker 2: It forces them to get much more sophisticated.
- 3:50Speaker 1: And then eventually we move all the way up the
- 3:52Speaker 1: stack to layer seven with the application level firewall.
- 3:55Speaker 2: Right filtering based on the specific service. But they were complex.
- 3:58Speaker 2: You often needed a whole separate system for each application.
- 4:01Speaker 1: That sounds like a management nightmare.
- 4:03Speaker 2: It was, and that complexity is really what drove the
- 4:06Speaker 2: market to where we are today with the next generation firewall,
- 4:09Speaker 2: the NNGFW.
- 4:11Speaker 1: What's so fascinating here is that the NGFW isn't just
- 4:13Speaker 1: another step. It's more of a consolidation.
- 4:16Speaker 2: That's a perfect way to put it. It takes all
- 4:18Speaker 2: those previous features packet filtering, stateful inspection, and then adds
- 4:22Speaker 2: in a whole suite of new.
- 4:24Speaker 1: Tools like built in IDs and IPS, anti malware, and.
- 4:28Speaker 2: The really big one, Deep packet inspection or DPI.
- 4:32Speaker 1: Okay, let's talk about DPI. This is where the firewall
- 4:35Speaker 1: stops looking at just the envelope and actually opens it
- 4:38Speaker 1: up to read the letter inside.
- 4:39Speaker 2: Right precisely, it analyzes the content, the actual payload inside
- 4:43Speaker 2: the packet, and coupled with another feature the TLS proxy,
- 4:47Speaker 2: it can even do that for encrypted traffic.
- 4:49Speaker 1: Wait, it can decrict secure traffic, inspect it, and then
- 4:52Speaker 1: re encrypt it YEP.
- 4:53Speaker 2: Which gives administrators incredible visibility.
- 4:56Speaker 1: But I have to imagine there's a huge trade off here.
- 4:59Speaker 1: All that inspection, especially decryption, that has to create a
- 5:03Speaker 1: massive performance bottleneck, doesn't it?
- 5:04Speaker 2: It does, and that is the central strategic question every
- 5:08Speaker 2: single organization has to answer.
- 5:09Speaker 1: Is the visibility worth the speed hit?
- 5:12Speaker 2: Exactly? You gain this crucial ability to spot malware hiding
- 5:16Speaker 2: and encrypted channels, which is fantastic for security, but the
- 5:19Speaker 2: processing overhead is huge. You have to buy a hardware
- 5:22Speaker 2: that can handle that load, or you risk grinding your
- 5:25Speaker 2: network to a halt.
- 5:26Speaker 1: Okay, so the firewall is our gatekeeper, our first line
- 5:29Speaker 1: of defense. But even the best NGNGFW is still just
- 5:33Speaker 1: following rules it blocks or allows.
- 5:36Speaker 2: It's fundamentally reactive.
- 5:37Speaker 1: Yes, we need something that's actively looking at the traffic
- 5:40Speaker 1: that does get through that gate, and that brings us
- 5:43Speaker 1: to detection and prevention exactly.
- 5:45Speaker 2: The firewall is necessary, but it's not sufficient. That's where
- 5:49Speaker 2: an IDs comes in. An intrusion detection system.
- 5:52Speaker 1: So what's its job.
- 5:53Speaker 2: Its job is to scan from malicious traffic the firewall
- 5:56Speaker 2: might have missed or that it allowed based on its rules.
- 6:00Speaker 2: But and this is key, it's designed to be purely.
- 6:02Speaker 1: Passive, meaning it just tells you there's a problem.
- 6:05Speaker 2: It sends an alert, an email, a text, a pop
- 6:08Speaker 2: up on a monitoring screen. An administrator then has to
- 6:10Speaker 2: see that alert, investigate and decide what.
- 6:12Speaker 1: To do, which I imagine could take time, too.
- 6:15Speaker 2: Much time in many cases. And that's the natural evolution
- 6:18Speaker 2: to the IPS, the intrusion prevention system. It turns passive
- 6:21Speaker 2: detection into active defense.
- 6:23Speaker 1: So an IPS doesn't just send an alert, it does something.
- 6:27Speaker 2: Yes, it can take direct automated action on the network.
- 6:30Speaker 2: For example, well, let's say a botanet starts a DDAs
- 6:34Speaker 2: attack against one of your servers with a flood of
- 6:37Speaker 2: ICMP traffic. An IPS can see that happening and instantly
- 6:41Speaker 2: shut down the compromise port or block that specific type
- 6:44Speaker 2: of traffic. It mitigates the damage in real time, no
- 6:48Speaker 2: human intervention needed.
- 6:49Speaker 1: Okay, that automated response sounds like the perfect solution. Ye,
- 6:52Speaker 1: but I've heard it called a double edged sword. What's
- 6:55Speaker 1: the risk here?
- 6:56Speaker 2: The risk is all in the configuration. If your sensitivity
- 6:59Speaker 2: thresholder set too high, or the rules are just misconfigured,
- 7:03Speaker 2: an attacker can sometimes turn the IPS against you.
- 7:05Speaker 1: How'd that work?
- 7:06Speaker 2: Imagine an attacker discovers that sending a very specific, slightly
- 7:10Speaker 2: malformed packet will trigger your IPS to shut down a critical.
- 7:14Speaker 1: Port like the port for your company's main website.
- 7:17Speaker 2: Exactly. They can effectively weaponize your own defense system to
- 7:22Speaker 2: launch a denial of service attack against you. It's why
- 7:25Speaker 2: following manufacturer best practices isn't just a suggestion.
- 7:28Speaker 1: It's critical and managing these complex systems is a huge job,
- 7:32Speaker 1: especially for smaller teams, which is leading a lot of
- 7:35Speaker 1: them to security as a service success.
- 7:37Speaker 2: It's very common you basically outsource the management of your
- 7:41Speaker 2: IDs and IPS to a cloud provider. It gives smaller
- 7:44Speaker 2: companies access to world class expertise they couldn't afford to hire.
- 7:48Speaker 1: But when you outsource, you're creating a dependency. You need
- 7:52Speaker 1: strong service level agreements the SLAS.
- 7:54Speaker 2: Of course, absolutely, with financial penalties if possible.
- 7:58Speaker 1: But how do you make sure your own internal TA
- 8:00Speaker 1: doesn't lose all their skills? I mean, what if that
- 8:02Speaker 1: provider relationship ends. You don't want to be left completely helpless.
- 8:06Speaker 2: That is a major strategic risk you have to manage.
- 8:09Speaker 2: You have to insist on read only access to their
- 8:11Speaker 2: monitoring tools. You need regular detailed reports. You basically ensure
- 8:15Speaker 2: knowledge transfer is part of the contract so your own
- 8:18Speaker 2: team's expertise doesn't just fade away.
- 8:20Speaker 1: Okay, so let's connect this to the bigger picture architecture. Yeah,
- 8:24Speaker 1: how do you decide where to even put these systems?
- 8:27Speaker 1: You've got host based versus network.
- 8:29Speaker 2: Based correct, So HIDS or hips that's host based is
- 8:34Speaker 2: all about protecting one single system, like a supercritical server
- 8:38Speaker 2: exactly your main database server that holds all the confidential
- 8:42Speaker 2: client data. You put HIPS on that specific machine. It's
- 8:46Speaker 2: expensive because you're licensing it per system, but for your
- 8:49Speaker 2: crown jewels, it's worth it.
- 8:51Speaker 1: And the alternative is NIDS or NIPS network.
- 8:54Speaker 2: Based right, and that's about protecting the network holistically. It's
- 8:57Speaker 2: looking at general traffic. It's monitoring raw and switches and
- 9:01Speaker 2: sending all that data to a central log monitor. It's
- 9:04Speaker 2: cheaper and it gives you that broad general protection.
- 9:07Speaker 1: So you do a risk assessment to figure out where
- 9:09Speaker 1: you need that concentrated, more expensive host based protection.
- 9:12Speaker 2: Always you put your strongest defenses where your most valuable
- 9:15Speaker 2: assets are.
- 9:17Speaker 1: Finally, let's get into how these systems actually find threats.
- 9:20Speaker 1: The detection methods. They're two main flavors, right, signature based
- 9:24Speaker 1: and heuristics based yep.
- 9:26Speaker 2: And most modern systems will actually try to use a
- 9:28Speaker 2: combination of both.
- 9:29Speaker 1: So what's signature based?
- 9:31Speaker 2: Signature base is like having a database of criminal mugshots.
- 9:34Speaker 2: It uses patterns or signatures from known malware and known attacks.
- 9:40Speaker 2: It compares all the traffic against that database, and if
- 9:42Speaker 2: it finds a match, it blocks it.
- 9:44Speaker 1: It's fast, it's efficient, but it can only catch things
- 9:48Speaker 1: it already knows about.
- 9:49Speaker 2: Precisely, it can only catch known criminals. It has no
- 9:52Speaker 2: way of stopping a brand new attack.
- 9:54Speaker 1: And that is where heuristics comes in.
- 9:56Speaker 2: Exactly. A heuristics based system isn't looking for known threat yet,
- 10:00Speaker 2: it's looking for anomalist behavior.
- 10:03Speaker 1: How does it know it's anomalous.
- 10:04Speaker 2: You have to establish a baseline first. You let the
- 10:07Speaker 2: system watch your network during normal operation to learn what
- 10:10Speaker 2: normal looks like. Then it uses machine learning to compare
- 10:14Speaker 2: current traffic against that baseline.
- 10:15Speaker 1: So if something deviates too far from normal.
- 10:18Speaker 2: It flags it as a potential threat, even if it's
- 10:20Speaker 2: a piece of malware that has never been seen before.
- 10:23Speaker 2: That's how you get protection against those brand new zero
- 10:26Speaker 2: day attacks.
- 10:26Speaker 1: The trade off I assume is false positives.
- 10:29Speaker 2: A lot more false positives, yeah, because you're flagging unusual behavior,
- 10:32Speaker 2: not a specific piece of code. So it creates more
- 10:35Speaker 2: work for your security team to investigate those alerts. But
- 10:38Speaker 2: that capability is absolutely essential today.
- 10:41Speaker 1: So this deep dive has really shown that we've had
- 10:43Speaker 1: to move so far beyond simple filters. A modern perimeter
- 10:47Speaker 1: needs that defense in depth strategy. You need the NNGFW
- 10:51Speaker 1: doing the heavy lifting on filtering, but then you need
- 10:54Speaker 1: that integrated IDs and IPS providing real time detection and prevention.
- 10:59Speaker 2: And it has to be based on a mix of
- 11:01Speaker 2: those known signatures and the behavioral heuristics you need.
- 11:04Speaker 1: Both, and that strategic alignment is everything, isn't it.
- 11:07Speaker 2: At the end of the day, That's what it all
- 11:09Speaker 2: comes down to. Every choice, whether to take the performance
- 11:12Speaker 2: hit for DPI, whether to use host based or network
- 11:14Speaker 2: based systems, your detection style, it all has to flow
- 11:17Speaker 2: directly from the unique risks and threats your organization actually faces.
- 11:21Speaker 1: That leaves us with one final thought for you to consider.
- 11:24Speaker 1: Imagine a massive coordinated botnet attack. It's leveraging a brand new,
- 11:28Speaker 1: never before seeing vulnerability. No security company in the world
- 11:32Speaker 1: has a signature for it. Yet which detection style, signature
- 11:35Speaker 1: based or heuristics based, would be more likely to successfully
- 11:38Speaker 1: mitigate that initial threat? And why that's your homework. Thanks
- 11:42Speaker 1: for joining us.