Latest / CyberSecurity Summary / Mastering Linux Security and Hardening: Protect your Linux systems from intruders, malware attacks, and other cyber threats
Transcript
- 0:00Speaker 1: Okay, let's unpack this Linux thing. I mean, it's absolutely everywhere,
- 0:03Speaker 1: isn't it.
- 0:03Speaker 2: It really is your.
- 0:04Speaker 1: Phone, those huge data centers basically running the Internet. It's
- 0:09Speaker 1: kind of the silent backbone, the workhorse. But yeah, with
- 0:12Speaker 1: that power comes responsibility and well, vulnerability if you're not careful,
- 0:16Speaker 1: right exactly, So today we're taking a deep dive. We're
- 0:19Speaker 1: getting into Linux security and hardening.
- 0:22Speaker 2: We are, and you know, there's this common idea, maybe
- 0:25Speaker 2: a bit dangerous, that Linux is just secure out of
- 0:28Speaker 2: the box. Yeah, I had that a lot, but it's
- 0:30Speaker 2: it's really a misconception. An untouched Linux system often not
- 0:34Speaker 2: secure enough for the real world. Our guide today is
- 0:38Speaker 2: mostly from Mastering Linux Security and Hardening, second edition by
- 0:42Speaker 2: Donald da Tavault. It's pretty comprehensive its source definitely, and
- 0:46Speaker 2: our mission here is to pull out those key bits
- 0:48Speaker 2: of knowledge. We want you to get not just what
- 0:50Speaker 2: makes Linux secure, but why it matters and you know
- 0:53Speaker 2: how you can actually do it.
- 0:54Speaker 1: Think of this as your shortcut, maybe getting you up
- 0:57Speaker 1: to speed on something super critical with hopefully some surprising
- 1:01Speaker 1: facts and useful takeaways.
- 1:03Speaker 2: Let's get into it.
- 1:04Speaker 1: Okay, So first things first, security breaches on Linux. We
- 1:09Speaker 1: often picture like these super skilled hackers in dark rooms, right,
- 1:14Speaker 1: but it's not always like that. Why do they happen?
- 1:16Speaker 2: Yeah, you've hit on a really key point there. Sure
- 1:19Speaker 2: sophisticated attacks exist, but honestly a lot of breaches, maybe
- 1:25Speaker 2: even most boiled down to stuff that's preventable, like what well,
- 1:29Speaker 2: security bugs in the OS, or apps that just haven't
- 1:31Speaker 2: been patched, or and this is huge, admin's just not
- 1:35Speaker 2: applying updates quickly enough.
- 1:37Speaker 1: Ah, procrastination the enemy of security.
- 1:39Speaker 2: It can be. But another massive one, often overlooked, is
- 1:43Speaker 2: just poorly configured servers. You know, standard install often pretty
- 1:47Speaker 2: insecure by default, really out of the box. Yeah, and
- 1:50Speaker 2: this isn't just servers anymore. Think about IoT devices, so
- 1:53Speaker 2: many red Linux and they get deployed without proper security checks.
- 1:56Speaker 2: It's creating a huge attack surface.
- 1:59Speaker 1: Wow, poor configured servers, that's a big takeaway right there.
- 2:02Speaker 1: It's not just about fighting off attackers, but building the
- 2:04Speaker 1: defenses right from the.
- 2:05Speaker 2: Start, exactly the fundamentals.
- 2:07Speaker 1: So if they're often insecure initially, how do we even
- 2:11Speaker 1: start practicing hardening? I mean, you don't want to experiment
- 2:15Speaker 1: on a live server, right? That sounds bad?
- 2:16Speaker 2: Oh? You definitely don't want to do that, and that
- 2:18Speaker 2: means is a super important question. How do you practice safely?
- 2:22Speaker 1: Yeah?
- 2:22Speaker 2: Virtual machines vms are absolutely fantastic for this. Tools like
- 2:27Speaker 2: virtual Box. They let you run a whole Linux sous
- 2:30Speaker 2: inside your current one. It's a sandbox, fullly isolated, totally isolated.
- 2:34Speaker 2: If you mess it up, if you completely trash it
- 2:36Speaker 2: while learning, yeah, no harm done, just delete it start again. Yeah,
- 2:39Speaker 2: and it lets you simulate different setups too. Physical virtual
- 2:43Speaker 2: cloud each has slightly different security things to think about.
- 2:46Speaker 1: Builds that muscle memory without the risk. Okay, good tip.
- 2:49Speaker 1: And related to that, maybe the most basic thing but
- 2:53Speaker 1: often missed. Staying updated seems like a no brainer.
- 2:57Speaker 2: It does seem obvious, doesn't it. But timely updates are
- 3:00Speaker 2: absolutely critical. It's often your very first line of defense
- 3:02Speaker 2: against known exploits.
- 3:03Speaker 1: So how do we handle that on Linux?
- 3:05Speaker 2: Well, for Aubuntu, you can set up automatic updates. For
- 3:08Speaker 2: red Hat CentOS, there's D and F automatic does a
- 3:11Speaker 2: similar job. Easy enough, but there's a catch. It's a
- 3:14Speaker 2: bit of a balancing act. Automatic updates are convenient, sure,
- 3:17Speaker 2: but often you need a reboot for the changes, especially
- 3:20Speaker 2: kernel updates, to actually take effect the dreaded reboot exactly.
- 3:25Speaker 2: So you need to decide what works for your setup.
- 3:27Speaker 2: A home lab reboot, whenever a critical production server. You
- 3:31Speaker 2: need to plan that carefully. Just remember that saying, you know,
- 3:34Speaker 2: the only one hundred percent secure system is one that's
- 3:36Speaker 2: turned off and unplugged. Updates get you closer while keeping
- 3:39Speaker 2: the lights.
- 3:40Speaker 1: On right, manage the risk. Okay, so system patched, we're
- 3:43Speaker 1: practicing safely. What's next? Who gets in user accounts, especially
- 3:48Speaker 1: that all powerful route user. What's the deal there? Bad
- 3:51Speaker 1: idea to use it all the time?
- 3:52Speaker 2: Oh? Absolutely bad idea. Logging in is root for everyday stuff.
- 3:56Speaker 2: You're basically doing half the attacker's job for them. How so,
- 4:00Speaker 2: because if that account gets compromised, they instantly have full control.
- 4:03Speaker 2: Game over. Okay, that's why Pseudo is so essential. It's
- 4:06Speaker 2: incredibly powerful. It lets specific users run admin tasks using
- 4:11Speaker 2: their own password.
- 4:12Speaker 1: Ah, so you don't share the root.
- 4:13Speaker 2: Password exactly, keep that root password locked down. Plus, Pseudo
- 4:18Speaker 2: gives you much better auditing. Every command run with Pseudo
- 4:21Speaker 2: gets logged. You know who did what when with root?
- 4:25Speaker 2: Much harder to track.
- 4:26Speaker 1: Makes sense. So Pseudo isn't just like on or off.
- 4:29Speaker 1: You can fine tune the permissions.
- 4:30Speaker 2: Oh definitely, that's its real strength, granularity.
- 4:34Speaker 1: But are there common ways people mess it up, like
- 4:36Speaker 1: trying to be secure but creating a loophole.
- 4:39Speaker 2: That's a great question. Yes, the powers and the details,
- 4:43Speaker 2: and so are the risks. Pseudo policies let you give
- 4:46Speaker 2: users only the specific commands they need. You can create
- 4:49Speaker 2: aliases like in software alias. Maybe let someone run RPM
- 4:52Speaker 2: or Yum's root but nothing else but pitfalls. Oh yeah,
- 4:56Speaker 2: being careless with shell escapes. That's when a user finds
- 4:59Speaker 2: a clever way to break out of the allowed command
- 5:01Speaker 2: and run arbitrary stuff anyway, kind of bypasses your rules.
- 5:04Speaker 2: Sneaky or letting users run their own scripts with pseudo.
- 5:07Speaker 2: That script could contain anything. A key fix is to
- 5:10Speaker 2: move necessary scripts to secure directories owned by root where
- 5:14Speaker 2: regular users can't just edit them.
- 5:16Speaker 1: Got it control the scripts. So beyond pseudo, what about
- 5:21Speaker 1: the password itself? We always hear you strong passwords? Yea,
- 5:24Speaker 1: how do you actually enforce that on Linux?
- 5:26Speaker 2: Right? The p PLUW quality package that's your go to.
- 5:28Speaker 2: It's more than just length, okay, goople Quality lets you
- 5:31Speaker 2: set detailed rules like minimum length. Sure, but also needing
- 5:34Speaker 2: characters from different classes. You know, uppercase, lowercase numbers. Symbols
- 5:40Speaker 2: can even check against dictionaries.
- 5:41Speaker 1: Prevent password one, two, three exactly.
- 5:44Speaker 2: And here's something that kind of flips the script on passwords, passphrases.
- 5:48Speaker 1: Passphrases like multiple words.
- 5:50Speaker 2: Yeah, they can actually be way more secure and easier
- 5:53Speaker 2: to remember than complex gibberish. Think about P two or dollars.
- 5:57Speaker 2: Looks complex, but computers guess those substitutions easily. Now. A
- 6:01Speaker 2: phrase like I don't know, I really like green apples
- 6:05Speaker 2: simple for you, right, But the length gives it massive
- 6:08Speaker 2: entropy unpredictability, much much harder for an attacker to root
- 6:12Speaker 2: force compared to a shorter, complex password. Those space account.
- 6:15Speaker 1: Too, huh. Longer is better than just complex sometimes often yes.
- 6:20Speaker 2: And one more practical thing, don't forget account and password expiration.
- 6:24Speaker 2: Use tools like change user ad user mod make sure
- 6:27Speaker 2: old unused accounts don't just sit there waiting to become backdoors.
- 6:31Speaker 1: Good hygiene. Okay, so we've locked down the user the password,
- 6:34Speaker 1: but the server's still facing the internet, right that digital perimeter. Firewalls,
- 6:39Speaker 1: what's the Linux story there?
- 6:41Speaker 2: Firewalls are absolutely fundamental non negotiable. Part of that security
- 6:45Speaker 2: in depth idea layers. On Linux, the deep down engine
- 6:49Speaker 2: is net filter, but you don't usually poke net filter directly.
- 6:54Speaker 2: You use tools to manage its rules, like what like
- 6:56Speaker 2: the older iptables or newer things like firewalled. You've has
- 7:00Speaker 2: the uncomplicated firewall good Name or NF tables. Think of
- 7:03Speaker 2: netfilter as the engine. These are the dashboards.
- 7:05Speaker 1: Okay.
- 7:05Speaker 2: Firell is pretty neat uses zones, so you can easily
- 7:08Speaker 2: say this network card faces the scary internet, apply the
- 7:11Speaker 2: public zone rules, this one faces my safe internal network.
- 7:14Speaker 2: Use the trusted zone rules. Makes it much simpler and
- 7:17Speaker 2: has this cool feature panic mode. Firewall CMD panic on
- 7:23Speaker 2: BAM blocks all traffic instantly. Great if you think you're
- 7:27Speaker 2: under serious attack, a.
- 7:28Speaker 1: Big red button.
- 7:29Speaker 2: I like it exactly.
- 7:30Speaker 1: Okay, so the firewall, let's some traffic in. How do
- 7:33Speaker 1: we protect that traffic? Make sure it's private. Hasn't been
- 7:35Speaker 1: messed with? Encryption right?
- 7:37Speaker 2: Absolutely? Encryption is just fundamental today for single files, messages, GPG,
- 7:42Speaker 2: GNU privacy guard is fantastic.
- 7:44Speaker 1: How's that work?
- 7:45Speaker 2: Public private keys? You give out your public key freely.
- 7:48Speaker 2: Someone encrypts a message to you using that public key.
- 7:51Speaker 2: But only you with your secret private key can decrypt it.
- 7:54Speaker 2: No shared passwords needed.
- 7:55Speaker 1: Clever.
- 7:56Speaker 2: You can also digitally sign files with your private key,
- 7:59Speaker 2: proves it came from you and wasn't tampered with, like
- 8:01Speaker 2: the source mentioned signing a message for Frank the cat.
- 8:04Speaker 2: It's about trust and integrity.
- 8:06Speaker 1: Okay, so that's files. What about like the whole hard
- 8:09Speaker 1: drive or sensitive folders?
- 8:11Speaker 2: Right for encrypting the entire disc? Luks Linux unified key
- 8:16Speaker 2: setup is pretty much the standard on Linux. Someone steals
- 8:18Speaker 2: the laptop data is useless without the passphrase. For just
- 8:21Speaker 2: specific directories, maybe your home folder. Ecrypts is an option
- 8:24Speaker 2: and really important. If you're not doing full disc encryption,
- 8:28Speaker 2: you absolutely must encrypt your swamp partition. Why swap because
- 8:33Speaker 2: sensitive data like passwords or keys might temporarily get written
- 8:36Speaker 2: from RAM to the swap space on disc. If swamp
- 8:40Speaker 2: isn't encrypted, that data could be recovered later.
- 8:42Speaker 1: It's a sneaky leak ah Okay.
- 8:44Speaker 2: And if you need encrypted containers you can share across
- 8:47Speaker 2: different operating systems. Very crypt is still a very solid choice.
- 8:50Speaker 1: Gotcha and quickly Web security all those little padlock icons,
- 8:55Speaker 1: SSLTLS certificate.
- 8:56Speaker 2: Yeah, crucial point it's TLS now. Transport Layer security SSL
- 9:00Speaker 2: is old news. Insecure TLS is what secures your web
- 9:04Speaker 2: traffic and the certificates they prove the server is who
- 9:06Speaker 2: it claims to be, so you know you're really talking
- 9:09Speaker 2: to your bank, not a fake site. You have different
- 9:11Speaker 2: levels like EED certificates that require more validation. Supposed it
- 9:14Speaker 2: gives you that green bar in the browser. Well, studies
- 9:17Speaker 2: show users often don't even notice the green bar, and
- 9:20Speaker 2: sometimes they get issued incorrectly. On the flip side, free
- 9:23Speaker 2: services like let's encrypt have been amazing for getting everyone encrypted.
- 9:27Speaker 2: Huge win. But criminals use let's encrypt too. They get
- 9:31Speaker 2: free certificates for their fishing sites. So the site looks
- 9:34Speaker 2: legit has the padlock, but it's still malicious.
- 9:37Speaker 1: So encrypted doesn't automatically mean safe exactly.
- 9:41Speaker 2: It means the connection is private, but the site itself
- 9:43Speaker 2: might still be trying to scam you. Big difference.
- 9:46Speaker 1: Okay, let's shift to getting into the server remotely SSH
- 9:51Speaker 1: Secure shell. Most of us use it, but it feels
- 9:54Speaker 1: like a prime target if not set up right.
- 9:56Speaker 2: Oh, it absolutely is. Default SSH settings often way too permissive.
- 10:00Speaker 1: So what's the number gen hardening tip for sshke.
- 10:03Speaker 2: Based authentication, ditch passwords completely. If you can use.
- 10:06Speaker 1: SSH keys, Why is that so much better?
- 10:08Speaker 2: Because brute forcing a password computers are good at that,
- 10:11Speaker 2: trying millions of guesses per second. But to break in
- 10:14Speaker 2: with key off, the attacker needs your private key file
- 10:17Speaker 2: and his passphrase way way harder. Make simple broote force
- 10:20Speaker 2: attacks almost impossible.
- 10:22Speaker 1: Makes sense? What else? For SSH?
- 10:24Speaker 2: Definitely disabled direct route log in always, we should never
- 10:28Speaker 2: log in over SSH log in as a regular user,
- 10:30Speaker 2: then use pseudo okay, and there are tools like stand
- 10:34Speaker 2: that check your configuration for weaknesses. On red hat systems,
- 10:38Speaker 2: you can use system wide crypto policies to easily enforce
- 10:41Speaker 2: strong encryption algorithms for SSH and other services.
- 10:44Speaker 1: Takes out some guesswork, right, simplify.
- 10:46Speaker 2: Where you can. So, okay, we've hardened the way in.
- 10:49Speaker 2: But let's say someone still gets in worst case? How
- 10:52Speaker 2: do we limit the damage they can do inside on
- 10:55Speaker 2: the file system?
- 10:55Speaker 1: Okay? Now we're talking action control on the system itself.
- 10:58Speaker 1: Two main types.
- 11:01Speaker 2: The ac UMSI is discretionary access control. That's your basic
- 11:04Speaker 2: Lennux permissions. Shimode chanund who owns the file? They read it,
- 11:08Speaker 2: write it, execute it. The numbers like chamode seventy five
- 11:11Speaker 2: five or six forty four. Let you set this precisely
- 11:14Speaker 2: standard stuff standard but with a potential bombshell. SUID and sgid.
- 11:18Speaker 1: Bits you mentioned those sound risky.
- 11:21Speaker 2: They are if misused. SUID means set user ID. When
- 11:24Speaker 2: you run a program with the SUID bit, it runs
- 11:27Speaker 2: not as you, but it's in the owner of the file.
- 11:29Speaker 2: SUID is similar, but for the group.
- 11:31Speaker 1: Why would you ever need that?
- 11:33Speaker 2: The classic example is the password command you need to
- 11:35Speaker 2: change your password, which modifies a system file only Root
- 11:39Speaker 2: can write to. So password runs with Root privileges temporarily
- 11:44Speaker 2: just for that task thanks to SUID. Ah.
- 11:46Speaker 1: Okay, necessary evil, sometimes necessary, but dangerous if applied incorrectly.
- 11:52Speaker 2: Imagine a script owned by Root with the SUID bit
- 11:55Speaker 2: set that a regular user can run. If that script
- 11:58Speaker 2: has a flaw or just let you run command ends, boom,
- 12:01Speaker 2: the user gets Root access through that script.
- 12:04Speaker 1: Yikes.
- 12:04Speaker 2: That's why it's absolutely critical to use the noseue bount
- 12:07Speaker 2: option on partitions where users can write files like home
- 12:10Speaker 2: or THAJ prevents them from creating their own SUID programs.
- 12:14Speaker 1: Got it block that loophole. So if DASH, even with
- 12:16Speaker 1: no suit isn't enough, we get MAC Mandatory access control
- 12:21Speaker 1: sounds stricter.
- 12:22Speaker 2: It is stricter. MC systems like Celinix or a Parmer
- 12:25Speaker 2: add another layer entirely.
- 12:26Speaker 1: How's it different from DA?
- 12:27Speaker 2: With DA, you controlled the permissions on your files. With IMS,
- 12:31Speaker 2: the system policy dictates what processes can do, regardless of
- 12:34Speaker 2: who owns the file or which one says. It's centrally managed.
- 12:38Speaker 1: Mandatory control, so even root might be restricted.
- 12:40Speaker 2: Potentially yes. Selens used to have this reputation for being
- 12:45Speaker 2: incredibly complex and breaking things, so people just turned it off.
- 12:48Speaker 1: I've heard the horror stories.
- 12:50Speaker 2: It's gotten much better. It works by labeling everything, files, processes,
- 12:55Speaker 2: ports with security contexts. Then policies define how labels can interact,
- 13:00Speaker 2: like this web server process label can only read files
- 13:03Speaker 2: with the web content label.
- 13:05Speaker 1: Okay.
- 13:05Speaker 2: Labels and rules and tools like said troubleshoot help translate
- 13:09Speaker 2: this sometimes cryptic denial messages into plain English, often telling
- 13:13Speaker 2: you exactly how to fix it. That's helpful, hugely helpful,
- 13:16Speaker 2: and it's super relevant for containers. Now Celinux can stop
- 13:19Speaker 2: a compromised Docker container from escaping and attacking the host system.
- 13:23Speaker 2: That's a massive security.
- 13:24Speaker 1: Win right containing the container makes sense. Okay, so we've
- 13:27Speaker 1: locked down users, firewalls, encryption, access control. But security isn't static, right,
- 13:33Speaker 1: it's not set it and forget it. How do we
- 13:35Speaker 1: keep watching?
- 13:35Speaker 2: Absolutely?
- 13:36Speaker 1: Right?
- 13:36Speaker 2: Continuous monitoring is vital. You need visibility.
- 13:39Speaker 1: What tools help there?
- 13:40Speaker 2: The Linux auditing system Audit is incredibly powerful for this.
- 13:44Speaker 2: You can set up very specific rules to log exactly
- 13:47Speaker 2: what you care about. Uh, like log every time any
- 13:50Speaker 2: user twice to open or create a file. That's the
- 13:52Speaker 2: THIAS open it rule. Or you can use predefined rule sets,
- 13:56Speaker 2: maybe for compliance like PCIDSS that already cover common critical events.
- 14:00Speaker 1: So you get a detailed log of who's doing what
- 14:03Speaker 1: you do.
- 14:04Speaker 2: The challenge then is managing all those logs, maybe feeding
- 14:07Speaker 2: them into a central system. But having the raw data
- 14:11Speaker 2: is crucial.
- 14:11Speaker 1: Okay, logging tells us what happened. What about finding weaknesses
- 14:14Speaker 1: before they're exploited? Proactive searching?
- 14:17Speaker 2: Right? Vulnerability scanning? Essential tools like Linus are great for
- 14:21Speaker 2: host based scanning. Host based Yeah, you run Linus on
- 14:24Speaker 2: the Linux system itself. It digs deep into the configuration,
- 14:27Speaker 2: kernel settings, software versions and give you specific hardening advice.
- 14:32Speaker 2: Really thorough cool.
- 14:33Speaker 1: What about scanning from the outside.
- 14:35Speaker 2: For network scanning. OpenVAS is a powerful open source vulnerability scanner.
- 14:40Speaker 2: It checks for thousands of known vulnerabilities across your network
- 14:44Speaker 2: and for webservers specifically, nick Go is excellent. It looks
- 14:47Speaker 2: for common webserver misconfigurations, dangerous files left behind, risky HTDP methods.
- 14:53Speaker 1: Enabled, like finding a forgotten pass wd dot txt file.
- 14:58Speaker 2: Exactly that kind of thing. These scanners act like automated
- 15:00Speaker 2: penetration testers, finding the low hanging food before attackers do.
- 15:03Speaker 1: Okay, now, malware viruses the eternal question does Linux need
- 15:08Speaker 1: anti virus People say it's immune.
- 15:10Speaker 2: Immune is too strong a word. Highly resistant to traditional
- 15:14Speaker 2: Windows viruses yes, but totally immune to all.
- 15:16Speaker 1: Malware no, So run AV or not well.
- 15:19Speaker 2: The main reason people run av like ClamAV or Linux
- 15:22Speaker 2: Malware Detect l and D on Linux servers often isn't
- 15:24Speaker 2: to protect Linux itself. It's to stop the Linux server
- 15:27Speaker 2: from accidentally storing or sharing Windows viruses with other machines
- 15:30Speaker 2: on the network, like in a file.
- 15:32Speaker 1: Share, protecting the neighbors exactly.
- 15:35Speaker 2: Lm D is also pretty good at finding specific Linux
- 15:37Speaker 2: threats like webshells or rootkits, and if you find a
- 15:40Speaker 2: weird file services like virus total let you upload it
- 15:44Speaker 2: and scan it with dozens of av engines. Useful, very
- 15:47Speaker 2: but big caveat. Never upload sensitive or confidential fis to
- 15:51Speaker 2: virus Total or similar public services. Once it's up there,
- 15:55Speaker 2: it might become public use caution.
- 15:58Speaker 1: Good warning. Okay, gear slightly physical security. If someone can
- 16:02Speaker 1: just walk up to the machine.
- 16:04Speaker 2: Then all bets are off. Potentially physical access trump's almost
- 16:07Speaker 2: everything else it's off and overlooked.
- 16:08Speaker 1: So what can we do, especially for laptops or servers,
- 16:11Speaker 1: maybe not in a locked data center.
- 16:13Speaker 2: Password protect your bootloader GRUB. This stop someone from easily
- 16:17Speaker 2: booting into single user mode to reset the root password
- 16:20Speaker 2: or adding weird kernel parameters.
- 16:22Speaker 1: Does that stop them booting from a USB stick?
- 16:24Speaker 2: No, it doesn't stop that entirely, but it's an important
- 16:27Speaker 2: layer against casual attacks or someone trying to quickly bypass
- 16:30Speaker 2: log in. You also need to lock down the BIOS
- 16:33Speaker 2: or UAFS settings, set a firmware password, disable booting from
- 16:37Speaker 2: external devices if possible, make physical access as difficult as
- 16:41Speaker 2: you can.
- 16:41Speaker 1: Layer upon layer. Voice okay, Finally, just knowing what's running,
- 16:46Speaker 1: what services are listening, who's connected.
- 16:49Speaker 2: Basic visibility absolutely Fundamentally, you can't secure what you don't
- 16:52Speaker 2: know you have. Simple commands are your friends here? Netstat LBOEPN,
- 16:57Speaker 2: what's that do? Shows you all listening work ports, the
- 17:01Speaker 2: port numbers stand and the process using each port instantly
- 17:05Speaker 2: reveals any unexpected services running.
- 17:08Speaker 1: Find that rogue web server someone installed exactly?
- 17:11Speaker 2: And netstet day NP shows active connections. Who is your
- 17:15Speaker 2: machine talking to right now? What foreign addresses? Useful for spotting,
- 17:19Speaker 2: weird outbound traffic.
- 17:21Speaker 1: And for a broader networkview.
- 17:23Speaker 2: In map, the gold standard for network mapping, it can
- 17:26Speaker 2: scan your systems, tell you which ports are opened, closed,
- 17:28Speaker 2: or filtered by a firewall. It can often guess the
- 17:31Speaker 2: service running out of port and even the operating system.
- 17:34Speaker 2: Understanding your own attack surface from an external perspective is critical.
- 17:37Speaker 1: Wow, okay, that was quite the journey. We really covered
- 17:40Speaker 1: a lot of ground there.
- 17:41Speaker 2: We did, from.
- 17:42Speaker 1: Why breaches even happen through users, passwords, firewalls, encryption, fancy
- 17:47Speaker 1: access controls like MC monitoring, scanning. It's a lot.
- 17:54Speaker 2: It really underscores that layered approach, doesn't it. There's no
- 17:57Speaker 2: single silver bullet.
- 17:58Speaker 1: You need defence in debt and constant vigilance using tools
- 18:02Speaker 1: like audit to watch lenus open vas nikto to proactively.
- 18:06Speaker 2: Check, and never assuming the defaults are good enough. Yeah,
- 18:10Speaker 2: always be questioning, always be hardening, building resilient systems.
- 18:14Speaker 1: Yeah, it's definitely a lot to take in, but I
- 18:16Speaker 1: feel like it's really empowering knowledge. Now you can look
- 18:19Speaker 1: at a Linux system and think with that security mindset first.
- 18:22Speaker 2: That's the goal.
- 18:22Speaker 1: It's not just about stopping attacks, right, It's about building
- 18:25Speaker 1: systems you can actually trust exactly.
- 18:27Speaker 2: So maybe here's a final thought for everyone listening to
- 18:30Speaker 2: chew one. Okay, even if you build the most perfectly
- 18:33Speaker 2: hardened Linux system imaginable, how do you know it stays
- 18:37Speaker 2: that way? How do you plan to continuously monitor your
- 18:40Speaker 2: systems verify their integrity against threats that are constantly changing,
- 18:44Speaker 2: constantly evolving.
- 18:45Speaker 1: Hmm, good question. Keeping secure isn't a one time job,
- 18:49Speaker 1: never is. Well, keep learning, keep exploring, keep asking those questions,
- 18:53Speaker 1: and definitely keep securing those systems. We'll catch you on
- 18:55Speaker 1: the next deep dive.