Latest / CyberSecurity Summary / Ethical Hacking: A Hands-on Introduction to Breaking In
Transcript
- 0:00Speaker 1: Welcome to a deep dive that might just change how
- 0:02Speaker 1: you look at the digital world around you.
- 0:04Speaker 2: Yeah, today we're really pulling back the curtain on hacking.
- 0:07Speaker 1: But and this is key, not from the criminal side.
- 0:10Speaker 1: We're looking at the people who learn these techniques to
- 0:14Speaker 1: well defend.
- 0:15Speaker 2: Us all exactly. Our main source today is this book
- 0:18Speaker 2: Ethical Hacking, A hands on Introduction to Breaking In. And
- 0:23Speaker 2: it's really practical, not just theory then, no, not at all.
- 0:27Speaker 2: It shows you how systems get compromised, you know, from
- 0:29Speaker 2: the basics of networks right up to complex exploitation. It's
- 0:34Speaker 2: solid stuff, technically reviewed by people like doctor ed Novak,
- 0:37Speaker 2: who really knows his security and privacy.
- 0:39Speaker 1: Okay, so what's our mission here? What do we want you,
- 0:42Speaker 1: the listener to get out of this?
- 0:44Speaker 2: Well, the goal is to help you start thinking like
- 0:46Speaker 2: an ethical hacker, someone who can, you know, carefully look
- 0:49Speaker 2: at a system, figure out its weaknesses and find ways.
- 0:52Speaker 1: In, but purely for defensive reasons.
- 0:54Speaker 2: Right, It's kind of a shortcut to understanding these hidden
- 0:56Speaker 2: cyber threats and honestly how much they impact our every
- 1:00Speaker 2: day lives.
- 1:00Speaker 1: All right, let's dive in.
- 1:02Speaker 2: So the influence of hacking today it's huge. It touches everything,
- 1:07Speaker 2: doesn't it, elections, power grids, big infrastructure, even just our
- 1:11Speaker 2: personal safety.
- 1:12Speaker 1: Absolutely, it's not abstract. Remember the Colonial pipeline attack in
- 1:15Speaker 1: twenty twenty one that caused real panic, flight cancelations, actual
- 1:20Speaker 1: fuel shortages. Millions of people felt that directly.
- 1:24Speaker 2: And that's just one example. We've seen attacks on companies,
- 1:27Speaker 2: even countries just accelerate like crazy over the past decade.
- 1:31Speaker 1: Yeah, twenty twenty one alone was wild hackers stealing over
- 1:34Speaker 1: one hundred million in crypto, trying to poison a water
- 1:37Speaker 1: supply in.
- 1:37Speaker 2: Florida, attacking Pfizer, hitting government agencies all over the place.
- 1:41Speaker 1: So why is this happening? Why?
- 1:43Speaker 2: Now? Well, fundamentally, it's because we depend so much on
- 1:46Speaker 2: technology right. Our entire society, our economy, it all runs
- 1:49Speaker 2: on it. So attacks on that tech infrastructure have massive
- 1:52Speaker 2: knock on effects socially and economically.
- 1:55Speaker 1: So understanding hacking isn't really optional anymore, pretty much essential. Yeah,
- 1:58Speaker 1: and to really get it, you need to get your
- 2:00Speaker 1: hands dirty safely though exactly.
- 2:02Speaker 2: That's where setting up your own virtual lab comes in
- 2:05Speaker 2: is crucial. You need this isolated space to learn and
- 2:08Speaker 2: practice without accidentally messing up your real computer or network.
- 2:13Speaker 1: Keeps everything secure. So what does this lab look like? Typically?
- 2:16Speaker 2: Usually you'd set up a few virtual machines or vms.
- 2:20Speaker 2: You'd have something like a Kithens router firewall that's like
- 2:22Speaker 2: your virtual networks bodyguard. Then a Kali Linux machine. Think
- 2:27Speaker 2: of that as your ethical hacking toolkit. It's packed with
- 2:30Speaker 2: specialized software, got it. You probably want a couple of
- 2:33Speaker 2: say Ubuntu Linux desktops as targets just to practice attacking
- 2:39Speaker 2: common systems. And definitely a metasploitable VM.
- 2:42Speaker 1: Metasploitable yeah, like, that's the one designed to be vulnerable exactly.
- 2:46Speaker 2: It's deliberately full of holes, so it's perfect for profiting
- 2:49Speaker 2: attacks without doing any real harm. It's a safe target.
- 2:52Speaker 1: And you run all this using virtual box.
- 2:55Speaker 2: Yeah. Virtual box is a great option. It's free and
- 2:57Speaker 2: lets you create these virtual computers inside your actual computer.
- 3:01Speaker 2: You just need a reasonably decent machine yourself. You know
- 3:04Speaker 2: of hard drive space, maybe thirty gigs free and enough
- 3:07Speaker 2: RAM say four gigs minimum, ideally more to run several
- 3:11Speaker 2: vms at.
- 3:12Speaker 1: Once, right, like building a whole mini network inside your laptop,
- 3:15Speaker 1: a safe little sandbox precisely.
- 3:17Speaker 2: So let's talk about the digital battlefield itself. The network fundamentals. Okay,
- 3:21Speaker 2: at the most basic level, everything on the Internet travels
- 3:25Speaker 2: in packets. You have to think of them like a
- 3:27Speaker 2: digital envelopes sense, Yeah, and each envelope has a from
- 3:31Speaker 2: address and a two address. Those are the source and
- 3:33Speaker 2: destination MSE addresses for local stuff, and IP addresses for
- 3:37Speaker 2: getting across the wider Internet.
- 3:39Speaker 1: And the routers they're like the post offices.
- 3:41Speaker 2: Exactly like sorting offices. They look at the destination IP
- 3:44Speaker 2: address and forward the packet along the way. It's all hierarchical.
- 3:48Speaker 2: The lowest level is your local network, your land like
- 3:51Speaker 2: your home Wi Fi, all connected through one main router.
- 3:55Speaker 1: Which brings us to something like ARP spoofing. You mentioned
- 3:58Speaker 1: that as an example.
- 3:59Speaker 2: Yes, NRP spoofing. It's a classic example of exploiting a
- 4:03Speaker 2: fund metal maybe slightly flawed protocol. Basically, if you're on
- 4:08Speaker 2: say public Wi Fi at a coffee shop, yeah, an
- 4:11Speaker 2: attacker on that same network could potentially use airpacepoofing to
- 4:16Speaker 2: intercept your unencrypted web traffic. See what sites you're visiting,
- 4:19Speaker 2: that kind of thing.
- 4:19Speaker 1: How does that work? Sound sneaky?
- 4:21Speaker 2: It is. The attacker basically tricks both your computer and
- 4:24Speaker 2: the router. They convince your machine that the attacker's machine
- 4:28Speaker 2: is the router. They convince the router that the attacker's
- 4:30Speaker 2: machine is your computer.
- 4:31Speaker 1: So all the traffic goes through though.
- 4:33Speaker 2: Exactly they become a man in the middle. And this
- 4:35Speaker 2: just highlights how risky unencrypted communication on public Wi Fi
- 4:38Speaker 2: can be. Even simple tools like earl snarf can then
- 4:41Speaker 2: pull out things like the website addresses you visit from
- 4:44Speaker 2: that intercepted traffic.
- 4:45Speaker 1: Wow. Okay, so how do ethical hackers actually see and
- 4:49Speaker 1: analyze this traffic?
- 4:51Speaker 2: Good question. That's where you need to understand the Internet
- 4:54Speaker 2: protocol stack. Think of protocols as just rules for talking,
- 4:58Speaker 2: like how human and say hello to start a conversation
- 5:02Speaker 2: and goodbye to end it. Computers need similar rules and
- 5:05Speaker 2: it's layered right. Yeah. It typically shown as a five
- 5:08Speaker 2: layer stack. Yeah. Information gets wrapped up kind of like
- 5:11Speaker 2: nesting dolls as it moves down the layers.
- 5:13Speaker 1: So like the application layers where your browser works with HTTP.
- 5:16Speaker 2: Right, then it goes down to transport maybe using TCP,
- 5:20Speaker 2: then network with IP addresses, data link with AMC addresses
- 5:23Speaker 2: for the local network, and finally physical turning it into
- 5:27Speaker 2: electrical signals or light pulses.
- 5:29Speaker 1: And each layer does its job independently.
- 5:32Speaker 2: Pretty much, which is efficient, but it also means a
- 5:34Speaker 2: weakness of one layer, like ARP at the data link
- 5:37Speaker 2: layer can be exploited.
- 5:38Speaker 1: And what about ports. You hear about open ports being bad.
- 5:41Speaker 2: Ah, ports they're essential. They let multiple programs on your
- 5:45Speaker 2: computer use the network at the same time, like your
- 5:47Speaker 2: browser uses port four four three for HTTPS, your email
- 5:51Speaker 2: client uses others.
- 5:52Speaker 1: But they're also a risk.
- 5:53Speaker 2: They can be open ports are like open doors into
- 5:56Speaker 2: your system. Attackers scan for open ports because they represent
- 6:01Speaker 2: potential ways to interact with services running on your machine.
- 6:05Speaker 2: They're often the first thing an attacker looks for.
- 6:07Speaker 1: So how do you actually see all this packet stuff?
- 6:10Speaker 2: The key tool here is wire Shark. Think of it
- 6:13Speaker 2: as your network microscope. It captures every single packet going
- 6:17Speaker 2: in and out of your computer's network.
- 6:19Speaker 1: Interface, every single one. That must be a lot of data.
- 6:22Speaker 2: It can be thousands. Yeah, but wire shark has power fulfillters.
- 6:26Speaker 2: You can tell it show me only traffic to this
- 6:28Speaker 2: specific IP address, or show me packets containing the word password.
- 6:32Speaker 2: It lets you cut through the noise and find what
- 6:34Speaker 2: you're looking for. It's how you really visualize what's happening.
- 6:36Speaker 1: You can even monitor firewall traffic.
- 6:38Speaker 2: Absolutely on something like a pfens firewall VM. You could
- 6:42Speaker 2: use a tool called TCP dump to capture traffic passing
- 6:45Speaker 2: through it, save it and analyze it later, maybe even
- 6:48Speaker 2: using online tools.
- 6:49Speaker 1: Okay, that covers the fundamentals. Let's move into Part three,
- 6:52Speaker 1: exploitation techniques actually breaking in right.
- 6:56Speaker 2: A really fundamental concept here is getting remote control. Key
- 7:00Speaker 2: technique is the reverse shell.
- 7:02Speaker 1: Reverse shell sounds backwards.
- 7:05Speaker 2: It kind of is. Imagine an attacker manages to run
- 7:08Speaker 2: some malicious code on your machine. Now, instead of the
- 7:11Speaker 2: attacker trying to connect in through your firewall, which is
- 7:13Speaker 2: usually blocked, this malicious code connects out from inside your
- 7:17Speaker 2: network to the attacker's waiting machine.
- 7:19Speaker 1: Uh so it bypasses the firewalls incoming rules.
- 7:23Speaker 2: Clever, very clever, and it gives the attacker persistent access
- 7:27Speaker 2: a way back in whenever they want.
- 7:28Speaker 1: And if they do that to lots of machines.
- 7:30Speaker 2: Then you have a botnet, a whole network of compromised
- 7:33Speaker 2: computers or bots, all under the attacker's control, and they can.
- 7:37Speaker 1: Use these bots for what DEDAS attacks.
- 7:40Speaker 2: DDAs is a big one. Yeah, overwhelming a website or
- 7:42Speaker 2: server with so much traffic from the botnet that it
- 7:45Speaker 2: just falls over, it goes offline.
- 7:47Speaker 1: Wasn't there a famous botnet, Mira.
- 7:49Speaker 2: Miri exactly back in twenty sixteen was huge, infected something
- 7:52Speaker 2: like three hundred thousand devices.
- 7:54Speaker 1: Mostly those Internet of Things devices, right, cameras, routers.
- 7:58Speaker 2: Yeah, basic stuff. And the crazy part is how it
- 8:01Speaker 2: infected them, mostly just by logging in with the default
- 8:04Speaker 2: usernames and passwords that people never changed.
- 8:06Speaker 1: Wow, just default credentials yep.
- 8:09Speaker 2: And what made me write tricky to stop was how
- 8:12Speaker 2: the bots found their master, their commanding control server or
- 8:15Speaker 2: C two. They didn't use a fixed IP address, They
- 8:18Speaker 2: looked up a domain name a URL, which the attackers
- 8:22Speaker 2: could easily change. Made it much harder to take down
- 8:24Speaker 2: the whole network.
- 8:25Speaker 1: Okay, so controlling machines is one thing. What about data
- 8:28Speaker 1: that leads to cryptography? Right?
- 8:30Speaker 2: Yeah? And ransomware absolutely. Crytography is fundamental to digital security
- 8:35Speaker 2: and ransomware. Oh that's the nightmare scenario where malware encrypts
- 8:39Speaker 2: all your important.
- 8:40Speaker 1: Files, it demands money to get them back.
- 8:42Speaker 2: Right, malicious encryption to understand the risks, it helps to
- 8:45Speaker 2: know a bit about how encryption works, even simple concepts
- 8:48Speaker 2: like the one time pad.
- 8:49Speaker 1: That's the theoretically unbreakable one.
- 8:52Speaker 2: Theoretically yes, if the key is truly random and you
- 8:55Speaker 2: only use it once. The critical part is only once.
- 8:58Speaker 1: What happens if you reuse the key big problems.
- 9:01Speaker 2: If you encrypt two different messages with the same one
- 9:04Speaker 2: time pad key, you actually leak information that lets someone
- 9:08Speaker 2: potentially figure out both original messages. It shows how even
- 9:11Speaker 2: a perfect system can fail catastrophically if used incorrectly.
- 9:15Speaker 1: So for real world security, we use things like RSA
- 9:19Speaker 1: public key cryptography exactly.
- 9:21Speaker 2: RSA is a cornerstone, uses a pair of keys, a
- 9:25Speaker 2: public key you can share with anyone, and a private
- 9:27Speaker 2: key you guard.
- 9:28Speaker 1: Fiercely, and if someone encrypts a message with my public.
- 9:31Speaker 2: Key, only you with your corresponding private key, can decrypt it.
- 9:35Speaker 2: It guarantees confidentiality.
- 9:36Speaker 1: And the other way around. Encrypting with a private key
- 9:39Speaker 1: that acts like.
- 9:40Speaker 2: A digital signature. If you encrypt something or usually a
- 9:43Speaker 2: hash of something, with your private key, anyone can use
- 9:46Speaker 2: your public key to verify that you must have been
- 9:48Speaker 2: the one who signed it.
- 9:50Speaker 1: Proves authenticity, which is crucial for things like secure websites
- 9:54Speaker 1: HDTPS that uses TLS right Transport layer security.
- 9:58Speaker 2: Right TLS uses all these public private keys for authentication,
- 10:02Speaker 2: and keys change symmetric encryption for the actual data transfer
- 10:06Speaker 2: message authentication codes. For integrity, it relies on certificate authorities
- 10:11Speaker 2: CAAs to vouch for the public keys and build that
- 10:14Speaker 2: chain of trust.
- 10:15Speaker 1: But attackers still try to break it, like trying to
- 10:17Speaker 1: force a connection down from HTTPS to unencrypted HTTP.
- 10:22Speaker 2: They definitely try. It's called SSL stripping, but modern browsers
- 10:25Speaker 2: fight back with something called HTCs HTT Strict Transport Security.
- 10:29Speaker 2: It basically tells the browser only ever talk to this
- 10:32Speaker 2: site over HTDPS, which prevents most downgrade attacks.
- 10:36Speaker 1: Although misconfigurations can still happen.
- 10:38Speaker 2: I guess oh absolutely, especially with subdomains or complex setups.
- 10:42Speaker 2: Security is never perfectly simple.
- 10:43Speaker 1: Okay, let's shift focus a bit Part four, the human side,
- 10:47Speaker 1: social engineering and ocent.
- 10:49Speaker 2: Yeah, the human element is often the weakest link. Phishing
- 10:52Speaker 2: emails are a classic example. It's surprisingly easy to fake
- 10:55Speaker 2: the from address in an email because of how the
- 10:57Speaker 2: underlying protocol SMTP works, so you.
- 10:59Speaker 1: Can make can email look like it came from a
- 11:01Speaker 1: trusted source easily.
- 11:02Speaker 2: And now we're seeing the rise of deep fakes, which
- 11:05Speaker 2: is frankly terrifying.
- 11:07Speaker 1: AI generated fake videos exactly.
- 11:10Speaker 2: Using machine learning, attackers can create incredibly convincing videos. Imagine
- 11:14Speaker 2: getting a video call that looks and sounds exactly like
- 11:18Speaker 2: your CEO telling you to approve a wire transfer or
- 11:20Speaker 2: expect a certain.
- 11:21Speaker 1: Email which is actually malicious. Wow. The potential for deception
- 11:25Speaker 1: there is huge, It really is.
- 11:28Speaker 2: Which highlights why information gathering OCENT open source intelligence is
- 11:31Speaker 2: so critical for attackers.
- 11:33Speaker 1: Just collecting publicly available info yep.
- 11:35Speaker 2: The more an attacker knows about you or your organization,
- 11:38Speaker 2: the more tailored and convincing their attack can be. OCENT
- 11:42Speaker 2: is the process of finding and connecting those public data.
- 11:45Speaker 1: Points like what kind of data points?
- 11:47Speaker 2: Oh anything? Contact details from website registration records, ye, email
- 11:50Speaker 2: addresses are user names exposed in data breaches. You can
- 11:53Speaker 2: check sites like have in pobayan dot com, social media profiles,
- 11:57Speaker 2: company directories, news articles.
- 11:59Speaker 1: And tools help connect these dots. You mentioned.
- 12:01Speaker 2: Maltago, Yeah, Maultago is great for visualizing these connections. You
- 12:05Speaker 2: feed it bits of information and it spiders out, finding
- 12:08Speaker 2: links you might never see otherwise. It can map relationships
- 12:11Speaker 2: between people, companies, email addresses infrastructure, and.
- 12:15Speaker 1: This OCENT enables really nasty attacks like simjacking.
- 12:19Speaker 2: Simjacking is a prime example of weaponized OCENT. It's highly sophisticated.
- 12:24Speaker 2: Attackers gather enough personal information about you to convincingly impersonate
- 12:28Speaker 2: you when talking to your mobile phone provider.
- 12:30Speaker 1: And they trick the provider into.
- 12:32Speaker 2: Transferring your phone number to a simcard they control.
- 12:36Speaker 1: Oh wow, so they get all your calls and texts,
- 12:38Speaker 1: including two factor authentication codes exactly.
- 12:41Speaker 2: It completely bypasses SMS based two FA It requires a
- 12:45Speaker 2: lot of prep work, but it's devastating when it works.
- 12:47Speaker 1: Scary stuff. What about finding vulnerable systems directly?
- 12:50Speaker 2: Google dorking Google dorking. It's basically using advanced search operators
- 12:56Speaker 2: in Google to find things that shouldn't be public, like
- 12:58Speaker 2: what misconfigured web servers, login pages, sensitive documents or configuration
- 13:03Speaker 2: files accidentally indexed by Google, even live unsecured webcams. Sometimes
- 13:08Speaker 2: you'd be amazed what's just out there?
- 13:10Speaker 1: And beyond Google there are specialized tools.
- 13:12Speaker 2: Oh yeah, Tools like mass scan can scan huge ranges
- 13:16Speaker 2: of the Internet incredibly quickly, looking for specific open ports.
- 13:19Speaker 2: Showdan is like a search engine specifically for Internet connected devices.
- 13:24Speaker 2: Finding everything from industrial control systems to refrigerators online though
- 13:28Speaker 2: SHOWDAN logs your IP so ethical use is key.
- 13:31Speaker 1: And once you find a potential target system and you
- 13:34Speaker 1: start looking.
- 13:34Speaker 2: For known weaknesses, use the osent you gathered. What software
- 13:37Speaker 2: is it running? What version? Then you check vulnerability databases
- 13:41Speaker 2: like the CVE list using tools like search sploit to
- 13:44Speaker 2: see if there are known published exploits for that specific.
- 13:48Speaker 1: Software, and automated scanners like ENMAP or nessis can help
- 13:51Speaker 1: find these vulnerabilities too.
- 13:53Speaker 2: Absolutely. NMAP is fantastic for port scanning and service identification.
- 13:58Speaker 2: NESSUS is a more common, comprehensive vulnerability scanner. The checks
- 14:02Speaker 2: for thousands of known issues, including things like back doors
- 14:06Speaker 2: like the one deliberately built into that metasploitable practice machine.
- 14:09Speaker 2: There are even tools like discovered that try to automate
- 14:12Speaker 2: a whole range of ocent gathering.
- 14:14Speaker 1: Okay, so that's finding non issues. What about the unknown?
- 14:18Speaker 1: Part five? Advanced exploitation? Finding zero days?
- 14:21Speaker 2: Right? Zero days? These are the vulnerabilities nobody knows about
- 14:25Speaker 2: yet except maybe the person who found them. They can
- 14:27Speaker 2: be incredibly valuable, sometimes selling for huge sums on the
- 14:31Speaker 2: black market or to.
- 14:32Speaker 1: Governments because there's no patch, no defense yet exactly.
- 14:35Speaker 2: The famous heart bleed bug in open ssl was effectively
- 14:38Speaker 2: a zero day for a while before it was discovered
- 14:40Speaker 2: and publicized.
- 14:41Speaker 1: And how do people find these? Fuzzing?
- 14:43Speaker 2: Fuzzing is a major technique. It's basically automated bug hunting.
- 14:47Speaker 2: You throw tons and tons of malformed, unexpected random data
- 14:50Speaker 2: at a program, hoping to make it crash or behave.
- 14:53Speaker 1: Strangely just random jump.
- 14:55Speaker 2: Well, simple fuzzers do that, but smarter fuzzers like American
- 14:59Speaker 2: Fuzzy lop AFL are more clever. They watch how the
- 15:03Speaker 2: program reacts to input and intelligently mutate the inputs that
- 15:07Speaker 2: seem to explore new paths within the code, making the
- 15:09Speaker 2: process much more efficient at finding hidden bugs.
- 15:12Speaker 1: So once an attacker gets in, maybe using a zero
- 15:14Speaker 1: day or maybe something simpler, they want to stay hidden, right.
- 15:18Speaker 1: Trojans and rootkits exactly.
- 15:20Speaker 2: Persistence and stealth are key. A trojan horse program is
- 15:24Speaker 2: malware disguised is something harmless, like the Greek myth, just
- 15:27Speaker 2: like it. You might hide your malicious implant inside a
- 15:29Speaker 2: legitimate looking installer file for Linux dot deb, or maybe
- 15:33Speaker 2: inside a simple Windows game like Mind Sweeper, or even
- 15:36Speaker 2: a word document, macro or an Android app DOTK file.
- 15:40Speaker 1: How do they get past antivirus? Then?
- 15:41Speaker 2: Good question. Antivirus often looks for known signatures of malware,
- 15:45Speaker 2: so attackers use techniques to change the signature. Simple encoding
- 15:49Speaker 2: like BA sixty four can sometimes help disguise the code,
- 15:51Speaker 2: but more advanced methods polymorphic encoders are the next level.
- 15:55Speaker 2: Something like the chicatagun I encoder used by the Metasbolate
- 15:58Speaker 2: framework actually generates a slightly different version of the malware
- 16:02Speaker 2: code each time it's used. It does the same bad stuff,
- 16:06Speaker 2: but its signature looks different every time, making it much
- 16:09Speaker 2: harder for signature based antivirus to catch.
- 16:12Speaker 1: And then rootkits those sound serious they are.
- 16:15Speaker 2: If a trojan gets the malware installed, a root kit
- 16:18Speaker 2: helps it hide and maintain control at a very deep level,
- 16:21Speaker 2: often by modifying the operating system itself.
- 16:24Speaker 1: How does that work? In Linux? For example, so.
- 16:26Speaker 2: Normal programs run in user space, but they need to
- 16:29Speaker 2: ask the core of the OS, the kernel, to do
- 16:32Speaker 2: privileged things like accessing hardware or managing files. They do
- 16:36Speaker 2: this using system calls for ciscolls. A rootkit might hook
- 16:40Speaker 2: these cis calls it replaces the kernel's normal function for say,
- 16:44Speaker 2: listing files in a directory, with its own function. This
- 16:47Speaker 2: malicious function does the normal job, but also hides the
- 16:50Speaker 2: rootkit's own files from the listing.
- 16:52Speaker 1: So the malware becomes invisible to standard tools.
- 16:55Speaker 2: Exactly could to hide processes. Network connections prevent reboots. Very
- 17:00Speaker 2: sneaky and hard to detect or remove.
- 17:02Speaker 1: Let's switch to web applications. SEQL injection that seems to
- 17:05Speaker 1: come up a lot.
- 17:06Speaker 2: It does because it's still surprisingly common. It happens when
- 17:09Speaker 2: a website developer doesn't properly clean up the input they
- 17:12Speaker 2: get from a user, maybe from a search.
- 17:15Speaker 1: Box or a log in form, and the attacker puts
- 17:17Speaker 1: database commands in there.
- 17:18Speaker 2: Precisely, they inject malicious sequel commands into the input field.
- 17:23Speaker 2: If the website just blindly pastes that input into its
- 17:26Speaker 2: database query, the attacker's commands get executed by the database.
- 17:29Speaker 1: Letting them do what dump data.
- 17:32Speaker 2: Yeah, potentially steal entire tables of data, user names, passwords,
- 17:36Speaker 2: customer info, whatever's in the database. It relies on trusting
- 17:39Speaker 2: user input, which you should.
- 17:40Speaker 1: Ever do, and web interactions rely heavily on HTTP requests right,
- 17:45Speaker 1: especially cookies.
- 17:45Speaker 2: Absolutely you need to understand how browsers talk to servers
- 17:48Speaker 2: using get and post requests, the headers involved like host
- 17:53Speaker 2: and user agent, and crucially the cookie header.
- 17:56Speaker 1: That's what keeps you logged in.
- 17:58Speaker 2: Yeah, cookie store your session state. If an attacker can
- 18:02Speaker 2: steal your session cookie, maybe through intercepting traffic or another
- 18:05Speaker 2: attack like XSS, they can often put that cookie in
- 18:09Speaker 2: their own browser and impersonate you, taking over your logged
- 18:12Speaker 2: in session without needing your password at all.
- 18:14Speaker 1: Speaking of passwords, systems don't store them in plain text,
- 18:17Speaker 1: hopefully they use hashes, right.
- 18:19Speaker 2: They store hashes. A hash function like SAHA two fifty
- 18:22Speaker 2: six takes an input your password and produces a fixed
- 18:26Speaker 2: size output the hash. It's designed to be one way
- 18:29Speaker 2: easy to compute the hash from the password, but incredibly
- 18:33Speaker 2: hard to get the password back from the hash.
- 18:35Speaker 1: But attackers can still crack hashes dictionary attacks they.
- 18:38Speaker 2: Can try if the system just stores the raw hash
- 18:41Speaker 2: of the password. Attackers can pre calculate hashes for millions
- 18:44Speaker 2: of common passwords a rainbow table, or just try hashing
- 18:48Speaker 2: words from a dictionary until they find a match.
- 18:50Speaker 1: So how do systems defend against that? Salting?
- 18:53Speaker 2: Exactly? Salting is crucial. Before hashing the password, the system
- 18:56Speaker 2: adds a unique random value, the salt, to it, so
- 18:58Speaker 2: even if two users have this password, their salted hashes
- 19:01Speaker 2: will be.
- 19:02Speaker 1: Different, which makes rainbow tables useless completely useless.
- 19:05Speaker 2: Attackers then have to crack each salted hash individually, usually
- 19:09Speaker 2: using brute force methods with tools like John the Ripper,
- 19:12Speaker 2: or for more speed, using graphics cards hashcat. It makes
- 19:15Speaker 2: cracking much much slower.
- 19:17Speaker 1: Okay, another big web attack cross site scripting XSS. What's
- 19:22Speaker 1: that about?
- 19:22Speaker 2: XSS is about injecting malicious JavaScript code into a web
- 19:27Speaker 2: page so that it runs in the victims browser.
- 19:29Speaker 1: How does the script get there?
- 19:31Speaker 2: Two main ways. Stored XSS is where the malicious script
- 19:34Speaker 2: gets saved permanently on the website's server, maybe in a
- 19:37Speaker 2: comment section or a user profile. Anyone who've used that
- 19:40Speaker 2: page later executes the script, and the other way reflected XSS.
- 19:44Speaker 1: Here the script is usually part of a link the
- 19:47Speaker 1: victim clicks, The script gets sent to the server, maybe
- 19:50Speaker 1: as a URL parameter, and the server then includes it
- 19:52Speaker 1: or reflects it back in the response page it sends
- 19:55Speaker 1: to the victim's browser, which then runs it.
- 19:57Speaker 2: And the impact of running this malicious script. A major
- 20:00Speaker 2: one is stealing those session cookies we talked about. The
- 20:03Speaker 2: script runs with the permissions of the website and the
- 20:05Speaker 2: victim's browser, so it can often access the cookies associated
- 20:08Speaker 2: with that site and send them off to the.
- 20:10Speaker 1: Attacker, allowing session hijacking again exactly.
- 20:13Speaker 2: Ye AXSS is a powerful way to compromise user accounts, and.
- 20:17Speaker 1: There are frameworks to make this easier for attackers.
- 20:20Speaker 2: BEEF Yeah, Beef the Browser Exploitation Framework. It's a tool
- 20:24Speaker 2: specifically designed for EXSS. An attacker gets a user to
- 20:27Speaker 2: run a small BEEF JavaScript hook. Once hooked, the attacker
- 20:31Speaker 2: gets a control panel showing the hook browser and they
- 20:34Speaker 2: can easily launch further attacks. Pop up fake login prompts,
- 20:38Speaker 2: redirect the browser, try to exploit browser plug ins, all
- 20:41Speaker 2: sorts of nasty stuff. It makes sophisticated browser based attacks
- 20:44Speaker 2: much more accessible.
- 20:45Speaker 1: Okay, let's zoom out to corporate networks, specifically Windows environments.
- 20:49Speaker 1: Getting that first foothold is one thing, but attackers want
- 20:52Speaker 1: to move deeper, right lateral movement.
- 20:55Speaker 2: Absolutely, landing on one workstation is usually just the start.
- 20:59Speaker 2: The goal is often to get to more sensitive systems
- 21:02Speaker 2: like servers or domain controllers, so they use the first
- 21:05Speaker 2: compromised machine as a stepping stone a pivot to reach
- 21:09Speaker 2: other parts of the network they couldn't access directly.
- 21:11Speaker 1: How might they do that?
- 21:12Speaker 2: Well, Sometimes a compromised machine might be dual homed, connected
- 21:17Speaker 2: to two different networks, maybe the main corporate land and
- 21:19Speaker 2: a smaller private one. The attacker can use that machine
- 21:23Speaker 2: as a proxy to route their traffic between those networks.
- 21:26Speaker 2: Bridging segments that were supposed to be separate.
- 21:28Speaker 1: And getting credentials is key and Windows too like password hashes.
- 21:32Speaker 2: Definitely similar to Linux, Windows stores password hashes. Attackers often
- 21:37Speaker 2: try to extract these hashes, frequently from the memory of
- 21:40Speaker 2: a critical system process called l sas. Local security authority
- 21:44Speaker 2: subsystem service tools like mimicats are famous for doing this.
- 21:49Speaker 1: Does that require special permissions?
- 21:50Speaker 2: Usually Yes, You typically need administrative rights on the machine
- 21:54Speaker 2: to dumb hashes from l SAS memory. That's often a
- 21:56Speaker 2: key goal after initial access, escalating privileges to become an admin.
- 22:00Speaker 1: And Windows networks use protocols like NTLM for authentication that
- 22:05Speaker 1: can be attacked too.
- 22:06Speaker 2: Yes. NTLM is an older but still common protocol. Attackers
- 22:10Speaker 2: can often perform past the hash attacks. Once they have
- 22:13Speaker 2: your NTLM password hash, which they might get from mimic
- 22:16Speaker 2: ads or by tricking your machine and descending it, they
- 22:19Speaker 2: can sometimes use that hash directly to authenticate to other
- 22:23Speaker 2: machines on the network that accept NTLM.
- 22:25Speaker 1: So they don't even need the actual password, just the
- 22:27Speaker 1: hash exactly.
- 22:28Speaker 2: It's a powerful lateral movement.
- 22:30Speaker 1: Technique and navigating these large corporate networks. It's complex, right.
- 22:36Speaker 2: Domains forests, Yeah, large organizations use active directory, which has
- 22:41Speaker 2: a hierarchical structure. Organizational units OUs within domains, domains grouped
- 22:46Speaker 2: into trees and trees into forests. Understanding the structure, how
- 22:50Speaker 2: security policies are applied and where valuable assets like domain
- 22:53Speaker 2: controllers reside, is crucial for an attacker planning their movement.
- 22:57Speaker 1: The domain controller or DC is the main target then
- 23:00Speaker 1: often yes.
- 23:01Speaker 2: The DC manages all the users, computers and security for
- 23:03Speaker 2: the domain runs critical services like DNA Domain Name System
- 23:07Speaker 2: for resolving names. Attackers might try DNS poisoning or exploiting
- 23:11Speaker 2: related protocols like lmn R, which is a fallback name
- 23:15Speaker 2: resolution protocol. If they can intercept an LLM in our request,
- 23:18Speaker 2: they might trick a client into sending its credentials to
- 23:20Speaker 2: the attackers machine.
- 23:21Speaker 1: And LDAP lightweight.
- 23:23Speaker 2: Directory access protocol that's how you query active directory for
- 23:27Speaker 2: information about users, groups, computers, permissions. Attackers use LDPP extensively
- 23:32Speaker 2: for reconnaissance inside the network. Tools like Bloodhound visualize ad
- 23:37Speaker 2: data gathered via LDP to find attack paths, ways to
- 23:40Speaker 2: hop from a low privileged user to eventually becoming a
- 23:43Speaker 2: domain admin.
- 23:44Speaker 1: And Carberos authentication.
- 23:46Speaker 2: Carberos is the primary authentication protocol and modern active directory.
- 23:50Speaker 2: It's more secure than NTLM, but still has potential weaknesses
- 23:53Speaker 2: attackers try to exploit, often related to stealing Carbero's tickets,
- 23:57Speaker 2: specifically ticket granting tickets tgts.
- 24:00Speaker 1: Ultimate goal being the Golden ticket ah.
- 24:02Speaker 2: The Golden Ticket attack. That's kind of the holy grail
- 24:05Speaker 2: for an active directory attacker. It involves compromising the domain
- 24:09Speaker 2: controller itself, stealing the password hash of a very special
- 24:12Speaker 2: account called karbpga. With that hash, the attacker can forge
- 24:17Speaker 2: any Carbero's ticket they want, granting themselves access to anything
- 24:21Speaker 2: in the domain, often for years, and it's very hard
- 24:24Speaker 2: to detect. It provides ultimate persistence and access.
- 24:27Speaker 1: Ooh, that's comprehensive control.
- 24:30Speaker 2: Okay, we've covered a massive amount of ground. After learning
- 24:33Speaker 2: all this, what are the practical next steps beyond the
- 24:35Speaker 2: virtual lab?
- 24:36Speaker 1: Right? The virtual lab is for safe learning, but if
- 24:38Speaker 1: you were doing say, external penetration testing for real, you'd
- 24:41Speaker 1: likely use a hardened server online, a virtual private server
- 24:45Speaker 1: or VPS with a public EYP address.
- 24:47Speaker 2: Hardened meaning what meaning locking it down tight applying rigorous
- 24:51Speaker 2: security configurations. You might use tools like Lennis to audit
- 24:55Speaker 2: the server's security settings to get a score, identify weaknesses.
- 24:59Speaker 2: You can figure firewalls carefully, maybe using UfW uncomplicated firewall
- 25:04Speaker 2: or even more advanced systems like Cylinux for fine grained
- 25:07Speaker 2: access control, basically making your attack platform as secure as possible.
- 25:12Speaker 1: And what about anonymity? Ethical hackers need that sometimes.
- 25:15Speaker 2: Depending on the engagement rules. Yes, anonymity tools like Tour
- 25:19Speaker 2: are important. Tour routes your Internet traffic through a volunteer
- 25:22Speaker 2: network of relays, bouncing it around the globe to obscure
- 25:24Speaker 2: your original IP.
- 25:25Speaker 1: Address makes it hard to trace back.
- 25:27Speaker 2: Very hard. There are even specialized operating systems like Tails,
- 25:31Speaker 2: a Linux distribution designed for privacy. It forces all network
- 25:34Speaker 2: traffic through Tour and includes tools like HTTPS everywhere and
- 25:38Speaker 2: no script to block potential de anonymizing elements.
- 25:41Speaker 1: But Tour isn't perfect, right, No, it's not foolproof.
- 25:45Speaker 2: Your Internet service provider can still see that you're connecting
- 25:47Speaker 2: to the Tour network even if they don't know what
- 25:50Speaker 2: you're doing inside it, and sophisticated adversaries might try correlation
- 25:55Speaker 2: attacks trying to match timing patterns of traffic entering and
- 25:58Speaker 2: exiting the Tour network to try and link them. Anonymity
- 26:02Speaker 2: is a complex, ongoing challenge.
- 26:04Speaker 1: It really feels like we've only scratched the surface today,
- 26:06Speaker 1: even with all this detail.
- 26:08Speaker 2: Oh, absolutely, the field is vast. We haven't even touched
- 26:11Speaker 2: on things like software defined radio SDRs SDR. Yeah, using
- 26:15Speaker 2: relatively cheap hardware and software to receive and analyze radio signals.
- 26:19Speaker 2: People use it to grab whether satellite images, listen to
- 26:22Speaker 2: unencrypted police or emergency services, chatter, track aircraft. The NSA
- 26:26Speaker 2: even released their own SDR tool, red Hawk, to the public.
- 26:30Speaker 1: Or attacking cellular networks.
- 26:32Speaker 2: That's another area understanding how cell networks work and how
- 26:35Speaker 2: tools sometimes called stingrays or IMSI catchers, can mimic cell
- 26:39Speaker 2: towers to track phones or intercept communications. Obviously, you need
- 26:42Speaker 2: extreme caution and ethical boundaries, like using a Faraday cage.
- 26:46Speaker 2: If you were ever experimenting with radio.
- 26:48Speaker 1: Signals and getting data off completely isolated systems air gaps. Yeah,
- 26:53Speaker 1: escaping the air gap. There are techniques, often theoretical or
- 26:57Speaker 1: lab based, using things like ultrasonics, sound light pulses, even
- 27:02Speaker 1: heat variations to transmit tiny amounts of data from a
- 27:04Speaker 1: machine with absolutely no network connection. It's fascinating stuff.
- 27:08Speaker 2: Reverts to engineering software.
- 27:09Speaker 1: Crucial skill, especially for malware analysis, taking compiled code and
- 27:14Speaker 1: figuring out what it does.
- 27:15Speaker 2: Physical hacking tools like those hack five gadgets.
- 27:18Speaker 1: Right, things like the USB rubber ducky that pretends to
- 27:21Speaker 1: be a keyboard and types of commands super fast, or
- 27:23Speaker 1: the Wi Fi Pineapple that acts as a rogue access
- 27:26Speaker 1: point for man in the middle attacks. Physical access often
- 27:28Speaker 1: bypasses a lot of digital security.
- 27:31Speaker 2: Hacking industrial control systems. Stucksnet showed the potential damage there a.
- 27:35Speaker 1: Stark warning about critical infrastructure security.
- 27:37Speaker 2: Yeah, and the future quantum computing breaking current encryption. That's
- 27:42Speaker 2: the long term worry. Petershore's quantum algorithm can in theory
- 27:47Speaker 2: break RSA encryption relatively easily by factoring large numbers. We
- 27:51Speaker 2: don't have quantum computers powerful enough yet, but it's driving
- 27:54Speaker 2: research into new quantum resistant cryptographic methods.
- 27:58Speaker 1: It really hammers home how and maybe fragile our digital
- 28:02Speaker 1: world is it?
- 28:03Speaker 2: Certainly does. You have now seen a glimpse into how
- 28:06Speaker 2: systems can be analyzed, probed and potentially compromised.
- 28:10Speaker 1: So the final thought for you, the listener, given this understanding,
- 28:13Speaker 1: this peak behind the curtain, what new, maybe unseen vulnerabilities
- 28:18Speaker 1: might exist in the systems you rely on every single
- 28:20Speaker 2: Day, And perhaps more importantly, how can the knowledge you've
- 28:24Speaker 2: gained today help you and others start thinking about how
- 28:27Speaker 2: to better protect them